Class ListRenameInput
- java.lang.Object
-
- org.intermine.webservice.server.lists.ListInput
-
- org.intermine.webservice.server.lists.ListRenameInput
-
public class ListRenameInput extends ListInput
Class for encapsulating the input to a list rename request.- Author:
- Alex Kalderimis.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NEW_NAME_PARAM
The request parameter for the new namestatic java.lang.String
OLD_NAME_PARAM
The request parameter for the old name-
Fields inherited from class org.intermine.webservice.server.lists.ListInput
ALT_NAME_PARAM, bagManager, DESCRIPTION_PARAMETER, EXTRA_PARAMETER, LIST_SEPARATOR, LISTS_PARAMETER, NAME_PARAMETER, profile, REFERENCE_PARAMETER, REPLACE_PARAMETER, request, SUBTRACT_PARAM, TAGS_PARAMETER, TEMP_SUFFIX, TYPE_PARAMETER
-
-
Constructor Summary
Constructors Constructor Description ListRenameInput(javax.servlet.http.HttpServletRequest request, BagManager bagManager, Profile profile)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
produceName()
protected void
validateRequiredParams()
Check that the required parameters are there-
Methods inherited from class org.intermine.webservice.server.lists.ListInput
checkLists, doReplace, getDescription, getExtraValue, getListName, getLists, getReferenceLists, getSubtractLists, getTags, getTemporaryListName, getType, init, populateList, populateListMap, populateNormedList
-
-
-
-
Field Detail
-
OLD_NAME_PARAM
public static final java.lang.String OLD_NAME_PARAM
The request parameter for the old name- See Also:
- Constant Field Values
-
NEW_NAME_PARAM
public static final java.lang.String NEW_NAME_PARAM
The request parameter for the new name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ListRenameInput
public ListRenameInput(javax.servlet.http.HttpServletRequest request, BagManager bagManager, Profile profile)
Constructor.- Parameters:
request
- The web service request.bagManager
- A bag manager.profile
- The current user's profile.
-
-
Method Detail
-
produceName
protected java.lang.String produceName()
- Overrides:
produceName
in classListInput
- Returns:
- a name for the new list
-
validateRequiredParams
protected void validateRequiredParams()
Description copied from class:ListInput
Check that the required parameters are there- Overrides:
validateRequiredParams
in classListInput
-
-