public enum SystemScope extends Enum<SystemScope> implements PermissionScope
PermissionScope.Impl
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
<T extends Entity> |
as(Class<T> cls)
Cast this frame to another type.
|
com.tinkerpop.blueprints.Vertex |
asVertex() |
Iterable<Accessible> |
getAllContainedItems()
Get an iterable of all items within this scope, recursively down
to all lower levels.
|
Iterable<Accessible> |
getContainedItems()
Get an iterable of all items immediately within this scope.
|
String |
getId()
Get the unique item id.
|
String |
getIdentifier() |
static PermissionScope |
getInstance()
Obtain the shared instance of SystemScope.
|
Iterable<PermissionGrant> |
getPermissionGrants()
Get all permission grants that apply directly to this scope.
|
Iterable<PermissionScope> |
getPermissionScopes()
Get an iterable of the parent and all the parents higher permission
scopes, recursively.
|
<T> T |
getProperty(Enum<?> key) |
<T> T |
getProperty(String key)
Get an arbitrary property from the underlying vertex.
|
Set<String> |
getPropertyKeys()
Get the property keys from the underlying vertex.
|
String |
getType()
Get the type key for this frame.
|
Collection<String> |
idPath()
Get the path of the permission scope as an ordered collection of strings.
|
static SystemScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SystemScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SystemScope INSTANCE
public static SystemScope[] values()
for (SystemScope c : SystemScope.values()) System.out.println(c);
public static SystemScope valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static PermissionScope getInstance()
public <T extends Entity> T as(Class<T> cls)
Entity
public String getType()
Entity
public String getIdentifier()
getIdentifier
in interface Identifiable
public com.tinkerpop.blueprints.Vertex asVertex()
asVertex
in interface com.tinkerpop.frames.VertexFrame
public Iterable<PermissionGrant> getPermissionGrants()
PermissionScope
getPermissionGrants
in interface PermissionScope
public Iterable<PermissionScope> getPermissionScopes()
PermissionScope
getPermissionScopes
in interface PermissionScope
public Iterable<Accessible> getContainedItems()
PermissionScope
getContainedItems
in interface PermissionScope
public Iterable<Accessible> getAllContainedItems()
PermissionScope
getAllContainedItems
in interface PermissionScope
public Collection<String> idPath()
PermissionScope
idPath
in interface PermissionScope
public <T> T getProperty(String key)
Entity
getProperty
in interface Entity
T
- the property's typekey
- the property keypublic <T> T getProperty(Enum<?> key)
getProperty
in interface Entity
public Set<String> getPropertyKeys()
Entity
getPropertyKeys
in interface Entity
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.