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:
  • Constructor Details

    • DetailActionForm

      public DetailActionForm()
  • Method Details

    • setId

      public void setId(String id)
      Sets the id.
      Parameters:
      id - the new id
    • getId

      public String getId()
      Gets the id.
      Returns:
      the id
    • getMessages

      public Collection<String> getMessages()
      Gets the messages.
      Returns:
      the messages
    • setMessages

      protected void setMessages(Collection<String> c)
      Sets the messages.
      Parameters:
      c - the new messages
    • setMessagesFromExceptions

      protected void setMessagesFromExceptions(Collection<Exception> c)
      Sets the messages from exceptions.
      Parameters:
      c - the new messages from exceptions
    • getMessage

      public String getMessage()
      Gets the message.
      Returns:
      the message
    • setMessage

      protected void setMessage(String s)
      Sets the message.
      Parameters:
      s - the new message
    • 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

      public String getRefreshPeriod()
      Gets the refresh period.
      Returns:
      the refresh period
    • setRefreshPeriod

      public void setRefreshPeriod(String t)
      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

      public DetailActionDestinationCache.DataOptionsWithSizes getDataOptionsWithSizes()
      Gets the data options with sizes.
      Returns:
      the data options with sizes
    • getDateOptions

      public Collection<ecmwf.web.util.bean.Pair> getDateOptions()
      Gets the date options.
      Returns:
      the date options
    • getSelectedTransfer

      public String getSelectedTransfer(String name)
      Gets the selected transfer.
      Parameters:
      name - the name
      Returns:
      the selected transfer
    • setSelectedTransfer

      public void setSelectedTransfer(String name, String value)
      Sets the selected transfer.
      Parameters:
      name - the name
      value - the value
    • 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

      public DataTransfer getDataTransfer(String id)
      Gets the data transfer.
      Parameters:
      id - the id
      Returns:
      the data transfer
    • getSelectedTransfers

      public Collection<DataTransfer> getSelectedTransfers(Integer from, Integer to)
      Gets the selected transfers.
      Parameters:
      from - the from
      to - the to
      Returns:
      the selected transfers
    • deleteFromSelections

      public void deleteFromSelections(DataTransfer dt)
      Delete from selections.
      Parameters:
      dt - the dt
    • addToSelections

      public void addToSelections(Collection<DataTransferLightBean> c)
      Adds the to selections.
      Parameters:
      c - the c
    • getActionTransfer

      public String getActionTransfer(String name)
      Gets the action transfer.
      Parameters:
      name - the name
      Returns:
      the action transfer
    • setActionTransfer

      public void setActionTransfer(String name, String value)
      Sets the action transfer.
      Parameters:
      name - the name
      value - the value
    • getActionTransfers

      public Collection<DataTransfer> 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

      public Collection<ecmwf.web.util.bean.Pair> getDisplayTagsParamCollection()
      Gets the display tags param collection.
      Returns:
      the display tags param collection
    • setDisplayTagsParams

      public void setDisplayTagsParams(Collection<ecmwf.web.util.bean.Pair> c)
      Sets the display tags params.
      Parameters:
      c - the new display tags params
    • getStatusOptionsWithSizes

      public Collection<DetailActionDestinationCache.NameCountAndSizes> getStatusOptionsWithSizes()
      Gets the status options with sizes.
      Returns:
      the status options with sizes
    • getDataStream

      public String getDataStream()
      Gets the data stream.
      Returns:
      the data stream
    • getDataTime

      public String getDataTime()
      Gets the data time.
      Returns:
      the data time
    • getDisseminationStream

      public String getDisseminationStream()
      Gets the dissemination stream.
      Returns:
      the dissemination stream
    • getStatus

      public String getStatus()
      Gets the status.
      Returns:
      the status
    • setDataStream

      public void setDataStream(String string)
      Sets the data stream.
      Parameters:
      string - the new data stream
    • setDataTime

      public void setDataTime(String string)
      Sets the data time.
      Parameters:
      string - the new data time
    • setDisseminationStream

      public void setDisseminationStream(String string)
      Sets the dissemination stream.
      Parameters:
      string - the new dissemination stream
    • setStatus

      public void setStatus(String string)
      Sets the status.
      Parameters:
      string - the new status
    • getDate

      public String getDate()
      Gets the date.
      Returns:
      the date
    • setDate

      public void setDate(String date)
      Sets the date.
      Parameters:
      date - the new date
    • getDataTransferCaption

      public String getDataTransferCaption()
      Gets the data transfer caption.
      Returns:
      the data transfer caption
    • getDataTransfers

      public Collection<DataTransferLightBean> getDataTransfers(boolean hasAccess)
      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 access
      cursor - 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

      public void setNewPriority(String s)
      Sets the new priority.
      Parameters:
      s - the new new priority
    • getNewPriority

      public String getNewPriority()
      Gets the new priority.
      Returns:
      the new priority
    • setFileNameSearch

      public void setFileNameSearch(String s)
      Sets the file name search.
      Parameters:
      s - the new file name search
    • getFileNameSearch

      public String getFileNameSearch()
      Gets the file name search.
      Returns:
      the file name search
    • 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 class org.apache.struts.action.ActionForm