Package com.atlassian.jira.sharing
Class SharePermissionImpl
java.lang.Object
com.atlassian.jira.sharing.SharePermissionImpl
- All Implemented Interfaces:
SharePermission
,Serializable
Simple Bean implementation of
SharePermission
.- Since:
- v3.13
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSharePermissionImpl
(ShareType.Name type, String param1, String param2) Deprecated.SharePermissionImpl
(ShareType.Name type, String param1, String param2, ShareRight rights) SharePermissionImpl
(Long id, ShareType.Name type, String param1, String param2) Deprecated.SharePermissionImpl
(Long id, ShareType.Name type, String param1, String param2, ShareRight rights) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
The identifier of the share.The first parameter of the permission.The second parameter of the permission.The rights for the permission.getType()
The type of the share (e.g.int
hashCode()
boolean
isEdit()
Checks if share permission has view and edit right.boolean
isView()
Checks if share permission has view right.toString()
-
Constructor Details
-
Method Details
-
getId
Description copied from interface:SharePermission
The identifier of the share. Can be null if the share has not been stored.- Specified by:
getId
in interfaceSharePermission
- Returns:
- the identifier of the share.
-
getType
Description copied from interface:SharePermission
The type of the share (e.g. group). Should never be null.- Specified by:
getType
in interfaceSharePermission
- Returns:
- the type of the share.
-
getParam1
Description copied from interface:SharePermission
The first parameter of the permission. Its value can be null.- Specified by:
getParam1
in interfaceSharePermission
- Returns:
- the value of the permissions first parameter.
-
getParam2
Description copied from interface:SharePermission
The second parameter of the permission. Its value can be null. This parameter cannot have a value when {#getParam1} returns null.- Specified by:
getParam2
in interfaceSharePermission
- Returns:
- the value of the permissions second parameter.
-
getRights
Description copied from interface:SharePermission
The rights for the permission. Can store value if user is allowed to 'view' or 'view and edit'- Specified by:
getRights
in interfaceSharePermission
- Returns:
- the value of the share rights.
-
equals
-
hashCode
public int hashCode() -
toString
-
isEdit
public boolean isEdit()Description copied from interface:SharePermission
Checks if share permission has view and edit right.- Specified by:
isEdit
in interfaceSharePermission
- Returns:
- true if this share permission has view and edit right
-
isView
public boolean isView()Description copied from interface:SharePermission
Checks if share permission has view right.- Specified by:
isView
in interfaceSharePermission
- Returns:
- true if this share permission has view right
-