|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AccessControlListDAO
This is the Data Access Object (DAO) class for access control lists. All access permissions in projects are controlled via access control lists.
| Method Summary | |
|---|---|
void |
deleteByProjectRolePerson1(java.lang.Integer projectID,
java.lang.Integer roleID,
java.lang.Integer personID)
Deletes an AccessControlList |
void |
filterReportBeans(java.lang.Integer personOID,
java.util.List reportBeanList,
int right,
boolean projectAdmin,
boolean verifyRoles)
Verifies whether a person has a specific right for a list of reportBeanLists. |
java.util.List |
getCreateExplicitOptionsForField(java.lang.Integer configID,
java.lang.Integer personOID,
int[] projects)
Returns the available create options from a list for a person in a project |
java.util.List |
getEditExplicitOptionsForField(java.lang.Integer configID,
java.lang.Integer personOID,
int[] projectOIDs,
java.lang.Integer[] currentOption)
Returns the available edit options from a list for a person in a project |
java.util.Map |
getFieldRestrictions(java.lang.Integer personOID,
TWorkItemBean issueBean,
int[] roleFlags,
java.util.Set presentFields,
boolean edit)
Returns the fields restrictions for a person for a certain TWorkItem (issue). |
java.util.Set |
getPersonIDsWithRightInAllOfTheProjects(java.lang.Integer[] projects,
int[] arrRights)
Returns a set of personIDs which have one of the specified rights in all projects |
java.util.Set |
getPersonIDsWithRightInAnyOfTheProjects(java.lang.Integer[] projectOIDs,
int[] arrRights)
Returns a set of personIDs which have one of the specified rights in any project from projects |
java.util.Map |
getProjectFieldsNoRead(java.lang.Integer personOID)
Returns a map with the fields with no read right for all the projects the user has any role in. |
boolean |
hasPersonRightInProject1(java.lang.Integer personOID,
java.lang.Integer projectOID,
java.lang.Integer issueTypeOID,
int right,
boolean projetcAdmin)
Returns whether a person has a specific right in a project for the given issue type. |
void |
insertByProjectRolePerson1(java.lang.Integer projectID,
java.lang.Integer roleID,
java.lang.Integer personID)
Inserts a new entry in the AccessControlList table |
java.util.List |
loadAccessControlListByProject(java.lang.Integer projectKey,
java.lang.Integer[] departments,
java.lang.Integer[] selectedRoles)
Loads the list of AccessControlListBeans with the directly assigned persons/groups for a project filtered by departments (in case of persons, because groups are not linked to deparments) and by roles |
java.util.List |
loadAccessControlListDirect(java.lang.Integer[] selectedPersons,
java.lang.Integer[] selectedProjects,
java.lang.Integer[] selectedRoles)
Loads a list of AccessControlListBeans with the directly assigned persons/groups |
| Method Detail |
|---|
void filterReportBeans(java.lang.Integer personOID,
java.util.List reportBeanList,
int right,
boolean projectAdmin,
boolean verifyRoles)
personOID - the object identifier of the person using this methodreportBeanList - list of reportBean which needs to be checkedright - projectAdmin - true, if this user is a project administratorverifyRoles - whether the assigned roles and RACI roles should be verified (for my-, responsible-, manager- issues not needed)
java.util.Map getFieldRestrictions(java.lang.Integer personOID,
TWorkItemBean issueBean,
int[] roleFlags,
java.util.Set presentFields,
boolean edit)
TWorkItem (issue).
By convention a field will be returned only if it is restricted
(either no read, and consequently no modify, or no modify right).
personOID - the object identifier of the personissueBean - the issueroleFlags - read and/or modify or is project adminedit - whether we are in an editing (edit/create issue) mode
or only read only mode (print issue, email sending)
key: fieldID, value: accessRightjava.util.Map getProjectFieldsNoRead(java.lang.Integer personOID)
personOID - the object identifier of the person
java.util.List getCreateExplicitOptionsForField(java.lang.Integer configID,
java.lang.Integer personOID,
int[] projects)
configID - personOID - the object identifier of the personprojects -
java.util.List getEditExplicitOptionsForField(java.lang.Integer configID,
java.lang.Integer personOID,
int[] projectOIDs,
java.lang.Integer[] currentOption)
configID - personOID - the object identifier of the personprojectOIDs - the object identifier of the projectscurrentOption -
java.util.Set getPersonIDsWithRightInAnyOfTheProjects(java.lang.Integer[] projectOIDs,
int[] arrRights)
projectOIDs - an array with project object identifiersarrRights - an array of rights, null means any right
java.util.Set getPersonIDsWithRightInAllOfTheProjects(java.lang.Integer[] projects,
int[] arrRights)
projects - arrRights - an array of rights, null means any right
boolean hasPersonRightInProject1(java.lang.Integer personOID,
java.lang.Integer projectOID,
java.lang.Integer issueTypeOID,
int right,
boolean projetcAdmin)
personOID - the object identifier of the personprojectOID - the object identifier of the projectissueTypeOID - if null, it does not matter (for example project admin role doesn't depend on list type)right -
java.util.List loadAccessControlListDirect(java.lang.Integer[] selectedPersons,
java.lang.Integer[] selectedProjects,
java.lang.Integer[] selectedRoles)
selectedPersons - when null or of length 0 it will be no filteredselectedProjects - when null or of length 0 no resultsselectedRoles - when null or of length 0 it will be no filtered
java.util.List loadAccessControlListByProject(java.lang.Integer projectKey,
java.lang.Integer[] departments,
java.lang.Integer[] selectedRoles)
projectKey - departments - selectedRoles -
void insertByProjectRolePerson1(java.lang.Integer projectID,
java.lang.Integer roleID,
java.lang.Integer personID)
projKey - roleKey - personKey -
void deleteByProjectRolePerson1(java.lang.Integer projectID,
java.lang.Integer roleID,
java.lang.Integer personID)
projKey - roleKey - personKey -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||