public class RetentionPolicyParams extends Object
BoxRetentionPolicy
Modifier and Type | Class and Description |
---|---|
static class |
RetentionPolicyParams.RetentionType
The type of retention.
|
Constructor and Description |
---|
RetentionPolicyParams()
Creates optional retention policy params with default values.
|
Modifier and Type | Method and Description |
---|---|
void |
addCustomNotificationRecipient(BoxUser user)
Add a user to the list of people to notify when the retention period is ending.
|
void |
addCustomNotificationRecipient(String userID)
Add a user by ID to the list of people to notify when the retention period is ending.
|
boolean |
getAreOwnersNotified() |
boolean |
getCanOwnerExtendRetention() |
List<BoxUser.Info> |
getCustomNotificationRecipients() |
String |
getDescription() |
RetentionPolicyParams.RetentionType |
getRetentionType() |
void |
setAreOwnersNotified(boolean areOwnersNotified)
Set the flag denoting whether owners and co-owners are notified when the retention period is ending.
|
void |
setCanOwnerExtendRetention(boolean canOwnerExtendRetention)
Set the flag denoting whether the owner can extend the retentiion.
|
void |
setCustomNotificationRecipients(List<BoxUser.Info> customNotificationRecipients)
Set the list of extra users to notify when the retention period is ending.
|
void |
setDescription(String description)
Set additional text description of the retention policy.
|
void |
setRetentionType(RetentionPolicyParams.RetentionType retentionType) |
public RetentionPolicyParams()
public boolean getCanOwnerExtendRetention()
public void setCanOwnerExtendRetention(boolean canOwnerExtendRetention)
canOwnerExtendRetention
- The flag value.public boolean getAreOwnersNotified()
public void setAreOwnersNotified(boolean areOwnersNotified)
areOwnersNotified
- The flag value.public String getDescription()
public RetentionPolicyParams.RetentionType getRetentionType()
public void setRetentionType(RetentionPolicyParams.RetentionType retentionType)
retentionType
- The retention type: `modifiable` or `non-modifiable`.public void setDescription(String description)
description
- The additional text description of the retention policy.public List<BoxUser.Info> getCustomNotificationRecipients()
public void setCustomNotificationRecipients(List<BoxUser.Info> customNotificationRecipients)
customNotificationRecipients
- The list of users.public void addCustomNotificationRecipient(String userID)
userID
- The ID of the user to add to the list.public void addCustomNotificationRecipient(BoxUser user)
user
- The info of the user to add to the list