public abstract class OperationDefinition extends Object
Resource
Modifier and Type | Field and Description |
---|---|
protected List<AccessConstraintDefinition> |
accessConstraints |
protected DeprecationData |
deprecationData |
protected DescriptionProvider |
descriptionProvider |
protected OperationEntry.EntryType |
entryType |
protected Set<OperationEntry.Flag> |
flags |
protected String |
name |
protected AttributeDefinition[] |
parameters |
protected boolean |
replyAllowNull |
protected AttributeDefinition[] |
replyParameters |
protected org.jboss.dmr.ModelType |
replyType |
protected org.jboss.dmr.ModelType |
replyValueType |
Modifier | Constructor and Description |
---|---|
protected |
OperationDefinition(SimpleOperationDefinitionBuilder builder) |
protected |
OperationDefinition(String name,
OperationEntry.EntryType entryType,
EnumSet<OperationEntry.Flag> flags,
org.jboss.dmr.ModelType replyType,
org.jboss.dmr.ModelType replyValueType,
boolean replyAllowNull,
DeprecationData deprecationData,
AttributeDefinition[] replyParameters,
AttributeDefinition[] parameters,
AccessConstraintDefinition... accessConstraints)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<AccessConstraintDefinition> |
getAccessConstraints() |
DeprecationData |
getDeprecationData() |
abstract DescriptionProvider |
getDescriptionProvider() |
OperationEntry.EntryType |
getEntryType() |
Set<OperationEntry.Flag> |
getFlags()
Gets an immutable set of any
flags associated with the operation. |
String |
getName() |
AttributeDefinition[] |
getParameters() |
AttributeDefinition[] |
getReplyParameters() |
org.jboss.dmr.ModelType |
getReplyType() |
org.jboss.dmr.ModelType |
getReplyValueType()
Only required if the reply type is some form of collection.
|
boolean |
isDeprecated() |
boolean |
isReplyAllowNull() |
void |
validateAndSet(org.jboss.dmr.ModelNode operationObject,
org.jboss.dmr.ModelNode model)
Deprecated.
Not used by the WildFly management kernel; will be removed in a future release
|
void |
validateOperation(org.jboss.dmr.ModelNode operation)
Deprecated.
Not used by the WildFly management kernel; will be removed in a future release
|
protected final String name
protected final OperationEntry.EntryType entryType
protected final Set<OperationEntry.Flag> flags
protected final AttributeDefinition[] parameters
protected final org.jboss.dmr.ModelType replyType
protected final org.jboss.dmr.ModelType replyValueType
protected final boolean replyAllowNull
protected final DeprecationData deprecationData
protected final AttributeDefinition[] replyParameters
protected final List<AccessConstraintDefinition> accessConstraints
protected final DescriptionProvider descriptionProvider
protected OperationDefinition(SimpleOperationDefinitionBuilder builder)
@Deprecated protected OperationDefinition(String name, OperationEntry.EntryType entryType, EnumSet<OperationEntry.Flag> flags, org.jboss.dmr.ModelType replyType, org.jboss.dmr.ModelType replyValueType, boolean replyAllowNull, DeprecationData deprecationData, AttributeDefinition[] replyParameters, AttributeDefinition[] parameters, AccessConstraintDefinition... accessConstraints)
OperationDefinition(SimpleOperationDefinitionBuilder)
public String getName()
public OperationEntry.EntryType getEntryType()
public Set<OperationEntry.Flag> getFlags()
flags
associated with the operation.null
be may be emptypublic AttributeDefinition[] getParameters()
public org.jboss.dmr.ModelType getReplyType()
public org.jboss.dmr.ModelType getReplyValueType()
public List<AccessConstraintDefinition> getAccessConstraints()
public abstract DescriptionProvider getDescriptionProvider()
public DeprecationData getDeprecationData()
public boolean isDeprecated()
public boolean isReplyAllowNull()
public AttributeDefinition[] getReplyParameters()
@Deprecated public void validateOperation(org.jboss.dmr.ModelNode operation) throws OperationFailedException
operation
- model node of type ModelType.OBJECT
, representing an operation requestOperationFailedException
- if the value is not valid@Deprecated public final void validateAndSet(org.jboss.dmr.ModelNode operationObject, org.jboss.dmr.ModelNode model) throws OperationFailedException
operationObject
- model node of type ModelType.OBJECT
, typically representing an operation requestmodel
- model node in which the value should be storedOperationFailedException
- if the value is not validCopyright © 2018 JBoss by Red Hat. All rights reserved.