OBPM是一个开源

源代码在线查看: applicationhelper.java

软件大小: 45875 K
上传用户: cal04
关键词: OBPM 开源
下载地址: 免注册下载 普通下载 VIP

相关代码

				package cn.myapps.core.deploy.application.action;
				
				import java.util.ArrayList;
				import java.util.Collection;
				
				import org.apache.log4j.Logger;
				
				import cn.myapps.base.action.BaseHelper;
				import cn.myapps.core.deploy.application.ejb.ApplicationProcess;
				import cn.myapps.core.deploy.application.ejb.ApplicationVO;
				import cn.myapps.util.ProcessFactory;
				
				public class ApplicationHelper extends BaseHelper {
					static Logger logger = Logger.getLogger(ApplicationHelper.class);
				
					/**
					 * @param args
					 */
					public ApplicationHelper() throws ClassNotFoundException {
						super(ProcessFactory.createProcess(ApplicationProcess.class));
					}
				
					public Collection getAppList() {
						Collection rtn = new ArrayList();
						try {
							Collection colls = proxy.doSimpleQuery(null, null);
							if (colls != null && colls.size() > 0) {
								rtn = colls;
							}
						} catch (Exception e) {
							logger.error("Create instance select error");
							e.printStackTrace();
						}
						return rtn;
					}
				
					public String getDesc(String application) {
						String rtn = "";
						try {
							ApplicationVO vo = (ApplicationVO) proxy.doView(application);
							rtn = vo.getDescription();
						} catch (Exception e) {
							e.printStackTrace();
						}
				
						return rtn;
					}
					public ApplicationVO getApplicationById(String id) throws Exception{
						ApplicationVO vo = (ApplicationVO) proxy.doView(id);
						return vo;
					}
				}
							

相关资源