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 |
---|---|
boolean |
getCanNonOwnersInvite()
Gets whether or not the non-owners can invite collaborators to the folder.
|
boolean |
getHasCollaborations()
Gets whether or not the folder has any collaborations.
|
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 |
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, getItemStatus, getModifiedAt, getModifiedBy, getName, getOwnedBy, getParent, getPathCollection, getPurgedAt, getSequenceID, getSharedLink, getSize, getTags, getTrashedAt, setCollections, setDescription, setName, setSharedLink
getID
clearPendingChanges, getPendingChanges, getPendingChangesAsJsonObject
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 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 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.