Package com.groiss.org
Interface RemoteOrgData
- All Superinterfaces:
Remote
- All Known Subinterfaces:
OrgData
Deprecated, for removal: This API element is subject to removal in a future version.
This interface allows access to the organizational data stored in @enterprise.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRoleToSession
(Role r, OrgUnit ou) Deprecated, for removal: This API element is subject to removal in a future version.Adds a role to the current usersession.void
Deprecated, for removal: This API element is subject to removal in a future version.void
addRule
(Class<? extends PermissionMapping> pm) Deprecated, for removal: This API element is subject to removal in a future version.Add a permission mapping to the permission system.void
changeDeferred
(Persistent p, Date d) Deprecated, for removal: This API element is subject to removal in a future version.Change the Object latervoid
Deprecated, for removal: This API element is subject to removal in a future version.Check if the user is active, not too many unsuccessful logins and system not in admin mode.checkPasswordPolicy
(String password) Deprecated, for removal: This API element is subject to removal in a future version.Check a password against the password policy.void
checkRight
(Right r, Persistent o) Deprecated, for removal: This API element is subject to removal in a future version.Check whether the thread user has the right r on object o.void
Deprecated, for removal: This API element is subject to removal in a future version.Clears the cache for the user properties of the passed user.Deprecated, for removal: This API element is subject to removal in a future version.Create a new OrgClass object.Deprecated, for removal: This API element is subject to removal in a future version.Return a new organizational tree.Deprecated, for removal: This API element is subject to removal in a future version.Create a new OrgUnit object.Deprecated, for removal: This API element is subject to removal in a future version.Create a new PermissionDeprecated, for removal: This API element is subject to removal in a future version.Create a new PermissionListDeprecated, for removal: This API element is subject to removal in a future version.Create a new Right.Deprecated, for removal: This API element is subject to removal in a future version.Create a new Role object.Deprecated, for removal: This API element is subject to removal in a future version.Create a new User object.Deprecated, for removal: This API element is subject to removal in a future version.Create a new user-role relationvoid
delete
(Persistent o) Deprecated, for removal: This API element is subject to removal in a future version.Delete the object including right check.void
deleteCascade
(OrgUnit ou) Deprecated, for removal: This API element is subject to removal in a future version.Delete the passed organizational unit and also objects which are of no use without it.void
deleteObjectExtension
(Persistent obj, String formclass) Deprecated, for removal: This API element is subject to removal in a future version.delete the object extension for the given object.<P> P
Deprecated.<P> P
Deprecated.getApplication
(long oid) Deprecated.UseStore.get(Class, long)
withApplication
.class as first parameter instead.<P> P
Deprecated, for removal: This API element is subject to removal in a future version.Get an object from the org-data database.<P> P
Deprecated, for removal: This API element is subject to removal in a future version.Get an object from the org-data database.getDeptsInScope
(OrgUnit ou, int orgScope, OrgTree tree) Deprecated, for removal: This API element is subject to removal in a future version.Returns the list of of organizational units which are in the given scope relatively from the given organizational unit.getHomeOrg
(User u) Deprecated, for removal: This API element is subject to removal in a future version.Return the Org.unit where the user has the home role.<P extends Persistent>
Pair<LogEntry,P> getLogAndVersion
(P o, long vid) Deprecated, for removal: This API element is subject to removal in a future version.Returns the version of the object at a given version id along with the corresponding LogEntry.<P extends Persistent>
Pair<LogEntry,P> getLogAndVersion
(P o, Date d) Deprecated, for removal: This API element is subject to removal in a future version.Returns the version of the object at a given date along with the corresponding LogEntry.getLogEntries
(String classname, long oid, Date from, Date to) Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of log entries for the specified object (identified by passed oid and classname) which were made at time T, where from < T < to.getObjectExtension
(Persistent obj, String formclass, boolean create) Deprecated, for removal: This API element is subject to removal in a future version.Returns the extension object to a persistent.getOrgUnit
(long oid) Deprecated.UseStore.get(Class, long)
withOrgUnit
.class as first parameter instead.Deprecated, for removal: This API element is subject to removal in a future version.Checks if there are any hints for the user according to the password policy.getRight
(long oid) Deprecated.UseStore.get(Class, long)
withRight
.class as first parameter instead.getRole
(long oid) Deprecated.UseStore.get(Class, long)
withRole
.class as first parameter instead.Deprecated, for removal: This API element is subject to removal in a future version.Returns a Map of the roles - and org.units - of a user.getRoles
(User u, Application appl) Deprecated, for removal: This API element is subject to removal in a future version.Returns a Map of the roles - and org.units - of a user.Deprecated, for removal: This API element is subject to removal in a future version.Return the roles a user has in a OrgUnit.Deprecated, for removal: This API element is subject to removal in a future version.Returns all the combinations of role and organizational units that have been assigned to the current usersession.getSubOrgs
(OrgUnit ou, OrgTree tree) Deprecated, for removal: This API element is subject to removal in a future version.Return the list of the organizational units that are below the given oe in the given tree.getSuperOrg
(OrgUnit ou, OrgTree tree) Deprecated, for removal: This API element is subject to removal in a future version.Return the organizational unit that is above the given oe in the given tree.getUser
(long oid) Deprecated.UseStore.get(Class, long)
withUser
.class as first parameter instead.Deprecated, for removal: This API element is subject to removal in a future version.Get the full list of properties for a user.getUserProperty
(User u, String key) Deprecated, for removal: This API element is subject to removal in a future version.Use this method to get a user property.<P extends Persistent>
PgetVersion
(P o, Date d) Deprecated, for removal: This API element is subject to removal in a future version.Returns the version of the object at a given date.boolean
hasRight
(User u, Right r, Persistent o) Deprecated, for removal: This API element is subject to removal in a future version.Checks whether the given user has the given right on the given object.boolean
hasRight
(User u, Right r, Persistent o, Application app) Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Checks whether the given user has the given right on the given object.<P> List<P>
hasRightForList
(User u, Right r, List<? extends P> l, boolean ignoreOrgs, boolean ignoreSubsts, Application app) Deprecated, for removal: This API element is subject to removal in a future version.Returns a list containing all the elements of passed list l for which the user has the specified right.<P> List<P>
hasRightForList
(User u, Right r, List<? extends P> l, Application app) Deprecated, for removal: This API element is subject to removal in a future version.Returns a list containing all the elements of passed list l for which the user has the specified right.boolean
hasRole
(User u, Role r, OrgUnit d, Application appl) Deprecated, for removal: This API element is subject to removal in a future version.Has the user u the role r in the org.unit d?boolean
hasRoleInSession
(Role r, OrgUnit ou) Deprecated, for removal: This API element is subject to removal in a future version.Checks if the given combination of role and organizational unit has been added to the current usersession.void
insert
(Persistent o) Deprecated, for removal: This API element is subject to removal in a future version.Insert the object including right check.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Is the given org-unit in the specified org-tree.<P> List<P>
Deprecated.<P> List<P>
Deprecated.<P extends Persistent>
List<P>Deprecated.listUsersWithRole
(Role r, OrgUnit ou, Application appl) Deprecated, for removal: This API element is subject to removal in a future version.List the users that have a role<P> List<P>
listWithRightCheck
(User u, Class<? extends P> clazz, Right right, Application app, boolean ignoreDepts, String condition, String order, Object... args) Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of all objects of the specified object class for which the specified user has the specified right and for which the condition matches.<P> List<P>
listWithRightCheck
(User u, Class<? extends P> clazz, String condition, String order, Object[] args, Right right, Application app, boolean ignoreDepts) Deprecated.<P extends Persistent>
List<P>listWithRightCheck
(User u, String classname, Right right, Application app, boolean ignoreDepts, String condition, String order, Object... bindVars) Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of all objects of the specified object class for which the specified user has the specified right and for which the condition matches.<P extends Persistent>
List<P>listWithRightCheck
(User u, String classname, String condition, String order, Object[] bindVars, Right right, Application app, boolean ignoreDepts) Deprecated.makeLogEntry
(Persistent o, int mode, long versionid, String desc) Deprecated, for removal: This API element is subject to removal in a future version.Create an entry in the log table.boolean
mayDelete
(User u, Persistent o) Deprecated, for removal: This API element is subject to removal in a future version.Check whether the user may delete the object.boolean
mayExecute
(User u, Persistent o) Deprecated, for removal: This API element is subject to removal in a future version.Check whether the user may execute the object (function).boolean
mayInsert
(User u, Persistent o) Deprecated, for removal: This API element is subject to removal in a future version.Check whether the user may create the object (insert it into the database).boolean
mayUpdate
(User u, Persistent o) Deprecated, for removal: This API element is subject to removal in a future version.Check whether the user may edit the object.boolean
mayView
(User u, Persistent o) Deprecated, for removal: This API element is subject to removal in a future version.Check whether the user may view the object.void
placeOrgInTree
(OrgUnit parent, OrgUnit child, OrgTree tree) Deprecated, for removal: This API element is subject to removal in a future version.Change the organizational hierarchy.void
Deprecated, for removal: This API element is subject to removal in a future version.Removes all roles from the current usersession.void
removeRoleFromSession
(Role r, OrgUnit ou) Deprecated, for removal: This API element is subject to removal in a future version.Removes a role from the current usersession.setPassword
(User u, String password) Deprecated, for removal: This API element is subject to removal in a future version.Set the password of a user.void
Deprecated, for removal: This API element is subject to removal in a future version.Set the Permissionlist pl for an object ovoid
setUserProperty
(User u, String key, String value) Deprecated, for removal: This API element is subject to removal in a future version.Set a user property.void
update
(Persistent o) Deprecated, for removal: This API element is subject to removal in a future version.Update the object including right check.
-
Method Details
-
addRule
Deprecated, for removal: This API element is subject to removal in a future version.Add a permission mapping to the permission system.- Parameters:
pm
- the permission mapping class- Throws:
RemoteException
-
addRule
@Deprecated(since="11.0", forRemoval=true) void addRule(PermissionMapping pm) throws RemoteException Deprecated, for removal: This API element is subject to removal in a future version.useaddRule(Class)
insteadAdd a permission mapping to the permission system.- Parameters:
pm
- the permission mapping- Throws:
RemoteException
-
get
Deprecated.Get an object from the org-data database. The class is one of User, Right, Role, OrgUnit, Application, OrgTree. All of them from this package.- Parameters:
c
- the classoid
- the unique oid of the object- Returns:
- the object, you can cast the result to the class you specified in the first argument
- Throws:
RemoteException
-
get
Deprecated.Get an object from the org-data database. The classname is one of User, Right, Role, OrgUnit, Application, OrgTree. All of them from this package.- Parameters:
classname
- the classnameoid
- the unique oid of the object- Returns:
- the object, you can cast the result to the class you specified in the first argument
- Throws:
RemoteException
-
getUser
Deprecated.UseStore.get(Class, long)
withUser
.class as first parameter instead.Get an user from the org-data database.- Parameters:
oid
- the unique oid of the object- Returns:
- the requested user
- Throws:
RemoteException
-
getUserProperty
Deprecated, for removal: This API element is subject to removal in a future version.Use this method to get a user property. The method accesses system defined as well as application defined properties.- Parameters:
u
- The user of which you want to get a property.key
- The property key.- Returns:
- Returns the property value as
String
ornull
if no such property exists. - Throws:
RemoteException
-
getUserProperties
Deprecated, for removal: This API element is subject to removal in a future version.Get the full list of properties for a user.- Parameters:
u
- The user of which you want to get the list.- Returns:
- a Properties object
- Throws:
RemoteException
-
checkLoginAllowed
Deprecated, for removal: This API element is subject to removal in a future version.Check if the user is active, not too many unsuccessful logins and system not in admin mode.- Throws:
RemoteException
-
setUserProperty
Deprecated, for removal: This API element is subject to removal in a future version.Set a user property. The method accesses system defined as well as application defined properties.- Parameters:
u
- The user of which you want to get a property.key
- The property key.value
- The property value. With valuenull
the property will be removed.- Throws:
RemoteException
-
getRole
Deprecated.UseStore.get(Class, long)
withRole
.class as first parameter instead.Get an Role from the org-data database.- Parameters:
oid
- the unique oid of the object- Returns:
- the requested Role
- Throws:
RemoteException
-
getRight
Deprecated.UseStore.get(Class, long)
withRight
.class as first parameter instead.Get an Right from the org-data database.- Parameters:
oid
- the unique oid of the object- Returns:
- the requested Right
- Throws:
RemoteException
-
getOrgUnit
Deprecated.UseStore.get(Class, long)
withOrgUnit
.class as first parameter instead.Get an OrgUnit from the org-data database.- Parameters:
oid
- the unique oid of the object- Returns:
- the requested OrgUnit
- Throws:
RemoteException
-
getApplication
Deprecated.UseStore.get(Class, long)
withApplication
.class as first parameter instead.Get an application from the org-data database.- Parameters:
oid
- the unique oid of the object- Returns:
- the requested application
- Throws:
RemoteException
-
getById
Deprecated, for removal: This API element is subject to removal in a future version.Get an object from the org-data database. The class is one of User, Right, Role, OrgUnit, Application, OrgTree. All of them from this package.- Parameters:
c
- the classid
- the id of the object- Returns:
- the object, you can cast the result to the class you specified in the first argument
- Throws:
RemoteException
-
getById
Deprecated, for removal: This API element is subject to removal in a future version.Get an object from the org-data database. The classname is one of User, Right, Role, OrgUnit, Application, OrgTree. All of them from this package.- Parameters:
classname
- the classnameid
- the id of the object- Returns:
- the object, you can cast the result to the class you specified in the first argument
- Throws:
ClassNotFoundException
RemoteException
-
getHomeOrg
Deprecated, for removal: This API element is subject to removal in a future version.Return the Org.unit where the user has the home role.- Parameters:
u
- the User- Returns:
- the OrgUnit
- Throws:
RemoteException
-
list
@Deprecated <P> List<P> list(Class<? extends P> c, String cond, String order) throws RemoteException Deprecated.Get a list of objects from the org-data database. The class is one of User, Right, Role, OrgUnit, Application, OrgTree. All of them from this package.- Parameters:
c
- the classcond
- the condition expressionorder
- the order attribute(s), comma-separated if more than one- Returns:
- a list of objects of the given class
- Throws:
RemoteException
-
list
@Deprecated <P> List<P> list(Class<? extends P> c, String cond, String order, Object... bindVars) throws RemoteException Deprecated.Get a list of objects from the org-data database. The class is one of User, Right, Role, OrgUnit, Application, OrgTree. All of them from this package.- Parameters:
c
- the classcond
- the condition expressionorder
- the order attribute(s), comma-separated if more than onebindVars
- if the condition contains place holders for binding variables this array should contain the values- Returns:
- a list of objects of the given class
- Throws:
RemoteException
-
list
@Deprecated <P extends Persistent> List<P> list(String classname, String cond, String order, Object... bindVars) throws RemoteException Deprecated.Get a list of objects from the org-data database. The classname is one of fully qualified name of User, Right, Role, OrgUnit, Application, OrgTree. All of them from this package.- Parameters:
classname
- the fully qualified name of the class of the objectcond
- the condition expressionorder
- the order attribute(s), comma-separated if more than onebindVars
- if the condition contains place holders for binding variables this array should contain the values- Returns:
- a list of objects of the given class
- Throws:
RemoteException
-
getRoles
Deprecated, for removal: This API element is subject to removal in a future version.Returns a Map of the roles - and org.units - of a user. The org-tree of the default application is used for determining the result for hierarchical roles.- Parameters:
u
- the user- Returns:
- a Map where the keys are the roles, the values are sets of org-units. If the role is global, this Set is empty.
- Throws:
RemoteException
-
getRoles
Deprecated, for removal: This API element is subject to removal in a future version.Returns a Map of the roles - and org.units - of a user.- Parameters:
u
- the userappl
- an application object, the org-tree of this application is used for determining the result for hierarchical roles.- Returns:
- a Map where the keys are the roles, the values are sets of org-units If the role is global, this Set is empty.
- Throws:
RemoteException
-
getRoles
Deprecated, for removal: This API element is subject to removal in a future version.Return the roles a user has in a OrgUnit.- Parameters:
u
- the userd
- the OrgUnit- Returns:
- a list of roles
- Throws:
RemoteException
-
hasRole
Deprecated, for removal: This API element is subject to removal in a future version.Has the user u the role r in the org.unit d?- Parameters:
u
- the userr
- the roled
- the OrgUnit- Returns:
- true, if the user has the role.
- Throws:
RemoteException
-
hasRight
Deprecated, for removal: This API element is subject to removal in a future version.Checks whether the given user has the given right on the given object. See the description of the @enterprise permission system for details.- Parameters:
u
- the userr
- the righto
- the object may be null, must be a Persistent- Returns:
- true if the user has the right
- Throws:
RemoteException
-
hasRight
Deprecated, for removal: This API element is subject to removal in a future version.Checks whether the given user has the given right on the given object. See the description of the @enterprise permission system for details.- Parameters:
u
- the userr
- the righto
- the object (may be null)- Returns:
- true if the user has the right
- Throws:
RemoteException
-
hasRight
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
RemoteException
-
hasRightForList
<P> List<P> hasRightForList(User u, Right r, List<? extends P> l, Application app) throws RemoteException Deprecated, for removal: This API element is subject to removal in a future version.Returns a list containing all the elements of passed list l for which the user has the specified right.- Parameters:
u
- the userr
- the rightl
- the list containing the unchecked elementsapp
- the application for referencing an org-tree- Returns:
- a list containing the permitted elements
- Throws:
RemoteException
-
hasRightForList
<P> List<P> hasRightForList(User u, Right r, List<? extends P> l, boolean ignoreOrgs, boolean ignoreSubsts, Application app) throws RemoteException Deprecated, for removal: This API element is subject to removal in a future version.Returns a list containing all the elements of passed list l for which the user has the specified right.- Parameters:
u
- the userr
- the rightl
- the list containing the unchecked elementsignoreOrgs
- ignore permissions defined for org-unit scopesignoreSubsts
- ignore permissions defined for persons u substitutesapp
- the application for referencing an org-tree- Returns:
- a list containing the permitted elements
- Throws:
RemoteException
-
listWithRightCheck
@Deprecated <P> List<P> listWithRightCheck(User u, Class<? extends P> clazz, String condition, String order, Object[] args, Right right, Application app, boolean ignoreDepts) throws RemoteException Deprecated.Returns a list of all objects of the specified object class for which the specified user has the specified right and for which the condition matches.- Parameters:
u
- the userclazz
- class which instances are wantedcondition
- a SQL conditionorder
- a comma separated list of attribute names of the given class.args
- if the condition contains place holders for binding variables this array should contain the valuesright
- the rightapp
- the application which department tree should be used for checkingignoreDepts
- ignore the right a user has via dept scope- Returns:
- the list
- Throws:
RemoteException
-
listWithRightCheck
<P> List<P> listWithRightCheck(User u, Class<? extends P> clazz, Right right, Application app, boolean ignoreDepts, String condition, String order, Object... args) throws RemoteException Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of all objects of the specified object class for which the specified user has the specified right and for which the condition matches.- Parameters:
u
- the userclazz
- class which instances are wantedright
- the rightapp
- the application which department tree should be used for checkingignoreDepts
- ignore the right a user has via dept scopecondition
- a SQL conditionorder
- a comma separated list of attribute names of the given class.args
- values for binding variables in condition- Returns:
- the list
- Throws:
RemoteException
-
listWithRightCheck
@Deprecated <P extends Persistent> List<P> listWithRightCheck(User u, String classname, String condition, String order, Object[] bindVars, Right right, Application app, boolean ignoreDepts) throws RemoteException Deprecated.Returns a list of all objects of the specified object class for which the specified user has the specified right and for which the condition matches.- Parameters:
u
- the userclassname
- the fully qualified name of the class of the objectcondition
- a SQL conditionorder
- a comma separated list of attribute names of the given class.bindVars
- if the condition contains place holders for binding variables this array should contain the valuesright
- the rightapp
- the application which department tree should be used for checkingignoreDepts
- ignore the right a user has via dept scope- Returns:
- the list
- Throws:
RemoteException
-
listWithRightCheck
<P extends Persistent> List<P> listWithRightCheck(User u, String classname, Right right, Application app, boolean ignoreDepts, String condition, String order, Object... bindVars) throws RemoteException Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of all objects of the specified object class for which the specified user has the specified right and for which the condition matches.- Parameters:
u
- the userclassname
- the fully qualified name of the class of the objectright
- the rightapp
- the application which department tree should be used for checkingignoreDepts
- ignore the right a user has via dept scopecondition
- a SQL conditionorder
- a comma separated list of attribute names of the given class.bindVars
- values for binding variables in condition- Returns:
- the list
- Throws:
RemoteException
-
checkRight
Deprecated, for removal: This API element is subject to removal in a future version.Check whether the thread user has the right r on object o. Throws ApplicationException 520 if not.- Parameters:
r
- a righto
- an object (optional)- Throws:
RemoteException
-
mayInsert
Deprecated, for removal: This API element is subject to removal in a future version.Check whether the user may create the object (insert it into the database).- Parameters:
u
- the user requesting the accesso
- the object- Returns:
- true, if access is allowed.
- Throws:
RemoteException
-
mayUpdate
Deprecated, for removal: This API element is subject to removal in a future version.Check whether the user may edit the object.- Parameters:
u
- the user requesting the accesso
- the object- Returns:
- true, if access is allowed.
- Throws:
RemoteException
-
mayView
Deprecated, for removal: This API element is subject to removal in a future version.Check whether the user may view the object.- Parameters:
u
- the user requesting the accesso
- the object- Returns:
- true, if access is allowed.
- Throws:
RemoteException
-
mayExecute
Deprecated, for removal: This API element is subject to removal in a future version.Check whether the user may execute the object (function).- Parameters:
u
- the user requesting the accesso
- the object- Returns:
- true, if access is allowed.
- Throws:
RemoteException
-
mayDelete
Deprecated, for removal: This API element is subject to removal in a future version.Check whether the user may delete the object.- Parameters:
u
- the user requesting the accesso
- the object- Returns:
- true, if access is allowed.
- Throws:
RemoteException
-
insert
Deprecated, for removal: This API element is subject to removal in a future version.Insert the object including right check.- Parameters:
o
- the object- Throws:
RemoteException
-
update
Deprecated, for removal: This API element is subject to removal in a future version.Update the object including right check.- Parameters:
o
- the object- Throws:
RemoteException
-
delete
Deprecated, for removal: This API element is subject to removal in a future version.Delete the object including right check.- Parameters:
o
- the object- Throws:
RemoteException
-
getVersion
Deprecated, for removal: This API element is subject to removal in a future version.Returns the version of the object at a given date.- Parameters:
o
- the objectd
- the date- Returns:
- a Persistent
- Throws:
RemoteException
-
getLogAndVersion
Deprecated, for removal: This API element is subject to removal in a future version.Returns the version of the object at a given date along with the corresponding LogEntry.- Parameters:
o
- the objectd
- the date- Returns:
- a Pair of LogEntry and Persistent
- Throws:
RemoteException
-
getLogAndVersion
Deprecated, for removal: This API element is subject to removal in a future version.Returns the version of the object at a given version id along with the corresponding LogEntry.- Parameters:
o
- the objectvid
- the version id- Returns:
- a Pair of LogEntry and Persistent
- Throws:
RemoteException
-
makeLogEntry
Deprecated, for removal: This API element is subject to removal in a future version.Create an entry in the log table.- Parameters:
o
- the logged objectmode
- the change mode, choose one of LogEntry constantsversionid
- a number identifying the versiondesc
- a description test- Returns:
- Throws:
RemoteException
-
getLogEntries
Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of log entries for the specified object (identified by passed oid and classname) which were made at time T, where from < T < to.- Parameters:
classname
- the fully qualified name of the class of the objectoid
- the oid of the objectfrom
- the date for the start of the range (may be null)to
- the date for the end of the range (may be null)- Returns:
- a list of log entries
- Throws:
RemoteException
-
listUsersWithRole
Map<User,List<OrgUnit>> listUsersWithRole(Role r, OrgUnit ou, Application appl) throws RemoteException Deprecated, for removal: This API element is subject to removal in a future version.List the users that have a role- Parameters:
r
- the roleou
- optional: the orgunit where the role is assignedappl
- optional application, necessary when checking hierarchic roles to use the correct department tree. if the argument is null the default tree is used.- Returns:
- a map where the keys are users the values are lists of the departments where the user have the role. For global roles the lists are empty.
- Throws:
RemoteException
-
checkPasswordPolicy
Deprecated, for removal: This API element is subject to removal in a future version.Check a password against the password policy.- Parameters:
password
- - the password string to check against the policy- Returns:
- a vector of strings representing the reasons, why password does not fit the policy. null if password is ok
- Throws:
RemoteException
-
getPolicyInfoText
Deprecated, for removal: This API element is subject to removal in a future version.Checks if there are any hints for the user according to the password policy.- Parameters:
u
- - the user- Returns:
- a String with a policy info message, null if ther is no neccessary message.
- Throws:
RemoteException
-
setPassword
Deprecated, for removal: This API element is subject to removal in a future version.Set the password of a user. Note: Be aware that the User Object is updated and a BeanManager.commit() is called in this method.- Parameters:
u
- the user, whose password should be changedpassword
- - the new password (plain string)- Returns:
- the updated user object
- Throws:
RemoteException
-
createUser
Deprecated, for removal: This API element is subject to removal in a future version.Create a new User object.- Returns:
- a new User
- Throws:
RemoteException
-
createRole
Deprecated, for removal: This API element is subject to removal in a future version.Create a new Role object.- Returns:
- a new Role
- Throws:
RemoteException
-
createOrgUnit
Deprecated, for removal: This API element is subject to removal in a future version.Create a new OrgUnit object.- Returns:
- a new OrgUnit
- Throws:
RemoteException
-
createOrgClass
Deprecated, for removal: This API element is subject to removal in a future version.Create a new OrgClass object.- Returns:
- a new OrgClass
- Throws:
RemoteException
-
createUserRole
Deprecated, for removal: This API element is subject to removal in a future version.Create a new user-role relation- Returns:
- a new UserRole
- Throws:
RemoteException
-
createRight
Deprecated, for removal: This API element is subject to removal in a future version.Create a new Right.- Returns:
- a new Right
- Throws:
RemoteException
-
createPermission
Deprecated, for removal: This API element is subject to removal in a future version.Create a new Permission- Returns:
- a new Permission
- Throws:
RemoteException
-
createPermissionList
Deprecated, for removal: This API element is subject to removal in a future version.Create a new PermissionList- Returns:
- a new PermissionList
- Throws:
RemoteException
-
setPermissionList
Deprecated, for removal: This API element is subject to removal in a future version.Set the Permissionlist pl for an object o- Parameters:
o
-pl
-- Throws:
RemoteException
-
deleteCascade
Deprecated, for removal: This API element is subject to removal in a future version.Delete the passed organizational unit and also objects which are of no use without it.- Parameters:
ou
- the organizational unit to delete- Throws:
RemoteException
-
getSubOrgs
Deprecated, for removal: This API element is subject to removal in a future version.Return the list of the organizational units that are below the given oe in the given tree. If the argument ou is null, it returns the top level org-units of the given tree.- Throws:
RemoteException
-
getSuperOrg
Deprecated, for removal: This API element is subject to removal in a future version.Return the organizational unit that is above the given oe in the given tree.- Throws:
RemoteException
-
createOrgTree
Deprecated, for removal: This API element is subject to removal in a future version.Return a new organizational tree.- Throws:
RemoteException
-
placeOrgInTree
Deprecated, for removal: This API element is subject to removal in a future version.Change the organizational hierarchy. Note that each org.unit has zero or one parent org.units in an org.tree.- Parameters:
parent
- , may be null.child
-tree
- the tree- Throws:
RemoteException
-
isInTree
Deprecated, for removal: This API element is subject to removal in a future version.Is the given org-unit in the specified org-tree.- Parameters:
ou
-tree
-- Returns:
- true if the org-unit is part of the tree.
- Throws:
RemoteException
-
getDeptsInScope
Deprecated, for removal: This API element is subject to removal in a future version.Returns the list of of organizational units which are in the given scope relatively from the given organizational unit.- Parameters:
ou
- the organizational unit to start withorgScope
- the scope c.f.Permission
tree
- the tree- Returns:
- the list of organizational units in the specified scope within the tree
- Throws:
RemoteException
-
getObjectExtension
Persistent getObjectExtension(Persistent obj, String formclass, boolean create) throws RemoteException Deprecated, for removal: This API element is subject to removal in a future version.Returns the extension object to a persistent. If none exists and create is true, the extension is created.- Parameters:
obj
- an object having extensionsformclass
- the name of a form-classcreate
- if true extensions are created- Returns:
- the extension object
- Throws:
RemoteException
-
deleteObjectExtension
Deprecated, for removal: This API element is subject to removal in a future version.delete the object extension for the given object.- Throws:
RemoteException
-
changeDeferred
Deprecated, for removal: This API element is subject to removal in a future version.Change the Object later- Parameters:
p
- the Objectd
- the time of change- Throws:
RemoteException
-
clearCachedUserProperties
Deprecated, for removal: This API element is subject to removal in a future version.Clears the cache for the user properties of the passed user. May be needed in clustered installations when login depends on newest values of user properties.- Parameters:
u
- the User- Throws:
RemoteException
-
addRoleToSession
Deprecated, for removal: This API element is subject to removal in a future version.Adds a role to the current usersession.- Parameters:
r
- the role to add. Must not be null.ou
- the organizational unit. If the role is a global one, this must be null, else an organizational unit must be provided.- Throws:
RemoteException
-
removeRoleFromSession
Deprecated, for removal: This API element is subject to removal in a future version.Removes a role from the current usersession.- Parameters:
r
- the role to remove. Must not be null.ou
- the organizational unit; if null, then the role will be removed regardless of the organizational unit.- Throws:
RemoteException
-
removeAllRolesFromSession
Deprecated, for removal: This API element is subject to removal in a future version.Removes all roles from the current usersession.- Throws:
RemoteException
-
hasRoleInSession
Deprecated, for removal: This API element is subject to removal in a future version.Checks if the given combination of role and organizational unit has been added to the current usersession.- Parameters:
r
- the role, if null then a specific role is not taken into accountou
- the organizational unit; if null then a specific organizational unit is not taken into account.- Returns:
- true, if the combination of role (and optional organizational unit) has been assigned to the current usersession.
- Throws:
RemoteException
-
getSessionRoles
Deprecated, for removal: This API element is subject to removal in a future version.Returns all the combinations of role and organizational units that have been assigned to the current usersession.- Returns:
- Throws:
RemoteException
-
addRule(Class)
instead