Module org.elasticsearch.xcore
Class AuthorizationState
java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.AuthorizationState
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class AuthorizationState
extends Object
implements Writeable, org.elasticsearch.xcontent.ToXContentObject
AuthorizationState holds the state of the authorization performed in the past.
By examining the instance of this class the caller can learn whether or not the user was authorized to access the source/dest indices
present in the TransformConfig.
This class is immutable.-
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.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ConstructingObjectParser<AuthorizationState, Void> static final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionAuthorizationState(Long timestamp, HealthStatus status, String lastAuthError) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AuthorizationStategreen()inthashCode()static booleanisNullOrGreen(AuthorizationState authState) static AuthorizationStatetoString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
TIMESTAMP
public static final org.elasticsearch.xcontent.ParseField TIMESTAMP -
STATUS
public static final org.elasticsearch.xcontent.ParseField STATUS -
LAST_AUTH_ERROR
public static final org.elasticsearch.xcontent.ParseField LAST_AUTH_ERROR -
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<AuthorizationState,Void> PARSER
-
-
Constructor Details
-
AuthorizationState
-
AuthorizationState
- Throws:
IOException
-
-
Method Details
-
green
-
isNullOrGreen
-
red
-
getTimestamp
-
getStatus
-
getLastAuthError
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-