com.atlassian.greenhopper.web.rapid.view
Class RapidViewHelper

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.global.AbstractResultBuilder
          extended by com.atlassian.greenhopper.web.rapid.view.RapidViewHelper

@Service
public class RapidViewHelper
extends AbstractResultBuilder


Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.greenhopper.global.AbstractResultBuilder
AbstractResultBuilder.SuccessBuilder<T>
 
Field Summary
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
RapidViewHelper()
           
 
Method Summary
 ResultEntry<RapidViewEntry> copyRapidView(com.atlassian.crowd.embedded.api.User user, java.lang.Long sourceRapidViewId)
           
 ResultEntry<com.atlassian.greenhopper.web.rapid.view.RapidViewResource.CreateResponse> createRapidViewForPreset(com.atlassian.crowd.embedded.api.User user, java.lang.String name, java.util.Set<java.lang.String> projectIds, java.lang.String presetName)
          Take the data entered by the user during the wizard steps and create stuff.
 ResultEntry<com.atlassian.greenhopper.web.rapid.view.RapidViewResource.CreateResponse> createRapidViewWithFilter(com.atlassian.crowd.embedded.api.User user, java.lang.String name, java.lang.Long filterId)
           
 ServiceOutcome<RapidView> createRapidViewWithProjects(com.atlassian.crowd.embedded.api.User user, java.lang.String name, RapidViewPreset preset, java.util.List<com.atlassian.jira.project.Project> projects)
           
 ServiceOutcome<com.atlassian.jira.issue.search.SearchRequest> createSavedFilter(com.atlassian.crowd.embedded.api.User user, java.lang.String boardName, RapidViewPreset preset, java.util.List<com.atlassian.jira.project.Project> projects)
          Create a saved filter, shared with all users in the project, with a query for all issues in the project, ordered by global rank.
 ResultEntry<java.lang.String> deleteRapidView(com.atlassian.crowd.embedded.api.User user, java.lang.Long id)
           
 ResultEntry<RapidViewEntry> getRapidView(com.atlassian.crowd.embedded.api.User user, java.lang.Long id)
           
 ResultEntry<java.util.List<RapidViewEntry>> getRapidViews(com.atlassian.crowd.embedded.api.User user)
           
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractResultBuilder
buildCombinedResult, buildErrorOnlyResult, buildResult, buildResult
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logDebug, logError, logException, logInfo, logTrace, logWarn, setInfoLogLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RapidViewHelper

public RapidViewHelper()
Method Detail

createRapidViewForPreset

public ResultEntry<com.atlassian.greenhopper.web.rapid.view.RapidViewResource.CreateResponse> createRapidViewForPreset(com.atlassian.crowd.embedded.api.User user,
                                                                                                                       java.lang.String name,
                                                                                                                       java.util.Set<java.lang.String> projectIds,
                                                                                                                       java.lang.String presetName)
Take the data entered by the user during the wizard steps and create stuff. Trying to be transactional here - if something goes wrong with the different creations, we're trying to clean up the mess we made as much as possible.


createRapidViewWithProjects

@NotNull
public ServiceOutcome<RapidView> createRapidViewWithProjects(com.atlassian.crowd.embedded.api.User user,
                                                                     java.lang.String name,
                                                                     RapidViewPreset preset,
                                                                     java.util.List<com.atlassian.jira.project.Project> projects)

createRapidViewWithFilter

public ResultEntry<com.atlassian.greenhopper.web.rapid.view.RapidViewResource.CreateResponse> createRapidViewWithFilter(com.atlassian.crowd.embedded.api.User user,
                                                                                                                        java.lang.String name,
                                                                                                                        java.lang.Long filterId)

deleteRapidView

public ResultEntry<java.lang.String> deleteRapidView(com.atlassian.crowd.embedded.api.User user,
                                                     java.lang.Long id)

copyRapidView

public ResultEntry<RapidViewEntry> copyRapidView(com.atlassian.crowd.embedded.api.User user,
                                                 java.lang.Long sourceRapidViewId)

getRapidView

public ResultEntry<RapidViewEntry> getRapidView(com.atlassian.crowd.embedded.api.User user,
                                                java.lang.Long id)

getRapidViews

public ResultEntry<java.util.List<RapidViewEntry>> getRapidViews(com.atlassian.crowd.embedded.api.User user)

createSavedFilter

@NotNull
public ServiceOutcome<com.atlassian.jira.issue.search.SearchRequest> createSavedFilter(com.atlassian.crowd.embedded.api.User user,
                                                                                               java.lang.String boardName,
                                                                                               RapidViewPreset preset,
                                                                                               java.util.List<com.atlassian.jira.project.Project> projects)
Create a saved filter, shared with all users in the project, with a query for all issues in the project, ordered by global rank.

Parameters:
user - the user who is doing the request
boardName - the name of the board being created. The filter name will vary from this
projects - the projects which this filter will query for
Returns:
the persisted saved filter; null if errors occur


Copyright © 2007-2012 Atlassian. All Rights Reserved.