You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by rdicroce <gi...@git.apache.org> on 2015/09/14 20:32:02 UTC

[GitHub] deltaspike pull request: Add ViewAccessHandler API and tests for @...

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 <rd...@lapis.com>
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] deltaspike pull request #44: Add ViewAccessHandler API and tests for @Secure...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---