Package com.saperion.connector.rmi
Class SaRMISystemConnector
- java.lang.Object
-
- com.saperion.connector.rmi.SaRMISystemConnector
-
public class SaRMISystemConnector extends java.lang.ObjectSystem-level connector.
-
-
Constructor Summary
Constructors Constructor Description SaRMISystemConnector(SaRMIServerInfo serverInfo)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getAllACLs(java.lang.String mandant)Reads all existing ACL names.java.lang.StringgetBrokerName()intgetBrokerPort()SaFeaturegetFeatures()SaFieldDescription[]getFieldDescriptions(java.lang.String ddcName, java.lang.String mandant)java.util.Map<java.lang.String,SaFieldDescription[]>getFieldsDescriptionList()ddc fields descriptions.java.util.Map<java.lang.String,java.lang.String>getHibernateEntitymap()The XML Hibernate configuration.intgetLicenseCount(int type)Read the licence count for the given user.intgetMandantIdForDDC(java.lang.String mandant, java.lang.String ddcName)Reads the mandant ID.java.lang.StringgetRealDBName(java.lang.String ddcName, java.lang.String field, java.lang.String mandant)java.rmi.registry.RegistrygetRegistry()SaRMISystemCommandgetSaSystemCommand()Returns the system application instance.SaRMIServerInfogetServerInfo()java.rmi.server.RMIClientSocketFactorygetSocketFactory()SaSystemSettinggetSystemSetting(java.lang.String key, java.lang.String mandant)Retrieves system settings based on a given key.java.lang.String[]loadDDCNames(java.lang.String mandant)java.util.PropertiesloadSettings()java.util.PropertiesloadSettings(java.lang.String section)voidsetStopped()Set the info to stopped.booleansetUsedLicense(int type, int count)Set the count of used licenses.
-
-
-
Constructor Detail
-
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 Detail
-
getFieldsDescriptionList
public java.util.Map<java.lang.String,SaFieldDescription[]> getFieldsDescriptionList()
ddc fields descriptions.- Returns:
- Map of fields descriptions
-
getFieldDescriptions
public SaFieldDescription[] getFieldDescriptions(java.lang.String ddcName, java.lang.String mandant) throws java.rmi.RemoteException
- Parameters:
ddcName- DDC namemandant- saperion mandant name- Returns:
- Fielddescription
- Throws:
java.rmi.RemoteException- Remote exception
-
getRealDBName
public java.lang.String getRealDBName(java.lang.String ddcName, java.lang.String field, java.lang.String mandant) throws java.rmi.RemoteException- Parameters:
ddcName- DDC namefield- field name.mandant- saperion mandant name- Returns:
- Fielddescription
- Throws:
java.rmi.RemoteException- Remote exception
-
loadDDCNames
public java.lang.String[] loadDDCNames(java.lang.String mandant) throws java.rmi.RemoteException- Parameters:
mandant- saperion mandant name- Returns:
- DDC names
- Throws:
java.rmi.RemoteException- Remote exception
-
getSystemSetting
public final SaSystemSetting getSystemSetting(java.lang.String key, java.lang.String mandant) throws java.rmi.RemoteException
Retrieves system settings based on a given key.- Parameters:
key- the keymandant- Mandant- Returns:
SaSystemSetting- Throws:
java.rmi.RemoteException- Error on the saperion system
-
loadSettings
public java.util.Properties loadSettings() throws java.rmi.RemoteException, com.lexmark.saperion.exceptions.system.BackendSystemException- Returns:
- Settings
- Throws:
java.rmi.RemoteException- Remote exceptioncom.lexmark.saperion.exceptions.system.BackendSystemException
-
loadSettings
public java.util.Properties loadSettings(java.lang.String section) throws java.rmi.RemoteException, com.lexmark.saperion.exceptions.system.BackendSystemException- Parameters:
section- Section- Returns:
- Settings
- Throws:
java.rmi.RemoteException- Exceptioncom.lexmark.saperion.exceptions.system.BackendSystemException
-
getHibernateEntitymap
public java.util.Map<java.lang.String,java.lang.String> getHibernateEntitymap() throws java.rmi.RemoteExceptionThe XML Hibernate configuration.- Returns:
- The XML Hibernate configuration
- Throws:
java.rmi.RemoteException- The RemoteException
-
getSaSystemCommand
public SaRMISystemCommand getSaSystemCommand()
Returns the system application instance.- Returns:
- System application instance
-
getAllACLs
public java.util.List<java.lang.String> getAllACLs(java.lang.String mandant) throws java.rmi.RemoteExceptionReads all existing ACL names.- Parameters:
mandant- saperion mandant name- Returns:
- List of ACL names
- Throws:
java.rmi.RemoteException- Remote exception
-
getMandantIdForDDC
public int getMandantIdForDDC(java.lang.String mandant, java.lang.String ddcName) throws java.rmi.RemoteExceptionReads the mandant ID.- Parameters:
mandant- Mandant nameddcName- DDC name- Returns:
- Mandant ID
- Throws:
java.rmi.RemoteException- Remote exception
-
getBrokerName
public java.lang.String getBrokerName()
- Returns:
- Broker name
-
getBrokerPort
public int getBrokerPort()
- Returns:
- Broker port
-
getSocketFactory
public java.rmi.server.RMIClientSocketFactory getSocketFactory()
- Returns:
- Socket factory
-
getRegistry
public java.rmi.registry.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 java.rmi.RemoteExceptionRead the licence count for the given user.- Parameters:
type- Client type- Returns:
- License count
- Throws:
java.rmi.RemoteException- Error on the saperion system
-
setUsedLicense
public boolean setUsedLicense(int type, int count) throws java.rmi.RemoteExceptionSet the count of used licenses.- Parameters:
type- Client typecount- Number of licenses- Throws:
java.rmi.RemoteException- Error on the saperion system
-
-