org.apache.lenya.cms.publication
Interface PublicationManager


public interface PublicationManager

Publication manager.


Field Summary
static java.lang.String ROLE
          The service's role.
 
Method Summary
 void addPublication(java.lang.String id)
          Adds a publication.
 Publication getPublication(DocumentFactory factory, java.lang.String id)
           
 java.lang.String[] getPublicationIds()
           
 Publication[] getPublications(DocumentFactory factory)
           
 

Field Detail

ROLE

static final java.lang.String ROLE
The service's role.

Method Detail

getPublications

Publication[] getPublications(DocumentFactory factory)
Parameters:
factory - The factory.
Returns:
All publications.

getPublication

Publication getPublication(DocumentFactory factory,
                           java.lang.String id)
                           throws PublicationException
Parameters:
factory - The factory.
id - The publication ID.
Returns:
A publication.
Throws:
PublicationException - if the publication does not exist.

getPublicationIds

java.lang.String[] getPublicationIds()
Returns:
The IDs of all available publications.

addPublication

void addPublication(java.lang.String id)
                    throws PublicationException
Adds a publication.

Parameters:
id - The publication ID.
Throws:
PublicationException - if the publication already exists.


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