Class PolicyParser
java.lang.Object
org.elasticsearch.entitlement.runtime.policy.PolicyParser
A parser to parse policy files for entitlements.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final ParseFieldprotected final Stringprotected final XContentParser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PolicyParserExceptionnewPolicyParserException(String message) protected PolicyParserExceptionnewPolicyParserException(String scopeName, String message) protected PolicyParserExceptionnewPolicyParserException(String scopeName, String entitlementType, String message) protected EntitlementparseEntitlement(String scopeName, String entitlementType) protected ScopeparseScope(String scopeName)
-
Field Details
-
ENTITLEMENTS_PARSEFIELD
-
entitlementPackageName
-
policyParser
-
policyName
-
-
Constructor Details
-
PolicyParser
- Throws:
IOException
-
-
Method Details
-
parsePolicy
-
parseScope
- Throws:
IOException
-
parseEntitlement
- Throws:
IOException
-
newPolicyParserException
-
newPolicyParserException
-
newPolicyParserException
protected PolicyParserException newPolicyParserException(String scopeName, String entitlementType, String message)
-