|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.repository.filter.AbstractFilterManager
Abstract base class for all filter managers.
Copyright (c) SAP AG 2001 - 2002
| Nested 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 Properties |
properties
|
protected ComponentStateHandler |
stateHandler
|
| Constructor Summary | |
|
AbstractFilterManager()
The default constructor |
protected |
AbstractFilterManager(Properties properties)
Deprecated. As of EP 5.0 SP5, replaced by default (public, no arguments) constructor. |
| Method Summary | |
protected void |
callUpdateFilter(String id,
Integer prio,
String prefix,
PathPatternMatcher mimePattern,
PathPatternMatcher extPattern,
PathPatternMatcher pathPattern,
String resourceType,
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(String[] notReconfigurable,
IConfiguration newConfig)
Helper method for reconfigure() implementations. |
void |
configure(IConfiguration config)
Passes the configuration data to the configurable. |
protected static Properties |
convertConfigToProperties(IConfiguration config)
Helper method for conversion of configuration data into properties. |
protected static Properties |
convertConfigToProperties(IConfiguration config,
String prefix)
Helper method for conversion of configuration data into properties. |
Date |
getCreationDate()
Returns the date and time of the creation of the component instance. |
String |
getDescription(Locale locale)
Returns a description of the components purpose or null . |
String |
getID()
|
ConfigurationException |
getLastConfigurationException()
Returns the exception thrown in the last call to IConfigurable.configure(IConfiguration),
or IReconfigurable.reconfigure(IConfiguration). |
Date |
getLastReconfigurationDate()
Returns the date and time of the last reconfiguration of this component. |
String |
getName()
Returns the component's human-readable name or null . |
Date |
getNextAutoRestartDate()
Returns the date and time of the next automatic restart of the component. |
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 ArrayList |
parseValueList(String values,
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(String text,
String location,
String propName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Properties properties
protected IConfiguration config
protected final ComponentStateHandler stateHandler
| Constructor Detail |
public AbstractFilterManager()
protected AbstractFilterManager(Properties properties)
properties - TBD: Description of the incoming method parameter| Method Detail |
public final String getID()
public final void configure(IConfiguration config)
throws ConfigurationException
IConfigurable
configure in interface IConfigurableconfig - the component's configuration data.
ConfigurationException - Exception raised in failure situation
public final void start()
throws StartupException
IStartableAutoRestartException was thrown.
start in interface IStartableStartupException - If the initialization failed because neccessary
resources could not be allocated.public final void stop()
IStartable
stop in interface IStartablepublic String getName()
IComponentInfonull .
getName in interface IComponentInfonull .public String getDescription(Locale locale)
IComponentInfonull .
getDescription in interface IComponentInfolocale - Selects the language of the description text - can be
null .
null .public Properties getProperties()
IComponentInfonull .
getProperties in interface IComponentInfonull .public final ComponentState getState()
ILifecycleInfonull
.
- Specified by:
getState in interface 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 ILifecycleInfopublic StartupException getStartupException()
ILifecycleInfoIStartable.start(),
Can be null .
getStartupException in interface ILifecycleInfopublic final Date getCreationDate()
ILifecycleInfonull . This property usually makes sense only for components
that implement the IThreadSafe interface.
- Specified by:
getCreationDate in interface ILifecycleInfo
- Returns:
- the date and time of the creation of the component instance. Can be
null .
public Date getLastReconfigurationDate()
ILifecycleInfonull .
- Specified by:
getLastReconfigurationDate in interface ILifecycleInfo
- Returns:
- the date and time of the last reconfiguration of this component.
Can be
null .
public Date getNextAutoRestartDate()
ILifecycleInfonull .
- Specified by:
getNextAutoRestartDate in interface 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 situation
StartupException - 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 Properties convertConfigToProperties(IConfiguration config)
config - to be converted
protected static final Properties convertConfigToProperties(IConfiguration config,
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(String text,
String location,
String propName)
throws ConfigurationException
ConfigurationException
protected final void checkNotReconfigurableAttributes(String[] notReconfigurable,
IConfiguration newConfig)
throws ConfigurationException
notReconfigurable - newConfig -
ConfigurationException
protected final void callUpdateFilter(String id,
Integer prio,
String prefix,
PathPatternMatcher mimePattern,
PathPatternMatcher extPattern,
PathPatternMatcher pathPattern,
String resourceType,
ArrayList managerIDs,
int type)
throws 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 parameter
Exception - Exception raised in failure situation
protected final ArrayList parseValueList(String values,
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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||