public class PlutoAdminContext
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getContainerHome()
Finds home directory of the container that holds Pluto (usually Tomcat)
|
static java.lang.String |
getDeploymentPath()
Accessor for the path to the portlet deployment directory (webapps in Tomcat container)
|
static PlutoAdminContext |
getInstance() |
java.lang.String |
getPageRegistryPath()
Accessor for the full path to the pageregistry.xml file using
the getPlutoHome() method.
|
java.lang.String |
getPlutoHome()
Uses properties in pluto-admin.properties to get the
full path to the installed Pluto home directory, which in
Tomcat is Pluto's webapps directory (usually 'pluto').
|
static java.lang.String |
getPlutoWebContext()
Accessor for the web context for Pluto (default=pluto)
|
java.lang.String |
getPortletContextsPath()
Accessor for the full path to the portletcontexts.txt file
|
java.lang.String |
getPortletEntityRegistryPath()
Accessor for the full path to the portletentityregistry.xml file using
the getPlutoHome() method.
|
static java.util.Properties |
getProperties() |
static java.util.Properties |
getProperties(java.lang.String propFileName)
Returns the Properties object from a properties file that is in the
classpath.
|
static void |
parseDeploymentPaths(java.lang.String plutoHome)
Parses out paths from the Pluto Home directory sent in from
PortletContext.getRealPath("") call in ControllerPortlet.init()
|
public static PlutoAdminContext getInstance()
public java.lang.String getPageRegistryPath()
getPlutoHome()
public java.lang.String getPortletEntityRegistryPath()
getPlutoHome()
public java.lang.String getPlutoHome()
public static java.util.Properties getProperties(java.lang.String propFileName)
propFileName
- Name of the properties file.java.lang.NullPointerException
- If the InputStream accessing the properties
file is null.public static java.util.Properties getProperties()
public java.lang.String getPortletContextsPath()
public static java.lang.String getContainerHome()
public static void parseDeploymentPaths(java.lang.String plutoHome)
plutoHome
- The _plutoHome to set.public static java.lang.String getDeploymentPath()
public static java.lang.String getPlutoWebContext()
Copyright © 2003-2013 . All Rights Reserved.