Class Permission

java.lang.Object
com.amilesend.onedrive.resource.item.type.Permission

public class Permission extends Object
Describes sharing permissions granted for a drive item.

API Documentation.

See Also:
  • Method Details

    • deletePermission

      public void deletePermission()
      Deletes this permission.
    • builder

      public static Permission.PermissionBuilder builder()
    • getId

      public String getId()
      The permission identifier.
    • getGrantedTo

      public IdentitySet getGrantedTo()
      Describes the users and applications for this permission.
    • getGrantedToIdentities

      public List<IdentitySet> getGrantedToIdentities()
      Details of users to whom permission was granted for links.
    • getInvitation

      public SharingInvitation getInvitation()
      Sharing invitation for this permission.
    • getInheritedFrom

      public ItemReference getInheritedFrom()
      Reference to the parent permission (if applicable).
    • getLink

      public SharingLink getLink()
      Link type permission details.
    • getRoles

      public List<String> getRoles()
      The type of permission. Valid values include:
      • read
      • write
      • owner - For SharePoint and Business
      • member - For SharePoint and Business
    • getShareId

      public String getShareId()
      The token that can be used to access the shared item.
    • getDriveItemId

      public String getDriveItemId()
      The associated drive item identifier that this permission applies to.
    • getConnection

      public OneDriveConnection getConnection()
    • 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