|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.FrameworkSupertype
coldbox.system.Interceptor
coldbox.system.interceptors.Security
public class Security
This is a security interceptor
| Method Summary | |
|---|---|
void |
Configure()
This is the configuration method for your interceptors |
private void |
RulesSourceChecks()
Validate the rules source property |
private boolean |
_isUserInValidState(struct rule)
Verifies that the user is in any role |
void |
afterAspectsLoad(RequestContext event, struct interceptData)
|
private any |
getValidator()
Get validator |
private boolean |
isEventInPattern(string currentEvent, string 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 |
loadModelRules()
Load rules from a model object |
private void |
loadOCMRules()
Load rules from the OCM |
private void |
loadXMLRules()
Load rules from XML file |
void |
preEvent(RequestContext event, struct interceptData)
|
void |
preProcess(RequestContext event, struct interceptData)
|
void |
processRules(RequestContext event, struct interceptData, string 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 |
setValidator(any validator)
Set validator |
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, getProperty, getproperties, init, propertyExists, setProperty, setproperties, unregister
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Method Detail |
|---|
public void Configure()
Configure
in class
Interceptor
private void RulesSourceChecks()
private boolean _isUserInValidState(struct rule)
rule - The rule we are validating.public void afterAspectsLoad(RequestContext event, struct interceptData)
event - The event object.interceptData - interceptData of intercepted info.private any getValidator()
private boolean isEventInPattern(string currentEvent, string patternList)
currentEvent - The current event.patternList - The list to test.private boolean isValidatorUsed()
private void loadDBRules()
private void loadIOCRules()
private void loadModelRules()
private void loadOCMRules()
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(RequestContext event, struct interceptData, string currentEvent)
event - The event object.interceptData - interceptData of intercepted info.currentEvent - The event to checkprivate array queryToArray(query qRules)
qRules - The query to convertpublic void registerValidator(any validatorObject)
validatorObject - The validator object to registerprivate void setValidator(any validator)
validatorprivate void validateRulesQuery(query qRules)
qRules - The query to check
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||