Class SaRMISystemConnector

java.lang.Object
com.saperion.connector.rmi.SaRMISystemConnector

public class SaRMISystemConnector extends Object
System-level connector.
  • Constructor Details

    • SaRMISystemConnector

      public SaRMISystemConnector(SaRMIServerInfo serverInfo) throws SaSystemException, com.lexmark.saperion.exceptions.system.BackendSystemException
      Constructor.
      Parameters:
      serverInfo - Server Info
      Throws:
      SaSystemException - SaRMICommandException
      com.lexmark.saperion.exceptions.system.BackendSystemException
  • Method Details

    • getFieldsDescriptionList

      public Map<String,SaFieldDescription[]> getFieldsDescriptionList()
      ddc fields descriptions.
      Returns:
      Map of fields descriptions
    • getFieldDescriptions

      public SaFieldDescription[] getFieldDescriptions(String ddcName, String mandant) throws RemoteException
      Parameters:
      ddcName - DDC name
      mandant - saperion mandant name
      Returns:
      Fielddescription
      Throws:
      RemoteException - Remote exception
    • getRealDBName

      public String getRealDBName(String ddcName, String field, String mandant) throws RemoteException
      Parameters:
      ddcName - DDC name
      field - field name.
      mandant - saperion mandant name
      Returns:
      Fielddescription
      Throws:
      RemoteException - Remote exception
    • loadDDCNames

      public String[] loadDDCNames(String mandant) throws RemoteException
      Parameters:
      mandant - saperion mandant name
      Returns:
      DDC names
      Throws:
      RemoteException - Remote exception
    • getSystemSetting

      public final SaSystemSetting getSystemSetting(String key, String mandant) throws RemoteException
      Retrieves system settings based on a given key.
      Parameters:
      key - the key
      mandant - Mandant
      Returns:
      SaSystemSetting
      Throws:
      RemoteException - Error on the saperion system
    • loadSettings

      public Properties loadSettings() throws RemoteException, com.lexmark.saperion.exceptions.system.BackendSystemException
      Returns:
      Settings
      Throws:
      RemoteException - Remote exception
      com.lexmark.saperion.exceptions.system.BackendSystemException
    • loadSettings

      public Properties loadSettings(String section) throws RemoteException, com.lexmark.saperion.exceptions.system.BackendSystemException
      Parameters:
      section - Section
      Returns:
      Settings
      Throws:
      RemoteException - Exception
      com.lexmark.saperion.exceptions.system.BackendSystemException
    • getHibernateEntitymap

      public Map<String,String> getHibernateEntitymap() throws RemoteException
      The XML Hibernate configuration.
      Returns:
      The XML Hibernate configuration
      Throws:
      RemoteException - The RemoteException
    • getSaSystemCommand

      public SaRMISystemCommand getSaSystemCommand()
      Returns the system application instance.
      Returns:
      System application instance
    • getAllACLs

      public List<String> getAllACLs(String mandant) throws RemoteException
      Reads all existing ACL names.
      Parameters:
      mandant - saperion mandant name
      Returns:
      List of ACL names
      Throws:
      RemoteException - Remote exception
    • getMandantIdForDDC

      public int getMandantIdForDDC(String mandant, String ddcName) throws RemoteException
      Reads the mandant ID.
      Parameters:
      mandant - Mandant name
      ddcName - DDC name
      Returns:
      Mandant ID
      Throws:
      RemoteException - Remote exception
    • getBrokerName

      public String getBrokerName()
      Returns:
      Broker name
    • getBrokerPort

      public int getBrokerPort()
      Returns:
      Broker port
    • getSocketFactory

      public RMIClientSocketFactory getSocketFactory()
      Returns:
      Socket factory
    • getRegistry

      public Registry getRegistry()
      Returns:
      Registry
    • setStopped

      public void setStopped()
      Set the info to stopped.
    • getServerInfo

      public SaRMIServerInfo getServerInfo()
      Returns:
      Connected server info
    • getFeatures

      public SaFeature getFeatures()
      Returns:
      Features
    • getLicenseCount

      public int getLicenseCount(int type) throws RemoteException
      Read the licence count for the given user.
      Parameters:
      type - Client type
      Returns:
      License count
      Throws:
      RemoteException - Error on the saperion system
    • setUsedLicense

      public boolean setUsedLicense(int type, int count) throws RemoteException
      Set the count of used licenses.
      Parameters:
      type - Client type
      count - Number of licenses
      Throws:
      RemoteException - Error on the saperion system