Class Permission


  • public final class Permission
    extends java.lang.Object
    • Method Detail

      • getId

        public java.util.Optional<java.lang.String> getId()
      • getRemoteId

        public java.util.Optional<java.lang.String> getRemoteId()
        Returns:
        The third-party API ID of the matching object.
      • getCreatedAt

        public java.util.Optional<java.time.OffsetDateTime> getCreatedAt()
        Returns:
        The datetime that this object was created by Merge.
      • getModifiedAt

        public java.util.Optional<java.time.OffsetDateTime> getModifiedAt()
        Returns:
        The datetime that this object was modified by Merge.
      • getUser

        public java.util.Optional<PermissionUser> getUser()
        Returns:
        The user that is granted this permission.
      • getGroup

        public java.util.Optional<PermissionGroup> getGroup()
        Returns:
        The group that is granted this permission.
      • getType

        public java.util.Optional<PermissionType> getType()
        Returns:
        Denotes what type of people have access to the file.
        • USER - USER
        • GROUP - GROUP
        • COMPANY - COMPANY
        • ANYONE - ANYONE
      • getRoles

        public java.util.Optional<java.util.List<java.util.Optional<PermissionRolesItem>>> getRoles()
        Returns:
        The permissions that the user or group has for the File or Folder. It is possible for a user or group to have multiple roles, such as viewing & uploading. Possible values include: READ, WRITE, OWNER. In cases where there is no clear mapping, the original value passed through will be returned.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object