|
|||||||||
| 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 | ||
|---|---|---|
List<String> |
checkPasswordPolicy(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,
String formclass)
delete the object extension for the given object. |
|
|
get(Class<? extends T> c,
long oid)
Get an object from the org-data database. |
|
|
get(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(Class<? extends T> c,
String id)
Get an object from the org-data database. |
|
|
getById(String classname,
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. |
|
List<LogEntry> |
getLogEntries(String classname,
long oid,
Date from,
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,
String formclass,
boolean create)
Returns the extension object to a persistent. |
|
OrgUnit |
getOrgUnit(long oid)
Get an OrgUnit from the org-data database. |
|
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. |
|
Map<? extends Role,Set<String>> |
getRoles(User u)
Returns a Map of the roles - and depts - of a user. |
|
List<Role> |
getRoles(User u,
OrgUnit d)
Return the roles a user has in a OrgUnit. |
|
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. |
|
String |
getUserProperty(User u,
String key)
Use this method to get a user property. |
|
|
getVersion(P o,
Date d)
Returns the version of the object at a given date. |
|
boolean |
hasRight(User u,
Right r,
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(Class<? extends T> c,
String cond,
String order)
Deprecated. since ep 8.0, use list(Class, String, String, Object[]) |
|
|
list(Class<? extends T> c,
String cond,
String order,
Object[] bindVars)
Get a list of objects from the org-data database. |
|
List<Persistent> |
list(String classname,
String cond,
String order,
Object[] bindVars)
Get a list of objects from the org-data database. |
|
Map<User,Object> |
listUsersWithRole(Role r,
OrgUnit ou,
Application appl)
List the users that have a role |
|
|
listWithRightCheck(User u,
Class<? extends T> clazz,
String condition,
String order,
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,
String classname,
String condition,
String order,
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,
String password)
Set the password of a user. |
|
void |
setUserProperty(User u,
String key,
String value)
Set a user property. |
|
void |
update(Persistent o)
Update the object including right check. |
|
| Method Detail |
|---|
<T> T get(Class<? extends T> c,
long oid)
throws RemoteException
c - the classoid - the unique oid of the object
RemoteException
<T> T get(String classname,
long oid)
throws RemoteException
classname - the classnameoid - the unique oid of the object
RemoteException
User getUser(long oid)
throws RemoteException
oid - the unique oid of the object
RemoteException
String getUserProperty(User u,
String key)
throws RemoteException
u - The user of which you want to get a property.key - The property key.
String or null if
no such property exists.
RemoteException
void setUserProperty(User u,
String key,
String value)
throws RemoteException
u - The user of which you want to get a property.key - The property key.value - the property value
RemoteException
Role getRole(long oid)
throws RemoteException
oid - the unique oid of the object
RemoteException
Right getRight(long oid)
throws RemoteException
oid - the unique oid of the object
RemoteException
OrgUnit getOrgUnit(long oid)
throws RemoteException
oid - the unique oid of the object
RemoteException
Application getApplication(long oid)
throws RemoteException
oid - the unique oid of the object
RemoteException
<T> T getById(Class<? extends T> c,
String id)
throws RemoteException
c - the classid - the id of the object
RemoteException
<T> T getById(String classname,
String id)
throws ClassNotFoundException,
RemoteException
classname - the classnameid - the id of the object
ClassNotFoundException
RemoteException
OrgUnit getHomeOrg(User u)
throws RemoteException
u - the User
RemoteException
@Deprecated
<T> List<T> list(Class<? extends T> c,
String cond,
String order)
throws RemoteException
list(Class, String, String, Object[])
c - the classcond - the condition expressionorder - the order attribute(s), comma-separated if more than one
RemoteException
<T> List<T> list(Class<? extends T> c,
String cond,
String order,
Object[] bindVars)
throws 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
RemoteException
List<Persistent> list(String classname,
String cond,
String order,
Object[] bindVars)
throws 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
RemoteException
Map<? extends Role,Set<String>> getRoles(User u)
throws RemoteException
u - the user
RemoteException
List<Role> getRoles(User u,
OrgUnit d)
throws RemoteException
u - the userd - the OrgUnit
RemoteException
boolean hasRole(User u,
Role r,
OrgUnit d,
Application appl)
throws RemoteException
u - the userr - the roled - the OrgUnit
RemoteException
boolean hasRight(User u,
Right r,
Object o)
throws RemoteException
u - the userr - the righto - the object (may be null)
RemoteException
<T> List<T> listWithRightCheck(User u,
Class<? extends T> clazz,
String condition,
String order,
Object[] args,
Right right,
Application app,
boolean ignoreDepts)
throws 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
RemoteException
<T extends Persistent> List<T> listWithRightCheck(User u,
String classname,
String condition,
String order,
Object[] bindVars,
Right right,
Application app,
boolean ignoreDepts)
throws 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
RemoteException
boolean mayInsert(User u,
Persistent o)
throws RemoteException
u - the user requesting the accesso - the object
RemoteException
boolean mayUpdate(User u,
Persistent o)
throws RemoteException
u - the user requesting the accesso - the object
RemoteException
boolean mayView(User u,
Persistent o)
throws RemoteException
u - the user requesting the accesso - the object
RemoteException
boolean mayExecute(User u,
Persistent o)
throws RemoteException
u - the user requesting the accesso - the object
RemoteException
boolean mayDelete(User u,
Persistent o)
throws RemoteException
u - the user requesting the accesso - the object
RemoteException
void insert(Persistent o)
throws RemoteException
o - the object
RemoteException
void update(Persistent o)
throws RemoteException
o - the object
RemoteException
void delete(Persistent o)
throws RemoteException
o - the object
RemoteException
<P extends Persistent> P getVersion(P o,
Date d)
throws RemoteException
o - the objectd -
RemoteException
List<LogEntry> getLogEntries(String classname,
long oid,
Date from,
Date to)
throws 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
RemoteException
Map<User,Object> listUsersWithRole(Role r,
OrgUnit ou,
Application appl)
throws 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.
RemoteException
List<String> checkPasswordPolicy(String password)
throws RemoteException
password - - the password string to check against the policy
RemoteException
String getPolicyInfoText(User u)
throws RemoteException
u - - the user
RemoteException
User setPassword(User u,
String password)
throws RemoteException
u - the user, whose password should be changedpassword - - the new password (plain string)
RemoteException
User createUser()
throws RemoteException
RemoteException
Role createRole()
throws RemoteException
RemoteException
OrgUnit createOrgUnit()
throws RemoteException
RemoteException
UserRole createUserRole()
throws RemoteException
RemoteException
Right createRight()
throws RemoteException
RemoteException
Permission createPermission()
throws RemoteException
RemoteException
PermissionList createPermissionList()
throws RemoteException
RemoteException
void deleteCascade(OrgUnit ou)
throws RemoteException
ou - the organizational unit to delete
RemoteException
List<OrgUnit> getSubOrgs(OrgUnit ou,
OrgTree tree)
throws RemoteException
RemoteException
OrgUnit getSuperOrg(OrgUnit ou,
OrgTree tree)
throws RemoteException
RemoteException
OrgTree createOrgTree()
throws RemoteException
RemoteException
void placeOrgInTree(OrgUnit parent,
OrgUnit child,
OrgTree tree)
throws RemoteException
parent, - may be null.child - tree - the tree
RemoteException
boolean isInTree(OrgUnit ou,
OrgTree tree)
throws RemoteException
ou - tree -
RemoteException
Persistent getObjectExtension(Persistent obj,
String formclass,
boolean create)
throws RemoteException
obj - an object having extensionsformclass - the name of a form-classcreate - if true extensions are created
RemoteException
void deleteObjectExtension(Persistent obj,
String formclass)
throws RemoteException
RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||