|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.pax.wicket.util.AbstractAggregatedSource<org.ops4j.pax.wicket.samples.departmentstore.view.floor.internal.FloorPanel>
org.ops4j.pax.wicket.samples.departmentstore.view.floor.internal.FloorAggregatedSource
public class FloorAggregatedSource
| Field Summary | |
|---|---|
protected Logger |
LOGGER
|
| Fields inherited from interface org.ops4j.pax.wicket.api.ContentSource |
|---|
AGGREGATION_POINT, APPLICATION_NAME, BASIC_ROLES, DESTINATION_UNKNOWN, DESTINATIONS, HOMEPAGE_CLASSNAME, MOUNTPOINT, PAGE_ID, PAGE_NAME, REQUIRED_ROLES, SOURCE_ID |
| Constructor Summary | |
|---|---|
FloorAggregatedSource(Floor floor,
java.lang.String aggregationPoint,
java.lang.String destination,
org.osgi.framework.BundleContext bundleContext,
java.lang.String applicationname)
|
|
| Method Summary | ||
|---|---|---|
void |
addContent(java.lang.String wicketId,
ContentSource source)
Add the specified source to this RootContentAggregator and mapped it as wicketId. |
|
protected org.ops4j.pax.wicket.samples.departmentstore.view.floor.internal.FloorPanel |
createComponent(java.lang.String wicketId)
Create component represented by this AbstractContentAggregator with the specified wicketId. |
|
org.apache.wicket.extensions.markup.html.tabs.AbstractTab |
createTab(java.util.Locale locale)
Create the tab given the specified locale as the locale of the displayed tab item label. |
|
org.apache.wicket.Component |
createWiredComponent(java.lang.String sourceId,
java.lang.String wicketId)
|
|
void |
dispose()
Dispose this RootContentAggregator instance. |
|
protected void |
finalize()
|
|
java.lang.String |
getAggregationPointName()
Returns the aggregation point id of this AbstractContentAggregator instance. |
|
java.lang.String |
getApplicationName()
Returns the application name of this ContentAggregator instance belongs to. |
|
protected PaxWicketAuthentication |
getAuthentication()
Returns the Authentication of the current request. |
|
protected org.osgi.framework.BundleContext |
getBundleContext()
Returns the BundleContext that this ContentAggregator belongs to. |
|
ContentSource<? extends org.apache.wicket.Component> |
getContentById(java.lang.String wicketId,
java.lang.String sourceId)
|
|
|
getContents(java.lang.String wicketId)
Returns list of ContentSource instnaces of the specified wicketId. |
|
java.lang.String |
getFloorId()
|
|
protected java.lang.Object |
getObjectProperty(java.lang.String key)
|
|
protected java.lang.String[] |
getStringArrayProperty(java.lang.String key)
|
|
protected java.lang.String |
getStringProperty(java.lang.String key,
java.lang.String defaultValue)
|
|
java.lang.String |
getTabId()
The tab identifier. |
|
java.util.List<java.lang.String> |
getWiredSourceIds(java.lang.String wicketId,
java.util.Comparator<ContentSource> comparator)
|
|
protected void |
onDispose()
Override this method to handle additional dispose. |
|
protected void |
onUpdated(java.util.Dictionary config)
|
|
org.osgi.framework.ServiceRegistration |
register()
|
|
boolean |
removeContent(java.lang.String wicketId,
ContentSource content)
Remove the specified content to this RootContentAggregator and unmapped it as wicketId. |
|
void |
setAggregationPointName(java.lang.String aggregationPoint)
Set the aggregation id of this AbstractContentAggregator. |
|
void |
setApplicationName(java.lang.String applicationName)
Sets the application name of this AbstractContentAggregator instant belongs to. |
|
protected void |
setProperty(java.lang.String key,
java.lang.Object value)
|
|
void |
updated(java.util.Dictionary config)
|
|
protected void |
updateRegistration()
|
|
| Methods inherited from class org.ops4j.pax.wicket.util.AbstractAggregatedSource |
|---|
createComponent, createComponents, createSourceComponent, createSourceComponent, getBasicRoles, getDestinations, getRequiredRoles, getServiceNames, getSourceId, setDestination, setRoles |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.ops4j.pax.wicket.api.ContentAggregator |
|---|
dispose, getAggregationPointName, getApplicationName |
| Methods inherited from interface org.ops4j.pax.wicket.internal.ContentTrackingCallback |
|---|
addContent, removeContent |
| Methods inherited from interface org.osgi.service.cm.ManagedService |
|---|
updated |
| Field Detail |
|---|
protected final Logger LOGGER
| Constructor Detail |
|---|
public FloorAggregatedSource(Floor floor,
java.lang.String aggregationPoint,
java.lang.String destination,
org.osgi.framework.BundleContext bundleContext,
java.lang.String applicationname)
| Method Detail |
|---|
protected org.ops4j.pax.wicket.samples.departmentstore.view.floor.internal.FloorPanel createComponent(java.lang.String wicketId)
AbstractAggregatedSourceAbstractContentAggregator with the specified wicketId.
General convention:
createComponent in class AbstractAggregatedSource<org.ops4j.pax.wicket.samples.departmentstore.view.floor.internal.FloorPanel>wicketId - The wicketId. This argument must not be null nor empty. It maps to the wicket:id of the
rendering process in Wicket.
AbstractContentAggregator.public org.apache.wicket.extensions.markup.html.tabs.AbstractTab createTab(java.util.Locale locale)
OverviewTabContentlocale as the locale of the displayed tab item label. This method must
not return null object.
createTab in interface OverviewTabContentlocale - The locale for the tab item label. This argument must not be null.
public final java.lang.String getFloorId()
public final java.lang.String getTabId()
OverviewTabContent
getTabId in interface OverviewTabContentpublic final java.lang.String getAggregationPointName()
AbstractContentAggregator instance. This method must not return
null object.
getAggregationPointName in interface ContentAggregatorpublic final void setAggregationPointName(java.lang.String aggregationPoint)
AbstractContentAggregator.
Note: aggregation id property must not be set after this AbstractContentAggregator instance is registered
to OSGi framework.
aggregationPoint - The aggregation point name. This argument must not be null.
java.lang.IllegalArgumentException - Thrown if the specified aggregationId argument is null or empty.public final java.lang.String getApplicationName()
ContentAggregator instance belongs to.
getApplicationName in interface ContentAggregatorContentAggregator instance belongs to.public final void setApplicationName(java.lang.String applicationName)
AbstractContentAggregator instant belongs to.
Note: Application name property must not be set after this AbstractContentAggregator instance is
registered to OSGi framework.
applicationName - The application name. This argument must not be null.
java.lang.IllegalArgumentException - Thrown if the specified applicationName argument is null or
empty.
public final void dispose()
throws java.lang.IllegalStateException
RootContentAggregator instance.
Note: Dispose does not unregister this RootContentAggregator, and ensure that dispose is only called
after this RootContentAggregator instance is unregistered from OSGi container.
dispose in interface ContentAggregatorjava.lang.IllegalStateException - Thrown if this content tracker has not been registered.ServiceRegistration.unregister()protected final org.osgi.framework.BundleContext getBundleContext()
public final void updated(java.util.Dictionary config)
throws org.osgi.service.cm.ConfigurationException
updated in interface org.osgi.service.cm.ManagedServiceorg.osgi.service.cm.ConfigurationExceptionprotected void onUpdated(java.util.Dictionary config)
public final void addContent(java.lang.String wicketId,
ContentSource source)
throws java.lang.IllegalArgumentException
source to this RootContentAggregator and mapped it as wicketId.
addContent in interface ContentTrackingCallbackwicketId - The wicket id. This argument must not be null or empty.source - The source. This argument must not be null.
java.lang.IllegalArgumentException - Thrown if one or both arguments are null.
public final boolean removeContent(java.lang.String wicketId,
ContentSource content)
throws java.lang.IllegalArgumentException
content to this RootContentAggregator and unmapped it as wicketId.
removeContent in interface ContentTrackingCallbackwicketId - The wicket id. This argument must not be null or empty.content - The content. This argument must not be null.
boolean indicator whether removal is successfull.
java.lang.IllegalArgumentException - Thrown if one or both arguments are null.
public final org.osgi.framework.ServiceRegistration register()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionprotected java.lang.String[] getStringArrayProperty(java.lang.String key)
protected java.lang.String getStringProperty(java.lang.String key,
java.lang.String defaultValue)
protected void setProperty(java.lang.String key,
java.lang.Object value)
protected void updateRegistration()
protected java.lang.Object getObjectProperty(java.lang.String key)
protected void onDispose()
public final java.util.List<java.lang.String> getWiredSourceIds(java.lang.String wicketId,
java.util.Comparator<ContentSource> comparator)
throws java.lang.IllegalArgumentException
wicketId - The WicketID that we want to find the wiring for.comparator - The sorting comparator.
java.lang.IllegalArgumentException - Thrown if the specified wicketId argument is null.createWiredComponent(String,String)
public final org.apache.wicket.Component createWiredComponent(java.lang.String sourceId,
java.lang.String wicketId)
throws java.lang.IllegalArgumentException
sourceId - The SourceID of the ContentSource that we want to create a component.wicketId - The WicketID of the component to be created by the ContentSource. This responds to the
wicket:id in the markup.
sourceId and wicketId.
java.lang.IllegalArgumentException - Thrown if the specified sourceId (or/and) wicketId argument is null.getWiredSourceIds(String,java.util.Comparator)
public final <V extends ContentSource> java.util.List<V> getContents(java.lang.String wicketId)
throws java.lang.IllegalArgumentException
ContentSource instnaces of the specified wicketId. Returns an empty list if
there is no content for the specified wicketId.
wicketId - The wicket id. This argument must not be null or empty.
ContentSource of the specified wicketId.
java.lang.IllegalArgumentException - if the wicketId is null or empty.protected PaxWicketAuthentication getAuthentication()
public final ContentSource<? extends org.apache.wicket.Component> getContentById(java.lang.String wicketId,
java.lang.String sourceId)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||