public class Permissions extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
create
Allowed to create.
|
boolean |
delete
Allowed to delete.
|
boolean |
isPublic
Anyone is allowed to read the object
|
boolean |
manage
Allowed to admin/manage.
|
boolean |
read
Allowed to read.
|
boolean |
write
Allowed to write/modify.
|
| Constructor and Description |
|---|
Permissions() |
| Modifier and Type | Method and Description |
|---|---|
Permissions |
grantAll()
Grant all.
|
Permissions |
grantNone()
Grant none.
|
boolean |
isGranting(int mask)
Is Permissions granting the
BasePermission by its mask?. |
boolean |
isOneGranting()
Checks if is one granting.
|
String |
toString() |
public boolean create
public boolean read
public boolean write
public boolean delete
public boolean manage
public boolean isPublic
public boolean isGranting(int mask)
BasePermission by its mask?.mask - int value of Permission maskUnsupportedOperationException - if mask is not understoodpublic Permissions grantAll()
public Permissions grantNone()
public boolean isOneGranting()
Copyright © 2021 Global Crop Diversity Trust. All rights reserved.