|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.wcb.foundation.ComponentBase
nl.gx.webmanager.wcb.foundation.ComponentTypeBase
nl.gx.webmanager.wcb.mediaitemtype.impl.MediaItemComponentTypeImpl
public final class MediaItemComponentTypeImpl
This class provides a componentType implementation for GX Webmanager media items. NOTE: media types are identified by their content type (provided by the @ContentType annotation. So if the value of this annotation is changed in an update of the WCB the framework will not identify the WCB as already installed WCB but will create a new content type for it. Therefore the value of the
| Field Summary | |
|---|---|
protected static java.lang.String |
INSTALL
|
protected static java.lang.String |
PURGECONTENT
|
protected static java.lang.String |
UNINSTALL
|
| Fields inherited from class nl.gx.webmanager.wcb.foundation.ComponentBase |
|---|
myBundleContext, myComponentBundle, myComponentDefinition |
| Constructor Summary | |
|---|---|
MediaItemComponentTypeImpl()
|
|
| Method Summary | |
|---|---|
boolean |
checkComponentDefinition(ComponentDefinition componentDefinition)
Checks if the component definition is valid |
java.lang.String |
getComponentInterface()
Returns the class name of the component interface. |
java.lang.String |
getComponentTypeInterface()
Returns the class name of the component type interface. |
protected org.osgi.service.prefs.PreferencesService |
getPreferencesService()
Returns the injected preferences service. |
boolean |
installComponent(ComponentDefinition componentDefinition)
Invoked when a component of this component type is installed. |
boolean |
purgeComponent(ComponentDefinition componentDefinition)
Deletes the content created by instances of the component type. |
protected void |
removeAllJellyContent(ComponentDefinition componentDefinition)
Removes all content from the database tables created by this content type |
protected void |
removeCustomJCRMediaItems(ComponentDefinition componentDefinition,
nl.gx.siteworks.core.SiteWorksSession session)
Removes all JCR nodes and node types associated with the given component. |
boolean |
startComponent(Component component)
Starts an installed component. |
boolean |
stopComponent(Component component)
Stops an installed component. |
boolean |
uninstallComponent(ComponentDefinition componentDefinition)
Uninstalls a component. |
boolean |
updateComponent(ComponentDefinition componentDefinition)
Updates a component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nl.gx.webmanager.wcb.ComponentType |
|---|
getComponent, getComponentCount, getComponents |
| Field Detail |
|---|
protected static final java.lang.String INSTALL
protected static final java.lang.String UNINSTALL
protected static final java.lang.String PURGECONTENT
| Constructor Detail |
|---|
public MediaItemComponentTypeImpl()
| Method Detail |
|---|
public boolean startComponent(Component component)
startComponent in interface ComponentTypestartComponent in class ComponentTypeBasecomponent - Component that should be started
public boolean stopComponent(Component component)
ComponentTypeBase
stopComponent in interface ComponentTypestopComponent in class ComponentTypeBasecomponent - Component that should be started
public boolean installComponent(ComponentDefinition componentDefinition)
ComponentTypeBase
installComponent in interface ComponentTypeinstallComponent in class ComponentTypeBasecomponentDefinition - Definition of the component that is to be installed
public boolean updateComponent(ComponentDefinition componentDefinition)
ComponentTypeBase
updateComponent in interface ComponentTypeupdateComponent in class ComponentTypeBasecomponentDefinition - Definition of the component that is to be installed
public boolean purgeComponent(ComponentDefinition componentDefinition)
ComponentTypeBase
purgeComponent in interface ComponentTypepurgeComponent in class ComponentTypeBasecomponentDefinition - Definition of the component that is to be purged
public boolean uninstallComponent(ComponentDefinition componentDefinition)
ComponentTypeBase
uninstallComponent in interface ComponentTypeuninstallComponent in class ComponentTypeBasecomponentDefinition - Definition of the component that is to be uninstalled
public boolean checkComponentDefinition(ComponentDefinition componentDefinition)
checkComponentDefinition in interface ComponentTypecheckComponentDefinition in class ComponentTypeBasecomponentDefinition - definition of a component that is validated
protected void removeCustomJCRMediaItems(ComponentDefinition componentDefinition,
nl.gx.siteworks.core.SiteWorksSession session)
throws javax.jcr.RepositoryException
componentDefinition - The component definition to remove the JCR nodes for
javax.jcr.RepositoryException
protected void removeAllJellyContent(ComponentDefinition componentDefinition)
throws java.sql.SQLException,
javax.management.ServiceNotFoundException
componentDefinition - Component definition to remove content for
java.sql.SQLException
javax.management.ServiceNotFoundExceptionpublic java.lang.String getComponentInterface()
getComponentInterface in interface ComponentTypepublic java.lang.String getComponentTypeInterface()
getComponentTypeInterface in interface ComponentTypeprotected org.osgi.service.prefs.PreferencesService getPreferencesService()
getPreferencesService in class ComponentTypeBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||