Package org.jboss.seam.security.events

Examples of org.jboss.seam.security.events.NotLoggedInEvent


    public void checkRole(String roleType, String group, String groupType) {
        tryLogin();

        if (!hasRole(roleType, group, groupType)) {
            if (!isLoggedIn()) {
                beanManager.fireEvent(new NotLoggedInEvent());
                throw new NotLoggedInException();
            } else {
                beanManager.fireEvent(new NotAuthorizedEvent());
                throw new AuthorizationException(String.format(
                        "Authorization check failed for role [%s:%s:%s]", roleType, group, groupType));
View Full Code Here


    public void checkGroup(String group, String groupType) {
        tryLogin();

        if (!inGroup(group, groupType)) {
            if (!isLoggedIn()) {
                beanManager.fireEvent(new NotLoggedInEvent());
                throw new NotLoggedInException();
            } else {
                beanManager.fireEvent(new NotAuthorizedEvent());
                throw new AuthorizationException(String.format(
                        "Authorization check failed for group [%s:%s]", group, groupType));
View Full Code Here

        tryLogin();

        if (!hasPermission(target, action)) {
            if (!isLoggedIn()) {
                beanManager.fireEvent(new NotLoggedInEvent());
                throw new NotLoggedInException();
            } else {
                beanManager.fireEvent(new NotAuthorizedEvent());
                throw new AuthorizationException(String.format(
                        "Authorization check failed for permission[%s,%s]", target, action));
View Full Code Here

     
      if ( !hasRole(roleType, group, groupType) )
      {
         if ( !isLoggedIn() )
         {
            beanManager.fireEvent(new NotLoggedInEvent());
            throw new NotLoggedInException();
         }
         else
         {
            beanManager.fireEvent(new NotAuthorizedEvent());
View Full Code Here

     
      if ( !inGroup(group, groupType) )
      {
         if ( !isLoggedIn() )
         {
            beanManager.fireEvent(new NotLoggedInEvent());
            throw new NotLoggedInException();
         }
         else
         {
            beanManager.fireEvent(new NotAuthorizedEvent());
View Full Code Here

     
      if ( !hasPermission(target, action) )
      {
         if ( !isLoggedIn() )
         {
            beanManager.fireEvent(new NotLoggedInEvent());
            throw new NotLoggedInException();
         }
         else
         {
            beanManager.fireEvent(new NotAuthorizedEvent());
View Full Code Here

TOP

Related Classes of org.jboss.seam.security.events.NotLoggedInEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.