|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Publication
A Lenya publication.
Field Summary | |
---|---|
static java.lang.String |
ARCHIVE_AREA
ARCHIVE_AREA The archive area |
static java.lang.String |
AUTHORING_AREA
AUTHORING_AREA The authoring area |
static java.lang.String |
CONFIGURATION_PATH
CONFIGURATION_PATH The configuration path |
static java.lang.String |
CONTENT_PATH
CONTENT_PATH The content path |
static java.lang.String |
DAV_AREA
DAV_AREA The webDAV authoring area |
static java.lang.String |
DELETE_PATH
DELETE_PATH The delete path |
static java.lang.String |
ITEM_TYPE
The item type. |
static java.lang.String |
LIVE_AREA
LIVE_AREA The live area |
static java.lang.String |
PENDING_PATH
PENDING_PATH The pending path |
static java.lang.String |
PUBLICATION_PREFIX
PUBLICATION_PREFIX The publication prefix |
static java.lang.String |
PUBLICATION_PREFIX_URI
PUBLICATION_PREFIX_URI The publication prefix URI |
static java.lang.String |
STAGING_AREA
STAGING_AREA The staging area |
static java.lang.String |
TRASH_AREA
TRASH_AREA The trash area |
Method Summary | |
---|---|
boolean |
exists()
|
Area |
getArea(java.lang.String name)
|
java.lang.String[] |
getAreaNames()
|
java.lang.String |
getBreadcrumbPrefix()
Get the breadcrumb prefix. |
java.lang.String |
getContentDir()
Returns the content dir. |
java.io.File |
getContentDirectory(java.lang.String area)
Return the directory of a specific area. |
java.lang.String |
getContentURI(java.lang.String area)
|
java.lang.String |
getDefaultLanguage()
Get the default language |
java.io.File |
getDirectory()
Returns the publication directory. |
DocumentBuilder |
getDocumentBuilder()
Returns the document builder of this instance. |
DocumentFactory |
getFactory()
|
java.lang.String |
getId()
Returns the publication ID. |
java.lang.String |
getInstantiatorHint()
Returns the publication template instantiator hint. |
java.lang.String[] |
getLanguages()
Get all available languages for this publication |
java.lang.String |
getName()
|
DocumentIdToPathMapper |
getPathMapper()
Returns the path mapper. |
Proxy |
getProxy(Document document,
boolean isSslProtected)
Returns the proxy which is used for a particular document's area (see getProxy(String, boolean) ). |
Proxy |
getProxy(java.lang.String area,
boolean isSslProtected)
Returns the proxy which is used for the given area and the ssl parameter. |
java.lang.String[] |
getResourceTypeNames()
|
java.io.File |
getServletContext()
Returns the servlet context this publication belongs to (usually, the webapps/lenya directory). |
java.lang.String |
getSiteManagerHint()
Returns the hint of the site manager service that is used by this publication. |
java.lang.String |
getSourceURI()
|
java.lang.String[] |
getTemplateIds()
|
java.lang.String |
getWorkflowSchema(ResourceType resourceType)
|
void |
setDefaultLanguage(java.lang.String language)
Set the default language |
void |
setPathMapper(DefaultDocumentIdToPathMapper mapper)
Set the path mapper |
Methods inherited from interface org.apache.lenya.cms.repository.RepositoryItem |
---|
getSession |
Field Detail |
---|
static final java.lang.String AUTHORING_AREA
AUTHORING_AREA
The authoring area
static final java.lang.String DAV_AREA
DAV_AREA
The webDAV authoring area
static final java.lang.String STAGING_AREA
STAGING_AREA
The staging area
static final java.lang.String LIVE_AREA
LIVE_AREA
The live area
static final java.lang.String ARCHIVE_AREA
ARCHIVE_AREA
The archive area
static final java.lang.String TRASH_AREA
TRASH_AREA
The trash area
static final java.lang.String PUBLICATION_PREFIX
PUBLICATION_PREFIX
The publication prefix
static final java.lang.String PUBLICATION_PREFIX_URI
PUBLICATION_PREFIX_URI
The publication prefix URI
static final java.lang.String CONFIGURATION_PATH
CONFIGURATION_PATH
The configuration path
static final java.lang.String CONTENT_PATH
CONTENT_PATH
The content path
static final java.lang.String PENDING_PATH
PENDING_PATH
The pending path
static final java.lang.String DELETE_PATH
DELETE_PATH
The delete path
static final java.lang.String ITEM_TYPE
Method Detail |
---|
java.lang.String getId()
java.lang.String getName()
java.io.File getServletContext()
webapps/lenya
directory).
File
object.boolean exists()
java.io.File getDirectory()
File
object.java.io.File getContentDirectory(java.lang.String area)
area
- a File
representing the root of the area content directory.
void setPathMapper(DefaultDocumentIdToPathMapper mapper)
mapper
- The path mapperDocumentIdToPathMapper getPathMapper()
DocumentIdToPathMapper
java.lang.String getDefaultLanguage()
void setDefaultLanguage(java.lang.String language)
language
- the default languagejava.lang.String[] getLanguages()
Array
of languagesjava.lang.String getBreadcrumbPrefix()
java.lang.String getSiteManagerHint()
DocumentBuilder getDocumentBuilder()
java.lang.String getInstantiatorHint()
null
is returned.
java.lang.String getContentDir()
null
is returned.
Proxy getProxy(Document document, boolean isSslProtected)
getProxy(String, boolean)
).
document
- The document.isSslProtected
- A boolean value.
Proxy getProxy(java.lang.String area, boolean isSslProtected)
Returns the proxy which is used for the given area and the ssl parameter.
If no proxy is defined in the publication configuration file, a default proxy
with the URL {contextPath}/{pubId}/{area}
is returned.
If the area string is "root", the global proxy is returned. If no global proxy
is defined, a default global proxy with the URL {contextPath}
is returned.
area
- areaisSslProtected
- A boolean value.
java.lang.String[] getTemplateIds()
java.lang.String getSourceURI()
java.lang.String getContentURI(java.lang.String area)
area
- The area.
java.lang.String getWorkflowSchema(ResourceType resourceType)
resourceType
- The resource type or null
if no workflow is registered for
this resource type.
java.lang.String[] getResourceTypeNames()
Area getArea(java.lang.String name) throws PublicationException
name
- The name.
PublicationException
- if an error occurs.java.lang.String[] getAreaNames()
DocumentFactory getFactory()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |