com.atlassian.greenhopper.web.input
Class BaseDataFactory

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

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

Takes care of the user and the XProject request params


Field Summary
static java.lang.String SERVICE
           
 
Constructor Summary
BaseDataFactory()
           
 
Method Summary
 BaseData find(ErrorCollection errorCollection)
           
 BaseData find(ErrorCollection errorCollection, java.lang.String xprojectIdParam, ViewDefinition view)
          Find the BaseData object using the provided request parameter name.
 BaseData find(ErrorCollection errorCollection, ViewDefinition viewSettings)
          Find the BaseData using the default xproject request param name.
 BaseData load(ErrorCollection errorCollection)
           
 BaseData load(ErrorCollection errorCollection, com.opensymphony.user.User user, XProject xproject, ViewDefinition view)
           
 BaseData load(ErrorCollection errorCollection, ViewDefinition view)
          Loads the BaseData object from the request.
 
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

BaseDataFactory

public BaseDataFactory()
Method Detail

find

public BaseData find(ErrorCollection errorCollection)

find

public BaseData find(ErrorCollection errorCollection,
                     ViewDefinition viewSettings)
Find the BaseData using the default xproject request param name. This method will return null if the specified xproject could not be found

Parameters:
errorCollection -
Returns:
the BaseData object or null if not found

find

public BaseData find(ErrorCollection errorCollection,
                     java.lang.String xprojectIdParam,
                     ViewDefinition view)
Find the BaseData object using the provided request parameter name.

Parameters:
errorCollection -
xprojectIdParam -
Returns:
the BaseData object or null if not found

load

public BaseData load(ErrorCollection errorCollection)

load

public BaseData load(ErrorCollection errorCollection,
                     ViewDefinition view)
Loads the BaseData object from the request. Falls back to user preferences then to first found project.


load

public BaseData load(ErrorCollection errorCollection,
                     com.opensymphony.user.User user,
                     XProject xproject,
                     ViewDefinition view)


Copyright © 2007-2011 Atlassian. All Rights Reserved.