1/*2 * Licensed to the Apache Software Foundation (ASF) under one or more3 * contributor license agreements. See the NOTICE file distributed with4 * this work for additional information regarding copyright ownership.5 * The ASF licenses this file to You under the Apache License, Version 2.06 * (the "License"); you may not use this file except in compliance with7 * the License. You may obtain a copy of the License at8 * 9 * http://www.apache.org/licenses/LICENSE-2.010 * 11 * Unless required by applicable law or agreed to in writing, software12 * distributed under the License is distributed on an "AS IS" BASIS,13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14 * See the License for the specific language governing permissions and15 * limitations under the License.16 */17packageorg.apache.jetspeed.portlets.palm;
1819import java.io.Serializable;
2021import org.apache.jetspeed.om.common.portlet.MutablePortletApplication;
2223/***24 * PortletApplicationStatusBean25 *26 * @author <a href="mailto:ate@douma.nu">Ate Douma</a>27 * @version $Id: PortletApplicationStatusBean.java 348264 2005-11-22 22:06:45Z taylor $28 */29publicclassPortletApplicationStatusBean implements Serializable
30 {
31private String name;
32private String path;
33private String version;
34privateboolean local;
35privateboolean running;
3637publicPortletApplicationStatusBean(MutablePortletApplication pa, boolean running)
38 {
39this.name = pa.getName();
40this.version = pa.getVersion();
41this.local = pa.getApplicationType() == MutablePortletApplication.LOCAL;
42if (local)
43 {
44this.path = "<local>";
45 }
46else47 {
48this.path = pa.getWebApplicationDefinition().getContextRoot();
49 }
50this.running = running;
51 }
52public String getPath()
53 {
54return path;
55 }
56publicboolean isLocal()
57 {
58return local;
59 }
60public String getName()
61 {
62return name;
63 }
64publicboolean isRunning()
65 {
66return running;
67 }
68public String getVersion()
69 {
70return version;
71 }
72 }