예제 #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;
 }