Package org.jboss.errai.bus.server.annotations.security

Examples of org.jboss.errai.bus.server.annotations.security.RequireRoles


                        } else if (clazz.isAnnotationPresent(LoadTool.class)
                                && (!applyFilter || enabledTools.contains(clazz.getName()))) {
                            LoadTool loadTool = clazz.getAnnotation(LoadTool.class);

                            if (clazz.isAnnotationPresent(RequireRoles.class)) {
                                RequireRoles requireRoles = clazz.getAnnotation(RequireRoles.class);

                                StringBuilder rolesBuilder = new StringBuilder("new String[] {");
                                String[] roles = requireRoles.value();

                                for (int i = 0; i < roles.length; i++) {
                                    rolesBuilder.append("\"").append(roles[i].trim()).append("\"");
                                    if ((i + 1) < roles.length) rolesBuilder.append(", ");
                                }
View Full Code Here


        LoadTool loadTool = clazz.getAnnotation(LoadTool.class);

        logger.log(TreeLogger.Type.INFO, "Adding Errai Tool: " + clazz.getQualifiedSourceName());

        if (clazz.isAnnotationPresent(RequireRoles.class)) {
          RequireRoles requireRoles = clazz.getAnnotation(RequireRoles.class);

          StringBuilder rolesBuilder = new StringBuilder("new String[] {");
          String[] roles = requireRoles.value();

          for (int i = 0; i < roles.length; i++) {
            rolesBuilder.append("\"").append(roles[i].trim()).append("\"");
            if ((i + 1) < roles.length) rolesBuilder.append(", ");
          }
View Full Code Here

        LoadTool loadTool = clazz.getAnnotation(LoadTool.class);

        logger.log(TreeLogger.Type.INFO, "Adding Errai Tool: " + clazz.getQualifiedSourceName());

        if (clazz.isAnnotationPresent(RequireRoles.class)) {
          RequireRoles requireRoles = clazz.getAnnotation(RequireRoles.class);

          StringBuilder rolesBuilder = new StringBuilder("new String[] {");
          String[] roles = requireRoles.value();

          for (int i = 0; i < roles.length; i++) {
            rolesBuilder.append("\"").append(roles[i].trim()).append("\"");
            if ((i + 1) < roles.length) rolesBuilder.append(", ");
          }
View Full Code Here

TOP

Related Classes of org.jboss.errai.bus.server.annotations.security.RequireRoles

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.