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 TypeMethodDescriptionbooleangetId()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.inthashCode()booleanisEdit()Checks if share permission has view and edit right.booleanisView()Checks if share permission has view right.toString()
-
Constructor Details
-
Method Details
-
getId
Description copied from interface:SharePermissionThe identifier of the share. Can be null if the share has not been stored.- Specified by:
getIdin interfaceSharePermission- Returns:
- the identifier of the share.
-
getType
Description copied from interface:SharePermissionThe type of the share (e.g. group). Should never be null.- Specified by:
getTypein interfaceSharePermission- Returns:
- the type of the share.
-
getParam1
Description copied from interface:SharePermissionThe first parameter of the permission. Its value can be null.- Specified by:
getParam1in interfaceSharePermission- Returns:
- the value of the permissions first parameter.
-
getParam2
Description copied from interface:SharePermissionThe second parameter of the permission. Its value can be null. This parameter cannot have a value when {#getParam1} returns null.- Specified by:
getParam2in interfaceSharePermission- Returns:
- the value of the permissions second parameter.
-
getRights
Description copied from interface:SharePermissionThe rights for the permission. Can store value if user is allowed to 'view' or 'view and edit'- Specified by:
getRightsin interfaceSharePermission- Returns:
- the value of the share rights.
-
equals
-
hashCode
public int hashCode() -
toString
-
isEdit
public boolean isEdit()Description copied from interface:SharePermissionChecks if share permission has view and edit right.- Specified by:
isEditin interfaceSharePermission- Returns:
- true if this share permission has view and edit right
-
isView
public boolean isView()Description copied from interface:SharePermissionChecks if share permission has view right.- Specified by:
isViewin interfaceSharePermission- Returns:
- true if this share permission has view right
-