public final class ProcessDataRequest extends Authentication implements CircleIdRequest, ActionRequest
The Request Object supports several actions for adding, updating and deleting Data Objects in CWS. The request supports the following Actions:
Action ADD; requires a Circle Id, and optionally a Folder Id (Data Id, where the dataType is a folder), and the name of the Object. The name must be between 1 and 75 characters, and it must be unique for the folder where it is added. As Objects created doesn't need to have any data, the data is optional.
Action UPDATE; requires the Data Id, and an optional Folder Id, if the Object is suppose to be moved within the internal folder structure, or a new Data name, which must be unique for the folder where it should be placed, and the length must be between 1 and 75 characters.
Action DELETE; requires the Data Id.
For more details, please see the 'processData' request in the Share
interface: Share.processData(ProcessDataRequest)
Constructor and Description |
---|
ProcessDataRequest() |
Modifier and Type | Method and Description |
---|---|
Action |
getAction()
Retrieves the Action for the current request.
|
String |
getCircleId() |
byte[] |
getData() |
String |
getDataId() |
String |
getDataName() |
String |
getFolderId() |
String |
getTargetCircleId() |
String |
getTargetFolderId() |
String |
getTypeName() |
void |
setAction(Action action)
Defines the action which should be performed by the request.
|
void |
setCircleId(String circleId) |
void |
setData(byte[] data) |
void |
setDataId(String dataId) |
void |
setDataName(String dataName) |
void |
setFolderId(String folderId) |
void |
setTargetCircleId(String targetCircleId) |
void |
setTargetFolderId(String targetFolderId) |
void |
setTypeName(String typeName) |
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 setDataId(String dataId)
public String getDataId()
public void setCircleId(String circleId)
setCircleId
in interface CircleIdRequest
public String getCircleId()
getCircleId
in interface CircleIdRequest
public void setTargetCircleId(String targetCircleId)
public String getTargetCircleId()
public void setDataName(String dataName)
public String getDataName()
public void setFolderId(String folderId)
public String getFolderId()
public void setTargetFolderId(String targetFolderId)
public String getTargetFolderId()
public void setTypeName(String typeName)
public String getTypeName()
public void setData(byte[] data)
public byte[] getData()
public Map<String,String> validate()
validate
in class Authentication
Copyright © 2019 JavaDog.io. All rights reserved.