Class SharePermissionImpl

java.lang.Object
com.atlassian.jira.sharing.SharePermissionImpl
All Implemented Interfaces:
SharePermission, Serializable

public class SharePermissionImpl extends Object implements SharePermission
Simple Bean implementation of SharePermission.
Since:
v3.13
See Also:
  • Constructor Details

  • Method Details

    • getId

      public Long 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 interface SharePermission
      Returns:
      the identifier of the share.
    • getType

      public ShareType.Name getType()
      Description copied from interface: SharePermission
      The type of the share (e.g. group). Should never be null.
      Specified by:
      getType in interface SharePermission
      Returns:
      the type of the share.
    • getParam1

      public String getParam1()
      Description copied from interface: SharePermission
      The first parameter of the permission. Its value can be null.
      Specified by:
      getParam1 in interface SharePermission
      Returns:
      the value of the permissions first parameter.
    • getParam2

      public String 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 interface SharePermission
      Returns:
      the value of the permissions second parameter.
    • getRights

      public ShareRight 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 interface SharePermission
      Returns:
      the value of the share rights.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isEdit

      public boolean isEdit()
      Description copied from interface: SharePermission
      Checks if share permission has view and edit right.
      Specified by:
      isEdit in interface SharePermission
      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 interface SharePermission
      Returns:
      true if this share permission has view right