com.atlassian.greenhopper.web.input
Class BaseDataFactory
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVICE
public static final java.lang.String SERVICE
- See Also:
- Constant Field Values
BaseDataFactory
public BaseDataFactory()
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.