public final class AdminResource extends ResourceBase
AdminResource class is used by a container to specify
the Administrative resource (and method related to the resource) that a caller
is attempting to access.
The toString format (which is produced by the ResourceBase
class) for an Administrative resource is:
type=<adm>, category=UserLockout, realm=myRealm, action=unlockuser or
type=<adm>, category=Configuration
type=<adm>, category=FileUpload
type=<adm>, category=FileDownload
type=<adm>, category=ViewLog
type=<adm>, category=CrossDomain
type=<adm>, category=AdminChannel
(The former is generic and used with several different categories, while the
latter is used to access MBean fields.)
id, length, NO_PARENT, parent, resStr, SCOPE_RESOURCE_ACTION, valuesLIST_FIELD_TYPE, NORMAL_FIELD_TYPE, PATH_FIELD_TYPE, UNDEFINED_FIELD_TYPE| Modifier and Type | Method and Description |
|---|---|
String |
getActionName()
Gets the name of the action being requested on the
AdminResource. |
String[] |
getKeys()
Gets keys for the
AdminResource. |
String |
getResourceName()
Gets the name of the
AdminResource. |
String |
getResourceType()
Gets the category of the
AdminResource. |
String |
getType()
Gets the type of this resource (
AdminResource). |
protected Resource |
makeParent()
Gets a
Resource object that represents the parent of the
current AdminResource. |
appendArrayValue, appendValue, equals, getFieldType, getID, getParentResource, getRepeatingFieldIndex, getRepeatingFieldTerminatingIndex, getValues, hashCode, init, init, isTransitiveField, toString, writeResourceStringpublic String getType()
AdminResource).public String[] getKeys()
AdminResource.getKeys in interface ResourcegetKeys in class ResourceBaseAdminResource's keys.protected Resource makeParent()
Resource object that represents the parent of the
current AdminResource. If the resource does not have a parent, the value of
null must be returned.
The parentage hierarchy for the AdminResource (that is, the values returned from
successive calls to this method) is:
type=<adm>, category=UserLockout, realm=myRealm
type=<adm>, category=UserLockout
type=<adm>
or
type=<adm> when accessing MBean fields.
makeParent in class ResourceBaseResource object of the parent resource.public String getResourceType()
AdminResource.AdminResource, represented as a String.public String getActionName()
AdminResource.AdminResource,
represented as a String.public String getResourceName()
AdminResource.AdminResource, represented as a String.