|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.cms.publication.PublicationUtil
public class PublicationUtil
Publication utility.
Constructor Summary | |
---|---|
PublicationUtil()
|
Method Summary | |
---|---|
static Publication |
getPublication(org.apache.avalon.framework.service.ServiceManager manager,
java.util.Map objectModel)
Creates a new publication. |
static Publication |
getPublication(org.apache.avalon.framework.service.ServiceManager manager,
org.apache.cocoon.environment.Request request)
Creates a new publication based on a request. |
static Publication |
getPublicationFromUrl(org.apache.avalon.framework.service.ServiceManager manager,
DocumentFactory factory,
java.lang.String webappUrl)
Creates a publication from a webapp URL and a servlet context directory. |
static Publication[] |
getPublications(org.apache.avalon.framework.service.ServiceManager manager,
DocumentFactory factory)
Returns a list of all available publications. |
static boolean |
isValidArea(java.lang.String area)
Returns if a given string is a valid area name. |
static boolean |
isValidPublicationID(java.lang.String id)
Checks if a publication id is valid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PublicationUtil()
Method Detail |
---|
public static Publication getPublication(org.apache.avalon.framework.service.ServiceManager manager, java.util.Map objectModel) throws PublicationException
manager
- The service manager.objectModel
- The object model of the Cocoon component.
Publication
PublicationException
- if there was a problem creating the publication.public static Publication getPublication(org.apache.avalon.framework.service.ServiceManager manager, org.apache.cocoon.environment.Request request) throws PublicationException
manager
- The service manager.request
- A request.
PublicationException
- if there was a problem creating the publication.public static Publication getPublicationFromUrl(org.apache.avalon.framework.service.ServiceManager manager, DocumentFactory factory, java.lang.String webappUrl) throws PublicationException
manager
- The service manager.factory
- The factory.webappUrl
- The URL within the web application (without context prefix)
PublicationException
- when something went wrongpublic static Publication[] getPublications(org.apache.avalon.framework.service.ServiceManager manager, DocumentFactory factory) throws PublicationException
manager
- The service manager.factory
- The document factory.
PublicationException
- if an error occurs.public static boolean isValidPublicationID(java.lang.String id)
id
-
public static boolean isValidArea(java.lang.String area)
area
- The area string to test.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |