org.apache.lenya.cms.publication.templating
Interface PublicationTemplateManager


public interface PublicationTemplateManager

Component to manage publication templates.

When a source is obtained, the traversing order is

  1. the publication itself,
  2. all its templates,
  3. the core.

Version:
$Id: PublicationTemplateManager.java 473861 2006-11-12 03:51:14Z gregor $

Field Summary
static java.lang.String ROLE
          The avalon role.
 
Method Summary
 java.lang.Object getSelectableHint(Publication publication, org.apache.avalon.framework.service.ServiceSelector selector, java.lang.String originalHint)
          Returns the hint for the publiation which declares a service.
 void visit(Publication publication, PublicationVisitor visitor)
          Visits the publications in traversing order.
 void visit(Publication publication, java.lang.String path, SourceVisitor visitor)
           Visits the versions of a source in traversing order.
 

Field Detail

ROLE

static final java.lang.String ROLE
The avalon role.

Method Detail

visit

void visit(Publication publication,
           java.lang.String path,
           SourceVisitor visitor)

Visits the versions of a source in traversing order. The source doesn't have to exist to be visited.

Parameters:
publication - The original publication.
path - The path of the source, relatively to the publication directory.
visitor - The visitor.

visit

void visit(Publication publication,
           PublicationVisitor visitor)
Visits the publications in traversing order. The core is not visited.

Parameters:
publication - The original publication.
visitor - The visitor.

getSelectableHint

java.lang.Object getSelectableHint(Publication publication,
                                   org.apache.avalon.framework.service.ServiceSelector selector,
                                   java.lang.String originalHint)
                                   throws org.apache.avalon.framework.service.ServiceException
Returns the hint for the publiation which declares a service.

Parameters:
publication - The original publication.
selector - The service selector.
originalHint - The original hint.
Returns:
An object.
Throws:
org.apache.avalon.framework.service.ServiceException - if an error occurs.


Copyright © 1999-2006 Apache Software Foundation. All Rights Reserved.