Interface PolicyOperation
- All Known Subinterfaces:
BooleanOperation
,StringListOperation
,StringOperation
,UntypedOperation
- All Known Implementing Classes:
AddOperation
,DefaultOperation
,EssentialOperation
,OneOfOperation
,SubsetOfOperation
,SupersetOfOperation
,ValueOperation
public interface PolicyOperation
Federation policy operation.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name identifying the policy operation.merge
(PolicyOperation other) Merges a policy operation.void
parseConfiguration
(Object jsonEntity) Parses a federation policy operation configuration from the specified JSON entity.Returns a JSON object entry representation of the policy operation.
-
Method Details
-
getOperationName
Returns the name identifying the policy operation.- Returns:
- The operation name.
-
parseConfiguration
Parses a federation policy operation configuration from the specified JSON entity.- Parameters:
jsonEntity
- The JSON entity, must represent a boolean, number, string, array or object.null
if not specified.- Throws:
ParseException
- On a parse exception.
-
toJSONObjectEntry
Returns a JSON object entry representation of the policy operation.- Returns:
- The JSON object entry, with a boolean, number, string, array or object value.
-
merge
Merges a policy operation.- Parameters:
other
- The policy to merge. Must be of the same type and notnull
.- Returns:
- The resulting new policy operation.
- Throws:
PolicyViolationException
- On a merge exception.
-