|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trackstudio.securedkernel.SecuredAclAdapterManager
public class SecuredAclAdapterManager
This manager is used for creating and deleting of access control list rules
Constructor Summary | |
---|---|
SecuredAclAdapterManager()
|
Method Summary | |
---|---|
java.lang.String |
createAcl(SessionContext sc,
java.lang.String taskId,
java.lang.String toUserId,
java.lang.String userId,
java.lang.String groupId)
Create a new acl rule for task, user or group. |
void |
deleteAcl(SessionContext sc,
java.lang.String aclId)
Delete acl rule |
java.util.ArrayList |
getAclList(SessionContext sc,
java.lang.String taskId)
Get access control list for the task |
java.util.ArrayList |
getAllowedGroups(SessionContext sc,
java.lang.String taskId)
Get grups whose members can access to specified task |
java.util.ArrayList |
getAllowedPrstatusList(SessionContext sc,
java.lang.String taskId,
java.lang.String userId)
Для заданного пользователя и статуса, начиная с заданной задачи и вверх достаем наборы ACL, привязанные к задаче (assigned ACL) через этого пользователя, т.е. |
java.util.ArrayList |
getAssignedUserList(SessionContext sc,
java.lang.String userId)
Get users assigned for the specified user |
java.util.ArrayList |
getEffectiveStatuses(SessionContext sc,
java.lang.String taskId,
java.lang.String forUser)
|
java.util.ArrayList |
getGroupAclList(SessionContext sc,
java.lang.String prstatusId)
Get acl rules for the specified user group |
java.util.ArrayList |
getHandlerForFilter(SessionContext sc,
java.lang.String taskId)
Get possible handlers for filter |
java.util.ArrayList |
getHandlerStatusesForFilter(SessionContext sc,
java.lang.String taskId)
Get possible user groups for task filter |
java.util.ArrayList |
getTaskList(SessionContext sc,
java.lang.String userId)
Get allowed tasks for user |
java.util.ArrayList |
getUserAclList(SessionContext sc,
java.lang.String userId)
Get access control list for the user |
java.util.ArrayList |
getUserAllowedPrstatusList(SessionContext sc,
java.lang.String toUserId,
java.lang.String userId)
Get list of user groups for whom an access for specified user is allowed by acl. |
java.util.ArrayList |
getUserEffectiveStatuses(SessionContext sc,
java.lang.String toUserId,
java.lang.String forUserId)
Возвращает effective statuses |
java.util.ArrayList |
getUserEffectiveStatusesList(SessionContext sc,
java.lang.String userId)
Get list of effective statuses for user |
java.util.ArrayList |
getUserList(SessionContext sc,
java.lang.String taskId)
Get allowed users for task |
void |
pasteAcls(SessionContext sc,
java.lang.String taskId,
java.lang.String[] aclIds,
java.lang.String operation)
Paste acl rules into task |
void |
updateAcl(SessionContext sc,
java.lang.String aclId,
java.lang.String prstatusId,
boolean override)
Update acl rule |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecuredAclAdapterManager()
Method Detail |
---|
public java.util.ArrayList getAclList(SessionContext sc, java.lang.String taskId) throws GranException
sc
- session contexttaskId
- task's id
GranException
public java.util.ArrayList getUserAclList(SessionContext sc, java.lang.String userId) throws GranException
sc
- session contextuserId
- user's id
GranException
public void deleteAcl(SessionContext sc, java.lang.String aclId) throws GranException
sc
- session contextaclId
- acl's id
GranException
public java.lang.String createAcl(SessionContext sc, java.lang.String taskId, java.lang.String toUserId, java.lang.String userId, java.lang.String groupId) throws GranException
sc
- session contexttaskId
- task's id for which acl rule will be created.toUserId
- user's id. For this user acl rule will act.userId
- user's id for which acl rule will be created.groupId
- group's id for which acl rule will be created.
GranException
public void updateAcl(SessionContext sc, java.lang.String aclId, java.lang.String prstatusId, boolean override) throws GranException
sc
- session contextaclId
- acl's idprstatusId
- id of a new user statusoverride
- new override value. If true, properties of parent acl rule will be overridden
GranException
public java.util.ArrayList getAllowedPrstatusList(SessionContext sc, java.lang.String taskId, java.lang.String userId) throws GranException
sc
- session contexttaskId
- task's iduserId
- user's id
GranException
Prstatus
public java.util.ArrayList getEffectiveStatuses(SessionContext sc, java.lang.String taskId, java.lang.String forUser) throws GranException
GranException
public java.util.ArrayList getUserAllowedPrstatusList(SessionContext sc, java.lang.String toUserId, java.lang.String userId) throws GranException
sc
- session contexttoUserId
- user's id for whom access should be alloweduserId
- user's id
GranException
Prstatus
public java.util.ArrayList getUserEffectiveStatuses(SessionContext sc, java.lang.String toUserId, java.lang.String forUserId) throws GranException
sc
- toUserId
- к какому пользователю (текущий пользователь)forUserId
- с т.з. какого пользователя
GranException
public java.util.ArrayList getHandlerForFilter(SessionContext sc, java.lang.String taskId) throws GranException
sc
-
GranException
public java.util.ArrayList getHandlerStatusesForFilter(SessionContext sc, java.lang.String taskId) throws GranException
sc
- session context
GranException
public java.util.ArrayList getUserEffectiveStatusesList(SessionContext sc, java.lang.String userId) throws GranException
sc
- session contextuserId
- user's id
GranException
public java.util.ArrayList getUserList(SessionContext sc, java.lang.String taskId) throws GranException
sc
- session contexttaskId
- task's id
GranException
SecuredUserBean
public java.util.ArrayList getTaskList(SessionContext sc, java.lang.String userId) throws GranException
sc
- session contextuserId
- user's id
GranException
TaskCacheItem
public java.util.ArrayList getAssignedUserList(SessionContext sc, java.lang.String userId) throws GranException
sc
- session contextuserId
- user's id
GranException
SecuredUserBean
public java.util.ArrayList getGroupAclList(SessionContext sc, java.lang.String prstatusId) throws GranException
sc
- prstatusId
- id of user grup
GranException
SecuredAclBean
public void pasteAcls(SessionContext sc, java.lang.String taskId, java.lang.String[] aclIds, java.lang.String operation) throws GranException
sc
- session contexttaskId
- task's idaclIds
- array of acl idsoperation
- if equals to "CUT", acl rules will be deleted from the source task
GranException
public java.util.ArrayList getAllowedGroups(SessionContext sc, java.lang.String taskId) throws GranException
sc
- session contexttaskId
- task's id
GranException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |