WEB-INF.cftags.component coldbox.system.FrameworkSupertype coldbox.system.Interceptor coldbox.system.interceptors.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 |
---|
None |
Method Detail |
---|
Verifies that the user is in any role
rule
- The rule we are validating.event
- The event object.interceptData
- interceptData of intercepted info.This is the configuration method
Get the current user validator, if any.
Verifies that the current event is in a given pattern list
currentEvent
- The current event.patternList
- The list pattern to test.Check to see if using the validator
Load rules from the database
Load rules from an IOC bean
Load rules from JSON file
Load rules from a model object
Load rules from the OCM
Method to detect the rule source and reload the security rules in the interceptor
Load rules from XML file
event
- The event object.interceptData
- interceptData of intercepted info.event
- The event object.interceptData
- interceptData of intercepted info.Process security rules. This method is called from an interception point
event
- The event object.interceptData
- interceptData of intercepted info.currentEvent
- The possible event syntax to checkConvert a rules query to our array format
qRules
- The query to convertRegister a validator object with this interceptor
validatorObject
- The validator object to registerValidate the rules source property
Validate a query as a rules query, else throw error.
qRules
- The query to check