Examples of addSecurityRoleGroup()


Examples of org.activiti.explorer.identity.LoggedInUserImpl.addSecurityRoleGroup()

        loggedInUser = new LoggedInUserImpl(user, password);
        List<Group> groups = identityService.createGroupQuery().groupMember(user.getId()).list();
        for (Group group : groups) {
 
          if (Constants.SECURITY_ROLE.equals(group.getType())) {
            loggedInUser.addSecurityRoleGroup(group);
            if (Constants.SECURITY_ROLE_USER.equals(group.getId())) {
              loggedInUser.setUser(true);
            }
            if (Constants.SECURITY_ROLE_ADMIN.equals(group.getId())) {
              loggedInUser.setAdmin(true);
View Full Code Here

Examples of org.activiti.explorer.identity.LoggedInUserImpl.addSecurityRoleGroup()

            if (Constants.SECURITY_ROLE_ADMIN.equals(group.getId())) {
              loggedInUser.setAdmin(true);
            }
          } else if (ExplorerApp.get().getAdminGroups() != null
                      && ExplorerApp.get().getAdminGroups().contains(group.getId())) {
            loggedInUser.addSecurityRoleGroup(group);
            loggedInUser.setAdmin(true);
          } else if (ExplorerApp.get().getUserGroups() != null
                  && ExplorerApp.get().getUserGroups().contains(group.getId())) {
            loggedInUser.addSecurityRoleGroup(group);
            loggedInUser.setUser(true);
View Full Code Here

Examples of org.activiti.explorer.identity.LoggedInUserImpl.addSecurityRoleGroup()

                      && ExplorerApp.get().getAdminGroups().contains(group.getId())) {
            loggedInUser.addSecurityRoleGroup(group);
            loggedInUser.setAdmin(true);
          } else if (ExplorerApp.get().getUserGroups() != null
                  && ExplorerApp.get().getUserGroups().contains(group.getId())) {
            loggedInUser.addSecurityRoleGroup(group);
            loggedInUser.setUser(true);
          } else {
            loggedInUser.addGroup(group);
          }
         
View Full Code Here

Examples of org.activiti.explorer.identity.LoggedInUserImpl.addSecurityRoleGroup()

      // Fetch and cache user data
      loggedInUser = new LoggedInUserImpl(user, password);
      List<Group> groups = identityService.createGroupQuery().groupMember(user.getId()).list();
      for (Group group : groups) {
        if (Constants.SECURITY_ROLE.equals(group.getType())) {
          loggedInUser.addSecurityRoleGroup(group);
          if (Constants.SECURITY_ROLE_USER.equals(group.getId())) {
            loggedInUser.setUser(true);
          }
          if (Constants.SECURITY_ROLE_ADMIN.equals(group.getId())) {
            loggedInUser.setAdmin(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.