|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sap.netweaver.bc.rf.mi.AbstractManager
Abstract base class for repository managers.
| Field Summary | |
protected IConfiguration |
config
This manager's configuration |
protected java.lang.String |
prefix
|
protected ComponentStateHandler |
stateHandler
|
| Constructor Summary | |
AbstractManager()
Construct object of class AbstractManager. |
|
| Method Summary | |
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. |
void |
contextualize(IContext context)
Pass the context to the component. |
boolean |
equals(java.lang.Object other)
|
boolean |
eventsEnabled()
Returns true if standard resource events should be sent by the framework. |
IBasicVersioningManager |
getBasicVersioningManager()
|
IComponentManager |
getComponentManager()
Returns the component manager for accessing this container's child components. |
IConfiguration |
getConfig()
|
IContentManager |
getContentManager()
|
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 . |
IResourceEventBroker |
getEventBroker()
|
IEventList |
getEvents()
Returns a list of event templates for all possible events of this sender. |
IEventList |
getEvents(IResource resource)
This method is used to report all possible events for a resource. |
java.lang.String |
getId()
Get the unique id of the repository manager (usually assigned and made unique through the configuration framework). |
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. |
ILockManager |
getLockManager()
|
java.lang.String |
getName()
Returns the component's human-readable name or null . |
NameInfo |
getNameInfo()
Get the NameInfo of a repository manager. |
INamespaceManager |
getNamespaceManager()
|
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 . |
IPropertyManager |
getPropertyManager()
|
java.lang.String |
getRidPrefix()
Get the root token of a resource id, this resource manager claims responsibility for. |
ISecurityManager |
getSecurityManager()
|
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. |
java.util.Map |
getSubManagers()
Get map of sub managers indexed by sub manager interface, e.g. a repository manager with a content and property sub manager implemented in one class and a separate security sub manager implemented in another class, returns a map with the content and property sub manager added twice via the content sub manager interface and the property sub manager interface and the security sub manager via the security sub manager interface. |
int |
hashCode()
|
boolean |
mustSendResourceEventType(int type)
ResourceImpl will call this method to check if a given resource event type must be sent at all. |
protected boolean |
reconfigureSecurityManager(IConfiguration newConfig)
Must be called by the RM implementation in its reconfigure() method if reconfiguration of security managers at runtime must be supported. |
protected void |
registerSecurityManager(java.lang.String name,
java.lang.String manager)
|
IResourceEvent |
sendEvent(IResource resource,
int type,
java.lang.String correlationId,
java.lang.Object param)
ResourceImpl will call this method to send the standard resource events |
protected void |
shutDownImpl()
The implementation must overwrite this method if it has to release resources acquired during shutdown. |
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 |
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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sap.netweaver.bc.rf.mi.IManager |
getSupportedOptions, lookup, lookup, lookup |
| Field Detail |
protected final ComponentStateHandler stateHandler
protected IConfiguration config
protected java.lang.String prefix
| Constructor Detail |
public AbstractManager()
| Method Detail |
public IConfiguration getConfig()
public ISecurityManager getSecurityManager()
public INamespaceManager getNamespaceManager()
public IPropertyManager getPropertyManager()
public ILockManager getLockManager()
public IBasicVersioningManager getBasicVersioningManager()
public IContentManager getContentManager()
public java.lang.String getId()
IManagergetId in interface IManagercom.sap.netweaver.bc.rf.mi.IManagerpublic java.lang.String getRidPrefix()
IManagergetRidPrefix in interface IManagercom.sap.netweaver.bc.rf.mi.IManagerpublic NameInfo getNameInfo()
IManagerNameInfo of a repository manager. The NameInfo
contains information about the restrictions for resource and collection
names.getNameInfo in interface IManagercom.sap.netweaver.bc.rf.mi.IManagerpublic java.util.Map getSubManagers()
IManagergetSubManagers in interface IManagercom.sap.netweaver.bc.rf.mi.IManagerpublic IResourceEventBroker getEventBroker()
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 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 IEventList getEvents()
IEventSendergetEvents in interface IEventSendercom.sapportals.wcm.util.events.IEventSenderpublic IEventList getEvents(IResource resource)
IResourceEventSendergetEvents in interface IResourceEventSendercom.sapportals.wcm.repository.manager.IResourceEventSenderresource - The resourcepublic IComponentManager getComponentManager()
IContainergetComponentManager in interface IContainercom.sapportals.wcm.crt.component.IContainerpublic 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 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 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
public final boolean mustSendResourceEventType(int type)
type - the type of ResourceEvent to send
public final IResourceEvent sendEvent(IResource resource,
int type,
java.lang.String correlationId,
java.lang.Object param)
type - The event type (ResourceEvent.XXX constant)resource - The resource the event belongs toparam - The event parametercorrelationId - TBD: Description of the incoming method parameterpublic final boolean eventsEnabled()
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 IStartable
public void contextualize(IContext context)
throws ContextException
IContextualizablecontextualize in interface IContextualizablecom.sapportals.wcm.crt.component.IContextualizablecontext - The context objectsContextException - if the context is invalid
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 - StartupException - protected 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 final void checkNotReconfigurableAttributes(java.lang.String[] notReconfigurable,
IConfiguration newConfig)
throws ConfigurationException
notReconfigurable - An array of names of attributes that cannot be
canged wihout restarting the component/server.newConfig - The new configuration data received as argument of the
reconfigure() method.ConfigurationException -
protected void registerSecurityManager(java.lang.String name,
java.lang.String manager)
protected final boolean reconfigureSecurityManager(IConfiguration newConfig)
throws ConfigurationException
newConfig - The new configuration data (paramater of the reconfigure() method).ConfigurationException - If the new sub manager can not be started.
If the sub manager implements other sub manager interfaces than ISecurityManager.
If the sub manager does not implement ISecurityManager.
If the sub manager does not extend AbstractRepositorySubManager.public java.lang.String toString()
toString in class java.lang.Objectpublic final boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Object
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||