/* * GSARetrieveSuspendedTransactionListActionImpl * * 09/30/2003 * * COPYRIGHT: * LICENSED MATERIALS - PROPERTY OF IBM * "RESTRICTED MATERIALS OF IBM" * 5724-AEF * (C) COPYRIGHT IBM CORP. 2003 * * %W% %E% */ package com.ibm.retail.AEF.action; import com.ibm.retail.AEF.automation.*; import com.ibm.retail.AEF.util.*; import com.ibm.retail.si.util.*; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * GSARetrieveSuspendedTransactionListActionImpl is a class which the * POSAutomationProvider uses to retrieve a list of suspended transactions * from the GSA application keyed file. */ public class GSARetrieveSuspendedTransactionListActionImpl extends GSAActionImpl { static String copyright() { return com.ibm.retail.si.Copyright.IBM_COPYRIGHT_SHORT; } /** * Constructor * * @param request The ActionRequest which contains a HashMap of arguments. * @exception AEFException * AEFException error codes: * <br>AEFConst.CONFIG_ERROR, AEFConst.FACTORY_ERROR */ public GSARetrieveSuspendedTransactionListActionImpl(ActionRequest request) throws AEFException { super(request); if (log.isTraceEnabled()) { tempAEFMessage.setMessage("+Enter GSARetrieveSuspendedTransactionListActionImpl.GSARetrieveSuspendedTransactionListActionImpl()."); log.trace(tempAEFMessage); } requestedTerminal = (String) (request.getArguments().get("terminal")); if (log.isTraceEnabled()) { tempAEFMessage.setMessage("-Exit GSARetrieveSuspendedTransactionListActionImpl.GSARetrieveSuspendedTransactionListActionImpl()."); log.trace(tempAEFMessage); } } /** * Perform the retrieve suspended transaction list action. * * @return Object That is Null. * @exception AEFException * AEFException error codes: * <br>AEFConst.INVALID_ARGUMENT, AEFConst.INVALID_TERMINAL_NUMBER */ public Object performAction() throws AEFException { if (log.isTraceEnabled()) { tempAEFMessage.setMessage("+Enter GSARetrieveSuspendedTransactionListActionImpl.performAction()."); log.trace(tempAEFMessage); } super.performAction(); if (log.isTraceEnabled()) { tempAEFMessage.setMessage("-Exit GSARetrieveSuspendedTransactionListActionImpl.performAction()."); log.trace(tempAEFMessage); } return GSASuspendedTransactionList.getList(requestedTerminal); } /* Instance and Class Variables */ private static Log log = LogFactory.getLog(GSARetrieveSuspendedTransactionListActionImpl.class); String requestedTerminal; }