getPublication(ServiceManager manager, Request request) Creates a new publication based on a request.
Parameters: manager - The service manager. Parameters: request - A request.
getPublications(ServiceManager manager, DocumentFactory factory) Returns a list of all available publications.
Parameters: manager - The service manager. Parameters: factory - The document factory.
public static boolean
isValidArea(String area) Returns if a given string is a valid area name.
Parameters: area - The area string to test.
Creates a new publication. The publication ID is resolved from the request URI. The servlet
context path is resolved from the context object.
Parameters: manager - The service manager. Parameters: objectModel - The object model of the Cocoon component. a Publication throws: PublicationException - if there was a problem creating the publication.
Creates a new publication based on a request.
Parameters: manager - The service manager. Parameters: request - A request. A publication. throws: PublicationException - if there was a problem creating the publication.
Creates a publication from a webapp URL and a servlet context directory.
Parameters: manager - The service manager. Parameters: factory - The factory. Parameters: webappUrl - The URL within the web application (without context prefix) A publication throws: PublicationException - when something went wrong
Returns a list of all available publications.
Parameters: manager - The service manager. Parameters: factory - The document factory. An array of publications. throws: PublicationException - if an error occurs.
isValidArea
public static boolean isValidArea(String area)(Code)
Returns if a given string is a valid area name.
Parameters: area - The area string to test. A boolean value.
isValidPublicationID
public static boolean isValidPublicationID(String id)(Code)
Checks if a publication id is valid.
Parameters: id - true if the id contains only lowercase letters and/or numbers, and is not an emptystring.