class SystemResource extends AbstractResource
| Modifier and Type | Field and Description |
|---|---|
private static CentralLogger |
LOG
Logger.
|
(package private) static int |
SYSTEM_ACCESS
the only access mode for "system" resources
|
(package private) static int |
SYSTEM_CONTEXT_CREATE
context related event constant
|
(package private) static int |
SYSTEM_CONTEXT_DELETE
context related event constant
|
(package private) static int |
SYSTEM_CONTEXT_SWITCH
context related event constant
|
private static java.lang.String[] |
validInstances
array of valid instance names
|
objectPointer, resourceIndex, sm| Constructor and Description |
|---|
SystemResource()
Package private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
checkAccountsAccess()
Checks access rights of the current subject with regards to the
"accounts" instance of the "system" abstract resource.
|
(package private) boolean |
checkAdminAccess()
Checks access rights of the current subject with regards to the
"admin" instance of the "system" abstract resource.
|
(package private) boolean |
checkChangeAccess()
Checks access rights of the current subject with regards to the "change"
instance of the "system" abstract resource.
|
(package private) boolean |
checkDebugAccess()
Checks access rights of the current subject with regards to the
"debug" instance of the "system" abstract resource.
|
(package private) boolean |
checkExtensionsAccess()
Checks access rights of the current subject with regards to the
"extensions" instance of the "system" abstract resource.
|
(package private) boolean |
checkLogonAccess()
Checks access rights of the current subject with regards to the "logon"
instance of the "system" abstract resource.
|
(package private) boolean |
checkShutdownAccess()
Checks access rights of the current subject with regards to the
"shutdown" instance of the "system" abstract resource.
|
private boolean |
checkSingle(SystemRights rights)
Implements a worker that performs access rights check on a single
instance of the SystemRights object.
|
Description[] |
describeRights()
Returns an array of descriptions, one object per the plugin's access
rights item.
|
Rights |
getRightsInstance(java.lang.Object[] rights)
Instantiates a plugin's class that implements the Rights interface,
using the array of objects representing a set of access rights fields.
|
java.lang.String |
getTypeName()
Returns the plugin resource type name as a string.
|
boolean |
isInstanceNameValid(java.lang.String resource)
Checks whether a given string is a valid resource name
for this resource type.
|
boolean |
isRightsSetValid(java.lang.Object[] rights)
Checks whether a given array of objects representing a set of access
rights fields is acceptable.
|
private boolean |
systemAccessWorker(java.lang.String instanceName,
int mode)
Implements generalized access rights check worker.
|
associate, attach, disassociate, getACLMatcher, getEnclosingScope, getLibrary, getLink, getPermissions, init, refresh, registeredAs, toStringgetLibraries, getLibraryClasses, getLibsByClass, getVariableList, getVariablesstatic final int SYSTEM_ACCESS
static final int SYSTEM_CONTEXT_CREATE
static final int SYSTEM_CONTEXT_DELETE
static final int SYSTEM_CONTEXT_SWITCH
private static final java.lang.String[] validInstances
private static final CentralLogger LOG
public java.lang.String getTypeName()
public Description[] describeRights()
Descriptions, one per each plugin's access
rights item.public Rights getRightsInstance(java.lang.Object[] rights)
rights - an array of objects of proper types representing items in a set
of access rightspublic boolean isInstanceNameValid(java.lang.String resource)
resource - string naming a resourcetrue if the name is syntactically correctpublic boolean isRightsSetValid(java.lang.Object[] rights)
rights - an array of objects of proper types representing items in a set
of access rightstrue if the array is acceptable for an instance
of access rightsboolean checkLogonAccess()
true if access is allowed.boolean checkChangeAccess()
true if access is allowed.boolean checkShutdownAccess()
true if access is allowed.boolean checkDebugAccess()
true if access is allowed.boolean checkAccountsAccess()
true if access is allowed.boolean checkExtensionsAccess()
true if access is allowed.boolean checkAdminAccess()
true if access is allowed.private boolean systemAccessWorker(java.lang.String instanceName,
int mode)
instanceName - name of the particular instance of the abstract resource about
to be accessedmode - an integer value encoding the access mode specific to this
resourcetrue if access is allowed.private boolean checkSingle(SystemRights rights)
rights - The instance of SystemRights to check, must not be
null.true if access is allowed.