public class AdminProjectUtilities extends Object
Constructor | Description |
---|---|
AdminProjectUtilities() |
Modifier and Type | Method | Description |
---|---|---|
static void |
handleInitialProjectMembers(Project project,
Set<Integer> userIds,
Set<Integer> permissions,
ProjectService projectService,
UserService userService) |
When creating project, initial set of users with specific set of rights
can be defined.
|
static void |
setFormProperties(Project project,
ProjectService projectService,
org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMessages errors) |
|
static void |
updateProjectOwners(Project project,
Set<Integer> userIds,
ProjectService projectService,
UserService userService) |
Setup permissions for updated project-owners.
|
public static void handleInitialProjectMembers(Project project, Set<Integer> userIds, Set<Integer> permissions, ProjectService projectService, UserService userService)
project
- the projectuserIds
- the user IDspermissions
- the permissionsprojectService
- the project serviceuserService
- the user servicepublic static void updateProjectOwners(Project project, Set<Integer> userIds, ProjectService projectService, UserService userService)
project
- the projectuserIds
- the user IDsuserService
- the user servicepublic static void setFormProperties(Project project, ProjectService projectService, org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMessages errors) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
Copyright © 2002–2019 itracker. All rights reserved.