| Package | Description | 
|---|---|
| org.itracker.model | 
 All entity classes are POJO beans. 
 | 
| org.itracker.model.util | 
 This package contains code for what? 
 | 
| org.itracker.persistence.dao | 
 This package contains all Data Access Object (XxxDAO) interfaces 
 along with their Hibernate implementations (XxxDAOImpl). 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
PermissionType | 
PermissionType.fromCode(Integer code) | 
 Returns the enum instance matching the integer value. 
 | 
PermissionType | 
Permission.getPermissionType() | 
|
static PermissionType[] | 
PermissionType.valueOf(int[] type) | 
 Deprecated.  
 | 
static PermissionType | 
PermissionType.valueOf(Integer type) | 
 Returns the enum constant of this type with the specified name. 
 | 
static PermissionType | 
PermissionType.valueOf(String name) | 
 Returns the enum constant of this type with the specified name. 
 | 
static PermissionType[] | 
PermissionType.values() | 
 Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
void | 
Permission.setPermissionType(PermissionType type) | 
| Constructor | Description | 
|---|---|
Permission(PermissionType type,
          User user) | 
 Grants permissions on all projects to the given user. 
 | 
Permission(PermissionType type,
          User user,
          Project project) | 
 Grants permissions on all projects to the given user. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
static Map<Integer,Set<PermissionType>> | 
UserUtilities.mapPermissionTypesByProjectId(List<Permission> permissionsList) | 
 Maps sets of permission types by project ID. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
static boolean | 
UserUtilities.hasPermission(Map<Integer,Set<PermissionType>> permissionsMap,
             Integer projectId,
             PermissionType permissionNeeded) | 
 Returns true if the user has the required permission for the given project. 
 | 
static boolean | 
UserUtilities.hasPermission(Map<Integer,Set<PermissionType>> permissionsMap,
             Integer projectId,
             PermissionType[] permissionsNeeded) | 
 Returns true if the user has any of required permissions for the given project. 
 | 
static boolean | 
UserUtilities.hasPermission(Map<Integer,Set<PermissionType>> permissionsMap,
             PermissionType permissionNeeded) | 
 Deprecated.  
 | 
static boolean | 
UserUtilities.hasPermission(Map<Integer,Set<PermissionType>> permissionsMap,
             PermissionType[] permissionsNeeded) | 
 Deprecated.  
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
static boolean | 
IssueUtilities.canBeAssignedIssue(Issue issue,
                  Integer userId,
                  Map<Integer,Set<PermissionType>> permissions) | 
 Deprecated.  
 | 
static boolean | 
IssueUtilities.canEditIssue(Issue issue,
            Integer userId,
            Map<Integer,Set<PermissionType>> permissions) | 
 Deprecated.  
 | 
static boolean | 
IssueUtilities.canUnassignIssue(Issue issue,
                Integer userId,
                Map<Integer,Set<PermissionType>> permissions) | 
 Returns true if the user can unassign themselves from the issue. 
 | 
static boolean | 
IssueUtilities.canViewIssue(Issue issue,
            Integer userId,
            Map<Integer,Set<PermissionType>> permissions) | 
 Returns true if the user has permission to view the requested issue. 
 | 
static boolean | 
IssueUtilities.canViewIssue(Issue issue,
            User user,
            Map<Integer,Set<PermissionType>> permissions) | 
 Returns true if the user has permission to view the requested issue. 
 | 
static boolean | 
UserUtilities.hasPermission(Map<Integer,Set<PermissionType>> permissionsMap,
             int permissionNeeded) | 
 Deprecated.  
 | 
static boolean | 
UserUtilities.hasPermission(Map<Integer,Set<PermissionType>> permissionsMap,
             Integer projectId,
             int permissionNeeded) | 
 Deprecated.  
 | 
static boolean | 
UserUtilities.hasPermission(Map<Integer,Set<PermissionType>> permissionsMap,
             Integer projectId,
             PermissionType permissionNeeded) | 
 Returns true if the user has the required permission for the given project. 
 | 
static boolean | 
UserUtilities.hasPermission(Map<Integer,Set<PermissionType>> permissionsMap,
             Integer projectId,
             PermissionType[] permissionsNeeded) | 
 Returns true if the user has any of required permissions for the given project. 
 | 
static boolean | 
UserUtilities.hasPermission(Map<Integer,Set<PermissionType>> permissionsMap,
             PermissionType permissionNeeded) | 
 Deprecated.  
 | 
static boolean | 
UserUtilities.hasPermission(Map<Integer,Set<PermissionType>> permissionsMap,
             PermissionType[] permissionsNeeded) | 
 Deprecated.  
 | 
static boolean | 
UserUtilities.isSuperUser(Map<Integer,Set<PermissionType>> permissionsMap) | 
 Deprecated.  
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
Map<Integer,Set<PermissionType>> | 
UserDAO.getUsersMapOfProjectsAndPermissionTypes(User user) | 
 Finds of the given user the set of permission types for all projects
 on which the user has permissions. 
 | 
Map<Integer,Set<PermissionType>> | 
UserDAOImpl.getUsersMapOfProjectsAndPermissionTypes(User user) | 
 Searches all permissions for the given user and sorts it by project. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
List<Permission> | 
PermissionDAO.findByProjectIdAndPermission(Integer projectId,
                            PermissionType permissionType) | 
 Finds all Permissions of a given type granted on a project. 
 | 
List<Permission> | 
PermissionDAOImpl.findByProjectIdAndPermission(Integer projectId,
                            PermissionType permissionType) | 
|
List<User> | 
UserDAO.findUsersForProjectByAllPermissionTypeList(Integer projectID,
                                          PermissionType[] permissionTypes) | 
 Finds all users assigned to a project having all of the given permissionTypes. 
 | 
List<User> | 
UserDAOImpl.findUsersForProjectByAllPermissionTypeList(Integer projectID,
                                          PermissionType[] permissionTypes) | 
| Modifier and Type | Method | Description | 
|---|---|---|
List<Issue> | 
IssueDAO.query(IssueSearchQuery queryModel,
     User user,
     Map<Integer,Set<PermissionType>> userPermissions) | 
 Query the list of issues that satisfies the search criteria
 specified in  
queryModel. | 
List<Issue> | 
IssueDAOImpl.query(IssueSearchQuery searchQuery,
     User user,
     Map<Integer,Set<PermissionType>> userPermissions) | 
 It doens't really make sense for this method to receive projectDAO, it's just a quick
 fix for the fact that IssueSearchQuery handles ids and not objects 
 | 
Copyright © 2002–2019 itracker. All rights reserved.