public class AclWithKey extends ExtensionPoint
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
Constructor and Description |
---|
AclWithKey()
Default mutable constructor.
|
AclWithKey(java.lang.String key,
AclRole role)
Immutable constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within
the target extension profile.
|
java.lang.String |
getKey()
Returns the key granting a role.
|
AclRole |
getRole()
Returns the role.
|
boolean |
hasKey()
Returns whether it has a key.
|
boolean |
hasRole()
Returns whether it has the role.
|
void |
setKey(java.lang.String key)
Sets the key granting a role.
|
void |
setRole(AclRole role)
Sets the role.
|
java.lang.String |
toString() |
addExtension, addRepeatingExtension, generateCumulativeXmlBlob, getExtension, getExtensions, getHandler, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
public AclWithKey()
public AclWithKey(java.lang.String key, AclRole role)
key
- a key granting a role.role
- a role.public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions
in class ExtensionPoint
extProfile
- the ExtensionProfile to initialize.public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- a key or null
to resetpublic boolean hasKey()
public AclRole getRole()
public void setRole(AclRole role)
role
- the role or null
to resetpublic boolean hasRole()
public java.lang.String toString()
toString
in class java.lang.Object