public final class ProcessCircleRequest extends Authentication implements CircleIdRequest, ActionRequest
Circles only have an Id, a name and an optional External Circle Key, the Key is stored encrypted, if set. The name must be present, unique and between 1 and 75 characters long. When invoking the processCircle request, it is possible to perform the following actions:
Action CREATE; request requires a name for the Circle, which must be unique, have a length between 1 & 75 characters. If a Member Id is also provided, then this will be the initial Circle Administrator. If no Member Id has been provided, then the requesting Member will be the initial Circle Administrator. It is also possible to set the Circle Key, which is an external Key, shared by the members of the Circle, it will be stored internally encrypted, but not used.
Action UPDATE; request requires the Circle Id, and optionally a new, unique, name for the Circle, with a length between 1 & 75 characters. It is also possible to update the (external) Circle Key, which means that the existing Circle Key will be replaced.
Action DELETE; request requires a Circle Id, and may be performed by anyone who have Administrative right in the Circle.
For more details, please see the 'processCircle' request in the Management
interface: Management.processCircle(ProcessCircleRequest)
Constructor and Description |
---|
ProcessCircleRequest() |
Modifier and Type | Method and Description |
---|---|
Action |
getAction()
Retrieves the Action for the current request.
|
String |
getCircleId() |
String |
getCircleKey() |
String |
getCircleName() |
String |
getMemberId() |
void |
setAction(Action action)
Defines the action which should be performed by the request.
|
void |
setCircleId(String circleId) |
void |
setCircleKey(String circleKey) |
void |
setCircleName(String circleName) |
void |
setMemberId(String memberId) |
Map<String,String> |
validate()
Simple Validation method, which checks if the required values are usable
or not.
|
getAccountName, getCredential, getCredentialType, setAccountName, setCredential, setCredentialType
checkIntegerWithMax, checkNotNull, checkNotNullAndValidId, checkNotNullEmptyOrTooLong, checkNotNullOrEmpty, checkNotNullOrEmpty, checkNotTooLong, checkUrl, checkValidId, isEmpty
public void setAction(Action action)
Defines the action which should be performed by the request.
setAction
in interface ActionRequest
action
- The Action to be performedpublic Action getAction()
Retrieves the Action for the current request.
getAction
in interface ActionRequest
public void setCircleId(String circleId)
setCircleId
in interface CircleIdRequest
public String getCircleId()
getCircleId
in interface CircleIdRequest
public void setCircleName(String circleName)
public String getCircleName()
public void setMemberId(String memberId)
public String getMemberId()
public void setCircleKey(String circleKey)
public String getCircleKey()
public Map<String,String> validate()
validate
in class Authentication
Copyright © 2019 JavaDog.io. All rights reserved.