Java Doc for ProjectService.java in  » Project-Management » EmForce » org » emforge » projectmanager » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Project Management » EmForce » org.emforge.projectmanager 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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


Field Summary
final public static  StringROLE_DEVELOPER
    
final public static  StringROLE_MANAGER
    
final public static  StringROLE_TESTER
    
final public static  StringROLE_USER
    


Method Summary
public  voidaddUser(ProjectDO i_project, UserDetails i_user, Role i_role)
    
public  booleancanChangeMilestone(MilestoneDO i_milestone)
    
public  booleancanChangeProject(ProjectDO i_project)
    
public  booleancanCreateMilestone(ProjectDO i_project)
    
public  booleancanCreateProject()
    
public  booleancanDeleteMilestone(MilestoneDO i_milestone)
    
public  booleancanDeleteProject(ProjectDO i_project)
    
public  booleancanGetMilestone(Long i_milestoneId)
    
public  booleancanGetMilestone(String i_name)
    
public  booleancanGetMilestones(ProjectDO i_project)
    
public  booleancanGetProject(Long i_projectId)
    
public  booleancanGetProject(String i_projectWikiName)
    
public  voiddeleteMilestone(MilestoneDO i_milestone)
    
public  voiddeleteProject(ProjectDO i_project)
    
public  voiddeleteUserRole(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  MilestoneDOgetMilestone(Long i_milestoneId)
    
public  MilestoneDOgetMilestone(String i_name)
    
public  Collection<MilestoneDO>getMilestones(ProjectDO i_project)
    
public  Collection<MilestoneDO>getOpenedMilestones(ProjectDO i_project)
    
public  ProjectDOgetProject(Long i_projectId)
    
public  ProjectDOgetProject(String i_projectWikiName)
    
public  Collection<EmForgeUserDetails>getUsers(ProjectDO i_project, String i_roleName)
    
public  Collection<EmForgeUserDetails>getUsers(ProjectDO i_project, Role i_role)
    
public  booleanhasRole(ProjectDO i_project, UserDetails i_user, Role i_role)
    
public  booleanhasRole(ProjectDO i_project, UserDetails i_user, String i_role)
     Returns true - if specified user has specified role in project.
public  voidinitProjectRoles(ProjectDO project)
    
public  voidsaveMilestone(MilestoneDO i_milestone)
    
public  voidsaveProject(ProjectDO i_project)
    

Field Detail
ROLE_DEVELOPER
final public static String ROLE_DEVELOPER(Code)



ROLE_MANAGER
final public static String ROLE_MANAGER(Code)
Predefined roles for Projects



ROLE_TESTER
final public static String ROLE_TESTER(Code)



ROLE_USER
final public static String ROLE_USER(Code)





Method Detail
addUser
public void addUser(ProjectDO i_project, UserDetails i_user, Role i_role) throws AccessDeniedException, ProjectServiceException(Code)
Add User into Project with specified Role



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 -



deleteMilestone
public void deleteMilestone(MilestoneDO i_milestone) throws AccessDeniedException, ProjectServiceException(Code)

Parameters:
  i_milestone -
throws:
  AccessDeniedException -
throws:
  ProjectServiceException -



deleteProject
public void deleteProject(ProjectDO i_project) throws AccessDeniedException, ProjectServiceException(Code)

Parameters:
  i_project -
throws:
  AccessDeniedException -
throws:
  ProjectServiceException -



deleteUserRole
public void deleteUserRole(ProjectDO i_project, UserDetails i_user, Role i_role) throws AccessDeniedException, ProjectServiceException(Code)
Delete User's Role from Project



getAllProjectUsers
public Collection<EmForgeUserDetails> getAllProjectUsers(ProjectDO i_project) throws AccessDeniedException, ProjectServiceException(Code)
Returns All users, has any role in the project



getAllProjects
public Collection<ProjectDO> getAllProjects() throws AccessDeniedException, ProjectServiceException(Code)
Basic Project Operations



getAvialableRoles
public Collection<Role> getAvialableRoles(ProjectDO i_project) throws AccessDeniedException, ProjectServiceException(Code)
Returns Avialable Roles for specified Project
Parameters:
  i_project -



getClosedMilestones
public Collection<MilestoneDO> getClosedMilestones(ProjectDO i_project) throws AccessDeniedException, ProjectServiceException(Code)

Parameters:
  i_project -
throws:
  AccessDeniedException -
throws:
  ProjectServiceException -



getMilestone
public MilestoneDO getMilestone(Long i_milestoneId) throws AccessDeniedException, ProjectServiceException(Code)

Parameters:
  i_milestoneId -
throws:
  AccessDeniedException -
throws:
  ProjectServiceException -



getMilestone
public MilestoneDO getMilestone(String i_name) throws AccessDeniedException, ProjectServiceException(Code)

Parameters:
  i_name -
throws:
  AccessDeniedException -
throws:
  ProjectServiceException -



getMilestones
public Collection<MilestoneDO> getMilestones(ProjectDO i_project) throws AccessDeniedException, ProjectServiceException(Code)

Parameters:
  i_project -
throws:
  AccessDeniedException -
throws:
  ProjectServiceException -



getOpenedMilestones
public Collection<MilestoneDO> getOpenedMilestones(ProjectDO i_project) throws AccessDeniedException, ProjectServiceException(Code)

Parameters:
  i_project -
throws:
  AccessDeniedException -
throws:
  ProjectServiceException -



getProject
public ProjectDO getProject(Long i_projectId) throws AccessDeniedException, ProjectServiceException(Code)
Get Project by Id
Parameters:
  i_projectId - null if specified project not found
throws:
  AccessDeniedException -
throws:
  ProjectServiceException -



getProject
public ProjectDO getProject(String i_projectWikiName) throws AccessDeniedException, ProjectServiceException(Code)
Get project by Name
Parameters:
  i_projectWikiName - null if specified project not found
throws:
  AccessDeniedException -
throws:
  ProjectServiceException -



getUsers
public Collection<EmForgeUserDetails> getUsers(ProjectDO i_project, String i_roleName) throws AccessDeniedException, ProjectServiceException(Code)
Returns Users with specified role



getUsers
public Collection<EmForgeUserDetails> getUsers(ProjectDO i_project, Role i_role) throws AccessDeniedException, ProjectServiceException(Code)
Returns Users with specified role



hasRole
public boolean hasRole(ProjectDO i_project, UserDetails i_user, Role i_role) throws AccessDeniedException, ProjectServiceException(Code)
Returns true - if specified user has specified role in project



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 -



saveMilestone
public void saveMilestone(MilestoneDO i_milestone) throws AccessDeniedException, ProjectServiceException(Code)

Parameters:
  i_milestone -
throws:
  AccessDeniedException -
throws:
  ProjectServiceException -



saveProject
public void saveProject(ProjectDO i_project) throws AccessDeniedException, ProjectServiceException(Code)

Parameters:
  i_project -
throws:
  AccessDeniedException -
throws:
  ProjectServiceException -



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.