| org.emforge.projectmanager.ProjectService
All known Subclasses: org.emforge.projectmanager.impl.ProjectServiceImpl,
ProjectService | public interface ProjectService (Code) | | ProjectService is responsible for all operations related to projects.
Service should be used everywhere (instead of currently used DAO) for security.
The mathods check if user allowed to do some action or not.
It is required to inform GUI about availability some actions.
author: akakunin |
Method Summary | |
public void | addUser(ProjectDO i_project, UserDetails i_user, Role i_role) | public boolean | canChangeMilestone(MilestoneDO i_milestone) | public boolean | canChangeProject(ProjectDO i_project) | public boolean | canCreateMilestone(ProjectDO i_project) | public boolean | canCreateProject() | public boolean | canDeleteMilestone(MilestoneDO i_milestone) | public boolean | canDeleteProject(ProjectDO i_project) | public boolean | canGetMilestone(Long i_milestoneId) | public boolean | canGetMilestone(String i_name) | public boolean | canGetMilestones(ProjectDO i_project) | public boolean | canGetProject(Long i_projectId) | public boolean | canGetProject(String i_projectWikiName) | public void | deleteMilestone(MilestoneDO i_milestone) | public void | deleteProject(ProjectDO i_project) | public void | deleteUserRole(ProjectDO i_project, UserDetails i_user, Role i_role) | public Collection<EmForgeUserDetails> | getAllProjectUsers(ProjectDO i_project) | public Collection<ProjectDO> | getAllProjects() | public Collection<Role> | getAvialableRoles(ProjectDO i_project) | public Collection<MilestoneDO> | getClosedMilestones(ProjectDO i_project) | public MilestoneDO | getMilestone(Long i_milestoneId) | public MilestoneDO | getMilestone(String i_name) | public Collection<MilestoneDO> | getMilestones(ProjectDO i_project) | public Collection<MilestoneDO> | getOpenedMilestones(ProjectDO i_project) | public ProjectDO | getProject(Long i_projectId) | public ProjectDO | getProject(String i_projectWikiName) | public Collection<EmForgeUserDetails> | getUsers(ProjectDO i_project, String i_roleName) | public Collection<EmForgeUserDetails> | getUsers(ProjectDO i_project, Role i_role) | public boolean | hasRole(ProjectDO i_project, UserDetails i_user, Role i_role) | public boolean | hasRole(ProjectDO i_project, UserDetails i_user, String i_role) Returns true - if specified user has specified role in project. | public void | initProjectRoles(ProjectDO project) | public void | saveMilestone(MilestoneDO i_milestone) | public void | saveProject(ProjectDO i_project) |
ROLE_DEVELOPER | final public static String ROLE_DEVELOPER(Code) | | |
ROLE_MANAGER | final public static String ROLE_MANAGER(Code) | | Predefined roles for Projects
|
canChangeMilestone | public boolean canChangeMilestone(MilestoneDO i_milestone)(Code) | | Parameters: i_milestone - |
canChangeProject | public boolean canChangeProject(ProjectDO i_project)(Code) | | Parameters: i_project - |
canCreateMilestone | public boolean canCreateMilestone(ProjectDO i_project)(Code) | | Parameters: i_project - |
canCreateProject | public boolean canCreateProject()(Code) | | |
canDeleteMilestone | public boolean canDeleteMilestone(MilestoneDO i_milestone)(Code) | | Parameters: i_milestone - |
canDeleteProject | public boolean canDeleteProject(ProjectDO i_project)(Code) | | Parameters: i_project - |
canGetMilestone | public boolean canGetMilestone(Long i_milestoneId)(Code) | | Parameters: i_milestoneId - |
canGetMilestone | public boolean canGetMilestone(String i_name)(Code) | | Parameters: i_name - |
canGetMilestones | public boolean canGetMilestones(ProjectDO i_project)(Code) | | Parameters: i_project - |
canGetProject | public boolean canGetProject(Long i_projectId)(Code) | | Parameters: i_projectId - |
canGetProject | public boolean canGetProject(String i_projectWikiName)(Code) | | Parameters: i_projectWikiName - |
hasRole | public boolean hasRole(ProjectDO i_project, UserDetails i_user, String i_role) throws AccessDeniedException, ProjectServiceException(Code) | | Returns true - if specified user has specified role in project. Used role name as argument
|
initProjectRoles | public void initProjectRoles(ProjectDO project)(Code) | | Parameters: project - |
|
|