java.io.Serializable, Resource, SelfDescribingResource, SelfDescribingResourceV2public final class NoSQLResource extends ResourceBase
The resource hierarchy preserves the requested action while walking from a named resource to the global NoSQL resource:
type=<nosql>, resource=orders, action=access type=<nosql>, resource=orders type=<nosql>, action=access type=<nosql>
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ACCESS_ACTION |
The runtime action used to authorize NoSQL access.
|
id, length, NO_PARENT, parent, resStr, SCOPE_RESOURCE_ACTION, valuesLIST_FIELD_TYPE, NORMAL_FIELD_TYPE, PATH_FIELD_TYPE, UNDEFINED_FIELD_TYPE| Constructor | Description |
|---|---|
NoSQLResource(java.lang.String resource,
java.lang.String action) |
Constructs a NoSQL security resource.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object other) |
Compares this resource to the resource in the specified object.
|
java.lang.String |
getActionName() |
|
java.lang.String[] |
getKeys() |
Gets keys for the resource.
|
int |
getRepeatingFieldIndex() |
getRepeatingFieldIndex returns an index into the
array returned by getKeys() that signifies what part
of the Resource's fields repeat as the hierarchy is traversed. |
int |
getRepeatingFieldTerminatingIndex() |
The field returned by
getRepeatingFieldIndex is
repeated as the Resource is shortened up to and including this
field index. |
java.lang.String |
getResourceName() |
|
java.lang.String |
getType() |
Gets the type of this resource.
|
java.lang.String[] |
getValues() |
Returns values aligned with
getKeys(), including the separately
propagated action value. |
protected Resource |
makeParent() |
Creates a
ResourceBase object that represents the parent of the current
resource. |
protected void |
writeResourceString(java.lang.StringBuffer buffer) |
Writes a string representation of the resource to buffer.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitappendArrayValue, appendValue, getFieldType, getID, getParentResource, hashCode, init, init, isTransitiveField, toStringpublic static final java.lang.String ACCESS_ACTION
public NoSQLResource(java.lang.String resource,
java.lang.String action)
resource - the globally configured NoSQL resource name, or
null for all NoSQL resourcesaction - the requested action, or null for all actionspublic java.lang.String getType()
Resourceprotected Resource makeParent()
ResourceBaseResourceBase object that represents the parent of the current
resource. If the resource does not have a parent, the value of
null must be returned.Subclasses should override this method.
makeParent in class ResourceBasenull at the toppublic int getRepeatingFieldIndex()
SelfDescribingResourcegetRepeatingFieldIndex returns an index into the
array returned by getKeys() that signifies what part
of the Resource's fields repeat as the hierarchy is traversed.
For example, in the URLResource, the
httpMethod is repeated as the hierarchy is walked.
A value of -1 indicates that there are no repeating
fields.getRepeatingFieldIndex in interface SelfDescribingResourcegetRepeatingFieldIndex in class ResourceBasepublic int getRepeatingFieldTerminatingIndex()
SelfDescribingResourcegetRepeatingFieldIndex is
repeated as the Resource is shortened up to and including this
field index. After this field index the repetition is no longer
applied.getRepeatingFieldTerminatingIndex in interface SelfDescribingResourcegetRepeatingFieldTerminatingIndex in class ResourceBasepublic java.lang.String[] getKeys()
ResourceBasegetKeys in interface ResourcegetKeys in class ResourceBasepublic java.lang.String[] getValues()
getKeys(), including the separately
propagated action value.getValues in interface ResourcegetValues in class ResourceBasepublic java.lang.String getResourceName()
public java.lang.String getActionName()
protected void writeResourceString(java.lang.StringBuffer buffer)
ResourceBaseSubclasses should override this method if their string representation is different.
writeResourceString in class ResourceBasebuffer - buffer to write to.public boolean equals(java.lang.Object other)
ResourceBaseequals in interface Resourceequals in class ResourceBaseother - the other resource with which to compare this resource.TRUE if the resource passed in matches this resource,
and FALSE otherwise.Object.equals(Object)