|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.portal.impl.PageLabelManager
public class PageLabelManager
Manages the various activities required for page labels.
The name of the request parameter used to identify the page labelmay be configured
here by declaring
in the configuration for this component. The default request parameter name is
'pageLabel'.
Field Summary | |
---|---|
protected String |
aspectName
|
protected Context |
context
The cocoon context |
protected static String |
EVENT_MAP
|
protected static String |
LABEL_ARRAY
|
protected static String |
LABEL_MAP
|
protected ServiceManager |
manager
The service manager |
protected PortalService |
portalService
The portal service |
static String |
ROLE
|
Constructor Summary | |
---|---|
PageLabelManager()
|
Method Summary | |
---|---|
void |
configure(Configuration config)
|
void |
contextualize(Context context)
|
void |
dispose()
|
String |
getCurrentLabel()
Return the current page label. |
protected Map |
getLabelMap()
|
Map |
getPageEventMap()
Return the Map that contains events for all the page labels. |
List |
getPageLabelEvents(String pageLabel)
Retrieve the events associated with the specified page label. |
String |
getPreviousLabel()
Return the page label from the previous request. |
String |
getRequestParameterName()
Returns the request parameter being used to identify the page label. |
boolean |
isLabel(String pageLabel)
|
boolean |
isMarshallEvents()
Returns true if events are not to be exposed as request parameters |
boolean |
isUrlPath()
Returns whether directory structure should be used |
void |
service(ServiceManager manager)
|
String |
setCurrentLabel()
Sets the current page label. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ROLE
protected ServiceManager manager
protected PortalService portalService
protected Context context
protected String aspectName
protected static final String LABEL_ARRAY
protected static final String LABEL_MAP
protected static final String EVENT_MAP
Constructor Detail |
---|
public PageLabelManager()
Method Detail |
---|
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
public void dispose()
dispose
in interface Disposable
Disposable.dispose()
public void configure(Configuration config)
configure
in interface Configurable
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public String getCurrentLabel()
public String getPreviousLabel()
public String setCurrentLabel()
public boolean isUrlPath()
public String getRequestParameterName()
public Map getPageEventMap()
protected Map getLabelMap()
public List getPageLabelEvents(String pageLabel)
pageLabel
- The label to retrieve the events for.
public boolean isLabel(String pageLabel)
public boolean isMarshallEvents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |