cbSecurity
CommunitySlackSupport
v1.x
v1.x
  • Introduction
  • Overview
  • How It Works
  • Declaring the Interceptor
    • XML Properties
    • JSON Properties
    • DB Properties
    • IOC Properties
    • OCM Properties
  • Security Rules
    • Sample JSON Rules
    • Sample XML Rules
  • _securedURL key
  • Default Security
  • Custom Security Validator Object
Powered by GitBook
On this page

Was this helpful?

Edit on Git
Export as PDF
  1. Declaring the Interceptor

IOC Properties

The following are properties used when the source of the rules is ioc or coming from an IoC module

Property

Type

Required

Default

Description

rulesBean

string

true if rulesSource = ioc

---

The bean name to ask the IoC module for that has the rules

rulesBeanMethod

string

true if rulesSource = ioc

---

The method in the bean to call that will return a query of rules

rulesBeanArgs

string

false

---

A comma-delimited list of arguments to send into the method. This is an optional argument and if not set, the method will be called with no arguments

interceptors = [
    {class="cbsecurity.interceptors.Security", name="ApplicationSecurity", properties={
        useRegex = true, rulesSource = "ioc", validatorModel = "SecurityService",
        rulesBean = "SecurityService", rulesBeanMethod = "getRules", rulesBeanArgs = "sorting=true"
    }}
];
PreviousDB PropertiesNextOCM Properties

Last updated 6 years ago

Was this helpful?