public final class ProcessTrusteeRequest extends Authentication implements CircleIdRequest, ActionRequest
Request Object for the processing of Trustee's. It supports the following actions:
Action ADD; requires that both the Circle & Member Id's are
provided, together with the TrustLevel, for the new Trustee.
Action ALTER; requires that both the Circle & Member Id's are
provided, together with the new TrustLevel setting for the
Trustee.
Action REMOVE; requires that both the Circle & Member Id's are provided, so the relation can be removed.
For more details, please see the 'processTrustee' request in the Management
interface: Management.processTrustee(ProcessTrusteeRequest)
| Constructor and Description |
|---|
ProcessTrusteeRequest() |
| Modifier and Type | Method and Description |
|---|---|
Action |
getAction()
Retrieves the Action for the current request.
|
String |
getCircleId() |
String |
getMemberId() |
TrustLevel |
getTrustLevel() |
void |
setAction(Action action)
Defines the action which should be performed by the request.
|
void |
setCircleId(String circleId) |
void |
setMemberId(String memberId) |
void |
setTrustLevel(TrustLevel trustLevel) |
Map<String,String> |
validate()
Simple Validation method, which checks if the required values are usable
or not.
|
getAccountName, getCredential, getCredentialType, setAccountName, setCredential, setCredentialTypecheckIntegerWithMax, checkNotNull, checkNotNullAndValidId, checkNotNullEmptyOrTooLong, checkNotNullOrEmpty, checkNotNullOrEmpty, checkNotTooLong, checkUrl, checkValidId, isEmptypublic void setAction(Action action)
Defines the action which should be performed by the request.
setAction in interface ActionRequestaction - The Action to be performedpublic Action getAction()
Retrieves the Action for the current request.
getAction in interface ActionRequestpublic void setTrustLevel(TrustLevel trustLevel)
public TrustLevel getTrustLevel()
public void setCircleId(String circleId)
setCircleId in interface CircleIdRequestpublic String getCircleId()
getCircleId in interface CircleIdRequestpublic void setMemberId(String memberId)
public String getMemberId()
public Map<String,String> validate()
validate in class AuthenticationCopyright © 2019 JavaDog.io. All rights reserved.