public abstract class Policy extends Object
Constructor and Description |
---|
Policy() |
Modifier and Type | Method and Description |
---|---|
protected oasis.names.tc.xacml._3_0.core.schema.wd_17.MatchType |
createDynamicMatch(String key,
String value) |
protected oasis.names.tc.xacml._3_0.core.schema.wd_17.MatchType |
createMatch(String key,
String value) |
protected Map<String,String> |
createPolicy(Path policyPath,
Object policyData) |
static String |
getActionHome() |
static String |
getConfigHome() |
abstract Object |
getCorrectPolicyDataObject()
Return the data field of the PolicyAdapter that will be used when saving this policy
with the savePolicies method.
|
Path |
getFinalPolicyPath() |
protected Path |
getNextFilename(Path parent,
String policyType,
String polcyFileName,
Integer version) |
protected Path |
getNextLoopFilename(Path parentPath,
String policyType,
String policyConfigType,
String policyFileName,
Integer version) |
protected String |
getParentPathSubScopeDir() |
protected static boolean |
isJSONValid(String data) |
protected boolean |
isNumeric(String str) |
boolean |
isPolicyExists() |
boolean |
isPreparedToSave() |
abstract boolean |
prepareToSave() |
abstract Map<String,String> |
savePolicies() |
void |
setFinalPolicyPath(Path finalPolicyPath) |
void |
setPolicyExists(boolean policyExists) |
protected void |
setPreparedToSave(boolean preparedToSave) |
boolean |
validateConfigForm() |
public static final String GET_INT_TYPE
public static final String GET_STRING_TYPE
public static final String ECOMPID
public static final String CONFIGID
public static final String CLOSEDLOOPID
public static final String CONFIG_POLICY
public static final String ACTION_POLICY
public static final String DECISION_POLICY
protected String policyName
public static final String CATEGORY_RECIPIENT_SUBJECT
public static final String CATEGORY_RESOURCE
public static final String CATEGORY_ACTION
public static final String CATEGORY_ACCESS_SUBJECT
public static final String ACTION_ID
public static final String SUBJECT_ID
public static final String RESOURCE_ID
public static final String FUNTION_INTEGER_ONE_AND_ONLY
public static final String FUNCTION_STRING_ONE_AND_ONLY
public static final String FUNCTION_BOOLEAN_ONE_AND_ONLY
public static final String FUNCTION_STRING_EQUAL
public static final String FUNCTION_STRING_REGEX_MATCH
public static final String FUNCTION_STRING_EQUAL_IGNORE
public static final String INTEGER_DATATYPE
public static final String BOOLEAN_DATATYPE
public static final String STRING_DATATYPE
public static final String URI_DATATYPE
public static final String RULE_VARIABLE
public static final String EMPTY_STRING
public static String CONFIG_HOME
public static String ACTION_HOME
public static String CONFIG_URL
public PolicyRestAdapter policyAdapter
public Path getFinalPolicyPath()
public void setFinalPolicyPath(Path finalPolicyPath)
public abstract Object getCorrectPolicyDataObject()
protected oasis.names.tc.xacml._3_0.core.schema.wd_17.MatchType createMatch(String key, String value)
protected oasis.names.tc.xacml._3_0.core.schema.wd_17.MatchType createDynamicMatch(String key, String value)
protected boolean isNumeric(String str)
protected static boolean isJSONValid(String data)
protected Path getNextFilename(Path parent, String policyType, String polcyFileName, Integer version)
protected Path getNextLoopFilename(Path parentPath, String policyType, String policyConfigType, String policyFileName, Integer version)
public static String getConfigHome()
public static String getActionHome()
protected String getParentPathSubScopeDir()
public boolean validateConfigForm()
public boolean isPreparedToSave()
protected void setPreparedToSave(boolean preparedToSave)
preparedToSave
- the preparedToSave to setpublic boolean isPolicyExists()
public void setPolicyExists(boolean policyExists)
Copyright © 2018. All rights reserved.