com.atlassian.greenhopper.service.project
Class ProjectServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.service.project.ProjectServiceImpl
All Implemented Interfaces:
ProjectService

@Service
public class ProjectServiceImpl
extends AbstractLoggable
implements ProjectService


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
ProjectServiceImpl()
           
 
Method Summary
 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 com.atlassian.greenhopper.global.AbstractLoggable
logDebug, logError, logException, logInfo, logTrace, logWarn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectServiceImpl

public ProjectServiceImpl()
Method Detail

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


Copyright © 2007-2012 Atlassian. All Rights Reserved.