|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteOrgData
This interface allows access to the organizational data stored in @enterprise.
Method Summary | ||
---|---|---|
java.util.List<java.lang.String> |
checkPasswordPolicy(java.lang.String password)
Check a password against the password policy. |
|
OrgTree |
createOrgTree()
Return a new organizational tree. |
|
OrgUnit |
createOrgUnit()
Create a new OrgUnit object. |
|
Permission |
createPermission()
Create a new Permission |
|
PermissionList |
createPermissionList()
Create a new PermissionList |
|
Right |
createRight()
Create a new Right. |
|
Role |
createRole()
Create a new Role object. |
|
User |
createUser()
Create a new User object. |
|
UserRole |
createUserRole()
Create a new user-role relation |
|
void |
delete(Persistent o)
Delete the object including right check. |
|
void |
deleteCascade(OrgUnit ou)
Delete the passed organizational unit and also objects which are of no use without it. |
|
void |
deleteObjectExtension(Persistent obj,
java.lang.String formclass)
delete the object extension for the given object. |
|
|
get(java.lang.Class<? extends T> c,
long oid)
Get an object from the org-data database. |
|
|
get(java.lang.String classname,
long oid)
Get an object from the org-data database. |
|
Application |
getApplication(long oid)
Get an application from the org-data database. |
|
|
getById(java.lang.Class<? extends T> c,
java.lang.String id)
Get an object from the org-data database. |
|
|
getById(java.lang.String classname,
java.lang.String id)
Get an object from the org-data database. |
|
OrgUnit |
getHomeOrg(User u)
Return the Org.unit where the user has the home role. |
|
java.util.List<LogEntry> |
getLogEntries(java.lang.String classname,
long oid,
java.util.Date from,
java.util.Date to)
Returns a list of log entries for the specified object (identified by passed oid and classname) which were made withing the specified time range |
|
Persistent |
getObjectExtension(Persistent obj,
java.lang.String formclass,
boolean create)
Returns the extension object to a persistent. |
|
OrgUnit |
getOrgUnit(long oid)
Get an OrgUnit from the org-data database. |
|
java.lang.String |
getPolicyInfoText(User u)
Checks if there are any hints for the user according to the password policy. |
|
Right |
getRight(long oid)
Get an Right from the org-data database. |
|
Role |
getRole(long oid)
Get an Role from the org-data database. |
|
java.util.Map<? extends Role,java.util.Set<java.lang.String>> |
getRoles(User u)
Returns a Map of the roles - and depts - of a user. |
|
java.util.List<Role> |
getRoles(User u,
OrgUnit d)
Return the roles a user has in a OrgUnit. |
|
java.util.List<OrgUnit> |
getSubOrgs(OrgUnit ou,
OrgTree tree)
Return the list of the organizational units that are below the given oe in the given tree. |
|
OrgUnit |
getSuperOrg(OrgUnit ou,
OrgTree tree)
Return the organizational unit that is above the given oe in the given tree. |
|
User |
getUser(long oid)
Get an user from the org-data database. |
|
java.lang.String |
getUserProperty(User u,
java.lang.String key)
Use this method to get a user property. |
|
|
getVersion(P o,
java.util.Date d)
Returns the version of the object at a given date. |
|
boolean |
hasRight(User u,
Right r,
java.lang.Object o)
Checks whether the given user has the given right on the given object. |
|
boolean |
hasRole(User u,
Role r,
OrgUnit d,
Application appl)
Has the user u the role r in the org.unit d? |
|
void |
insert(Persistent o)
Insert the object including right check. |
|
boolean |
isInTree(OrgUnit ou,
OrgTree tree)
Is the given org-unit in the specified org-tree. |
|
|
list(java.lang.Class<? extends T> c,
java.lang.String cond,
java.lang.String order)
Deprecated. since ep 8.0, use list(Class, String, String, Object[]) |
|
|
list(java.lang.Class<? extends T> c,
java.lang.String cond,
java.lang.String order,
java.lang.Object[] bindVars)
Get a list of objects from the org-data database. |
|
java.util.List<Persistent> |
list(java.lang.String classname,
java.lang.String cond,
java.lang.String order,
java.lang.Object[] bindVars)
Get a list of objects from the org-data database. |
|
java.util.Map<User,java.lang.Object> |
listUsersWithRole(Role r,
OrgUnit ou,
Application appl)
List the users that have a role |
|
|
listWithRightCheck(User u,
java.lang.Class<? extends T> clazz,
java.lang.String condition,
java.lang.String order,
java.lang.Object[] args,
Right right,
Application app,
boolean ignoreDepts)
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. |
|
|
listWithRightCheck(User u,
java.lang.String classname,
java.lang.String condition,
java.lang.String order,
java.lang.Object[] bindVars,
Right right,
Application app,
boolean ignoreDepts)
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. |
|
boolean |
mayDelete(User u,
Persistent o)
Check whether the user may delete the object. |
|
boolean |
mayExecute(User u,
Persistent o)
Check whether the user may execute the object (function). |
|
boolean |
mayInsert(User u,
Persistent o)
Check whether the user may create the object (insert it into the database). |
|
boolean |
mayUpdate(User u,
Persistent o)
Check whether the user may edit the object. |
|
boolean |
mayView(User u,
Persistent o)
Check whether the user may view the object. |
|
void |
placeOrgInTree(OrgUnit parent,
OrgUnit child,
OrgTree tree)
Change the organizational hierarchy. |
|
User |
setPassword(User u,
java.lang.String password)
Set the password of a user. |
|
void |
setUserProperty(User u,
java.lang.String key,
java.lang.String value)
Set a user property. |
|
void |
update(Persistent o)
Update the object including right check. |
Method Detail |
---|
<T> T get(java.lang.Class<? extends T> c, long oid) throws java.rmi.RemoteException
c
- the classoid
- the unique oid of the object
java.rmi.RemoteException
<T> T get(java.lang.String classname, long oid) throws java.rmi.RemoteException
classname
- the classnameoid
- the unique oid of the object
java.rmi.RemoteException
User getUser(long oid) throws java.rmi.RemoteException
oid
- the unique oid of the object
java.rmi.RemoteException
java.lang.String getUserProperty(User u, java.lang.String key) throws java.rmi.RemoteException
u
- The user of which you want to get a property.key
- The property key.
String
or null
if
no such property exists.
java.rmi.RemoteException
void setUserProperty(User u, java.lang.String key, java.lang.String value) throws java.rmi.RemoteException
u
- The user of which you want to get a property.key
- The property key.value
- the property value
java.rmi.RemoteException
Role getRole(long oid) throws java.rmi.RemoteException
oid
- the unique oid of the object
java.rmi.RemoteException
Right getRight(long oid) throws java.rmi.RemoteException
oid
- the unique oid of the object
java.rmi.RemoteException
OrgUnit getOrgUnit(long oid) throws java.rmi.RemoteException
oid
- the unique oid of the object
java.rmi.RemoteException
Application getApplication(long oid) throws java.rmi.RemoteException
oid
- the unique oid of the object
java.rmi.RemoteException
<T> T getById(java.lang.Class<? extends T> c, java.lang.String id) throws java.rmi.RemoteException
c
- the classid
- the id of the object
java.rmi.RemoteException
<T> T getById(java.lang.String classname, java.lang.String id) throws java.lang.ClassNotFoundException, java.rmi.RemoteException
classname
- the classnameid
- the id of the object
java.lang.ClassNotFoundException
java.rmi.RemoteException
OrgUnit getHomeOrg(User u) throws java.rmi.RemoteException
u
- the User
java.rmi.RemoteException
@Deprecated <T> java.util.List<T> list(java.lang.Class<? extends T> c, java.lang.String cond, java.lang.String order) throws java.rmi.RemoteException
list(Class, String, String, Object[])
c
- the classcond
- the condition expressionorder
- the order attribute(s), comma-separated if more than one
java.rmi.RemoteException
<T> java.util.List<T> list(java.lang.Class<? extends T> c, java.lang.String cond, java.lang.String order, java.lang.Object[] bindVars) throws java.rmi.RemoteException
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
java.rmi.RemoteException
java.util.List<Persistent> list(java.lang.String classname, java.lang.String cond, java.lang.String order, java.lang.Object[] bindVars) throws java.rmi.RemoteException
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
java.rmi.RemoteException
java.util.Map<? extends Role,java.util.Set<java.lang.String>> getRoles(User u) throws java.rmi.RemoteException
u
- the user
java.rmi.RemoteException
java.util.List<Role> getRoles(User u, OrgUnit d) throws java.rmi.RemoteException
u
- the userd
- the OrgUnit
java.rmi.RemoteException
boolean hasRole(User u, Role r, OrgUnit d, Application appl) throws java.rmi.RemoteException
u
- the userr
- the roled
- the OrgUnit
java.rmi.RemoteException
boolean hasRight(User u, Right r, java.lang.Object o) throws java.rmi.RemoteException
u
- the userr
- the righto
- the object (may be null)
java.rmi.RemoteException
<T> java.util.List<T> listWithRightCheck(User u, java.lang.Class<? extends T> clazz, java.lang.String condition, java.lang.String order, java.lang.Object[] args, Right right, Application app, boolean ignoreDepts) throws java.rmi.RemoteException
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 departement tree should be used for checkingignoreDepts
- ignore the right a user has via dept scope
java.rmi.RemoteException
<T extends Persistent> java.util.List<T> listWithRightCheck(User u, java.lang.String classname, java.lang.String condition, java.lang.String order, java.lang.Object[] bindVars, Right right, Application app, boolean ignoreDepts) throws java.rmi.RemoteException
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 departement tree should be used for checkingignoreDepts
- ignore the right a user has via dept scope
java.rmi.RemoteException
boolean mayInsert(User u, Persistent o) throws java.rmi.RemoteException
u
- the user requesting the accesso
- the object
java.rmi.RemoteException
boolean mayUpdate(User u, Persistent o) throws java.rmi.RemoteException
u
- the user requesting the accesso
- the object
java.rmi.RemoteException
boolean mayView(User u, Persistent o) throws java.rmi.RemoteException
u
- the user requesting the accesso
- the object
java.rmi.RemoteException
boolean mayExecute(User u, Persistent o) throws java.rmi.RemoteException
u
- the user requesting the accesso
- the object
java.rmi.RemoteException
boolean mayDelete(User u, Persistent o) throws java.rmi.RemoteException
u
- the user requesting the accesso
- the object
java.rmi.RemoteException
void insert(Persistent o) throws java.rmi.RemoteException
o
- the object
java.rmi.RemoteException
void update(Persistent o) throws java.rmi.RemoteException
o
- the object
java.rmi.RemoteException
void delete(Persistent o) throws java.rmi.RemoteException
o
- the object
java.rmi.RemoteException
<P extends Persistent> P getVersion(P o, java.util.Date d) throws java.rmi.RemoteException
o
- the objectd
-
java.rmi.RemoteException
java.util.List<LogEntry> getLogEntries(java.lang.String classname, long oid, java.util.Date from, java.util.Date to) throws java.rmi.RemoteException
classname
- the fully qualified name of the class of the objectoid
- the oid of the objectfrom
- the date for the start of the rangeto
- the date for the end of the range
java.rmi.RemoteException
java.util.Map<User,java.lang.Object> listUsersWithRole(Role r, OrgUnit ou, Application appl) throws java.rmi.RemoteException
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.
java.rmi.RemoteException
java.util.List<java.lang.String> checkPasswordPolicy(java.lang.String password) throws java.rmi.RemoteException
password
- - the password string to check against the policy
java.rmi.RemoteException
java.lang.String getPolicyInfoText(User u) throws java.rmi.RemoteException
u
- - the user
java.rmi.RemoteException
User setPassword(User u, java.lang.String password) throws java.rmi.RemoteException
u
- the user, whose password should be changedpassword
- - the new password (plain string)
java.rmi.RemoteException
User createUser() throws java.rmi.RemoteException
java.rmi.RemoteException
Role createRole() throws java.rmi.RemoteException
java.rmi.RemoteException
OrgUnit createOrgUnit() throws java.rmi.RemoteException
java.rmi.RemoteException
UserRole createUserRole() throws java.rmi.RemoteException
java.rmi.RemoteException
Right createRight() throws java.rmi.RemoteException
java.rmi.RemoteException
Permission createPermission() throws java.rmi.RemoteException
java.rmi.RemoteException
PermissionList createPermissionList() throws java.rmi.RemoteException
java.rmi.RemoteException
void deleteCascade(OrgUnit ou) throws java.rmi.RemoteException
ou
- the organizational unit to delete
java.rmi.RemoteException
java.util.List<OrgUnit> getSubOrgs(OrgUnit ou, OrgTree tree) throws java.rmi.RemoteException
java.rmi.RemoteException
OrgUnit getSuperOrg(OrgUnit ou, OrgTree tree) throws java.rmi.RemoteException
java.rmi.RemoteException
OrgTree createOrgTree() throws java.rmi.RemoteException
java.rmi.RemoteException
void placeOrgInTree(OrgUnit parent, OrgUnit child, OrgTree tree) throws java.rmi.RemoteException
parent,
- may be null.child
- tree
- the tree
java.rmi.RemoteException
boolean isInTree(OrgUnit ou, OrgTree tree) throws java.rmi.RemoteException
ou
- tree
-
java.rmi.RemoteException
Persistent getObjectExtension(Persistent obj, java.lang.String formclass, boolean create) throws java.rmi.RemoteException
obj
- an object having extensionsformclass
- the name of a form-classcreate
- if true extensions are created
java.rmi.RemoteException
void deleteObjectExtension(Persistent obj, java.lang.String formclass) throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |