ColdBox Platform Version 2.6.3

coldbox.system.interceptors
Class security

WEB-INF.cftags.component
        extended by coldbox.system.frameworkSupertype
            extended by coldbox.system.interceptor
                extended by coldbox.system.interceptors.security

public class security
extends interceptor

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. This method is called from an interception point
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
afterCacheElementInsert, afterCacheElementRemoved, afterConfigurationLoad, afterHandlerCreation, afterPluginCreation, appendToBuffer, clearBuffer, getBufferObject, getBufferString, getInterceptorService, getProperty, getproperties, init, onException, postEvent, postProcess, postRender, preRender, propertyExists, sessionEnd, sessionStart, setProperty, setproperties, unregister
 
Methods inherited from class coldbox.system.frameworkSupertype
abort, announceInterception, dump, getColdboxOCM, getDatasource, getDebugMode, getHash, getInstance, getInterceptor, getMailSettings, getModel, getMyPlugin, getPlugin, getResource, getSetting, getSettingStructure, getSettingsBean, getcontroller, getfwLocale, htmlhead, include, includeUDF, locateDirectoryPath, locateFilePath, persistVariables, populateModel, relocate, renderExternalView, renderView, rethrowit, runEvent, setDebugMode, setNextEvent, setNextRoute, setSetting, setcontroller, settingExists, throw
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

Configure

public void Configure()
This is the configuration method for your interceptors

Overrides:
Configure in class interceptor

RulesSourceChecks

private void RulesSourceChecks()
Validate the rules source property


_isUserInValidState

private boolean _isUserInValidState(struct rule)
Verifies that the user is in any role

Parameters:
rule - The rule we are validating.

afterAspectsLoad

public void afterAspectsLoad(requestContext event, struct interceptData)

Overrides:
afterAspectsLoad in class interceptor
Parameters:
event - The event object.
interceptData - interceptData of intercepted info.

getvalidator

private any getvalidator()
Get validator


isEventInPattern

private boolean isEventInPattern(string currentEvent, string patternList)
Verifies that the current event is in a given pattern list

Parameters:
currentEvent - The current event.
patternList - The list to test.

isValidatorUsed

private boolean isValidatorUsed()
Check to see if using the validator


loadDBRules

private void loadDBRules()
Load rules from the database


loadIOCRules

private void loadIOCRules()
Load rules from an IOC bean


loadModelRules

private void loadModelRules()
Load rules from a model object


loadOCMRules

private void loadOCMRules()
Load rules from the OCM


loadXMLRules

private void loadXMLRules()
Load rules from XML file


preEvent

public void preEvent(requestContext event, struct interceptData)

Overrides:
preEvent in class interceptor
Parameters:
event - The event object.
interceptData - interceptData of intercepted info.

preProcess

public void preProcess(requestContext event, struct interceptData)

Overrides:
preProcess in class interceptor
Parameters:
event - The event object.
interceptData - interceptData of intercepted info.

processRules

public void processRules(requestContext event, struct interceptData, string currentEvent)
Process security rules. This method is called from an interception point

Parameters:
event - The event object.
interceptData - interceptData of intercepted info.
currentEvent - The event to check

queryToArray

private array queryToArray(query qRules)
Convert a rules query to our array format

Parameters:
qRules - The query to convert

registerValidator

public void registerValidator(any validatorObject)
Register a validator object with this interceptor

Parameters:
validatorObject - The validator object to register

setvalidator

private void setvalidator(any validator)
Set validator

Parameters:
validator

validateRulesQuery

private void validateRulesQuery(query qRules)
Validate a query as a rules query, else throw error.

Parameters:
qRules - The query to check

ColdBox Platform Version 2.6.3