public abstract class OrgPolicyParser
extends java.lang.Object
OrgModelManager provides facilities to syntactically parse and
verify OrgPolicies and return them as an easy to use object structure.| Constructor and Description |
|---|
OrgPolicyParser() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
format(EntityExpression entityExpression)
Takes the given
EntityExpression and formats it back to an
OrgPolicy string. |
static OrgPolicyParser |
getInstance(java.util.logging.Logger logger)
Returns an
OrgPolicyParser using the designated logger. |
abstract EntityExpression |
parse(java.lang.String orgPolicy,
OrgPolicyReport report,
boolean reportOnly,
boolean binaryReport,
boolean rejectParameterReferences,
TokenInfoContainer tokenInfos)
This method will parse the given OrgPolicy.
|
abstract EntityExpression |
parse(java.lang.String orgPolicy,
OrgPolicyReport report,
TokenInfoContainer tokenInfos)
This method will parse the given OrgPolicy and return it as an object
structure.
|
public abstract EntityExpression parse(java.lang.String orgPolicy, OrgPolicyReport report, TokenInfoContainer tokenInfos)
null is returned.
Use report.getCheckResult() != ResultType.ERROR to check
whether the parsing was successful.
This parse method will...
orgPolicy - the OrgPolicy to be parsedreport - a report that will be filled with an entry for each
encountered problem; null is not allowed!tokenInfos - an optional container where TokenInfos will be
filled innull if there were any errorspublic abstract EntityExpression parse(java.lang.String orgPolicy, OrgPolicyReport report, boolean reportOnly, boolean binaryReport, boolean rejectParameterReferences, TokenInfoContainer tokenInfos)
reportOnly is
true it will return the policy as an object structure. It will
return null if reportOnly is true or there were any
errors in the policy.
If no detailed report is required, set binaryReport to true.
In case of failure the report will only contain one entry.
In any case, use report.getCheckResult() != ResultType.ERROR to
check whether the parsing was successful.
This parse method will...
orgPolicy - the OrgPolicy to be parsedreport - a report that will be filled with an entry for each
encountered problem; null is not allowed!reportOnly - whether only the report (and no object structure) is
requiredbinaryReport - whether the report should only indicate success or
failure and not contain any more detailsrejectParameterReferences - whether parameter references in the org
policy should be rejected, i.e. treated as an error (see
SystemDataConsumer)tokenInfos - an optional container where TokenInfos will be
filled innull if there were any errors or reportOnly is
truepublic abstract java.lang.String format(EntityExpression entityExpression)
EntityExpression and formats it back to an
OrgPolicy string.entityExpression - the EntityExpression to be returned as
OrgPolicy stringEntityExpression as OrgPolicy stringpublic static OrgPolicyParser getInstance(java.util.logging.Logger logger)
OrgPolicyParser using the designated logger.OrgPolicyParser using the designated logger.