public final class ProcessDataTypeRequest extends Authentication implements ActionRequest
When processing a DataType, it can be to either create a new or update an existing. By default, 2 DataTypes exist, which cannot be modified.
To create or update a custom DataType, the name of the DataType is needed together with the type itself. Generally, the name is a shorthand description of name of the actual Type, as the type may be a anything from a simple MIME Type to a rule to extract the content of a stored Object.
For more details, please see the 'processDataType' request in the Management
interface: Share.processDataType(ProcessDataTypeRequest)
Constructor and Description |
---|
ProcessDataTypeRequest() |
Modifier and Type | Method and Description |
---|---|
Action |
getAction()
Retrieves the Action for the current request.
|
String |
getType() |
String |
getTypeName() |
void |
setAction(Action action)
Defines the action which should be performed by the request.
|
void |
setType(String type) |
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 setTypeName(String typeName)
public String getTypeName()
public void setType(String type)
public String getType()
public Map<String,String> validate()
validate
in class Authentication
Copyright © 2019 JavaDog.io. All rights reserved.