public class GridSecurityContext extends Object implements Externalizable
| Modifier and Type | Field and Description |
|---|---|
static String |
VISOR_CACHE_CLEAR_TASK_NAME
Cache clear task name.
|
static String |
VISOR_CACHE_LOAD_TASK_NAME
Cache load task name.
|
static String |
VISOR_CACHE_QUERY_TASK_NAME
Cache query task name.
|
| Constructor and Description |
|---|
GridSecurityContext()
Empty constructor required by
Externalizable. |
GridSecurityContext(GridSecuritySubject subj) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cacheOperationAllowed(String cacheName,
GridSecurityPermission perm)
Checks whether cache operation is allowed.
|
void |
readExternal(ObjectInput in) |
GridSecuritySubject |
subject() |
boolean |
systemOperationAllowed(GridSecurityPermission perm)
Checks whether system-wide permission is allowed (excluding Visor task operations).
|
boolean |
taskOperationAllowed(String taskClsName,
GridSecurityPermission perm)
Checks whether task operation is allowed.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static final String VISOR_CACHE_QUERY_TASK_NAME
public static final String VISOR_CACHE_LOAD_TASK_NAME
public static final String VISOR_CACHE_CLEAR_TASK_NAME
public GridSecurityContext()
Externalizable.public GridSecurityContext(GridSecuritySubject subj)
subj - Subject.public GridSecuritySubject subject()
public boolean taskOperationAllowed(String taskClsName, GridSecurityPermission perm)
taskClsName - Task class name.perm - Permission to check.True if task operation is allowed.public boolean cacheOperationAllowed(String cacheName, GridSecurityPermission perm)
cacheName - Cache name.perm - Permission to check.True if cache operation is allowed.public boolean systemOperationAllowed(GridSecurityPermission perm)
perm - Permission to check.True if system operation is allowed.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015