类 ApplicationResourcePrivileges
java.lang.Object
org.easysearch.client.security.user.privileges.ApplicationResourcePrivileges
- 所有已实现的接口:
org.easysearch.common.xcontent.ToXContent,org.easysearch.common.xcontent.ToXContentObject
public final class ApplicationResourcePrivileges
extends java.lang.Object
implements org.easysearch.common.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. Easysearch is not
concerned by any resources under an application scope.
-
嵌套类概要
从接口继承的嵌套类/接口 org.easysearch.common.xcontent.ToXContent
org.easysearch.common.xcontent.ToXContent.DelegatingMapParams, org.easysearch.common.xcontent.ToXContent.MapParams, org.easysearch.common.xcontent.ToXContent.Params -
字段概要
从接口继承的字段 org.easysearch.common.xcontent.ToXContent
EMPTY_PARAMS -
构造器概要
构造器 构造器 说明 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. -
方法概要
修饰符和类型 方法 说明 booleanequals(java.lang.Object o)static ApplicationResourcePrivilegesfromXContent(org.easysearch.common.xcontent.XContentParser parser)java.lang.StringgetApplication()java.util.Set<java.lang.String>getPrivileges()java.util.Set<java.lang.String>getResources()inthashCode()java.lang.StringtoString()org.easysearch.common.xcontent.XContentBuildertoXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params)从类继承的方法 java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait从接口继承的方法 org.easysearch.common.xcontent.ToXContentObject
isFragment
-
构造器详细资料
-
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.- 参数:
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.
-
-
方法详细资料
-
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)- 覆盖:
equals在类中java.lang.Object
-
hashCode
public int hashCode()- 覆盖:
hashCode在类中java.lang.Object
-
toString
public java.lang.String toString()- 覆盖:
toString在类中java.lang.Object
-
toXContent
public org.easysearch.common.xcontent.XContentBuilder toXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- 指定者:
toXContent在接口中org.easysearch.common.xcontent.ToXContent- 抛出:
java.io.IOException
-
fromXContent
public static ApplicationResourcePrivileges fromXContent(org.easysearch.common.xcontent.XContentParser parser)
-