public class TcPermission extends Permission
Graphs matching a specified
name pattern. A pattern is matched if and only if the pattern is equals
to name of the Graph or the pattern ends with "/*" and
the name of the Graph starts with the characters
preceding the '*' in the pattern.| Modifier and Type | Field and Description |
|---|---|
static String |
READ |
static String |
READWRITE |
| Constructor and Description |
|---|
TcPermission(String tcNamePattern,
String actions)
Conststructs a TcPermission for a specified name pattern and a list of
actions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getActions() |
int |
hashCode() |
boolean |
implies(Permission permission) |
checkGuard, getName, newPermissionCollection, toStringpublic static final String READWRITE
public static final String READ
public TcPermission(String tcNamePattern, String actions)
tcNamePattern - see class descriptionactions - a comma separated list of the strings "read" and "readwrite",
the canonical form is just "read" or "readwrite" as "readwrite"
implies "read".public boolean implies(Permission permission)
implies in class Permissionpublic boolean equals(Object obj)
equals in class Permissionpublic int hashCode()
hashCode in class Permissionpublic String getActions()
getActions in class PermissionCopyright © 2020 The Apache Software Foundation. All rights reserved.