Package org.apdplat.module.security.model

Examples of org.apdplat.module.security.model.UserGroup


     */
    @Override
    public void prepareForDelete(Integer[] ids){
        User loginUser=UserHolder.getCurrentLoginUser();
        for(int id :ids){
            UserGroup userGroup=getService().retrieve(UserGroup.class, id);
            boolean canDel=true;
            //获取拥有等待删除的角色的所有用户
            List<User> users=userGroup.getUsers();
            for(User user : users){
                if(loginUser.getId()==user.getId()){
                    canDel=false;
                }
            }
View Full Code Here


            String[] userGroupIds = userGroups.trim().split(",");
            for(String id : userGroupIds){
                String[] attr = id.split("-");
                if(attr.length == 2){
                    int userGroupId = Integer.parseInt(attr[1]);
                    UserGroup temp = serviceFacade.retrieve(UserGroup.class, userGroupId);
                    if(temp != null){
                        model.addUserGroup(temp);
                        LOG.debug("用户组 " + userGroupId + " 解析成功");
                    }
                }
View Full Code Here

TOP

Related Classes of org.apdplat.module.security.model.UserGroup

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.