/**
  * @param name
  * @return
  */
 public static Logger getLogger(String name) {
   Logger myLogger = null;
   if (name != null) {
     myLogger = new Logger();
     myLogger.logger = org.apache.log4j.Logger.getLogger(name);
     myLogger.setClassName(name);
   }
   return myLogger;
 }
 /**
  * @param clazz
  * @return
  */
 public static Logger getLogger(Class clazz) {
   Logger myLogger = null;
   if (clazz != null) {
     myLogger = new Logger();
     myLogger.logger = org.apache.log4j.Logger.getLogger(clazz);
     myLogger.setClassName(clazz.getName());
   }
   return myLogger;
 }
/**
 * This class contains all the controller methods for ApplicationQueueSopLink.
 *
 * @author Syntel
 * @version 1.0
 */
@Controller
public class ApplnQueSopLnkController {

  private Logger log = Logger.getLogger(this.getClass());

  @Autowired private ApplnQueSopLnkService applicationQueueSopLinkservice;

  /**
   * This method is called to get List of Application Queue Sop Link details.This is an ajax call.
   *
   * @return response - DataTableObject
   * @exception - ApplicationException in case of error
   */
  @RequestMapping(value = "/appQueueSopLnkDetails")
  public @ResponseBody DataTableObject getAppQueueSopLinkListData() throws ApplicationException {
    log.info("Entered inside ApplnQueSopLnkController::getAppQueueSopLinkListData() method ");
    List<ApplnQueSopLnk> applicationQueueSopLinkList = null;
    DataTableObject dataTableObject = new DataTableObject();
    try {
      applicationQueueSopLinkList =
          applicationQueueSopLinkservice.getCompleteApplicationQueueSopLinkList();
      dataTableObject.setAaData(applicationQueueSopLinkList);
    } catch (ApplicationException e) {
      throw e;
    } catch (Exception e) {
      throw new ApplicationException("ApplnQueSopLnkController.getAppQueueSopLinkListData", e);
    }
    log.info(
        "Just before leaving ApplnQueSopLnkController::getAppQueueSopLinkListData():applicationQueueSopLinkList:"
            + applicationQueueSopLinkList
            + ":");
    return dataTableObject;
  }
}
 /**
  * This method is called to get List of Application Queue Sop Link details.This is an ajax call.
  *
  * @return response - DataTableObject
  * @exception - ApplicationException in case of error
  */
 @RequestMapping(value = "/appQueueSopLnkDetails")
 public @ResponseBody DataTableObject getAppQueueSopLinkListData() throws ApplicationException {
   log.info("Entered inside ApplnQueSopLnkController::getAppQueueSopLinkListData() method ");
   List<ApplnQueSopLnk> applicationQueueSopLinkList = null;
   DataTableObject dataTableObject = new DataTableObject();
   try {
     applicationQueueSopLinkList =
         applicationQueueSopLinkservice.getCompleteApplicationQueueSopLinkList();
     dataTableObject.setAaData(applicationQueueSopLinkList);
   } catch (ApplicationException e) {
     throw e;
   } catch (Exception e) {
     throw new ApplicationException("ApplnQueSopLnkController.getAppQueueSopLinkListData", e);
   }
   log.info(
       "Just before leaving ApplnQueSopLnkController::getAppQueueSopLinkListData():applicationQueueSopLinkList:"
           + applicationQueueSopLinkList
           + ":");
   return dataTableObject;
 }