|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |
WEB-INF.cftags.componentcoldbox.system.FrameworkSupertype
coldbox.system.Interceptor
coldbox.system.interceptors.Security
public class Security
This is a security interceptor
Method Summary | |
---|---|
private boolean |
_isUserInValidState(struct rule)
Verifies that the user is in any role |
void |
afterAspectsLoad(any event, any interceptData)
|
void |
configure()
This is the configuration method |
any |
getValidator()
Get the current user validator, if any |
private boolean |
isInPattern(any currentEvent, any patternList)
Verifies that the current event is in a given pattern list |
private boolean |
isValidatorUsed()
Check to see if using the validator |
private void |
loadDBRules()
Load rules from the database |
private void |
loadIOCRules()
Load rules from an IOC bean |
private void |
loadJSONRules()
Load rules from JSON file |
private void |
loadModelRules()
Load rules from a model object |
private void |
loadOCMRules()
Load rules from the OCM |
any |
loadRules()
Method to detect the rule source and reload the security rules in the interceptor |
private void |
loadXMLRules()
Load rules from XML file |
void |
preEvent(RequestContext event, struct interceptData)
|
void |
preProcess(RequestContext event, struct interceptData)
|
void |
processRules(any event, any interceptData, any currentEvent)
Process security rules |
private array |
queryToArray(query qRules)
Convert a rules query to our array format |
void |
registerValidator(any validatorObject)
Register a validator object with this interceptor |
private void |
rulesSourceChecks()
Validate the rules source property |
private void |
validateRulesQuery(query qRules)
Validate a query as a rules query, else throw error |
Methods inherited from class coldbox.system.Interceptor |
---|
appendToBuffer, clearBuffer, getBufferObject, getBufferString, getInterceptorService, getProperties, getProperty, init, propertyExists, setProperties, setProperty, unregister
|
Methods inherited from class WEB-INF.cftags.component |
---|
|
Method Detail |
---|
private boolean _isUserInValidState(struct rule)
rule
- The rule we are validating.public void afterAspectsLoad(any event, any interceptData)
event
- The event object.interceptData
- interceptData of intercepted info.public void configure()
public any getValidator()
private boolean isInPattern(any currentEvent, any patternList)
currentEvent
- The current event.patternList
- The list pattern to test.private boolean isValidatorUsed()
private void loadDBRules()
private void loadIOCRules()
private void loadJSONRules()
private void loadModelRules()
private void loadOCMRules()
public any loadRules()
private void loadXMLRules()
public void preEvent(RequestContext event, struct interceptData)
event
- The event object.interceptData
- interceptData of intercepted info.public void preProcess(RequestContext event, struct interceptData)
event
- The event object.interceptData
- interceptData of intercepted info.public void processRules(any event, any interceptData, any currentEvent)
event
- The event object.interceptData
- interceptData of intercepted info.currentEvent
- The possible event syntax to checkprivate array queryToArray(query qRules)
qRules
- The query to convertpublic void registerValidator(any validatorObject)
validatorObject
- The validator object to registerprivate void rulesSourceChecks()
private void validateRulesQuery(query qRules)
qRules
- The query to check
|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |