Class ApplicationResourcePrivileges
java.lang.Object
org.elasticsearch.client.security.user.privileges.ApplicationResourcePrivileges
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentObject
public final class ApplicationResourcePrivileges
extends Object
implements org.elasticsearch.xcontent.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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionApplicationResourcePrivileges
(String application, Collection<String> privileges, Collection<String> resources) Constructs privileges for resources under an application scope. -
Method Summary
Modifier and TypeMethodDescriptionboolean
fromXContent
(org.elasticsearch.xcontent.XContentParser parser) int
hashCode()
toString()
org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
ApplicationResourcePrivileges
public ApplicationResourcePrivileges(String application, Collection<String> privileges, Collection<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 Details
-
getApplication
-
getResources
-
getPrivileges
-
equals
-
hashCode
public int hashCode() -
toString
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-
fromXContent
public static ApplicationResourcePrivileges fromXContent(org.elasticsearch.xcontent.XContentParser parser)
-