com.atlassian.greenhopper.web.input
Class ViewDefinitionFactory

java.lang.Object
  extended by com.atlassian.greenhopper.web.input.ViewDefinitionFactory

@Service(value="gh-viewDefinitionFactory")
public class ViewDefinitionFactory
extends java.lang.Object

Provides view settings objects.


Field Summary
static java.lang.String SERVICE
           
 
Constructor Summary
ViewDefinitionFactory()
           
 
Method Summary
 void completeMissingType(UserBoardSettings userBoardSettings, ViewDefinition viewDefinition)
          Completes missing page type information with values stored in the user settings or approriate defaults.
 ViewDefinition createAssigneeBoardView()
          Create an Assignee board view definition object
 ViewDefinition createChartBoardView()
          Create a chart board view definition object
 ViewDefinition createComponentBoardView()
          Create an Component board view definition object
 ViewDefinition createEmptyView()
          Creates an empty view settings object
 ViewDefinition createPlanningBoardView()
          Create a Planning board view definition object
 ViewDefinition createProjectBoardView()
          Create a Project board view definition object
 ViewDefinition createTaskBoardView()
          Create a task board view definition object
 ViewDefinition createVersionBoardView()
          Create an Version board view definition object
 ViewDefinition find(ErrorCollection errorCollection)
          Loads all settings from request parameters
 ViewDefinition load(ErrorCollection errorCollection)
          Creates a ViewDefinition loaded from the request parameters.
 void loadFromRequestParams(ErrorCollection errorCollection, ViewDefinition view, boolean reportErrors)
          Finds the ViewSettings from the request parameters This method finds the values from the request parameters and adds errors if not available
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE

public static final java.lang.String SERVICE
See Also:
Constant Field Values
Constructor Detail

ViewDefinitionFactory

public ViewDefinitionFactory()
Method Detail

createEmptyView

public ViewDefinition createEmptyView()
Creates an empty view settings object


createProjectBoardView

public ViewDefinition createProjectBoardView()
Create a Project board view definition object


createAssigneeBoardView

public ViewDefinition createAssigneeBoardView()
Create an Assignee board view definition object


createVersionBoardView

public ViewDefinition createVersionBoardView()
Create an Version board view definition object


createComponentBoardView

public ViewDefinition createComponentBoardView()
Create an Component board view definition object


createPlanningBoardView

public ViewDefinition createPlanningBoardView()
Create a Planning board view definition object


createTaskBoardView

public ViewDefinition createTaskBoardView()
Create a task board view definition object


createChartBoardView

public ViewDefinition createChartBoardView()
Create a chart board view definition object


find

public ViewDefinition find(ErrorCollection errorCollection)
Loads all settings from request parameters


load

public ViewDefinition load(ErrorCollection errorCollection)
Creates a ViewDefinition loaded from the request parameters. Does ignore missing values (thus not log an error)


loadFromRequestParams

public void loadFromRequestParams(ErrorCollection errorCollection,
                                  ViewDefinition view,
                                  boolean reportErrors)
Finds the ViewSettings from the request parameters This method finds the values from the request parameters and adds errors if not available


completeMissingType

public void completeMissingType(UserBoardSettings userBoardSettings,
                                ViewDefinition viewDefinition)
Completes missing page type information with values stored in the user settings or approriate defaults.



Copyright © 2007-2012 Atlassian. All Rights Reserved.