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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic GlobalOperationPrivilegefromXContent(String category, String operation, org.elasticsearch.xcontent.XContentParser parser) getRaw()inthashCode()
-
Constructor Details
-
GlobalOperationPrivilege
Constructs privileges under a specificcategoryand for someoperation. The privilege definition is flexible, it is aMap, and the semantics is bound to thecategoryandoperation.- 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()
-