org.apache.cocoon.portal.impl
Class PageLabelLinkService

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.portal.impl.DefaultLinkService
          extended byorg.apache.cocoon.portal.impl.PageLabelLinkService
All Implemented Interfaces:
Contextualizable, Disposable, LinkService, LogEnabled, Parameterizable, Serviceable, ThreadSafe

public class PageLabelLinkService
extends DefaultLinkService

The PageLabelLinkService generates links for named items defined in the layout portal.xml. Links for other entities are passed to the DefaultLinkService to be resolved.

Version:
$Id: PageLabelLinkService.java 327168 2005-10-21 12:56:35Z cziegeler $

Nested Class Summary
 
Nested classes inherited from class org.apache.cocoon.portal.impl.DefaultLinkService
DefaultLinkService.ConstantParameterMatcher, DefaultLinkService.ParameterMatcher, DefaultLinkService.PrefixParameterMatcher
 
Nested classes inherited from class org.apache.cocoon.portal.LinkService
LinkService.ParameterDescription
 
Field Summary
protected  String apectName
           
protected  PageLabelManager labelManager
          The label manager
 
Fields inherited from class org.apache.cocoon.portal.impl.DefaultLinkService
context, converter, defaultPort, defaultSecurePort, internalParameters, internalParametersMatchers, manager
 
Fields inherited from interface org.apache.cocoon.portal.LinkService
DEFAULT_REQUEST_EVENT_PARAMETER_NAME, ROLE
 
Constructor Summary
PageLabelLinkService()
           
 
Method Summary
 void dispose()
           
 String getLinkURI(Event event)
          Get the uri for the coplet containing event
 String getLinkURI(Event event, Boolean secure)
          Get the uri for the coplet containing event
 String getLinkURI(List events)
          Get the uri for this coplet containing the additional events.
 String getLinkURI(List events, Boolean secure)
          Get the uri for this coplet containing the additional events.
 void service(ServiceManager manager)
           
 
Methods inherited from class org.apache.cocoon.portal.impl.DefaultLinkService
addEvent, addEventToLink, addParameterToLink, addUniqueParameterToLink, contextualize, encodeURL, getInfo, getInternalParameterNames, getRefreshLinkURI, getRefreshLinkURI, isInternalParameterName, isSecure, parameterize
 
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

apectName

protected String apectName

labelManager

protected PageLabelManager labelManager
The label manager

Constructor Detail

PageLabelLinkService

public PageLabelLinkService()
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Overrides:
service in class DefaultLinkService
Throws:
ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

getLinkURI

public String getLinkURI(Event event)
Get the uri for the coplet containing event

Specified by:
getLinkURI in interface LinkService
Overrides:
getLinkURI in class DefaultLinkService
Parameters:
event - The event to find
Returns:
A URI
See Also:
LinkService.getLinkURI(org.apache.cocoon.portal.event.Event)

getLinkURI

public String getLinkURI(Event event,
                         Boolean secure)
Get the uri for the coplet containing event

Specified by:
getLinkURI in interface LinkService
Overrides:
getLinkURI in class DefaultLinkService
Parameters:
event - The event to find
secure - true if a secure protocol is required, false otherwise.
Returns:
A URI
See Also:
LinkService.getLinkURI(org.apache.cocoon.portal.event.Event, Boolean)

getLinkURI

public String getLinkURI(List events)
Get the uri for this coplet containing the additional events.

Specified by:
getLinkURI in interface LinkService
Overrides:
getLinkURI in class DefaultLinkService
Parameters:
events - The events that will be processed by the generated uri.
Returns:
A URI
See Also:
LinkService.getLinkURI(java.util.List)

getLinkURI

public String getLinkURI(List events,
                         Boolean secure)
Get the uri for this coplet containing the additional events.

Specified by:
getLinkURI in interface LinkService
Overrides:
getLinkURI in class DefaultLinkService
Parameters:
events - The events that will be processed by the generated uri.
Returns:
A URI
See Also:
LinkService.getLinkURI(java.util.List)

dispose

public void dispose()
Specified by:
dispose in interface Disposable
Overrides:
dispose in class DefaultLinkService
See Also:
Disposable.dispose()


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.