Class GlobalOperationPrivilege
- java.lang.Object
-
- org.elasticsearch.client.security.user.privileges.GlobalOperationPrivilege
-
- Direct Known Subclasses:
ManageApplicationPrivilege
public class GlobalOperationPrivilege extends java.lang.Object
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 Constructor Description GlobalOperationPrivilege(java.lang.String category, java.lang.String operation, java.util.Map<java.lang.String,java.lang.Object> privilege)
Constructs privileges under a specificcategory
and for someoperation
.
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
static GlobalOperationPrivilege
fromXContent(java.lang.String category, java.lang.String operation, XContentParser parser)
java.lang.String
getCategory()
java.lang.String
getOperation()
java.util.Map<java.lang.String,java.lang.Object>
getRaw()
int
hashCode()
-
-
-
Constructor Detail
-
GlobalOperationPrivilege
public GlobalOperationPrivilege(java.lang.String category, java.lang.String operation, java.util.Map<java.lang.String,java.lang.Object> privilege)
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 Detail
-
getCategory
public java.lang.String getCategory()
-
getOperation
public java.lang.String getOperation()
-
getRaw
public java.util.Map<java.lang.String,java.lang.Object> getRaw()
-
fromXContent
public static GlobalOperationPrivilege fromXContent(java.lang.String category, java.lang.String operation, XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-