public abstract class PortalSystem extends Object implements IURIResolver
The entry point into the Portal server.
PortalSystem is a singleton. It exposes the main(java.lang.String[])
method which initializes Portal. Initialization leverages the
DefaultPhaseProvider to initialize all of the IPhaseProvider
s registered in the system. Upon successful
initialization, all IComponentProvider
s will be available as well as their IComponent
s.
PortalSystem also defines many constants that can be passed into acquireURI(java.lang.String)
to find common portal resources.
This includes: TOPIC_ROOT
, FOLDER_ROOT
, FOLDER_SYSTEM
and many others.
PortalSystem also defines the various states that the system can be in. These vary from UNINITIALIZED_STATE
to SHUTDOWN_STATE
and a few in between.
PortalSystem also exposes all of the registered IComponentProvider
s. When requiring a specific IComponentProvider
invoke an API like getCommandProvider()
and cast it to the appropriate implementation, in this instance: ICommandManager
.
Modifier and Type | Field and Description |
---|---|
static int |
BOOTSTRAP_STATE
The system is in a pre-initialized 'bootstrap' state.
|
static String |
CURRENT_RESOURCE
The current resource.
|
static String |
CURRENT_RESOURCE_ANCESTOR
The current resource's ancestor to the specified step
(current.resource.ancestor.1=parent, current.resource.ancestor.2=grandparent).
|
static String |
CURRENT_RESOURCE_PARENT
The current resource's parent.
|
static String |
CURRENT_RESOURCE_TYPE |
protected static String |
DEFAULT_PROPERTY |
static String |
FOLDER_CONTENT_SERVICE
The content service folder.
|
static String |
FOLDER_DIRECTORY_SERVICE
The directory service folder.
|
static String |
FOLDER_HELP
The Help folder.
|
static String |
FOLDER_PORTLET_INSTANCES
The portlet instances folder.
|
static String |
FOLDER_PORTLETS
The XTypes Portlet folder.
|
static String |
FOLDER_PUBLIC
The public folder.
|
static String |
FOLDER_ROOT
The Root folder.
|
static String |
FOLDER_SKINS
The skins folder.
|
static String |
FOLDER_SYSTEM
The System folder.
|
static String |
FOLDER_TEMPLATES
The templates folder.
|
static String |
FOLDER_TEMPLATES_MANAGEMENT
The templates management folder.
|
static String |
FOLDER_THEMES
The themes folder.
|
static String |
FOLDER_USERS
The users folder.
|
static String |
FOLDER_XTYPE
The xtype folder.
|
static String |
FOLDER_XTYPES
The XTypes folder.
|
static int |
INITIALIZING_STATE
The system is initializing and the MetaManager is available.
|
protected Map<String,String> |
m_componentProviderNames
This is the map of name to ComponentProviders from
IComponentNames interface |
protected Map<String,IComponentProvider> |
m_componentProviders
This is the map of managers that implement the
IComponentProvider interface |
protected IPhaseProvider |
m_phaseProvider
This is what initializes us through the various phases of the product.
|
protected static PortalSystem |
m_portalSystem
A static singleton
|
protected int |
m_state |
protected List<IURIResolver> |
m_uriResolverList
A storage of
IURIResolver |
protected IURIResolver[] |
m_uriResolvers
This is the
IURIResolver that always gets first crack at calls to acquireURI(java.lang.String) |
protected IURIResolver[] |
m_uriResolverServices
This is the
IURIResolver that always gets first crack at calls to acquireURI(java.lang.String) |
protected static String |
m_VMID |
protected static String |
PERF_CAT_MANAGER |
static String |
PERSISTENT_SYSTEM_PROPERTIES_DEFAULT
Where the persistent properties are stored.
|
static String |
PERSISTENT_SYSTEM_PROPERTIES_KEY
The key identifying persistent property storage.
|
static String |
PHASE_PROVIDER_CLASS
This is the phase provider that manages initializing the various phases of the product.
|
protected static String |
PORTAL_PROPERTY |
static long |
PORTAL_START_TIME |
static String |
PORTAL_SYSTEM_CLASS
Identifies which PortalSystem to use.
|
static String |
PORTLET_DEFAULT_ADMIN_PAGE
Alias for the default admin page portlet.
|
static String |
PORTLET_DEFAULT_PAGE
Alias for the default page portlet.
|
static String |
PORTLET_DIRECTORY
Alias for the directory portlet.
|
static String |
PORTLET_ERROR_REPORT
Alias for the error report portlet.
|
static String |
PORTLET_FOLDERVIEW
Alias for the folderview portlet.
|
static String |
PORTLET_HEAD
Alias for the head portlet.
|
static String |
PORTLET_LEFTNAV
Alias for the leftnav (Content Manager) portlet.
|
static String |
PORTLET_LOCATIONS
Alias for the locations portlet.
|
static String |
PORTLET_LOGOUT
Alias for the logout portlet.
|
static String |
PORTLET_PERMISSIONS
Alias for the permissions portlet.
|
static String |
PORTLET_PROPERTIES
Alias for the properties portlet.
|
static String |
PORTLET_PUBLISH
Alias for the publish portlet.
|
static String |
PORTLET_STREAMING_CONTENT_VIEWER
Alias for the streaming content viewer portlet.
|
static String |
PORTLET_TITLEBAR
Alias for the titlebar portlet.
|
static String |
PORTLET_UNI_PICKER
Alias for the unipicker (Universal Picker) portlet.
|
static String |
PORTLET_USER_PROFILE
Alias for the user profile portlet.
|
static int |
PRE_META_STATE
This is the point during initialization when no
IMetaManager is available yet,
because the PortalSystem is still initializing. |
static int |
READY_STATE
The system is ready and initialized.
|
static int |
SHUTDOWN_STATE
The system is shutting down.
|
static String |
TASK_ENGINE_LIBRARY_MODE
System property indicating Task Engine is enabled in library mode
|
static String |
TEMPLATE_BASIC
The basic template.
|
static String |
TEMPLATE_EMPTY
The "empty" template.
|
static String |
TEMPLATE_THREE_COL
The three column template.
|
static String |
TEMPLATE_USECORPGOV
The Corporate Governance template.
|
static String |
TOPIC_ADMIN
The Admin topic.
|
static String |
TOPIC_HELP
The Help topic.
|
static String |
TOPIC_ROOT
The root topic.
|
static String |
TOPIC_SYSTEM
The System topic.
|
static int |
UNINITIALIZED_STATE
The system hasn't begun initializing yet.
|
static String |
USER_CURRENT
Alias for the current user.
|
static String |
USER_CURRENT_FAVORITES
Alias for the current user's scrapbook.
|
static String |
USER_CURRENT_HOME
Alias for the current user's home folder.
|
static String |
USER_CURRENT_PROFILE
Alias for the current user's profile.
|
static String |
USER_CURRENT_ROOT
Alias for the current user's root folder (contains user home and scrapbook).
|
static String |
USER_CURRENT_SAVED_SEARCHES
Alias for the current user's saved search page.
|
static String |
USER_CURRENT_START_PAGE
Alias for the current user's start page.
|
Constructor and Description |
---|
PortalSystem()
Default constructor used for reflection
|
Modifier and Type | Method and Description |
---|---|
IURI |
acquireURI(String uri)
Retrieve the provider-specific implementation of
IURI based on the URI information. |
IURI |
acquireURI(String uri,
boolean lookup)
Retrieve the provider-specific implementation of
IURI based on the URI information. |
protected abstract void |
actionEnd(Object token)
End an action to be tracked using the supplied perf token
|
protected abstract Object |
actionInit(String category,
String actionName)
Create action token to be used for perf monitoring
|
protected abstract void |
actionStart(Object token)
Begin an action to be tracked using the supplied perf token
|
static void |
addComponentProvider(String name,
IComponentProvider cp)
Updates the map that holds the
IComponentProvider s. |
void |
addURIResolver(IURIResolver newUriResolver)
Allows the
acquireURI(java.lang.String) to be 'hooked' by other resolvers |
static void |
doStartup(IPhaseProvider phaseProvider)
Perform the portalSystem startup logic
|
boolean |
exists(IURI objectURI)
Checks if an items specified by objectURI exists in the system
|
static String |
fixClientSideURI(String uri)
adds mws root context path to uri
|
static String |
fixMWSURI(String uri)
removes context path from uri to be processed by other MWS apis.
|
static IComponentProvider |
getAppServerProvider()
Deprecated.
unsupported
|
static IComponentProvider |
getAuditManager()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static IComponentProvider |
getBCGadgetProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static IComponentProvider |
getBizPolicyProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static IComponentProvider |
getBundleManager()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static IComponentProvider |
getCacheProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static IComponentProvider |
getClassManager()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static IComponentProvider |
getClusterProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static IComponentProvider |
getCommandProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static <T extends IComponentProvider> |
getComponentProvider(Class<T> componentProviderInterface)
Retrieves the registered
IComponentProvider |
static <T extends IComponentProvider> |
getComponentProvider(Class<T> componentProviderInterface,
String name)
Retrieves the registered
IComponentProvider |
static IComponentProvider |
getComponentProvider(String componentProvider)
Deprecated.
use
getComponentProvider(Class, String) instead |
static Map<String,String> |
getComponentProviderNames() |
static Map<String,IComponentProvider> |
getComponentProviders()
Gets the map of all registered
IComponentProvider s. |
static IComponentProvider |
getContentProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static String |
getContextPath() |
static IComponentProvider |
getContextProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static IComponentProvider |
getDirectoryProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static IComponentProvider |
getGlobalProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static IComponentProvider |
getInstallProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static IComponentProvider |
getMechanicsProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static IComponentProvider |
getMetaProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static IComponentProvider |
getNoodleProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static IPhaseProvider |
getPhaseProvider() |
static PortalSystem |
getPortalSystem()
Get the singleton instance of the PortalSystem.
|
static IComponentProvider |
getPortletProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static int |
getState()
Get the state of the PortalSystem.
|
static String |
getSystemProperty(String propertyName,
String defaultValue)
Retrieve a system property.
|
static IComponentProvider |
getTaskProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
IURIResolver[] |
getUriResolvers()
Get the array of currently registered
IURIResolver s. |
static IComponentProvider |
getVersionProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static String |
getVMID() |
static IComponentProvider |
getWebAppProvider()
Deprecated.
use
getComponentProvider(Class) or getComponentProvider(Class, String) instead |
static IComponentProvider |
getWebServiceProvider()
Deprecated.
unsupported
|
static boolean |
inDevMode()
Returns true if system is in development mode
|
protected void |
init(String configLocation,
IPhaseProvider phaseProvider)
The main startup for the PortalSystem.
|
static void |
initGuestUser() |
static boolean |
inPreviewServerMode() |
static Boolean |
isLibraryMode() |
static boolean |
isReady() |
static boolean |
isTELibrary() |
static String |
localizeMessage(Class<? extends ResourceBundle> resourceBundle,
String messageKey,
Object[] args,
boolean includeMessageKeyPrefix)
Helper method to retrieve a localized message from a resource bundle
|
Object |
lookup(IURI objectURI)
Look up an object in the system.
|
static void |
main(String[] args)
The arg identifies the portal.properties (configLocation)
for example:
java com.webmethods.portal.system.PortalSystem file:/c:/portalminder/config/portal.properties
|
protected abstract void |
persistSystemProperty(String key,
String value)
Persist the property value to the long term storage
|
protected abstract void |
registerAsService() |
static void |
removeComponentProvider(IComponentProvider provider)
Removes an
IComponentProvider from the internal map. |
static void |
removeComponentProvider(String name)
Removes an
IComponentProvider from the internal map. |
void |
removeURIResolver(IURIResolver newUriResolver)
Allows the
acquireURI(java.lang.String) to be 'hooked' by other resolvers |
IURI |
resolveURIByPath(String value)
Attempts to resolve URI by given path to the object.
|
static void |
setState(int state)
Set the state of the PortalSystem.
|
static void |
setSystemProperty(String key,
String value)
Set a system property.
|
void |
setURIResolverServices(IURIResolver[] uriResolvers)
Sets the set of IURIResolver instances that were registered as OSGi services
|
void |
shutdown() |
static void |
waitUntilReady(Runnable runnable) |
protected static final String PORTAL_PROPERTY
protected static final String DEFAULT_PROPERTY
protected static final String PERF_CAT_MANAGER
public static final int UNINITIALIZED_STATE
public static final int PRE_META_STATE
IMetaManager
is available yet,
because the PortalSystem is still initializing.public static final int BOOTSTRAP_STATE
IMetaManager
is initialized, but
prior to the bootstrap Phase being executed.public static final int INITIALIZING_STATE
BOOTSTRAP_STATE
.public static final int READY_STATE
public static final int SHUTDOWN_STATE
public static final String PORTAL_SYSTEM_CLASS
public static final String PHASE_PROVIDER_CLASS
public static final String PERSISTENT_SYSTEM_PROPERTIES_KEY
public static final String PERSISTENT_SYSTEM_PROPERTIES_DEFAULT
public static final String TOPIC_ROOT
public static final String TOPIC_ADMIN
public static final String TOPIC_SYSTEM
public static final String TOPIC_HELP
public static final String FOLDER_ROOT
public static final String FOLDER_SYSTEM
public static final String FOLDER_HELP
public static final String FOLDER_XTYPES
public static final String FOLDER_PORTLETS
public static final String FOLDER_PORTLET_INSTANCES
public static final String FOLDER_TEMPLATES_MANAGEMENT
public static final String FOLDER_USERS
public static final String FOLDER_XTYPE
public static final String FOLDER_THEMES
public static final String FOLDER_SKINS
public static final String FOLDER_DIRECTORY_SERVICE
public static final String FOLDER_CONTENT_SERVICE
public static final String FOLDER_TEMPLATES
public static final String FOLDER_PUBLIC
public static final String TEMPLATE_BASIC
public static final String TEMPLATE_EMPTY
public static final String TEMPLATE_THREE_COL
public static final String TEMPLATE_USECORPGOV
public static final String USER_CURRENT
public static final String USER_CURRENT_ROOT
public static final String USER_CURRENT_HOME
public static final String USER_CURRENT_START_PAGE
public static final String USER_CURRENT_FAVORITES
public static final String USER_CURRENT_SAVED_SEARCHES
public static final String USER_CURRENT_PROFILE
public static final String CURRENT_RESOURCE
public static final String CURRENT_RESOURCE_TYPE
public static final String CURRENT_RESOURCE_PARENT
public static final String CURRENT_RESOURCE_ANCESTOR
public static final String PORTLET_PERMISSIONS
public static final String PORTLET_DEFAULT_ADMIN_PAGE
public static final String PORTLET_DEFAULT_PAGE
public static final String PORTLET_HEAD
public static final String PORTLET_DIRECTORY
public static final String PORTLET_FOLDERVIEW
public static final String PORTLET_LEFTNAV
public static final String PORTLET_LOCATIONS
public static final String PORTLET_LOGOUT
public static final String PORTLET_PROPERTIES
public static final String PORTLET_PUBLISH
public static final String PORTLET_TITLEBAR
public static final String PORTLET_UNI_PICKER
public static final String PORTLET_USER_PROFILE
public static final String PORTLET_STREAMING_CONTENT_VIEWER
public static final String PORTLET_ERROR_REPORT
public static final String TASK_ENGINE_LIBRARY_MODE
protected static PortalSystem m_portalSystem
protected Map<String,IComponentProvider> m_componentProviders
IComponentProvider
interfaceprotected Map<String,String> m_componentProviderNames
IComponentNames
interfaceprotected List<IURIResolver> m_uriResolverList
IURIResolver
protected IURIResolver[] m_uriResolvers
IURIResolver
that always gets first crack at calls to acquireURI(java.lang.String)
protected IURIResolver[] m_uriResolverServices
IURIResolver
that always gets first crack at calls to acquireURI(java.lang.String)
protected IPhaseProvider m_phaseProvider
protected int m_state
getState()
public static long PORTAL_START_TIME
protected static String m_VMID
public static PortalSystem getPortalSystem()
PortalSystem
public static Map<String,IComponentProvider> getComponentProviders()
IComponentProvider
s.
The map's keys are the names (java.lang.String) of the IComponentProvider
.
The map's values are the instances of IComponentProvider
.
Typically, you should use the convenience functions like getMechanicsProvider()
instead
of retrieving the map directly.IComponentProvider
s.m_componentProviders
public IURIResolver[] getUriResolvers()
IURIResolver
s.m_uriResolvers
@Deprecated public static IComponentProvider getComponentProvider(String componentProvider)
getComponentProvider(Class, String)
insteadIComponentProvider
after which you should cast to
the specific interface requested.componentProvider
- the name of a registered IComponentProvider
.
It is highly recommended to use a named constant from IComponentProvider
.IComponentProvider
or null if not foundpublic static <T extends IComponentProvider> T getComponentProvider(Class<T> componentProviderInterface)
IComponentProvider
componentProviderInterface
- the interface of a registered IComponentProvider
.IComponentProvider
or null if not foundpublic static <T extends IComponentProvider> T getComponentProvider(Class<T> componentProviderInterface, String name)
IComponentProvider
componentProviderInterface
- the interface of a registered IComponentProvider
.IComponentProvider
or null if not foundpublic static void addComponentProvider(String name, IComponentProvider cp)
IComponentProvider
s. No other logic is performed.name
- The name of the component providercp
- The IComponentProvider
getComponentProviders()
,
removeComponentProvider(java.lang.String)
public static void removeComponentProvider(String name)
IComponentProvider
from the internal map.name
- The name of the component provider.getComponentProviders()
,
addComponentProvider(java.lang.String, com.webmethods.portal.system.IComponentProvider)
public static void removeComponentProvider(IComponentProvider provider)
IComponentProvider
from the internal map.provider
- The component provider.getComponentProviders()
,
addComponentProvider(java.lang.String, com.webmethods.portal.system.IComponentProvider)
@Deprecated public static IComponentProvider getDirectoryProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadIDirSystem
@Deprecated public static IComponentProvider getMetaProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadIMetaManager
@Deprecated public static IComponentProvider getMechanicsProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadIMechanicsManager
@Deprecated public static IComponentProvider getCommandProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadICommandManager
@Deprecated public static IComponentProvider getBizPolicyProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadIBizPolicyManager
@Deprecated public static IComponentProvider getContentProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadIContentManager
@Deprecated public static IComponentProvider getCacheProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadICacheManager
@Deprecated public static IComponentProvider getInstallProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadIInstallProvider
@Deprecated public static IComponentProvider getPortletProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadIPortletProvider
@Deprecated public static IComponentProvider getClassManager()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadIClassManager
@Deprecated public static IComponentProvider getAuditManager()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadcom.webmethods.portal.service.classmanager.IAuditManager
@Deprecated public static IComponentProvider getBundleManager()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadcom.webmethods.portal.service.bundle.BundleManager
@Deprecated public static IComponentProvider getTaskProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
instead@Deprecated public static IComponentProvider getWebAppProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadIWebApplication
@Deprecated public static IComponentProvider getWebServiceProvider()
IWebService
@Deprecated public static IComponentProvider getAppServerProvider()
@Deprecated public static IComponentProvider getClusterProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadIClusterProvider
@Deprecated public static IComponentProvider getVersionProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadIVersionProvider
@Deprecated public static IComponentProvider getContextProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadIContextProvider
@Deprecated public static IComponentProvider getGlobalProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadIGlobalProvider
@Deprecated public static IComponentProvider getNoodleProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadcom.webmethods.portal.noodle.INdlComponentProvider
@Deprecated public static IComponentProvider getBCGadgetProvider()
getComponentProvider(Class)
or getComponentProvider(Class, String)
insteadcom.webmethods.portal.service.bcgadget.IBCGadgetProvider
public static IPhaseProvider getPhaseProvider()
IPhaseProvider
public static String localizeMessage(Class<? extends ResourceBundle> resourceBundle, String messageKey, Object[] args, boolean includeMessageKeyPrefix)
resourceBundle
- the bundle to get the message frommessageKey
- the key of the message to retrieveargs
- any args needed to complete the message (may be null)includeMessageKeyPrefix
- true to include the message key in the returned message, false otherwisepublic static int getState()
public static void setState(int state)
state
- The state to set.getState()
,
UNINITIALIZED_STATE
,
BOOTSTRAP_STATE
,
INITIALIZING_STATE
,
READY_STATE
,
SHUTDOWN_STATE
public Object lookup(IURI objectURI) throws PortalException
objectURI
- the URI to the objectPortalException
public boolean exists(IURI objectURI) throws PortalException
objectURI
- the URI to of an objectPortalException
public IURI acquireURI(String uri) throws PortalException
IURI
based on the URI information.acquireURI
in interface IURIResolver
uri
- the String version of the URIIURI
PortalException
- if the URI cannot be constructed or if the URI has an invalid syntaxpublic IURI acquireURI(String uri, boolean lookup) throws PortalException
IURI
based on the URI information.acquireURI
in interface IURIResolver
uri
- the String version of the URIlookup
- boolean flag to enable lookup.IURI
PortalException
- if the URI cannot be constructed or if the URI has an invalid syntaxprotected abstract Object actionInit(String category, String actionName)
category
- the action categoryactionName
- the action nameprotected abstract void actionStart(Object token)
token
- the perf token returned from actionInit(String, String)
protected abstract void actionEnd(Object token)
token
- the perf token returned from actionInit(String, String)
public IURI resolveURIByPath(String value) throws PortalException
value
- IURI
PortalException
- if the URI cannot be constructed or if the URI has an invalid syntaxpublic void addURIResolver(IURIResolver newUriResolver)
acquireURI(java.lang.String)
to be 'hooked' by other resolversnewUriResolver
- acquireURI(java.lang.String)
public void removeURIResolver(IURIResolver newUriResolver)
acquireURI(java.lang.String)
to be 'hooked' by other resolversnewUriResolver
- acquireURI(java.lang.String)
public void setURIResolverServices(IURIResolver[] uriResolvers)
uriResolvers
- the array of IURIResolver services to usepublic static void main(String[] args) throws Exception
The arg identifies the portal.properties (configLocation)
for example:
java com.webmethods.portal.system.PortalSystem file:/c:/portalminder/config/portal.properties
args
- portal.propertiesException
public static void doStartup(IPhaseProvider phaseProvider) throws Exception
phaseProvider
- (optional) existing phase provider to use instead of creating a new oneException
public static void initGuestUser()
protected abstract void registerAsService()
protected void init(String configLocation, IPhaseProvider phaseProvider) throws InitializationException
configLocation
- The location of the bootstrap config stuff.InitializationException
public void shutdown()
public static String getSystemProperty(String propertyName, String defaultValue)
propertyName
- The system property name to find.defaultValue
- The default value to return if the property isn't found.public static void setSystemProperty(String key, String value) throws IOException
1) It will set the system property: System.setProperty(java.lang.String, java.lang.String)
2) It will persist the property to the registry
3) It will fire an event
key
- The name of the property to set.value
- The value to set the property to.IOException
- if it can't save to the persistent system properties file.protected abstract void persistSystemProperty(String key, String value) throws IOException
key
- system property keyvalue
- system property valueIOException
public static boolean inDevMode()
public static boolean inPreviewServerMode()
public static String getVMID()
public static void waitUntilReady(Runnable runnable)
public static boolean isReady()
public static String fixMWSURI(String uri)
uri
- public static String fixClientSideURI(String uri)
uri
- public static String getContextPath()
public static Boolean isLibraryMode()
public static boolean isTELibrary()