com.atlassian.greenhopper.service.project
Class ProjectServiceImpl
java.lang.Object
com.atlassian.greenhopper.service.project.ProjectServiceImpl
- All Implemented Interfaces:
- ProjectService
@Service
public class ProjectServiceImpl
- extends java.lang.Object
- implements ProjectService
Method Summary |
ServiceOutcome<java.lang.Boolean> |
canCreateProject(com.atlassian.crowd.embedded.api.User user)
|
ServiceOutcome<com.atlassian.jira.project.Project> |
createProject(com.atlassian.crowd.embedded.api.User user,
java.lang.String name,
java.lang.String key,
java.lang.String description,
java.lang.String leadUserName,
java.lang.String url,
java.lang.Long assigneeType,
java.lang.Long avatarId)
Create a project with all the necessary bells and whistles (schemas of various kinds, all default). |
ServiceOutcome<java.lang.Void> |
deleteProject(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.project.Project project)
|
ServiceOutcome<java.lang.Void> |
validateCreateProject(com.atlassian.crowd.embedded.api.User user,
java.lang.String name,
java.lang.String key,
java.lang.String description,
java.lang.String leadUserName,
java.lang.String url,
java.lang.Long assigneeType,
java.lang.Long avatarId)
Validate the creation of a project with the given parameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectServiceImpl
public ProjectServiceImpl()
createProject
@NotNull
public ServiceOutcome<com.atlassian.jira.project.Project> createProject(com.atlassian.crowd.embedded.api.User user,
java.lang.String name,
java.lang.String key,
java.lang.String description,
java.lang.String leadUserName,
java.lang.String url,
java.lang.Long assigneeType,
java.lang.Long avatarId)
- Description copied from interface:
ProjectService
- Create a project with all the necessary bells and whistles (schemas of various kinds, all default). If one of the
steps fails, it'll try to delete the previously created data again (pseudo-transactionality).
- Specified by:
createProject
in interface ProjectService
- Returns:
- Outcome of the operation (either valid Value or Errors).
validateCreateProject
@NotNull
public ServiceOutcome<java.lang.Void> validateCreateProject(com.atlassian.crowd.embedded.api.User user,
java.lang.String name,
java.lang.String key,
java.lang.String description,
java.lang.String leadUserName,
java.lang.String url,
java.lang.Long assigneeType,
java.lang.Long avatarId)
- Description copied from interface:
ProjectService
- Validate the creation of a project with the given parameters.
- Specified by:
validateCreateProject
in interface ProjectService
- Returns:
- Outcome containing Errors if encountered
deleteProject
@NotNull
public ServiceOutcome<java.lang.Void> deleteProject(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.project.Project project)
- Specified by:
deleteProject
in interface ProjectService
canCreateProject
public ServiceOutcome<java.lang.Boolean> canCreateProject(com.atlassian.crowd.embedded.api.User user)
- Specified by:
canCreateProject
in interface ProjectService
Copyright © 2007-2014 Atlassian. All Rights Reserved.