Class GlobalPrivileges

  • All Implemented Interfaces:
    ToXContent, ToXContentObject

    public final class GlobalPrivileges
    extends java.lang.Object
    implements ToXContentObject
    Represents global privileges. "Global Privilege" is a mantra for granular generic cluster privileges. These privileges are organized into categories. Elasticsearch defines the set of categories. Under each category there are operations that are under the clients jurisdiction. The privilege is hence defined under an operation under a category.
    • Field Detail

      • CATEGORIES

        public static final java.util.List<java.lang.String> CATEGORIES
    • Constructor Detail

      • GlobalPrivileges

        public GlobalPrivileges​(java.util.Collection<? extends GlobalOperationPrivilege> privileges)
        Constructs global privileges by bundling the set of privileges.
        Parameters:
        privileges - The privileges under a category and for an operation in that category.