Class GlobalOperationPrivilege
java.lang.Object
org.elasticsearch.client.security.user.privileges.GlobalOperationPrivilege
- Direct Known Subclasses:
ManageApplicationPrivilege
Represents generic global cluster privileges that can be scoped by categories
and then further by operations. The privilege's syntactic and semantic
meaning is specific to each category and operation; there is no general
definition template. It is not permitted to define different privileges under
the same category and operation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static GlobalOperationPrivilege
fromXContent
(String category, String operation, org.elasticsearch.xcontent.XContentParser parser) getRaw()
int
hashCode()
-
Constructor Details
-
GlobalOperationPrivilege
Constructs privileges under a specificcategory
and for someoperation
. The privilege definition is flexible, it is aMap
, and the semantics is bound to thecategory
andoperation
.- Parameters:
category
- The category of the privilege.operation
- The operation of the privilege.privilege
- The privilege definition.
-
-
Method Details
-
getCategory
-
getOperation
-
getRaw
-
fromXContent
public static GlobalOperationPrivilege fromXContent(String category, String operation, org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-