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); } } }
public CmsRole update(CmsRole bean, Set<String> perms) { Updater<CmsRole> updater = new Updater<CmsRole>(bean); bean = dao.updateByUpdater(updater); bean.setPerms(perms); return bean; }
public CmsRole save(CmsRole bean, Set<String> perms) { bean.setPerms(perms); dao.save(bean); return bean; }