public class BoxLock extends BoxJSONObject
Constructor and Description |
---|
BoxLock(String type,
Date expiresAt)
Constructs a base BoxLock object.
|
BoxLock(String type,
Date expiresAt,
Boolean isDownloadPrevented)
Constructs a BoxLock object.
|
Modifier and Type | Method and Description |
---|---|
Date |
getCreatedAt() |
BoxUser.Info |
getCreatedBy()
User who created the lock.
|
Date |
getExpiresAt()
Gets a locks expiration date.
|
String |
getId() |
Boolean |
getIsDownloadPrevented()
Does the lock prevent downloads.
|
String |
getType()
Gets the lock type.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public BoxLock(String type, Date expiresAt)
type
- lock type, "lock" or "unlock".expiresAt
- lock expiration date.public Date getExpiresAt()
public Boolean getIsDownloadPrevented()
public BoxUser.Info getCreatedBy()
public Date getCreatedAt()
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.