Interface AccessConstraintDefinition
-
- All Known Implementing Classes:
ApplicationTypeAccessConstraintDefinition
,SensitiveTargetAccessConstraintDefinition
public interface AccessConstraintDefinition
Definition of a constraint that can be associated with aResourceDefinition
,OperationDefinition
orAttributeDefinition
.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 ConstraintFactory
getConstraintFactory()
Get the factory to use for creating aConstraint
that implementsString
getDescription(Locale locale)
Gets a text description if this attribute definition for inclusion in read-xxx-description metadata.AccessConstraintKey
getKey()
Gets a unique identifier for thisAccessConstraintDefinition
.org.jboss.dmr.ModelNode
getModelDescriptionDetails(Locale locale)
Get arbitrary descriptive information about the constraint for inclusion in the read-xxx-description metadataString
getName()
Get the name of the constraintString
getSubsystemName()
Gets the name of the subsystem that provides this definition, it is notcore
.String
getType()
Get the type of constraintboolean
isCore()
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:
true
if the definition is provided by the core;false
if 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
null
ifisCore()
-
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
null
if 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
null
or undefined
-
getConstraintFactory
ConstraintFactory getConstraintFactory()
Get the factory to use for creating aConstraint
that implements- Returns:
- the factory. Cannot return
null
-
-