public interface SettingsService
| 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.
|
String getActualUser()
boolean isAlive()
throws com.saperion.exception.SaSystemException
com.saperion.exception.SaSystemException - System exceptionboolean hasLicence(com.saperion.rmi.SaFeature.FeatureKind kind)
throws SystemException
kind - Feature kindSystemException - System exceptionMap<String,String> getProperties(String section) throws AuthenticationException, SystemException
SaperionIniSettings instead for automatic tenant
handling.section - SectionAuthenticationException - authentication exceptionSystemException - system exceptionboolean isReleaseActive()
throws AuthenticationException,
SystemException
AuthenticationException - the authentication exceptionSystemException - the system exceptionMap<String,String> getUtf8Properties(String section) throws AuthenticationException, SystemException
section - SectionAuthenticationException - authentication exceptionSystemException - system exceptionvoid setProperties(Map<String,String> props, String section) throws AuthenticationException, SystemException
props - Propertiessection - SectionAuthenticationException - authentication exceptionSystemException - system exceptionvoid setUtf8Properties(Map<String,String> props, String section, boolean cleanSection) throws AuthenticationException, SystemException
props - Propertiessection - SectioncleanSection - Clean sectionAuthenticationException - authentication exceptionSystemException - system exceptionList<String> getLastLaunched() throws AuthenticationException, SystemException
AuthenticationException - authentication exceptionSystemException - system exceptionvoid setLastLaunched(String lastName) throws AuthenticationException, SystemException
lastName - Last nameAuthenticationException - authentication exceptionSystemException - system exceptionList<com.saperion.intf.SaFieldDescription> getFieldDescriptionsList(String definitionName) throws SystemException, AuthenticationException
definitionName - definition nameSystemException - system exceptionAuthenticationException - authentication exceptioncom.saperion.intf.DDC getDDC(String definitionName) throws SystemException, AuthenticationException
definitionName - name of the DDC to retrieveSystemException - system error when retrieving DDCAuthenticationException - authentication error when retrieving DDCboolean isLookupTable(String ddcName) throws SystemException, AuthenticationException
ddcName - DDC nameSystemException - system exceptionAuthenticationException - authentication exceptionDocumentId fixRevId(DocumentId id, boolean force) throws SystemException, AuthenticationException
id - Document idforce - Force the renewSystemException - System exceptionAuthenticationException - authentication exceptionList<String> getAllAcls() throws SystemException, AuthenticationException
SystemException - system exceptionAuthenticationException - authentication exception@Deprecated void setResultType(String formName, int id, int rev, com.saperion.ngc.iform.xml.ResultType resultType, String ddc) throws SystemException, AuthenticationException
formName - Form nameid - Frame idrev - Revision numberresultType - Result type instanceddc - DDC nameSystemException - System exceptionAuthenticationException - Authentication exception@Deprecated com.saperion.ngc.iform.xml.ResultType getResultType(String formName, int id, int rev, String ddc) throws SystemException, AuthenticationException
formName - Form nameid - Frame idrev - Revision numberddc - DDC nameSystemException - System exceptionAuthenticationException - Authentication exceptionString getSetting(String name, String section, boolean longSetting) throws SystemException, AuthenticationException
name - 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 settingvoid setSetting(String value, String name, String section, boolean longSetting) throws SystemException, AuthenticationException
value - 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 settingboolean deleteSetting(String name, String section, boolean longSetting) throws SystemException, AuthenticationException
name - 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 settingvoid setFastAccessItems(Map<String,String> items) throws AuthenticationException, SystemException
items - fast access items as pairs of name and pathAuthenticationException - authentication exceptionSystemException - system exceptionMap<String,String> getFastAccessItems() throws AuthenticationException, SystemException
AuthenticationException - authentication exceptionSystemException - system exceptionString getDatabaseType() throws AuthenticationException, SystemException
AuthenticationException - authentication exceptionSystemException - system exceptionCopyright © 2016 SAPERION AG. All rights reserved.