Class DetailActionForm
java.lang.Object
org.apache.struts.action.ActionForm
ecmwf.web.controller.ECMWFActionForm
ecmwf.ecpds.master.plugin.http.controller.transfer.destination.DetailActionForm
- All Implemented Interfaces:
Serializable
public class DetailActionForm
extends ecmwf.web.controller.ECMWFActionForm
The Class DetailActionForm.
- See Also:
-
Field Summary
Fields inherited from class ecmwf.web.controller.ECMWFActionForm
ALLOWED_IN_IDENTIFIER, DATE, DATE_FORMAT_LONG, DATE_FORMAT_MEDIUM, DATE_FORMAT_SHORT, DATE_FORMATS, IDENTIFIER, ISODATE, NUMBER, NUMBER_OTHER, STRING
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the to selections.void
Clean action transfers.void
Clean selected transfers.void
Delete from selections.getActionTransfer
(String name) Gets the action transfer.Get the transfers to which we will apply "group" operations.Gets the data options with sizes.Gets the data stream.Gets the data time.Gets the data transfer.Gets the data transfer caption.getDataTransfers
(boolean hasAccess) Gets the data transfers.getDataTransfers
(boolean hasAccess, DataBaseCursor cursor) Gets the data transfers.int
Gets the data transfers size.getDate()
Gets the date.Collection
<ecmwf.web.util.bean.Pair> Gets the date options.Collection
<ecmwf.web.util.bean.Pair> Gets the display tags param collection.Gets the dissemination stream.Gets the dissemination stream options with sizes.Gets the file name search.getId()
Gets the id.Gets the message.Gets the messages.Gets the new priority.Gets the refresh period.getSelectedTransfer
(String name) Gets the selected transfer.getSelectedTransfers
(Integer from, Integer to) Gets the selected transfers.int
Get the transfers pre-selected for a "group" operation.Gets the status.Gets the status options with sizes.boolean
Checks if is member state.void
reset
(org.apache.struts.action.ActionMapping map, javax.servlet.http.HttpServletRequest req) Here we need to call setId() with the current Destination ID.void
setActionTransfer
(String name, String value) Sets the action transfer.void
setDataStream
(String string) Sets the data stream.void
setDataTime
(String string) Sets the data time.void
Sets the date.void
setDisplayTagsParams
(Collection<ecmwf.web.util.bean.Pair> c) Sets the display tags params.void
setDisseminationStream
(String string) Sets the dissemination stream.void
Sets the file name search.void
Sets the id.void
setIsMemberState
(boolean b) Sets the checks if is member state.protected void
setMessage
(String s) Sets the message.protected void
Sets the messages.protected void
Sets the messages from exceptions.void
Sets the new priority.void
Sets the refresh period.void
setSelectedTransfer
(String name, String value) Sets the selected transfer.void
Sets the status.Methods inherited from class ecmwf.web.controller.ECMWFActionForm
adaptActionForward, adaptActionForward, addError, addError, addError, checkSize, checkType, cleanErrors, convertToBoolean, convertToDate, convertToDate, convertToInt, convertToLong, convertToString, getErrors, getPathParameter, getPathParameters, isDate, isIdentifier, isIsoDate, isNumber, isNumber, isString, newErrors, newErrors, newErrors, newErrors, nonBlank, nonNull, validateContent, validateContent
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate, validate
-
Constructor Details
-
DetailActionForm
public DetailActionForm()
-
-
Method Details
-
setId
-
getId
-
getMessages
-
setMessages
Sets the messages.- Parameters:
c
- the new messages
-
setMessagesFromExceptions
Sets the messages from exceptions.- Parameters:
c
- the new messages from exceptions
-
getMessage
-
setMessage
-
isMemberState
public boolean isMemberState()Checks if is member state.- Returns:
- true, if is member state
-
setIsMemberState
public void setIsMemberState(boolean b) Sets the checks if is member state.- Parameters:
b
- the new checks if is member state
-
getDataTransfersSize
public int getDataTransfersSize()Gets the data transfers size.- Returns:
- the data transfers size
-
getRefreshPeriod
-
setRefreshPeriod
Sets the refresh period.- Parameters:
t
- the new refresh period
-
getDisseminationStreamOptionsWithSizes
public Collection<DetailActionDestinationCache.NameCountAndSizes> getDisseminationStreamOptionsWithSizes()Gets the dissemination stream options with sizes.- Returns:
- the dissemination stream options with sizes
-
getDataOptionsWithSizes
Gets the data options with sizes.- Returns:
- the data options with sizes
-
getDateOptions
Gets the date options.- Returns:
- the date options
-
getSelectedTransfer
-
setSelectedTransfer
-
getSelectedTransfersCount
public int getSelectedTransfersCount()Get the transfers pre-selected for a "group" operation. A second phase will be needed to actually "execute" the operation, which will be done a second set "actionTransfers", which will be a subset of this.- Returns:
- Collection of pre-selected DataTransfers.
- See Also:
-
getDataTransfer
Gets the data transfer.- Parameters:
id
- the id- Returns:
- the data transfer
-
getSelectedTransfers
Gets the selected transfers.- Parameters:
from
- the fromto
- the to- Returns:
- the selected transfers
-
deleteFromSelections
-
addToSelections
Adds the to selections.- Parameters:
c
- the c
-
getActionTransfer
-
setActionTransfer
-
getActionTransfers
Get the transfers to which we will apply "group" operations. We will be able to , ie, "requeue", "increasePriority" or "decreasePriority" to all of them at the same time- Returns:
- A Collection of DataTransfers which will be the subject for a "group" operation.
-
getDisplayTagsParamCollection
Gets the display tags param collection.- Returns:
- the display tags param collection
-
setDisplayTagsParams
Sets the display tags params.- Parameters:
c
- the new display tags params
-
getStatusOptionsWithSizes
Gets the status options with sizes.- Returns:
- the status options with sizes
-
getDataStream
-
getDataTime
-
getDisseminationStream
Gets the dissemination stream.- Returns:
- the dissemination stream
-
getStatus
-
setDataStream
Sets the data stream.- Parameters:
string
- the new data stream
-
setDataTime
-
setDisseminationStream
Sets the dissemination stream.- Parameters:
string
- the new dissemination stream
-
setStatus
-
getDate
-
setDate
-
getDataTransferCaption
Gets the data transfer caption.- Returns:
- the data transfer caption
-
getDataTransfers
Gets the data transfers.- Parameters:
hasAccess
- the has access- Returns:
- the data transfers
-
getDataTransfers
public Collection<DataTransferLightBean> getDataTransfers(boolean hasAccess, DataBaseCursor cursor) throws TransferException Gets the data transfers.- Parameters:
hasAccess
- the has accesscursor
- the cursor- Returns:
- the data transfers
- Throws:
TransferException
- the transfer exception
-
cleanActionTransfers
public void cleanActionTransfers()Clean action transfers. -
cleanSelectedTransfers
public void cleanSelectedTransfers()Clean selected transfers. -
setNewPriority
-
getNewPriority
-
setFileNameSearch
Sets the file name search.- Parameters:
s
- the new file name search
-
getFileNameSearch
-
reset
public void reset(org.apache.struts.action.ActionMapping map, javax.servlet.http.HttpServletRequest req) Here we need to call setId() with the current Destination ID. This needs to be set in order to be able to select the CACHE to which all setters are going to write. This will be called automatically BEFORE any setter, for EVERY request, so this way we'll ensure that all the setters will find an adequate CACHE set.- Overrides:
reset
in classorg.apache.struts.action.ActionForm
-