@BoxResourceType(value="terms_of_service_user_status") public class BoxTermsOfServiceUserStatus extends BoxResource
Modifier and Type | Class and Description |
---|---|
class |
BoxTermsOfServiceUserStatus.Info
Contains information about the user status on a terms of service.
|
Modifier and Type | Field and Description |
---|---|
static URLTemplate |
ALL_TERMS_OF_SERVICE_USER_STATUSES_TEMPLATE
Terms of Services User Statuses URL Template.
|
static URLTemplate |
TERMS_OF_SERVICE_USER_STATUSES_TEMPLATE
All Terms of Services User Statuses URL Template.
|
Constructor and Description |
---|
BoxTermsOfServiceUserStatus(BoxAPIConnection api,
String id)
Constructs a BoxTermsOfServiceUserStatus for a resource with a given ID.
|
Modifier and Type | Method and Description |
---|---|
static BoxTermsOfServiceUserStatus.Info |
create(BoxAPIConnection api,
String termsOfServiceID,
Boolean isAccepted)
Creates a User Status on a custom Terms of Service.
|
static BoxTermsOfServiceUserStatus.Info |
create(BoxAPIConnection api,
String termsOfServiceID,
Boolean isAccepted,
String userID)
Creates a User Status on a custom Terms of Service.
|
static List<BoxTermsOfServiceUserStatus.Info> |
getInfo(BoxAPIConnection api,
String termsOfServiceID)
Retrieves a list of User Status for Terms of Service as an Iterable.
|
static List<BoxTermsOfServiceUserStatus.Info> |
getInfo(BoxAPIConnection api,
String termsOfServiceID,
String userID)
Retrieves a list of User Status for Terms of Service as an Iterable.
|
void |
updateInfo(BoxTermsOfServiceUserStatus.Info info)
Updates the information about the user status for this terms of service with any info fields that have
been modified locally.
|
equals, getAPI, getID, getResourceType, hashCode
public static final URLTemplate TERMS_OF_SERVICE_USER_STATUSES_TEMPLATE
public static final URLTemplate ALL_TERMS_OF_SERVICE_USER_STATUSES_TEMPLATE
public BoxTermsOfServiceUserStatus(BoxAPIConnection api, String id)
api
- the API connection to be used by the resource.id
- the ID of the resource.public static BoxTermsOfServiceUserStatus.Info create(BoxAPIConnection api, String termsOfServiceID, Boolean isAccepted)
api
- the API connection to be used by the resource.termsOfServiceID
- the ID of the terms of service.isAccepted
- the indicator for whether the terms of service has been accepted.public static BoxTermsOfServiceUserStatus.Info create(BoxAPIConnection api, String termsOfServiceID, Boolean isAccepted, String userID)
api
- the API connection to be used by the resource.termsOfServiceID
- the ID of the terms of service.isAccepted
- the indicator for whether the terms of service has been accepted.userID
- the ID of the user for the terms of service.public static List<BoxTermsOfServiceUserStatus.Info> getInfo(BoxAPIConnection api, String termsOfServiceID)
api
- the API connection to be used by the resource.termsOfServiceID
- the ID of the terms of service.public static List<BoxTermsOfServiceUserStatus.Info> getInfo(BoxAPIConnection api, String termsOfServiceID, String userID)
api
- the API connection to be used by the resource.termsOfServiceID
- the ID of the terms of service.userID
- the ID of the user to retrieve terms of service for.public void updateInfo(BoxTermsOfServiceUserStatus.Info info)
info
- the updated info.