hi all..
is there a way to pass a collection of authorities in the annotation of an action for controller like
i want to configure authorities list at one place say in an interface where i can collect all the authorites list
then i want use there reference in the annotations of the controller.
my interface for the authorities collection is some thing like
public interface ModuleAuthList {
def w_BillingPlanAuth = [ 'Admin', 'Cbis_Oprtr', 'w_BPlan',]
def r_BillingPlanAuth = [ 'Admin', 'Cbis_Oprtr', 'w_BPlan','r_BPlan',]
............
}
now i want to user this authority group in different controllers
like
@Secured(['IS_AUTHENTICATED_REMEMBERED'])
class HomeController {
@Secured(ModuleAuthList.w_BillingPlanAuth)
def index = {
....... do some codes....
}
or is there other alternatives ways to collect authorities at one place and use them at other codes stuff in order to prevent redundancy and consistancy issues
thanks in advance!!
Madan Sen