Class StatusFactory

java.lang.Object
ecmwf.ecpds.master.transfer.StatusFactory

public final class StatusFactory extends Object
A factory for creating Status objects.
  • Field Details

  • Constructor Details

    • StatusFactory

      public StatusFactory()
  • Method Details

    • getDataTransferStatusName

      public static String getDataTransferStatusName(boolean restrictedUser, DataTransfer transfer, String statusCode)
      Gets the data transfer status name.
      Parameters:
      restrictedUser - the restricted user
      transfer - the transfer
      statusCode - the status code
      Returns:
      the data transfer status name
    • getDataTransferStatusName

      public static String getDataTransferStatusName(boolean restrictedUser, String statusCode)
      Gets the data transfer status name.
      Parameters:
      restrictedUser - the restricted user
      statusCode - the status code
      Returns:
      the data transfer status name
    • getDataTransferStatusCode

      public static String getDataTransferStatusCode(String statusName)
      Gets the data transfer status code.
      Parameters:
      statusName - the status name
      Returns:
      the data transfer status code
    • getDestinationStatusName

      public static String getDestinationStatusName(Destination destination, String statusCode)
      Gets the destination status name.
      Parameters:
      destination - the destination
      statusCode - the status code
      Returns:
      the destination status name
    • getDestinationStatusName

      public static String getDestinationStatusName(String statusCode)
      Gets the destination status name.
      Parameters:
      statusCode - the status code
      Returns:
      the destination status name
    • getDestinationStatusCode

      public static String getDestinationStatusCode(String statusName)
      Gets the destination status code.
      Parameters:
      statusName - the status name
      Returns:
      the destination status code
    • getProductStatusName

      public static String getProductStatusName(String statusCode)
      Gets the product status name.
      Parameters:
      statusCode - the status code
      Returns:
      the product status name
    • getProductStatusCode

      public static String getProductStatusCode(String statusName)
      Gets the product status code.
      Parameters:
      statusName - the status name
      Returns:
      the product status code
    • getDestinationStatusNames

      public static String[] getDestinationStatusNames()
      Gets all destination status names.
      Returns:
      the list of destination status names
    • getDataTransferStatusNames

      public static String[] getDataTransferStatusNames()
      Gets all data transfer status names.
      Returns:
      the list of data transfer status names
    • getDestinationStatusCodes

      public static String[] getDestinationStatusCodes()
      Gets all destination status codes.
      Returns:
      the list of destination status codes
    • getDataTransferStatusCodes

      public static String[] getDataTransferStatusCodes()
      Gets all data transfer status codes.
      Returns:
      the list of data transfer status codes