示例#1
0
 public void deleteMembers(CmsRole role, Integer[] userIds) {
   Updater<CmsRole> updater = new Updater<CmsRole>(role);
   role = dao.updateByUpdater(updater);
   if (userIds != null) {
     CmsUser user;
     for (Integer uid : userIds) {
       user = userMng.findById(uid);
       role.delFromUsers(user);
     }
   }
 }
示例#2
0
 public CmsRole update(CmsRole bean, Set<String> perms) {
   Updater<CmsRole> updater = new Updater<CmsRole>(bean);
   bean = dao.updateByUpdater(updater);
   bean.setPerms(perms);
   return bean;
 }
示例#3
0
 public CmsRole save(CmsRole bean, Set<String> perms) {
   bean.setPerms(perms);
   dao.save(bean);
   return bean;
 }