|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContentSource<E extends org.apache.wicket.Component>
This is the model interface of ContentSource. ContentSource is categorized as the model of a Wicket component hierarchy, which can be unloaded, replaced and moved in runtime, without needing to shut the application down.
| Field Summary | |
|---|---|
static java.lang.String |
AGGREGATION_POINT
Service property name for the configuration of the AggregationPoint. |
static java.lang.String |
APPLICATION_NAME
Service property name for the configuration of the ApplicationName. |
static java.lang.String |
BASIC_ROLES
Basic Roles are used for ContentSource authorization. |
static java.lang.String |
DESTINATION_UNKNOWN
Service property value for the configuration of a Destination that is not known, and therefor will not be wired. |
static java.lang.String |
DESTINATIONS
Service property name for the configuration of the Destination of a ContentSource. |
static java.lang.String |
HOMEPAGE_CLASSNAME
Service property name for the configuration of the classname of the HomePage. |
static java.lang.String |
MOUNTPOINT
Service property name for the configuration of the MountPoint. |
static java.lang.String |
PAGE_ID
Service property name for the configuration of the PageId. |
static java.lang.String |
PAGE_NAME
Service property name for the configuration of the PageName. |
static java.lang.String |
REQUIRED_ROLES
Required Roles are used for ContentSource authorization. |
static java.lang.String |
SOURCE_ID
Prefix used in the Constants.SERVICE_PID to uniquely identify Pax Wicket ContentSource instances for the Configuration Admin service. |
| Method Summary | ||
|---|---|---|
|
createSourceComponent(java.lang.String wicketId)
Create the wicket component represented by this ContentSource instance. |
|
|
createSourceComponent(java.lang.String wicketId,
T parent)
Create the wicket component represented by this ContentSource instance. |
|
java.lang.String[] |
getDestinations()
Returns the destinations of this ContentSource instance. |
|
java.lang.String |
getSourceId()
Returns the content source id. |
|
| Field Detail |
|---|
static final java.lang.String MOUNTPOINT
static final java.lang.String APPLICATION_NAME
static final java.lang.String DESTINATIONS
static final java.lang.String DESTINATION_UNKNOWN
static final java.lang.String PAGE_NAME
static final java.lang.String PAGE_ID
static final java.lang.String SOURCE_ID
static final java.lang.String AGGREGATION_POINT
static final java.lang.String HOMEPAGE_CLASSNAME
static final java.lang.String BASIC_ROLES
The current user must have one or more of the roles that are listed in the BASIC_ROLES property of a ContentSource. Otherwise the component(s) of that ContentSource will not be created.
This service property is an array of Strings.
static final java.lang.String REQUIRED_ROLES
The current user must have all the roles that are listed in the REQUIRED_ROLES property of a ContentSource. Otherwise the component(s) of that ContentSource will not be created.
This service property is an array of Strings.
| Method Detail |
|---|
java.lang.String getSourceId()
java.lang.String[] getDestinations()
ContentSource instance. This method must not return null
object.
The Destination is constructed by concatenating the AggregationPointMatchExpression, ".", and the ContentMatchExpression. For example, If the AggregationPointMatchExpression is "overviewtabs" and the ContentMatchExpression is "quickMenu", the returned Destination is "overviewtabs.quickMenu".
ContentSource instance.<T extends org.apache.wicket.MarkupContainer> E createSourceComponent(java.lang.String wicketId)
ContentSource instance. This method must not return
null object.
General convention:
wicketId - The wicket id. This argument must not be null.
ContentSource instance, or null if user has no access to
this ContentSource.
java.lang.IllegalArgumentException - Thrown if the wicketId argument is null.
<T extends org.apache.wicket.MarkupContainer> E createSourceComponent(java.lang.String wicketId,
T parent)
ContentSource instance. This method must not return
null object.
wicketId - The wicket id. This argument must not be null.parent - the parent MarkupContainer
ContentSource instance, or null if user has no access to
this ContentSource.
java.lang.IllegalArgumentException - Thrown if the wicketId argument is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||