Package org.opencms.repository
Interface I_CmsRepository
- All Superinterfaces:
I_CmsConfigurationParameterHandler
- All Known Subinterfaces:
I_CmsCmisRepository
- All Known Implementing Classes:
A_CmsCmisRepository
,A_CmsRepository
,CmsCmisRepository
,CmsJlanRepository
,CmsRepository
Represents a repository.
Since different types of repositories have very different methods, this interface only provides the bare minimum of methods which are necessary for configuration.
- Since:
- 6.2.4
-
Field Summary
Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
-
Method Summary
Modifier and TypeMethodDescriptionGets the repository filter.getName()
Returns the name of the repository.Gets the repository-specific file translations.void
initializeCms
(CmsObject cms) Initializes this repository with an admin CMS object.boolean
Returns true if the repository specific file translations are enabled (they may also be set without being enabled).void
setFilter
(CmsRepositoryFilter filter) Sets the repository filter.void
Sets the name for this repository.void
setTranslation
(CmsResourceTranslator translator, boolean enabled) Sets the repository-specific file translationsMethods inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
addConfigurationParameter, getConfiguration, initConfiguration
-
Method Details
-
getFilter
Gets the repository filter.- Returns:
- the repository filter
-
getName
Returns the name of the repository.- Returns:
- the name of the repository
-
getTranslation
Gets the repository-specific file translations.- Returns:
- the repository-specific file translations
-
initializeCms
Initializes this repository with an admin CMS object.- Parameters:
cms
- an admin CMS object- Throws:
CmsException
- if something goes wrong
-
isTranslationEnabled
boolean isTranslationEnabled()Returns true if the repository specific file translations are enabled (they may also be set without being enabled).- Returns:
- true if the file translations are enabled
-
setFilter
Sets the repository filter.- Parameters:
filter
- the repository filter
-
setName
Sets the name for this repository.- Parameters:
name
- the name to use for the repository
-
setTranslation
Sets the repository-specific file translations- Parameters:
translator
- the file translationsenabled
- true if the translations should be enabled
-