public interface DataRole
Data entity roles are supposed to be enums, but to ensure type safety, we have to have different enums for
different entity types. I.e. resources can only have data of roles from the
DataRole.Resource enum, resource types only from DataRole.ResourceType enum and operation types from the
DataRole.OperationType enum.
| Modifier and Type | Interface and Description |
|---|---|
static class |
DataRole.OperationType |
static class |
DataRole.Resource |
static class |
DataRole.ResourceType |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSchema() |
String |
name() |
static DataRole |
valueOf(String name)
Converts the string representation of the data role to an instance of it.
|
static DataRole[] |
values() |
static DataRole valueOf(String name)
DataRole.Resource, DataRole.ResourceType and DataRole.OperationType.name - the name of the data role (one of the values in the above enums)static DataRole[] values()
DataRole.Resource, DataRole.ResourceType, DataRole.OperationType.String name()
boolean isSchema()
Copyright © 2014–2016 Red Hat, Inc.. All rights reserved.