Interface AccessConstraintDefinition
- All Known Implementing Classes:
ApplicationTypeAccessConstraintDefinition,SensitiveTargetAccessConstraintDefinition
public interface AccessConstraintDefinition
Definition of a constraint that can be associated with a
ResourceDefinition, OperationDefinition
or AttributeDefinition.
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
Modifier and TypeMethodDescriptionGet the factory to use for creating aConstraintthat implementsgetDescription(Locale locale) Gets a text description if this attribute definition for inclusion in read-xxx-description metadata.getKey()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 metadatagetName()Get the name of the constraintGets the name of the subsystem that provides this definition, it is notcore.getType()Get the type of constraintbooleanisCore()Gets whether the definition is provided by the core management system.
-
Method Details
-
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
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
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
-