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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OperationNamegetOperationName()Returns the name identifying the policy operation.PolicyOperationmerge(PolicyOperation other)Merges a policy operation.voidparseConfiguration(Object jsonEntity)Parses a federation policy operation configuration from the specified JSON entity.Map.Entry<String,Object>toJSONObjectEntry()Returns a JSON object entry representation of the policy operation.
-
-
-
Method Detail
-
getOperationName
OperationName getOperationName()
Returns the name identifying the policy operation.- Returns:
- The operation name.
-
parseConfiguration
void parseConfiguration(Object jsonEntity) throws ParseException
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.nullif not specified.- Throws:
ParseException- On a parse exception.
-
toJSONObjectEntry
Map.Entry<String,Object> 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
PolicyOperation merge(PolicyOperation other) throws PolicyViolationException
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.
-
-