/* * Copyright (C) 2003-2004 Red Hat Inc. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ package com.arsdigita.portalserver.admin; // import com.arsdigita.portalserver.*; import com.arsdigita.web.Application; import com.arsdigita.persistence.*; import com.arsdigita.web.URL; import org.apache.log4j.Logger; /** * PSAdmin * - * This class is a mountable application for general Portalserver * Administration tasks. It is initialized as /portal-admin, * and its UI component is com.arsdigita.portalserver.admin.ui.AdminPage.java * * @author rhs@mit.edu * @version $Revision: #4 $ $Date: 2004/08/17 $ * @version Id: PSAdmin.java pboy $ */ public class PSAdmin extends Application { /** Logger instance for debugging */ private static final Logger s_log = Logger.getLogger(PSAdmin.class); public static final String BASE_DATA_OBJECT_TYPE = "com.arsdigita.admin.CWAdmin"; @Override protected String getBaseDataObjectType() { return BASE_DATA_OBJECT_TYPE; } public PSAdmin(DataObject dataObject) { super(dataObject); } /** * Returns the path name of the location of the applications servlet/JSP. * * Application implementations may overwrite this method to provide an * application specific location, especially if an application (module) is * to be installed along with others in one context. * * If you install the module into its own context you may use a standard * location. In most cases though all modules (applications) of an * webapplication should be installed into one context. * * Frequently it is a symbolic name/path, which will be mapped in the web.xml * to the real location in the file system. Example: * * applicationName-files * com.arsdigita.web.ApplicationFileServlet * * template-path * /templates/ccm-applicationName * * * * * applicationName-files * /ccm-applicationName/files/* * * * NOTE: According to Servlet API the path always starts with a leading '/' * and includes either the servlet name or a path to the servlet, but does * not include any extra path information or a query string. Returns an * empry string ("") is the servlet used was matched using the "/*" pattern. * * @return path name to the applications servlet/JSP */ @Override public String getServletPath() { return URL.SERVLET_DIR + "/psadmin"; } }