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()
Deprecated.
This method is kept only for compile-compatibility and will always throw an exception
use
getDatabaseType(String) instead. Will be removed in 8.1 |
com.saperion.config.SQLType |
getDatabaseType(String ddcName)
This method returns the type of database the given DDC is stored on.
|
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 exception@Deprecated String getDatabaseType() throws AuthenticationException, SystemException
getDatabaseType(String)
instead. Will be removed in 8.1AuthenticationException
- authentication exceptionSystemException
- system exceptioncom.saperion.config.SQLType getDatabaseType(String ddcName) throws AuthenticationException, SystemException
ddcName
- the name of the DDC to checkAuthenticationException
- missing privileges or re-logon requiredSystemException
- system error when loading DDCCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.