public class Model extends Policy
| Constructor and Description |
|---|
Model() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDef(java.lang.String sec,
java.lang.String key,
java.lang.String value)
addDef adds an assertion to the model.
|
void |
loadModel(java.lang.String path)
loadModel loads the model from model CONF file.
|
void |
loadModelFromText(java.lang.String text)
loadModelFromText loads the model from the text.
|
void |
printModel()
printModel prints the model to the log.
|
addPolicy, buildRoleLinks, clearPolicy, getFilteredPolicy, getPolicy, getValuesForFieldInPolicy, hasPolicy, printPolicy, removeFilteredPolicy, removePolicypublic boolean addDef(java.lang.String sec,
java.lang.String key,
java.lang.String value)
sec - the section, "p" or "g".key - the policy type, "p", "p2", .. or "g", "g2", ..value - the policy rule, separated by ", ".public void loadModel(java.lang.String path)
path - the path of the model file.public void loadModelFromText(java.lang.String text)
text - the model text.public void printModel()
Copyright © 2017-2018. All Rights Reserved.