Class ApplicationResourcePrivileges

  • All Implemented Interfaces:
    ToXContent, ToXContentObject

    public final class ApplicationResourcePrivileges
    extends java.lang.Object
    implements ToXContentObject
    Represents privileges over resources that are scoped under an application. The application, resources and privileges are completely managed by the client and can be arbitrary string identifiers. Elasticsearch is not concerned by any resources under an application scope.
    • Constructor Detail

      • ApplicationResourcePrivileges

        public ApplicationResourcePrivileges​(java.lang.String application,
                                             java.util.Collection<java.lang.String> privileges,
                                             java.util.Collection<java.lang.String> resources)
        Constructs privileges for resources under an application scope.
        Parameters:
        application - The application name. This identifier is completely under the clients control.
        privileges - The privileges names. Cannot be null or empty. Privilege identifiers are completely under the clients control.
        resources - The resources names. Cannot be null or empty. Resource identifiers are completely under the clients control.
    • Method Detail

      • getApplication

        public java.lang.String getApplication()
      • getResources

        public java.util.Set<java.lang.String> getResources()
      • getPrivileges

        public java.util.Set<java.lang.String> getPrivileges()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object