Package org.idempiere.acct
Class AcctModelServices
java.lang.Object
org.idempiere.acct.AcctModelServices
Static portal to accounting model services.
The volatile reference is populated by OSGi Declarative Services
via
setAccountingService(IPOAccountingService).- Author:
- etantg / d-ruiz
-
Method Summary
Modifier and TypeMethodDescriptionstatic IAccountingSetupServicestatic IDocPostingServicestatic IPOAccountingServicestatic booleanstatic booleanstatic booleanstatic voidsetAccountingService(IPOAccountingService service) Called by OSGi DS when the service becomes available.static voidCalled by OSGi DS when the service becomes available.static voidsetDocPostingService(IDocPostingService service) Called by OSGi DS when the service becomes available.static voidCalled by OSGi DS when the service is withdrawn.static voidCalled by OSGi DS when the service is withdrawn.static voidunsetDocPostingService(IDocPostingService service) Called by OSGi DS when the service is withdrawn.
-
Method Details
-
setAccountingService
Called by OSGi DS when the service becomes available.- Parameters:
service- accounting service implementation
-
unsetAccountingService
Called by OSGi DS when the service is withdrawn.- Parameters:
service- accounting service implementation (ignored)
-
getPOAccountingService
- Returns:
- the accounting service, or
nullif not yet available
-
isAccountingAvailable
public static boolean isAccountingAvailable()- Returns:
- true if the accounting service is available
-
setDocPostingService
Called by OSGi DS when the service becomes available.- Parameters:
service- posting service implementation
-
unsetDocPostingService
Called by OSGi DS when the service is withdrawn.- Parameters:
service- posting service implementation (ignored)
-
getDocPostingService
- Returns:
- the posting service, or
nullif not yet available
-
isDocPostingAvailable
public static boolean isDocPostingAvailable()- Returns:
- true if the posting service is available
-
setAccountingSetupService
Called by OSGi DS when the service becomes available.- Parameters:
accounting- setup service implementation
-
unsetAccountingSetupService
Called by OSGi DS when the service is withdrawn.- Parameters:
accounting- setup service implementation (ignored)
-
getAccountingSetupService
- Returns:
- the accounting setup service, or
nullif not yet available
-
isAccountingSetupAvailable
public static boolean isAccountingSetupAvailable()- Returns:
- true if the accounting setup service is available
-