|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Component
| Method Summary | |
|---|---|
void |
exportContent(javax.jcr.Node node,
boolean exportBinaries,
java.io.OutputStream out)
Writes the repository content associated with the given Node to given OutputStream. |
java.lang.Class[] |
getClassesFromBundle()
Retrieve all classes from the bundle. |
java.lang.Class |
getClassForName(java.lang.String fullyQualifiedClassName)
Returns the class for the given fully qualified class name. |
ComponentBundle |
getComponentBundle()
Returns the component bundle which contains this component. |
ComponentDefinition |
getComponentDefinition()
Returns the definition containing all metadata describing this component. |
java.util.Collection<ExtensionProvider> |
getExtensions(java.lang.String interfaceClassName)
|
java.lang.String |
getId()
Return the identifier for this component. |
java.lang.Object |
getInstance()
Returns an instance of the component's class. |
java.lang.Object |
getInstanceForName(java.lang.String fullyQualifiedClassName)
Returns an instance of the given class if it is serviced by this component's OSGi bundle. |
javax.jcr.Node |
getPrivateNode(java.lang.String websiteIdentifier)
Retrieve a private node for this panelcomponent. |
java.lang.String |
getTypeId()
Return the identifier for this components type. |
WrapperDefinition[] |
getWrapperDefinitions()
Returns the component's WrapperDefinitions. |
void |
importContent(javax.jcr.Node targetNode,
boolean importBinaries,
java.io.InputStream in,
int uuidbehavior)
Imports content into the JCR. |
void |
onDestroy()
Can be implemented by components for attaching logic to a destroy event. |
void |
onInit()
Can be implemented by components for attaching logic to a init event. |
void |
onInstall()
Can be implemented by components for attaching logic to an install event. |
boolean |
onPurge()
Can be implemented by components for attaching logic to a purge event. |
void |
onStart()
Can be implemented by components for attaching logic to a start event. |
void |
onStop()
Can be implemented by components for attaching logic to a stop event. |
boolean |
onUninstall()
Can be implemented by components for attaching logic to an uninstall event Note that the WCB containing the component needs to be ACTIVE in order for the onUninstall to be invoked. |
void |
onUpdate()
Can be implemented by components for attaching logic to an update event. |
void |
purgeContent()
Deletes the content created by instances of the component. |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext)
Sets the context of the OSGi bundle which contains this component. |
void |
setComponentBundle(ComponentBundle componentBundle)
Sets the component bundle which contains this component. |
void |
setComponentDefinition(ComponentDefinition componentDefinition)
Set the definition containing all metadata describing this component. |
void |
setComponentManager(ComponentManager componentManager)
|
| Method Detail |
|---|
java.lang.String getId()
java.lang.String getTypeId()
void onStart()
void onStop()
void onDestroy()
void onInit()
void onInstall()
void onUpdate()
boolean onPurge()
true if the install succeeded, false otherwise. If false is returned,
the WCB will not be purged.boolean onUninstall()
true if the uninstallation succeeded, false otherwise. If false is
returned, the WCB will not be uninstalled.ComponentDefinition getComponentDefinition()
void setComponentDefinition(ComponentDefinition componentDefinition)
componentDefinition - Definition containing all metadata describing this componentComponentBundle getComponentBundle()
void setComponentManager(ComponentManager componentManager)
componentManager - void setComponentBundle(ComponentBundle componentBundle)
componentBundle - Component bundle which contains this componentvoid setBundleContext(org.osgi.framework.BundleContext bundleContext)
bundleContext - Context of the OSGi bundle which contains this componentjava.lang.Class getClassForName(java.lang.String fullyQualifiedClassName)
fullyQualifiedClassName - fully qualified class name
WrapperDefinition[] getWrapperDefinitions()
java.lang.Class[] getClassesFromBundle()
java.lang.Object getInstance()
java.lang.Object getInstanceForName(java.lang.String fullyQualifiedClassName)
fullyQualifiedClassName - Fully qualified class name
void purgeContent()
javax.jcr.Node getPrivateNode(java.lang.String websiteIdentifier)
websiteIdentifier - the unique identifier of the cuurent webinitiatif, or null if the
allContainerNode should be returned
void exportContent(javax.jcr.Node node,
boolean exportBinaries,
java.io.OutputStream out)
throws ExportException
node - the root of the subtree to be serializedexportBinaries - whether binaries should be includedout - The OutputStream to which the systemview on the content is exported.
ExportException - on error
void importContent(javax.jcr.Node targetNode,
boolean importBinaries,
java.io.InputStream in,
int uuidbehavior)
throws ImportException
targetNode - the node under which the deserialized subtree is addedimportBinaries - whether binary content should be imported; ignored by the default implementationin - the inputstream from which the xml to deserialize is readuuidbehavior - a four-value flag that governs how incoming UUIDs are handled
ImportException - on errorjava.util.Collection<ExtensionProvider> getExtensions(java.lang.String interfaceClassName)
interfaceClassName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||