Interface AccessConstraintDefinition
-
- All Known Implementing Classes:
ApplicationTypeAccessConstraintDefinition,SensitiveTargetAccessConstraintDefinition
public interface AccessConstraintDefinitionDefinition of a constraint that can be associated with aResourceDefinition,OperationDefinitionorAttributeDefinition.Implementations of this class must be usable as keys in a map; i.e. they should have proper implementations of
#equals(Object)and#hashCode().- Author:
- Brian Stansberry (c) 2013 Red Hat Inc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConstraintFactorygetConstraintFactory()Get the factory to use for creating aConstraintthat implementsStringgetDescription(Locale locale)Gets a text description if this attribute definition for inclusion in read-xxx-description metadata.AccessConstraintKeygetKey()Gets a unique identifier for thisAccessConstraintDefinition.org.jboss.dmr.ModelNodegetModelDescriptionDetails(Locale locale)Get arbitrary descriptive information about the constraint for inclusion in the read-xxx-description metadataStringgetName()Get the name of the constraintStringgetSubsystemName()Gets the name of the subsystem that provides this definition, it is notcore.StringgetType()Get the type of constraintbooleanisCore()Gets whether the definition is provided by the core management system.
-
-
-
Method Detail
-
getName
String getName()
Get the name of the constraint- Returns:
- the name
-
getType
String getType()
Get the type of constraint- Returns:
- the type of constraint
-
isCore
boolean isCore()
Gets whether the definition is provided by the core management system.- Returns:
trueif the definition is provided by the core;falseif it is provided by a subsystem
-
getSubsystemName
String getSubsystemName()
Gets the name of the subsystem that provides this definition, it is notcore.- Returns:
- the subsystem name, or
nullifisCore()
-
getKey
AccessConstraintKey getKey()
Gets a unique identifier for thisAccessConstraintDefinition.- Returns:
- the key. Will not be
null
-
getDescription
String getDescription(Locale locale)
Gets a text description if this attribute definition for inclusion in read-xxx-description metadata.- Parameters:
locale- locale to use to provide internationalized text- Returns:
- the text description, or
nullif none is available
-
getModelDescriptionDetails
org.jboss.dmr.ModelNode getModelDescriptionDetails(Locale locale)
Get arbitrary descriptive information about the constraint for inclusion in the read-xxx-description metadata- Parameters:
locale- locale to use for any internationalized text- Returns:
- an arbitrary description node; can be
nullor undefined
-
getConstraintFactory
ConstraintFactory getConstraintFactory()
Get the factory to use for creating aConstraintthat implements- Returns:
- the factory. Cannot return
null
-
-