Class PermissionSubject.ProjectRole
Object
PermissionSubject
ProjectRole
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- PermissionSubject
Represents a specific project role in a specific project, matching the users that belong to that project role
in that project.
-
Nested Class Summary
Nested classes/interfaces inherited from class PermissionSubject
PermissionSubject.Anyone, PermissionSubject.JiraGroup, PermissionSubject.JiraUser, PermissionSubject.ProjectRole, PermissionSubject.Visitor<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonglonginthashCode()booleanmatches(ApplicationUser user) voidsetProjectId(long projectId) voidsetRoleId(long roleId) <T> Tvisit(PermissionSubject.Visitor<T> visitor, T carry) Calls an appropriate visitor method, passing this PermissionSubject and the carry parameter.Methods inherited from class PermissionSubject
clone, clone, fromEncodedString, fromEncodedString, toString
-
Constructor Details
-
ProjectRole
public ProjectRole() -
ProjectRole
public ProjectRole(long projectId, long roleId)
-
-
Method Details
-
getProjectId
public long getProjectId() -
setProjectId
public void setProjectId(long projectId) -
getRoleId
public long getRoleId() -
setRoleId
public void setRoleId(long roleId) -
matches
public boolean matches(ApplicationUser user) - Specified by:
matchesin classPermissionSubject
-
toEncodedString
- Specified by:
toEncodedStringin classPermissionSubject- Returns:
- a string representation of this permission subject
- See Also:
-
visit
Description copied from class:PermissionSubjectCalls an appropriate visitor method, passing this PermissionSubject and the carry parameter.- Specified by:
visitin classPermissionSubject- Returns:
- the result of the call
-
equals
-
hashCode
public int hashCode()
-