Class AcctModelServices

java.lang.Object
org.idempiere.acct.AcctModelServices

public final class AcctModelServices extends Object
Static portal to accounting model services. The volatile reference is populated by OSGi Declarative Services via setAccountingService(IPOAccountingService).
Author:
etantg / d-ruiz
  • Method Details

    • setAccountingService

      public static void setAccountingService(IPOAccountingService service)
      Called by OSGi DS when the service becomes available.
      Parameters:
      service - accounting service implementation
    • unsetAccountingService

      public static void unsetAccountingService(IPOAccountingService service)
      Called by OSGi DS when the service is withdrawn.
      Parameters:
      service - accounting service implementation (ignored)
    • getPOAccountingService

      public static IPOAccountingService getPOAccountingService()
      Returns:
      the accounting service, or null if not yet available
    • isAccountingAvailable

      public static boolean isAccountingAvailable()
      Returns:
      true if the accounting service is available
    • setDocPostingService

      public static void setDocPostingService(IDocPostingService service)
      Called by OSGi DS when the service becomes available.
      Parameters:
      service - posting service implementation
    • unsetDocPostingService

      public static void unsetDocPostingService(IDocPostingService service)
      Called by OSGi DS when the service is withdrawn.
      Parameters:
      service - posting service implementation (ignored)
    • getDocPostingService

      public static IDocPostingService getDocPostingService()
      Returns:
      the posting service, or null if not yet available
    • isDocPostingAvailable

      public static boolean isDocPostingAvailable()
      Returns:
      true if the posting service is available
    • setAccountingSetupService

      public static void setAccountingSetupService(IAccountingSetupService service)
      Called by OSGi DS when the service becomes available.
      Parameters:
      accounting - setup service implementation
    • unsetAccountingSetupService

      public static void unsetAccountingSetupService(IAccountingSetupService service)
      Called by OSGi DS when the service is withdrawn.
      Parameters:
      accounting - setup service implementation (ignored)
    • getAccountingSetupService

      public static IAccountingSetupService getAccountingSetupService()
      Returns:
      the accounting setup service, or null if not yet available
    • isAccountingSetupAvailable

      public static boolean isAccountingSetupAvailable()
      Returns:
      true if the accounting setup service is available