public class PolicyModelTranslator extends Object
PolicySourceModel
structure to a normalized Policy
expression.
The resulting Policy is disconnected from its model, thus any additional changes in the model will have no effect on the Policy
expression.Modifier | Constructor and Description |
---|---|
protected |
PolicyModelTranslator(Collection<PolicyAssertionCreator> creators) |
Modifier and Type | Method and Description |
---|---|
static PolicyModelTranslator |
getTranslator()
Method returns thread-safe policy model translator instance.
|
Policy |
translate(PolicySourceModel model)
The method translates
PolicySourceModel structure into normalized Policy expression. |
protected PolicyModelTranslator(Collection<PolicyAssertionCreator> creators) throws PolicyException
PolicyException
public static PolicyModelTranslator getTranslator() throws PolicyException
PolicyException
- If instantiating a PolicyAssertionCreator failed.public Policy translate(PolicySourceModel model) throws PolicyException
PolicySourceModel
structure into normalized Policy
expression. The resulting Policy
is disconnected from its model, thus any additional changes in model will have no effect on the Policy expression.model
- the model to be translated into normalized policy expression. Must not be null
.PolicyException
- in case of translation failureCopyright © 2006–2014 Oracle Corporation. All rights reserved.