Results 1 to 3 of 3

Thread: Custom @Secured Annotation for Enums

  1. #1
    Join Date
    Feb 2011
    Posts
    8

    Default Custom @Secured Annotation for Enums

    Hi there,

    this is my first post!

    I want to define a custom @Secured-Annotation, wich can handle Enums like that:

    Code:
    public interface MyDAO {
    
        @MySecured(Right.Admin)
        public List<OmnibusOrder> doSomethingIncredible();
    
    }
    Is there a Way to configure Spring Security to use this @MySecured-Annotation with my Right-Enum?

    thx for any help.
    Toast

  2. #2
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    No, but you'll find an issue in Jira which covers exactly this scenario.

    As it is you'd have to write the SecurityMetadataSource implementation yourself.
    Spring - by Pivotal
    twitter @tekul

  3. #3
    Join Date
    Feb 2011
    Posts
    8

    Default

    Thx for the tip. I will try to get my own Implementation of SecurityMetadataSource till this is fixed!

    If i get it working, i will share it in this Thread!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •