public class BoxCollaboration.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 |
---|---|
BoxCollaborator.Info |
getAccessibleBy()
Gets the collaborator who this collaboration applies to.
|
Date |
getAcknowledgedAt()
Gets the time the collaboration's status was changed.
|
boolean |
getCanViewPath()
Gets a boolean indicator whether "view path collaboration" feature is enabled or not.
|
Date |
getCreatedAt()
Gets the time the collaboration was created.
|
BoxUser.Info |
getCreatedBy()
Gets the user who created the collaboration.
|
Date |
getExpiresAt()
Gets the time the collaboration will expire.
|
String |
getInviteEmail()
The email address used to invite an un-registered collaborator, if they are not a registered user.
|
boolean |
getIsAccessOnly()
Gets a boolean indicator weather "is access only" feature is enabled or not.
|
BoxItem.Info |
getItem()
Gets the folder the collaboration is related to.
|
Date |
getModifiedAt()
Gets the time the collaboration was last modified.
|
BoxCollaboration |
getResource()
Gets the resource associated with this Info.
|
BoxCollaboration.Role |
getRole()
Gets the level of access the collaborator has.
|
BoxCollaboration.Status |
getStatus()
Gets the status of the collaboration.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
void |
setCanViewPath(boolean canViewState)
Sets the permission for "view path collaboration" feature.
|
void |
setExpiresAt(Date expiresAt)
Set the time the collaboration will expire.
|
void |
setRole(BoxCollaboration.Role role)
Sets the level of access the collaborator has.
|
void |
setStatus(BoxCollaboration.Status status)
Sets the status of the collaboration in order to accept or reject the collaboration if it's pending.
|
getID
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public Info()
public BoxUser.Info getCreatedBy()
public Date getCreatedAt()
public Date getModifiedAt()
public Date getExpiresAt()
public void setExpiresAt(Date expiresAt)
expiresAt
- the expiration date of the collaboration.public boolean getCanViewPath()
public void setCanViewPath(boolean canViewState)
canViewState
- the boolean value indicating whether the invitee can see the parent folder.public boolean getIsAccessOnly()
public String getInviteEmail()
public BoxCollaboration.Status getStatus()
public void setStatus(BoxCollaboration.Status status)
status
- the new status of the collaboration.public BoxCollaborator.Info getAccessibleBy()
public BoxCollaboration.Role getRole()
public void setRole(BoxCollaboration.Role role)
role
- the new level of access to give the collaborator.public Date getAcknowledgedAt()
public BoxItem.Info getItem()
public BoxCollaboration 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.
member
- the JSON member to be parsed.