public class SettingsClassicConnectorService extends ClassicConnectorService implements SettingsService
| Constructor and Description |
|---|
SettingsClassicConnectorService() |
SettingsClassicConnectorService(javax.servlet.http.HttpSession session)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteSetting(String name,
String section,
boolean longSetting)
Deletes a setting in the backend.
|
DocumentId |
fixRevId(DocumentId id,
boolean force)
Fix the revision id, if it's empty.
|
String |
getActualUser()
Reads the actual user name from connector.
|
List<String> |
getAllAcls()
Gets all ACL names.
|
String |
getDatabaseType()
Convenience method to get the type of the database currently in use.
|
com.saperion.intf.DDC |
getDDC(String definitionName)
Retrieves the specified DDC.
|
Map<String,String> |
getFastAccessItems()
Retrieves the fast access items.
|
List<com.saperion.intf.SaFieldDescription> |
getFieldDescriptionsList(String definitionName)
Retrieves the field descriptions for the specified definition.
|
List<String> |
getLastLaunched()
Reads and sort the last launched workflow names.
|
Map<String,String> |
getProperties(String section)
Reads the properties stored in the given section in the INI configuration files of Saperion.
|
com.saperion.ngc.iform.xml.ResultType |
getResultType(String formName,
int id,
int rev,
String ddc)
Deprecated.
use getSetting instead
|
String |
getSetting(String name,
String section,
boolean longSetting)
Retrieves a setting from the backend.
|
Map<String,String> |
getUtf8Properties(String section)
Reads the properties stored in the given section in the INI configuration files of Saperion.
|
boolean |
hasLicence(com.saperion.rmi.SaFeature.FeatureKind kind)
Checks, if the feature is supported.
|
boolean |
isAlive()
Check the backend connector.
|
boolean |
isLookupTable(String ddcName)
Checks, if the given ddc is a lookup table.
|
boolean |
isReleaseActive()
Checks if release feature active.
|
void |
setFastAccessItems(Map<String,String> items)
Stores the fast access items.
|
void |
setLastLaunched(String lastName)
Set the last lauched workflow name.
|
void |
setProperties(Map<String,String> props,
String section)
Writes the given properties to the given section.
|
void |
setResultType(String formName,
int id,
int rev,
com.saperion.ngc.iform.xml.ResultType resultType,
String ddc)
Deprecated.
use setSetting instead
|
void |
setSetting(String value,
String name,
String section,
boolean longSetting)
Stores a setting in the backend.
|
void |
setUtf8Properties(Map<String,String> props,
String section,
boolean cleanSection)
Writes the given properties with UTF-8 encoded values to the given
section.
|
convertAuthenticationException, getConnectionProvider, getSession, getWfConnectionProvider, isActivepublic SettingsClassicConnectorService()
public SettingsClassicConnectorService(javax.servlet.http.HttpSession session)
session - Sessionpublic String getActualUser()
getActualUser in interface SettingsServiceSettingsService.getActualUser()public boolean isAlive()
throws com.saperion.exception.SaSystemException
isAlive in interface SettingsServicecom.saperion.exception.SaSystemException - System exceptionSettingsService.isAlive()public boolean hasLicence(com.saperion.rmi.SaFeature.FeatureKind kind)
throws SystemException
hasLicence in interface SettingsServicekind - Feature kindSystemExceptionSettingsService.hasLicence(com.saperion.rmi.SaFeature.FeatureKind)public boolean isReleaseActive()
throws SystemException,
AuthenticationException
isReleaseActive in interface SettingsServiceSystemException - the system exceptionAuthenticationException - the authentication exceptionSettingsService.isReleaseActive()public Map<String,String> getProperties(String section) throws AuthenticationException, SystemException
SaperionIniSettings instead for automatic tenant
handling.getProperties in interface SettingsServicesection - SectionAuthenticationException - authentication exceptionSystemException - system exceptionSettingsService.getProperties(java.lang.String)public Map<String,String> getUtf8Properties(String section) throws AuthenticationException, SystemException
getUtf8Properties in interface SettingsServicesection - SectionAuthenticationException - authentication exceptionSystemException - system exceptionSettingsService.getUtf8Properties(java.lang.String)public void setProperties(Map<String,String> props, String section) throws AuthenticationException, SystemException
setProperties in interface SettingsServiceprops - Propertiessection - SectionAuthenticationException - authentication exceptionSystemException - system exceptionSettingsService.setProperties(java.util.Map, java.lang.String)public void setUtf8Properties(Map<String,String> props, String section, boolean cleanSection) throws AuthenticationException, SystemException
setUtf8Properties in interface SettingsServiceprops - Propertiessection - SectioncleanSection - Clean sectionAuthenticationException - authentication exceptionSystemException - system exceptionSettingsService.setUtf8Properties(java.util.Map,
java.lang.String, boolean)public List<String> getLastLaunched() throws AuthenticationException, SystemException
getLastLaunched in interface SettingsServiceAuthenticationException - authentication exceptionSystemException - system exceptionSettingsService.getLastLaunched()public void setLastLaunched(String lastName) throws AuthenticationException, SystemException
setLastLaunched in interface SettingsServicelastName - Last nameAuthenticationException - authentication exceptionSystemException - system exceptionSettingsService.setLastLaunched(java.lang.String)public final List<com.saperion.intf.SaFieldDescription> getFieldDescriptionsList(String definitionName) throws SystemException, AuthenticationException
getFieldDescriptionsList in interface SettingsServicedefinitionName - definition nameSystemException - system exceptionAuthenticationException - authentication exceptionSettingsService.getFieldDescriptionsList(java.lang.String)public com.saperion.intf.DDC getDDC(String definitionName) throws SystemException, AuthenticationException
getDDC in interface SettingsServicedefinitionName - name of the DDC to retrieveSystemException - system error when retrieving DDCAuthenticationException - authentication error when retrieving DDCSettingsService.getDDC(java.lang.String)public boolean isLookupTable(String ddcName) throws SystemException, AuthenticationException
isLookupTable in interface SettingsServiceddcName - DDC nameSystemException - system exceptionAuthenticationException - authentication exceptionSettingsService.isLookupTable(java.lang.String)public DocumentId fixRevId(DocumentId id, boolean force) throws SystemException, AuthenticationException
fixRevId in interface SettingsServiceid - Document idforce - Force the renewSystemException - System exceptionAuthenticationException - authentication exceptionSettingsService.fixRevId(com.saperion.ngc.model.document.DocumentId,
boolean)public final List<String> getAllAcls() throws SystemException, AuthenticationException
getAllAcls in interface SettingsServiceAuthenticationExceptionSystemExceptionSettingsService.getAllAcls()@Deprecated public final void setResultType(String formName, int id, int rev, com.saperion.ngc.iform.xml.ResultType resultType, String ddc) throws SystemException, AuthenticationException
setResultType in interface SettingsServiceformName - Form nameid - Frame idrev - Revision numberresultType - Result type instanceddc - DDC nameSystemException - System exceptionAuthenticationException - Authentication exceptionSettingsService.setResultType(java.lang.String, int, int,
com.saperion.ngc.iform.xml.ResultType, java.lang.String)@Deprecated public final com.saperion.ngc.iform.xml.ResultType getResultType(String formName, int id, int rev, String ddc) throws SystemException, AuthenticationException
getResultType in interface SettingsServiceformName - Form nameid - Frame idrev - Revision numberddc - DDC nameSystemException - System exceptionAuthenticationException - Authentication exceptionSettingsService.getResultType(java.lang.String, int, int,
java.lang.String)public String getSetting(String name, String section, boolean longSetting) throws SystemException, AuthenticationException
getSetting in interface SettingsServicename - the name of the settingsection - the section of the settinglongSetting - whether the value of the setting is allowed to be longer than 2KB or notSystemException - system error when retrieving the settingAuthenticationException - authentication error when retrieving the settingSettingsService.getSetting(java.lang.String, java.lang.String, boolean)public void setSetting(String value, String name, String section, boolean longSetting) throws SystemException, AuthenticationException
setSetting in interface SettingsServicevalue - the setting's value. If longSetting is false, this is limited to 2KB.
If longSetting is true, the string must not contain unicode characters.name - the name of the settingsection - the section of the settinglongSetting - whether the value is allowed to be longer than 2KB or notSystemException - system error when storing the settingAuthenticationException - authentication error when storing the settingSettingsService.setSetting(java.lang.String,
java.lang.String, java.lang.String, boolean)public boolean deleteSetting(String name, String section, boolean longSetting) throws SystemException, AuthenticationException
deleteSetting in interface SettingsServicename - the name of the settingsection - the section of the settinglongSetting - whether the setting's value is allowed to be longer than 2KB or notSystemException - system error when deleting the settingAuthenticationException - authentication error when deleting the settingSettingsService.deleteSetting(java.lang.String, java.lang.String, boolean)public Map<String,String> getFastAccessItems() throws AuthenticationException, SystemException
getFastAccessItems in interface SettingsServiceAuthenticationException - authentication exceptionSystemException - system exceptionSettingsService.getFastAccessItems()public void setFastAccessItems(Map<String,String> items) throws AuthenticationException, SystemException
setFastAccessItems in interface SettingsServiceitems - fast access items as pairs of name and pathAuthenticationException - authentication exceptionSystemException - system exceptionSettingsService.setFastAccessItems(java.util.Map)public String getDatabaseType() throws AuthenticationException, SystemException
getDatabaseType in interface SettingsServiceAuthenticationException - authentication exceptionSystemException - system exceptionSettingsService.getDatabaseType()Copyright © 2016 SAPERION AG. All rights reserved.