public class BoxFolder.Info extends BoxItem.Info
Constructor and Description |
---|
Info()
Constructs an empty Info object.
|
Info(JsonObject jsonObject)
Constructs an Info object using an already parsed JSON object.
|
Info(String json)
Constructs an Info object by parsing information from a JSON string.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllowedInviteeRoles()
Retrieves the allowed roles for collaborations.
|
List<String> |
getAllowedSharedLinkAccessLevels()
Retrieves the allowed access levels for a shared link.
|
boolean |
getCanNonOwnersInvite()
Gets whether or not the non-owners can invite collaborators to the folder.
|
BoxClassification |
getClassification()
Gets the metadata classification type of this folder.
|
boolean |
getHasCollaborations()
Gets whether or not the folder has any collaborations.
|
boolean |
getIsAccessibleViaSharedLink()
Returns the flag indicating whether the folder is accessible via a shared link.
|
boolean |
getIsCollaborationRestrictedToEnterprise()
Gets whether future collaborations should be restricted to within the enterprise only.
|
boolean |
getIsExternallyOwned()
Get the field is_externally_owned determining whether this folder is owned by a user outside of the
enterprise.
|
boolean |
getIsWatermarked()
Gets flag indicating whether this file is Watermarked.
|
Metadata |
getMetadata(String templateName,
String scope)
Gets the metadata on this folder associated with a specified scope and template.
|
EnumSet<BoxFolder.Permission> |
getPermissions()
Gets the permissions that the current user has on the folder.
|
BoxFolder |
getResource()
Gets the resource associated with this Info.
|
BoxFolder.SyncState |
getSyncState()
Gets the sync state of the folder.
|
BoxUploadEmail |
getUploadEmail()
Gets the upload email for the folder.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
void |
setCanNonOwnersInvite(boolean canNonOwnersInvite)
Sets whether or not non-owners can invite collaborators to the folder.
|
void |
setIsCollaborationRestrictedToEnterprise(boolean isRestricted)
Sets whether future collaborations should be restricted to within the enterprise only.
|
void |
setSyncState(BoxFolder.SyncState syncState)
Sets the sync state of the folder.
|
void |
setUploadEmail(BoxUploadEmail uploadEmail)
Sets the upload email for the folder.
|
getCollections, getContentCreatedAt, getContentModifiedAt, getCreatedAt, getCreatedBy, getDescription, getEtag, getExpiresAt, getItemStatus, getModifiedAt, getModifiedBy, getName, getOwnedBy, getParent, getPathCollection, getPurgedAt, getSequenceID, getSharedLink, getSize, getTags, getTrashedAt, getType, removeSharedLink, setCollections, setDescription, setName, setSharedLink, setTags
getID
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public Info()
public Info(String json)
json
- the JSON string to parse.public Info(JsonObject jsonObject)
jsonObject
- the parsed JSON object.public BoxUploadEmail getUploadEmail()
public void setUploadEmail(BoxUploadEmail uploadEmail)
uploadEmail
- the upload email for the folder.public boolean getHasCollaborations()
public BoxFolder.SyncState getSyncState()
public void setSyncState(BoxFolder.SyncState syncState)
syncState
- the sync state of the folder.public EnumSet<BoxFolder.Permission> getPermissions()
public boolean getCanNonOwnersInvite()
public void setCanNonOwnersInvite(boolean canNonOwnersInvite)
canNonOwnersInvite
- indicates non-owners can invite collaborators to the folder.public boolean getIsCollaborationRestrictedToEnterprise()
public void setIsCollaborationRestrictedToEnterprise(boolean isRestricted)
isRestricted
- indicates whether there is collaboration restriction within enterprise.public List<String> getAllowedInviteeRoles()
public List<String> getAllowedSharedLinkAccessLevels()
public boolean getIsWatermarked()
public Metadata getMetadata(String templateName, String scope)
templateName
- the metadata template type name.scope
- the scope of the template (usually "global" or "enterprise").public boolean getIsExternallyOwned()
public BoxClassification getClassification()
public boolean getIsAccessibleViaSharedLink()
public BoxFolder getResource()
BoxResource.Info
getResource
in class BoxResource.Info
protected void parseJSONMember(JsonObject.Member member)
BoxJSONObject
Subclasses should override this method in order to parse any JSON members it knows about. This method is a no-op by default.
parseJSONMember
in class BoxItem.Info
member
- the JSON member to be parsed.