GitHub user rdicroce opened a pull request:

    https://github.com/apache/deltaspike/pull/44

    Add ViewAccessHandler API and tests for @Secured

    The API allows applications to programmatically check if access is allowed. 
Currently you can kinda, sorta do that by injecting ViewRootAccessHandler, but 
that's an implementation class and its API is not ideal.
    
    I also added tests to verify that the Secured annotations get evaluated 
correctly, since none existed. I did not try them with the old code, so I 
cannot guarantee that the behavior is 100% identical, but I tested all of the 
cases I could think of.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rdicroce/deltaspike viewAccessHandlerApi

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/deltaspike/pull/44.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #44
    
----
commit a29449f12067e8e7a3b0324cf39653a9c5860143
Author: Richard DiCroce <[email protected]>
Date:   2015-09-14T18:27:38Z

    Add ViewAccessHandler API and tests for @Secured
    
    API allows applications to programmatically check if access is allowed.
    Tests added to verify behavior since none existed.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to