Package com.saperion.connector.rmi
Class SaRMISystemConnector
java.lang.Object
com.saperion.connector.rmi.SaRMISystemConnector
System-level connector.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllACLs(String mandant) Reads all existing ACL names.intgetFieldDescriptions(String ddcName, String mandant) ddc fields descriptions.The XML Hibernate configuration.intgetLicenseCount(int type) Read the licence count for the given user.intgetMandantIdForDDC(String mandant, String ddcName) Reads the mandant ID.getRealDBName(String ddcName, String field, String mandant) Returns the system application instance.final SaSystemSettinggetSystemSetting(String key, String mandant) Retrieves system settings based on a given key.String[]loadDDCNames(String mandant) loadSettings(String section) voidSet the info to stopped.booleansetUsedLicense(int type, int count) Set the count of used licenses.
-
Constructor Details
-
SaRMISystemConnector
public SaRMISystemConnector(SaRMIServerInfo serverInfo) throws SaSystemException, com.lexmark.saperion.exceptions.system.BackendSystemException Constructor.- Parameters:
serverInfo- Server Info- Throws:
SaSystemException- SaRMICommandExceptioncom.lexmark.saperion.exceptions.system.BackendSystemException
-
-
Method Details
-
getFieldsDescriptionList
ddc fields descriptions.- Returns:
- Map of fields descriptions
-
getFieldDescriptions
public SaFieldDescription[] getFieldDescriptions(String ddcName, String mandant) throws RemoteException - Parameters:
ddcName- DDC namemandant- saperion mandant name- Returns:
- Fielddescription
- Throws:
RemoteException- Remote exception
-
getRealDBName
- Parameters:
ddcName- DDC namefield- field name.mandant- saperion mandant name- Returns:
- Fielddescription
- Throws:
RemoteException- Remote exception
-
loadDDCNames
- Parameters:
mandant- saperion mandant name- Returns:
- DDC names
- Throws:
RemoteException- Remote exception
-
getSystemSetting
Retrieves system settings based on a given key.- Parameters:
key- the keymandant- 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 exceptioncom.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- Exceptioncom.lexmark.saperion.exceptions.system.BackendSystemException
-
getHibernateEntitymap
The XML Hibernate configuration.- Returns:
- The XML Hibernate configuration
- Throws:
RemoteException- The RemoteException
-
getSaSystemCommand
Returns the system application instance.- Returns:
- System application instance
-
getAllACLs
Reads all existing ACL names.- Parameters:
mandant- saperion mandant name- Returns:
- List of ACL names
- Throws:
RemoteException- Remote exception
-
getMandantIdForDDC
Reads the mandant ID.- Parameters:
mandant- Mandant nameddcName- DDC name- Returns:
- Mandant ID
- Throws:
RemoteException- Remote exception
-
getBrokerName
- Returns:
- Broker name
-
getBrokerPort
public int getBrokerPort()- Returns:
- Broker port
-
getSocketFactory
- Returns:
- Socket factory
-
getRegistry
- Returns:
- Registry
-
setStopped
public void setStopped()Set the info to stopped. -
getServerInfo
- Returns:
- Connected server info
-
getFeatures
- Returns:
- Features
-
getLicenseCount
Read the licence count for the given user.- Parameters:
type- Client type- Returns:
- License count
- Throws:
RemoteException- Error on the saperion system
-
setUsedLicense
Set the count of used licenses.- Parameters:
type- Client typecount- Number of licenses- Throws:
RemoteException- Error on the saperion system
-