Interface PermissionServiceScriptContext
- All Superinterfaces:
BaseContext
,ScriptContext
,SpecialistsBroker
This script context is available via variable 'context' in serverside scripts executed in the
permission service
. It provides methods to access and modify the group
and users
definitions.- Since:
- 3.1.170
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.BaseContext
BaseContext.Env
-
Method Summary
Modifier and TypeMethodDescription@Nullable DirContext
Returns the dir context specified in the belonging section in the service.ini of the permission service ornull
if no ldap.URL is specified in the service.ini.getRoot()
Returns the group root model representing the belonging groups.xml file specified by the param "DOCUMENT_NAME.path" in service.ini.@Nullable Users
getUsers()
Returns the users model representing the belonging users.xml file specified by the param "DOCUMENT_NAME.users" in service.ini ornull
if no users xmlfile is specified.Methods inherited from interface de.espirit.firstspirit.access.BaseContext
is
Methods inherited from interface de.espirit.firstspirit.access.ScriptContext
getConnection, getProperties, getProperty, logDebug, logError, logError, logInfo, logWarning, removeProperty, setProperty
Methods inherited from interface de.espirit.firstspirit.agency.SpecialistsBroker
requestSpecialist, requireSpecialist
-
Method Details
-
getRoot
GroupRoot getRoot()Returns the group root model representing the belonging groups.xml file specified by the param "DOCUMENT_NAME.path" in service.ini.- Since:
- 3.1.170
-
getUsers
Returns the users model representing the belonging users.xml file specified by the param "DOCUMENT_NAME.users" in service.ini ornull
if no users xmlfile is specified.- Returns:
- the object representing the users xml file or
null
if no users xml is specified in service.ini - Since:
- 3.1.170
-
getLdapContext
Returns the dir context specified in the belonging section in the service.ini of the permission service ornull
if no ldap.URL is specified in the service.ini.- Returns:
- dir context or
null
if ldap.URL is missing in belonging section of service.ini - Throws:
IOException
- Since:
- 3.1.170
-