Class PortletRegistryHelper
- java.lang.Object
-
- com.sun.portal.portletcontainer.admin.PortletRegistryHelper
-
- All Implemented Interfaces:
PortletRegistryTags
public class PortletRegistryHelper extends Object implements PortletRegistryTags
PortletRegistryHelper is a Helper class to write to and read from the portlet registry xml files.
-
-
Field Summary
-
Fields inherited from interface com.sun.portal.portletcontainer.admin.registry.PortletRegistryTags
ARCHIVE_KEY, ARCHIVE_NAME_KEY, ARCHIVE_TYPE_KEY, COLLECTION_TAG, CONSUMER_ID, DESCRIPTION_KEY, DESCRIPTION_MAP_KEY, DISPLAY_NAME_MAP_KEY, ENTITY_ID_PREFIX_KEY, KEYWORDS_KEY, LANG, NAME_KEY, PORTLET_APP_REGISTRY_TAG, PORTLET_APP_TAG, PORTLET_HANDLE, PORTLET_ID, PORTLET_NAME_KEY, PORTLET_WINDOW_PREFERENCE_REGISTRY_TAG, PORTLET_WINDOW_PREFERENCE_TAG, PORTLET_WINDOW_REGISTRY_TAG, PORTLET_WINDOW_TAG, PREFERENCE_PROPERTIES_KEY, PREFERENCE_READ_ONLY_KEY, PRODUCER_ENTITY_ID, PROPERTIES_TAG, REMOTE_KEY, ROLE_DESCRIPTIONS_KEY, ROLE_MAP_KEY, ROW_KEY, SHORT_TITLE_KEY, STRING_TAG, SUPPORTED_CONTENT_TYPES_KEY, SUPPORTED_LOCALES_KEY, SUPPORTS_MAP_KEY, TITLE_KEY, TRANSPORT_GUARANTEE_KEY, USER_INFO_DESCRIPTIONS_KEY, USER_INFO_MAP_KEY, USER_NAME_KEY, VALUE_KEY, VERSION_KEY, VISIBLE_KEY, WIDTH_KEY
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getAutoDeployLocation()
static String
getConfigFileLocation()
static DocumentBuilder
getDocumentBuilder()
static String
getLogLocation()
static String
getRegistryLocation()
static Element
getRootElement(Document document)
static String
getUpdatedAbsoluteWarFileName(String warFileName)
static String
getWarFileLocation()
static Document
readFile(File file)
static void
writeFile(Document document, File file)
-
-
-
Method Detail
-
getDocumentBuilder
public static DocumentBuilder getDocumentBuilder() throws PortletRegistryException
- Throws:
PortletRegistryException
-
readFile
public static Document readFile(File file) throws PortletRegistryException
- Throws:
PortletRegistryException
-
writeFile
public static void writeFile(Document document, File file) throws PortletRegistryException
- Throws:
PortletRegistryException
-
getAutoDeployLocation
public static String getAutoDeployLocation()
-
getRegistryLocation
public static String getRegistryLocation() throws PortletRegistryException
- Throws:
PortletRegistryException
-
getLogLocation
public static String getLogLocation() throws PortletRegistryException
- Throws:
PortletRegistryException
-
getWarFileLocation
public static String getWarFileLocation() throws PortletRegistryException
- Throws:
PortletRegistryException
-
getUpdatedAbsoluteWarFileName
public static String getUpdatedAbsoluteWarFileName(String warFileName)
-
getConfigFileLocation
public static String getConfigFileLocation()
-
-