deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Dennis <>
Subject RE: deltaspike and authorization
Date Wed, 04 Sep 2013 17:57:50 GMT
Multiple ways of going about this... but since DS was all about annotations (and Mark and Jason
will probably laugh at this.. but)

public class InlineSecuritiesBean {

        public boolean isAdmin(){
                boolean result = false;
                try {
                        result = executeAdmin();
                } catch (Exception e) {
                        //log something
                return result;

        private boolean executeAdmin() {
                return true;

Used this type of structure for each of my roles I defined. Not quite as slick as the old
seam way.. but this way I could use it pretty much anywhere without extending or maintaining
a session bean with a role list in it and test with the whole array.contains mess. just use
the annotations and let DS do the rest.

best regards,

Nathan Dennis | Software Developer
732 Greenwood Street | Albemarle, NC | 28001
Main (800) 230-7525 | Direct: 704-986-7211 | Mobile 704.984.0829 |

-----Original Message-----
From: Kelly Goedert []
Sent: Wednesday, September 04, 2013 1:50 PM
To: users
Subject: deltaspike and authorization


using the direction given to me in my previous question, I was able to implement an authentication
mechanism in my app using picketlink.

I remember that in seam 3, I could use something like this on a xhtml <h:commandButton
... rendered="#{identity.hasRole('some role name')}">

I could not find this in picketlink. According to this page
is not available. Is there anything on deltaspike to implement this?

Or I should be asking this on a picketlink forum?



[]Please consider the environment before printing
this email.
WARNING: This email is intended solely for the person or entity to which it is addressed and
may contain confidential and/or privileged information. Any review, dissemination, copying,
printing or other use of the email by persons or entities other than the addressee is prohibited.
If you have received this email in error, please contact the sender immediately and delete
the material from any computer. If you are unable to determine the sender of this email, please
email Monarch at or contact us at toll free (800) 230-7525, and advise
us of the error.

View raw message