public abstract class BoxItem.Info extends BoxResource.Info
Constructor and Description |
---|
Info()
Constructs an empty Info object.
|
Info(String json)
Constructs an Info object by parsing information from a JSON string.
|
Modifier and Type | Method and Description |
---|---|
Date |
getContentCreatedAt()
Gets the time that the item was created according to the uploader.
|
Date |
getContentModifiedAt()
Gets the time that the item was last modified according to the uploader.
|
Date |
getCreatedAt()
Gets the time the item was created.
|
BoxUser.Info |
getCreatedBy()
Gets info about the user who created the item.
|
String |
getDescription()
Gets the description of the item.
|
String |
getEtag()
Gets a unique string identifying the version of the item.
|
String |
getItemStatus()
Gets the status of the item.
|
Date |
getModifiedAt()
Gets the time the item was last modified.
|
BoxUser.Info |
getModifiedBy()
Gets info about the user who last modified the item.
|
String |
getName()
Gets the name of the item.
|
BoxUser.Info |
getOwnedBy()
Gets info about the user who owns the item.
|
BoxFolder.Info |
getParent()
Gets info about the parent folder of the item.
|
List<BoxFolder.Info> |
getPathCollection()
Gets the path of folders to the item, starting at the root.
|
Date |
getPurgedAt()
Gets the time that the item was purged from the trash.
|
String |
getSequenceID()
Gets a unique ID for use with the
EventStream . |
BoxSharedLink |
getSharedLink()
Gets the shared link for the item.
|
long |
getSize()
Gets the size of the item in bytes.
|
List<String> |
getTags()
Gets a list of all the tags applied to the item.
|
Date |
getTrashedAt()
Gets the time that the item was trashed.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
void |
setDescription(String description)
Sets the description of the item.
|
void |
setName(String name)
Sets the name of the item.
|
void |
setSharedLink(BoxSharedLink sharedLink)
Sets a shared link for the item.
|
getID, getResource
clearPendingChanges, getPendingChanges
public Info()
public String getEtag()
public void setName(String name)
name
- the new name of the item.public Date getCreatedAt()
public Date getModifiedAt()
public String getDescription()
public void setDescription(String description)
description
- the new description of the item.public long getSize()
public List<BoxFolder.Info> getPathCollection()
public BoxUser.Info getCreatedBy()
public BoxUser.Info getModifiedBy()
public Date getTrashedAt()
public Date getPurgedAt()
public Date getContentCreatedAt()
public Date getContentModifiedAt()
public BoxUser.Info getOwnedBy()
public BoxSharedLink getSharedLink()
public void setSharedLink(BoxSharedLink sharedLink)
sharedLink
- the shared link for the item.public String getSequenceID()
EventStream
.public List<String> getTags()
Note that this field isn't populated by default and must be specified as a field parameter when getting Info about the item.
public BoxFolder.Info getParent()
public String getItemStatus()
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.
member
- the JSON member to be parsed.