public class RetentionPolicyParams extends Object
BoxRetentionPolicy| 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() |
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.
|
public RetentionPolicyParams()
public boolean getCanOwnerExtendRetention()
public boolean getAreOwnersNotified()
public List<BoxUser.Info> getCustomNotificationRecipients()
public void setCanOwnerExtendRetention(boolean canOwnerExtendRetention)
canOwnerExtendRetention - The flag value.public void setAreOwnersNotified(boolean areOwnersNotified)
areOwnersNotified - The flag value.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