コード例 #1
0
 @Override
 public List<ProjectPermission> listProjectPermissions(long projectId) {
   List<ProjectPermission> permissions = projectPermissionDao.selectByProjectId(projectId);
   // TODO performance tuning
   for (ProjectPermission permission : permissions) {
     fillProjectPermission(permission);
   }
   return permissions;
 }
コード例 #2
0
 @Override
 public void createProjectPermission(ProjectPermission permission) {
   projectPermissionDao.insert(permission);
   fillProjectPermission(permission);
 }
コード例 #3
0
 @Override
 public void removeProjectPermission(ProjectPermission permission) {
   projectPermissionDao.update(permission);
   fillProjectPermission(permission);
 }
コード例 #4
0
 @Override
 public ProjectPermission getProjectPermissioin(long permissionId) {
   ProjectPermission permission = projectPermissionDao.select(permissionId);
   return fillProjectPermission(permission);
 }