private void addPermission(FolderEntity folder, GroupEntity group, FolderPermissionType perm) { FolderPermissionEntity p = new FolderPermissionEntity(folder.getId(), perm, group.getId()); getDao().getFolderPermissionDao().save(p); }
private void addUserGroup(UserEntity user, GroupEntity group) { UserGroupEntity userGroup = new UserGroupEntity(group.getId(), user.getId()); getDao().getUserGroupDao().save(userGroup); }