public class StringConditionResource extends AbstractResource
| Modifier and Type | Field and Description |
|---|---|
private static CentralLogger |
LOG
Logger.
|
objectPointer, resourceIndex, sm| Constructor and Description |
|---|
StringConditionResource()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private boolean |
checkSingle(StringConditionRights rights)
Implements a worker that performs access rights check on a single
instance of the StringConditionRights 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 |
isAllowed(java.lang.String instance)
Implements generalized access rights check worker.
|
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.
|
associate, attach, disassociate, getACLMatcher, getEnclosingScope, getLibrary, getLink, getPermissions, init, refresh, registeredAs, toStringgetLibraries, getLibraryClasses, getLibsByClass, getVariableList, getVariablesprivate static final CentralLogger LOG
public java.lang.String getTypeName()
public Description[] describeRights()
Description elements, one for each access rights item.public Rights getRightsInstance(java.lang.Object[] rights)
Rights interface, using
the array of objects representing a set of access rights fields.rights - The objects needed to create an access rights instance.public boolean isInstanceNameValid(java.lang.String resource)
null and it is a non-
empty string. Override this to add conditions.resource - A string naming a resource.true if the name is syntactically correct.public boolean isRightsSetValid(java.lang.Object[] rights)
rights - An array of objects of types representing items in a rights instance.true if the array is acceptable to create a rights instance.public boolean isAllowed(java.lang.String instance)
instance - name of the particular instance of the abstract resource about
to be accessedtrue if access is allowed.private boolean checkSingle(StringConditionRights rights)
rights - The instance of StringConditionRights to check, must not be
null.true if access is allowed.