Rather than complicate things, you may
just want to break the method into 2: createBusinessAccount and
createConsumerAccount since you obviously have different business rules
regarding them. From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Doody, John I'm new to Acegi Security and I'm evaluating how it works
and at the moment I'm not finding a way to declare method-level security with
differing parameters. Is this possible with Acegi Security?
To attempt to make my question clearer, here is an XML snippet of what I'm
attempting: <property name="objectDefinitionSource"> I've got the same method which allows for different
parameters. I don't want a principle with a ROLE_USER authority to access
the method if they attempt to create a business account with the following
method call:
com.example.Service.createAccount(AccountType.BUSINESS) Thank you for the help. John |
Title: Message
- [Acegisecurity-developer] Securing methods to the parameter ... Doody, John
- March, Andres