Class PermissionSubject.JiraUser
Object
PermissionSubject
JiraUser
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- PermissionSubject
Represents a specific user in JIRA, matching only that user.
A user is identified by the user key, introduced in JIRA 6. This is different from structure-api 7.x, which
used user name as the ID. As a result, serialized permission subjects from JIRA 5.x may not correctly
deserialize with this new version of the API - migration is needed. See StructureUtil.migrateUserNameToUserKey(String).
-
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 TypeMethodDescriptionbooleaninthashCode()booleanmatches(ApplicationUser user) voidsetUserKey(String userKey) voidsetUserName(String userName) <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
-
JiraUser
public JiraUser() -
JiraUser
-
JiraUser
public JiraUser(@Nullable ApplicationUser user)
-
-
Method Details
-
getUserName
-
getUserKey
-
setUserName
-
setUserKey
-
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()
-