/*
* emxTableListJPO
*
* Copyright (c) 1992-2002 MatrixOne, Inc.
*
* All Rights Reserved.
* This program contains proprietary and trade secret
information of
* MatrixOne, Inc. Copyright notice is precautionary only and
does
* not evidence any actual or intended publication of such
program.
*
* static const char RCSID[] = $Id: Exp $
*/
import matrix.db.*;
import matrix.util.*;
import java.io.*;
import java.util.*;
import com.matrixone.framework.beans.*;
import com.matrixone.framework.util.*;
import com.matrixone.framework.ui.*;
/**
* @version AEF 9.5.0.0 - Copyright (c) 2002, MatrixOne, Inc.
*/
public class ${CLASSNAME}
{
/**
*
* @param context the Matrix <code>Context</code> object
* @param args holds no arguments
* @throws Exception if the operation fails
* @since AEF 9.5.0.0
* @grade 0
*/
public ${CLASSNAME} (Context context, String[] args)
throws Exception
{
if (!context.isConnected())
throw new Exception("not supported on desktop
client");
}
/**
* This method is executed if a specific method is not
specified.
*
* @param context the Matrix <code>Context</code> object
* @param args holds no arguments
* @returns nothing
* @throws Exception if the operation fails
* @since AEF 9.5.0.0
*/
public int mxMain(Context context, String[] args)
throws Exception
{
if (!context.isConnected())
throw new Exception("not supported on desktop
client");
return 0;
}
/**
* Get the list of objects.
*
* @param context the Matrix <code>Context</code> object
* @param args holds the following input arguments:
* 0 - objectList MapList
* @returns Object of type MapList
* @throws Exception if the operation fails
* @since AEF 9.5.1.2
*/
public MapList getRTSList(Context context, String[] args)
throws Exception
{
HashMap paramMap = (HashMap)JPO.unpackArgs(args);
String objectId = (String)paramMap.get("objectId");
String selectedFilter =
(String)paramMap.get("selectedFilter");
String programList = (String)paramMap.get("program");
String filterName = "All";
MapList relBusObjPageList = new MapList();
SelectList selectListRTS = new SelectList(1);
Person person = Person.getPerson(context);
selectListRTS.add(person.SELECT_ID);
relBusObjPageList = person.getOwnedRTSs(context,
selectListRTS, true, null, null, false, filterName);
return relBusObjPageList;
}
}