Package org.jboss.as.controller
Class OperationDefinition
- java.lang.Object
-
- org.jboss.as.controller.OperationDefinition
-
- Direct Known Subclasses:
SimpleOperationDefinition
public abstract class OperationDefinition extends Object
Defining characteristics of operation in aResource- Author:
- Tomaz Cerar
-
-
Field Summary
Fields Modifier and Type Field Description protected List<AccessConstraintDefinition>accessConstraintsprotected DeprecationDatadeprecationDataprotected DescriptionProviderdescriptionProviderprotected OperationEntry.EntryTypeentryTypeprotected Set<OperationEntry.Flag>flagsprotected Stringnameprotected AttributeDefinition[]parametersprotected booleanreplyAllowNullprotected AttributeDefinition[]replyParametersprotected org.jboss.dmr.ModelTypereplyTypeprotected org.jboss.dmr.ModelTypereplyValueType
-
Constructor Summary
Constructors Modifier Constructor Description protectedOperationDefinition(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.protectedOperationDefinition(SimpleOperationDefinitionBuilder builder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<AccessConstraintDefinition>getAccessConstraints()DeprecationDatagetDeprecationData()abstract DescriptionProvidergetDescriptionProvider()OperationEntry.EntryTypegetEntryType()Set<OperationEntry.Flag>getFlags()Gets an immutable set of anyflagsassociated with the operation.StringgetName()AttributeDefinition[]getParameters()AttributeDefinition[]getReplyParameters()org.jboss.dmr.ModelTypegetReplyType()org.jboss.dmr.ModelTypegetReplyValueType()Only required if the reply type is some form of collection.booleanisDeprecated()booleanisReplyAllowNull()voidvalidateAndSet(org.jboss.dmr.ModelNode operationObject, org.jboss.dmr.ModelNode model)Deprecated.Not used by the WildFly management kernel; will be removed in a future releasevoidvalidateOperation(org.jboss.dmr.ModelNode operation)Deprecated.Not used by the WildFly management kernel; will be removed in a future release
-
-
-
Field Detail
-
name
protected final String name
-
entryType
protected final OperationEntry.EntryType entryType
-
flags
protected final Set<OperationEntry.Flag> flags
-
parameters
protected final AttributeDefinition[] parameters
-
replyType
protected final org.jboss.dmr.ModelType replyType
-
replyValueType
protected final org.jboss.dmr.ModelType replyValueType
-
replyAllowNull
protected final boolean replyAllowNull
-
deprecationData
protected final DeprecationData deprecationData
-
replyParameters
protected final AttributeDefinition[] replyParameters
-
accessConstraints
protected final List<AccessConstraintDefinition> accessConstraints
-
descriptionProvider
protected final DescriptionProvider descriptionProvider
-
-
Constructor Detail
-
OperationDefinition
protected OperationDefinition(SimpleOperationDefinitionBuilder builder)
-
OperationDefinition
@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)
Deprecated.
-
-
Method Detail
-
getName
public String getName()
-
getEntryType
public OperationEntry.EntryType getEntryType()
-
getFlags
public Set<OperationEntry.Flag> getFlags()
Gets an immutable set of anyflagsassociated with the operation.- Returns:
- the flags. Will not return
nullbe may be empty
-
getParameters
public AttributeDefinition[] getParameters()
-
getReplyType
public org.jboss.dmr.ModelType getReplyType()
-
getReplyValueType
public org.jboss.dmr.ModelType getReplyValueType()
Only required if the reply type is some form of collection.
-
getAccessConstraints
public List<AccessConstraintDefinition> getAccessConstraints()
-
getDescriptionProvider
public abstract DescriptionProvider getDescriptionProvider()
-
getDeprecationData
public DeprecationData getDeprecationData()
-
isDeprecated
public boolean isDeprecated()
-
isReplyAllowNull
public boolean isReplyAllowNull()
-
getReplyParameters
public AttributeDefinition[] getReplyParameters()
-
validateOperation
@Deprecated public void validateOperation(org.jboss.dmr.ModelNode operation) throws OperationFailedException
Deprecated.Not used by the WildFly management kernel; will be removed in a future releaseValidates operation model against the definition and its parameters- Parameters:
operation- model node of typeModelType.OBJECT, representing an operation request- Throws:
OperationFailedException- if the value is not valid
-
validateAndSet
@Deprecated public final void validateAndSet(org.jboss.dmr.ModelNode operationObject, org.jboss.dmr.ModelNode model) throws OperationFailedException
Deprecated.Not used by the WildFly management kernel; will be removed in a future releasevalidates operation against the definition and sets model for the parameters passed.- Parameters:
operationObject- model node of typeModelType.OBJECT, typically representing an operation requestmodel- model node in which the value should be stored- Throws:
OperationFailedException- if the value is not valid
-
-