public interface I_CmsADEConfiguration
限定符和类型 | 方法和说明 |
---|---|
CmsResource |
createNewElement(CmsObject cms,
java.lang.String cntPageUri,
javax.servlet.ServletRequest request,
java.lang.String type,
java.util.Locale locale)
Creates a new element of a given type at the configured location.
|
java.util.Collection<CmsResource> |
getCreatableElements(CmsObject cms,
java.lang.String cntPageUri,
javax.servlet.ServletRequest request)
Returns the list of creatable elements.
|
int |
getFavoriteListMaxSize(CmsObject cms)
Returns the maximal size of the favorite list.
|
CmsFormatterConfiguration |
getFormattersForResource(CmsObject cms,
java.lang.String containerPageRootPath,
CmsResource res)
Returns the formatter configuration for a given resource.
|
java.lang.String |
getNextNewFileName(CmsObject cms,
java.lang.String cntPageUri,
javax.servlet.ServletRequest request,
java.lang.String type)
Returns the name of the next new file of the given type to be created.
|
int |
getRecentListMaxSize(CmsObject cms)
Returns the maximal size of the recent list.
|
java.util.Collection<CmsResource> |
getSearchableResourceTypes(CmsObject cms,
java.lang.String cntPageUri,
javax.servlet.ServletRequest request)
Returns the list of searchable resource types.
|
void |
init(CmsObject cms)
Initializes the configuration.
|
boolean |
isCreatableType(CmsObject cms,
java.lang.String currentUri,
java.lang.String typeName)
Returns if the given type has a valid configuration to be created.
|
CmsResource createNewElement(CmsObject cms, java.lang.String cntPageUri, javax.servlet.ServletRequest request, java.lang.String type, java.util.Locale locale) throws CmsException
cms
- the current opencms contextcntPageUri
- the container page urirequest
- the current requesttype
- the type of the element to be createdlocale
- the content localeCmsException
- if something goes wrongjava.util.Collection<CmsResource> getCreatableElements(CmsObject cms, java.lang.String cntPageUri, javax.servlet.ServletRequest request) throws CmsException
cms
- the current opencms contextcntPageUri
- the container page urirequest
- the current requestCmsException
- if something goes wrongint getFavoriteListMaxSize(CmsObject cms) throws CmsException
cms
- the current opencms contextCmsException
- if something goes wrongCmsFormatterConfiguration getFormattersForResource(CmsObject cms, java.lang.String containerPageRootPath, CmsResource res) throws CmsException
cms
- the OpenCms user contextcontainerPageRootPath
- the root path to the container page that includes the element resourceres
- the container page element resourceCmsException
- if something goes wrongjava.lang.String getNextNewFileName(CmsObject cms, java.lang.String cntPageUri, javax.servlet.ServletRequest request, java.lang.String type) throws CmsException
cms
- the current opencms contextcntPageUri
- the container page urirequest
- the current requesttype
- the resource type nameCmsException
- if something goes wrongint getRecentListMaxSize(CmsObject cms) throws CmsException
cms
- the current opencms contextCmsException
- if something goes wrongjava.util.Collection<CmsResource> getSearchableResourceTypes(CmsObject cms, java.lang.String cntPageUri, javax.servlet.ServletRequest request) throws CmsException
cms
- the current opencms contextcntPageUri
- the container page urirequest
- the current requestCmsException
- if something goes wrongvoid init(CmsObject cms)
cms
- the CMS objectboolean isCreatableType(CmsObject cms, java.lang.String currentUri, java.lang.String typeName) throws CmsException
cms
- the CMS contextcurrentUri
- the current URItypeName
- the resource type nametrue
if the type can be created as newCmsException
- if something goes wrong