public static enum Permissions.Right extends java.lang.Enum<Permissions.Right>
READ
right allows for a user
with the given role to retrieve an entity. This means that all fields of
that entity can be retrieved. Care is taken by the server, that once an
entity was readable and another entity was attached to it, that further
READ access will not throw an exception. In turn,
care should be taken by users to not overly soon grant READ
permissions lest they no longer be revokable. As of 4.4, this also permits
certain view-based linkages of objects (e.g. RenderingDef, Thumbnail).
The ANNOTATE
right allows a user with the given role to link
annotations and other non-core data to an entity.
The WRITE
right allows for a user with the given role to alter
the fields of an entity, including changing the contents of its
collection, assigning it to another collection, or deleting it.
This does not include changing the fields of those linked
entities, only whether or not they are members of the given collection.
Note: if WRITE is granted, ANNOTATE will also be granted.修飾子とタイプ | メソッドと説明 |
---|---|
static Permissions.Right |
valueOf(java.lang.String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static Permissions.Right[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final Permissions.Right ANNOTATE
public static final Permissions.Right WRITE
public static final Permissions.Right READ
public static Permissions.Right[] values()
for(Permissions.Right c: Permissions.Right.values()) System.out.println(c);
public static Permissions.Right valueOf(java.lang.String name)
name
- 返される列挙型定数の名前。java.lang.IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合java.lang.NullPointerException
- 引数がnullの場合