|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.repository.filter.AbstractFilterManager
Abstract base class for all filter managers.
Copyright (c) SAP AG 2001 - 2002
| Inner Class Summary | |
static interface |
AbstractFilterManager.CFG
TBD: Description of the class. |
static interface |
AbstractFilterManager.FILTER_PRIO
TBD: Description of the class. |
protected static interface |
AbstractFilterManager.TYPE
TBD: Description of the class. |
| Field Summary | |
protected IConfiguration |
config
|
protected java.util.Properties |
properties
|
protected ComponentStateHandler |
stateHandler
|
| Constructor Summary | |
|
AbstractFilterManager()
The default constructor |
protected |
AbstractFilterManager(java.util.Properties properties)
Deprecated. As of EP 5.0 SP5, replaced by default (public, no arguments) constructor. |
| Method Summary | |
protected void |
callUpdateFilter(java.lang.String id,
java.lang.Integer prio,
java.lang.String prefix,
PathPatternMatcher mimePattern,
PathPatternMatcher extPattern,
PathPatternMatcher pathPattern,
java.lang.String resourceType,
java.util.ArrayList managerIDs,
int type)
Update the filter properties of runtime. |
protected abstract void |
changeSystemProperties(IConfiguration newConfig)
Changes the system properties of a filter manager. |
protected void |
checkNotReconfigurableAttributes(java.lang.String[] notReconfigurable,
IConfiguration newConfig)
Helper method for reconfigure() implementations. |
void |
configure(IConfiguration config)
Passes the configuration data to the configurable. |
protected static java.util.Properties |
convertConfigToProperties(IConfiguration config)
Helper method for conversion of configuration data into properties. |
protected static java.util.Properties |
convertConfigToProperties(IConfiguration config,
java.lang.String prefix)
Helper method for conversion of configuration data into properties. |
java.util.Date |
getCreationDate()
Returns the date and time of the creation of the component instance. |
java.lang.String |
getDescription(java.util.Locale locale)
Returns a description of the components purpose or null . |
java.lang.String |
getID()
|
ConfigurationException |
getLastConfigurationException()
Returns the exception thrown in the last call to IConfigurable.configure(IConfiguration),
or IReconfigurable.reconfigure(IConfiguration). |
java.util.Date |
getLastReconfigurationDate()
Returns the date and time of the last reconfiguration of this component. |
java.lang.String |
getName()
Returns the component's human-readable name or null . |
java.util.Date |
getNextAutoRestartDate()
Returns the date and time of the next automatic restart of the component. |
java.util.Properties |
getProperties()
Returns some arbitrary properties with information about the component or null . |
StartupException |
getStartupException()
Returns the exception thrown in the last call to IStartable.start(),
Can be null . |
ComponentState |
getState()
Returns the current life-cycle state of the component. |
protected java.util.ArrayList |
parseValueList(java.lang.String values,
java.lang.String separator)
Helper method: Tokenize a string with a separator char into a List |
protected void |
shutDown()
Deprecated. As of EP 5.0 SP5, replaced by startUpImpl(). |
protected void |
shutDownImpl()
The implementation must overwrite this method if it has to release resources acquired during startup. |
void |
start()
A component must implement this method if it has initial startup handling to do before being accessible (acquire resources, open connections to remote systems, etc). |
protected void |
startUp()
Deprecated. As of EP 5.0 SP5, replaced by shutDownImpl(). |
protected void |
startUpImpl()
The implementation must overwrite this method if it has initial startup handling to do (acquire resources, open connections to remote systems, etc). |
void |
stop()
This method is only called once during the life-time of a component. |
protected void |
throwConfigurationException(java.lang.String text,
java.lang.String location,
java.lang.String propName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Properties properties
protected IConfiguration config
protected final ComponentStateHandler stateHandler
| Constructor Detail |
public AbstractFilterManager()
protected AbstractFilterManager(java.util.Properties properties)
properties - TBD: Description of the incoming method parameter| Method Detail |
public final java.lang.String getID()
public final void configure(IConfiguration config)
throws ConfigurationException
IConfigurableconfigure in interface IConfigurablecom.sapportals.wcm.crt.component.IConfigurableconfiguration - the component's configuration data.ConfigurationException - Exception raised in failure situation
public final void start()
throws StartupException
IStartableAutoRestartException was thrown.start in interface IStartablecom.sapportals.wcm.crt.component.IStartableStartupException - If the initialization failed because neccessary
resources could not be allocated.public final void stop()
IStartablestop in interface IStartablepublic java.lang.String getName()
IComponentInfonull .getName in interface IComponentInfocom.sapportals.wcm.crt.component.IComponentInfonull .public java.lang.String getDescription(java.util.Locale locale)
IComponentInfonull .getDescription in interface IComponentInfocom.sapportals.wcm.crt.component.IComponentInfolocale - Selects the language of the description text - can be
null .null .public java.util.Properties getProperties()
IComponentInfonull .getProperties in interface IComponentInfocom.sapportals.wcm.crt.component.IComponentInfonull .public final ComponentState getState()
ILifecycleInfonull
.
- Specified by:
getState in interface ILifecycleInfo
- Following copied from interface:
com.sapportals.wcm.crt.component.ILifecycleInfo
- Returns:
- the current life-cycle state of the component. Can be
null
.
public ConfigurationException getLastConfigurationException()
ILifecycleInfoIConfigurable.configure(IConfiguration),
or IReconfigurable.reconfigure(IConfiguration). Can be
null .getLastConfigurationException in interface ILifecycleInfocom.sapportals.wcm.crt.component.ILifecycleInfopublic StartupException getStartupException()
ILifecycleInfoIStartable.start(),
Can be null .getStartupException in interface ILifecycleInfocom.sapportals.wcm.crt.component.ILifecycleInfopublic final java.util.Date getCreationDate()
ILifecycleInfonull . This property usually makes sense only for components
that implement the IThreadSafe interface.
- Specified by:
getCreationDate in interface ILifecycleInfo
- Following copied from interface:
com.sapportals.wcm.crt.component.ILifecycleInfo
- Returns:
- the date and time of the creation of the component instance. Can be
null .
public java.util.Date getLastReconfigurationDate()
ILifecycleInfonull .
- Specified by:
getLastReconfigurationDate in interface ILifecycleInfo
- Following copied from interface:
com.sapportals.wcm.crt.component.ILifecycleInfo
- Returns:
- the date and time of the last reconfiguration of this component.
Can be
null .
public java.util.Date getNextAutoRestartDate()
ILifecycleInfonull .
- Specified by:
getNextAutoRestartDate in interface ILifecycleInfo
- Following copied from interface:
com.sapportals.wcm.crt.component.ILifecycleInfo
- Returns:
- the date and time of the next automatic restart of the component.
Can be
null .- See Also:
AutoRestartException
protected void startUp()
throws WcmException
shutDownImpl().
WcmException - Exception raised in failure situation
protected void shutDown()
throws WcmException
startUpImpl().
WcmException - Exception raised in failure situation
protected void startUpImpl()
throws ConfigurationException,
StartupException
IStartable interface of the CRT this
method will be called only once. It will be called on systen start up or
when a new instance of this component is added to the persistence
configuration.ConfigurationException - Exception raised in failure situationStartupException - Exception raised in failure situationprotected void shutDownImpl()
IStartable interface of the CRT this
method will be called only once. It will be called when the component is
removed from the persistent configuration or when the system shuts down.protected static final java.util.Properties convertConfigToProperties(IConfiguration config)
config - to be converted
protected static final java.util.Properties convertConfigToProperties(IConfiguration config,
java.lang.String prefix)
config - to be convertedprefix - to prepend to config's attribute names
protected abstract void changeSystemProperties(IConfiguration newConfig)
throws ConfigurationException
newConfig - The new configuration.ConfigurationException - If the new system properties are invalid
protected final void throwConfigurationException(java.lang.String text,
java.lang.String location,
java.lang.String propName)
throws ConfigurationException
protected final void checkNotReconfigurableAttributes(java.lang.String[] notReconfigurable,
IConfiguration newConfig)
throws ConfigurationException
notReconfigurable - newConfig - ConfigurationException -
protected final void callUpdateFilter(java.lang.String id,
java.lang.Integer prio,
java.lang.String prefix,
PathPatternMatcher mimePattern,
PathPatternMatcher extPattern,
PathPatternMatcher pathPattern,
java.lang.String resourceType,
java.util.ArrayList managerIDs,
int type)
throws java.lang.Exception
id - TBD: Description of the incoming method parameterprio - TBD: Description of the incoming method parameterprefix - TBD: Description of the incoming method parametermimePattern - TBD: Description of the incoming method parameterextPattern - TBD: Description of the incoming method parameterpathPattern - TBD: Description of the incoming method parameterresourceType - TBD: Description of the incoming method parametermanagerIDs - TBD: Description of the incoming method parametertype - TBD: Description of the incoming method parameterjava.lang.Exception - Exception raised in failure situation
protected final java.util.ArrayList parseValueList(java.lang.String values,
java.lang.String separator)
values - TBD: Description of the incoming method parameterseparator - TBD: Description of the incoming method parameter
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||