Package org.opencms.repository
Class A_CmsRepository
java.lang.Object
org.opencms.repository.A_CmsRepository
- All Implemented Interfaces:
I_CmsConfigurationParameterHandler
,I_CmsRepository
- Direct Known Subclasses:
CmsRepository
Abstract implementation of the repository interface
I_CmsRepository
.
Get a I_CmsRepositorySession
through login in with the
username and password (login(String, String)
).
Handles the functionality of basic configuration. This is actually the configuration
of param/values and the filters (CmsRepositoryFilter
) to use of the repository.
- Since:
- 6.2.4
-
Field Summary
Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfigurationParameter
(String paramName, String paramValue) Adds a configuration parameter to this parameter configurable class instance.Returns the parameters of this configurable class instance, ornull
if the class does not need any parameters.Returns the filter.getName()
Returns the name of the repository.Gets the repository-specific file translations.void
Initializes a configuration after all parameters have been added.boolean
Returns true if the repository specific file translations are enabled (they may also be set without being enabled).abstract I_CmsRepositorySession
Login a user given the username and the password.void
setFilter
(CmsRepositoryFilter filter) Sets the filter.void
Sets the name for this repository.void
setTranslation
(CmsResourceTranslator translator, boolean enabled) Sets the repository-specific file translationsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opencms.repository.I_CmsRepository
initializeCms
-
Constructor Details
-
A_CmsRepository
public A_CmsRepository()Default constructor initializing member variables.
-
-
Method Details
-
addConfigurationParameter
Description copied from interface:I_CmsConfigurationParameterHandler
Adds a configuration parameter to this parameter configurable class instance.- Specified by:
addConfigurationParameter
in interfaceI_CmsConfigurationParameterHandler
- Parameters:
paramName
- the name of the parameterparamValue
- the value for the parameter- See Also:
-
getConfiguration
Description copied from interface:I_CmsConfigurationParameterHandler
Returns the parameters of this configurable class instance, ornull
if the class does not need any parameters.- Specified by:
getConfiguration
in interfaceI_CmsConfigurationParameterHandler
- Returns:
- the parameters of this configurable class instance,
or
null
if the class does not need any parameters - See Also:
-
getFilter
Returns the filter.- Specified by:
getFilter
in interfaceI_CmsRepository
- Returns:
- the filter
-
getName
Description copied from interface:I_CmsRepository
Returns the name of the repository.- Specified by:
getName
in interfaceI_CmsRepository
- Returns:
- the name of the repository
- See Also:
-
getTranslation
Description copied from interface:I_CmsRepository
Gets the repository-specific file translations.- Specified by:
getTranslation
in interfaceI_CmsRepository
- Returns:
- the repository-specific file translations
- See Also:
-
initConfiguration
Description copied from interface:I_CmsConfigurationParameterHandler
Initializes a configuration after all parameters have been added.- Specified by:
initConfiguration
in interfaceI_CmsConfigurationParameterHandler
- Throws:
CmsConfigurationException
- if something goes wrong- See Also:
-
isTranslationEnabled
Description copied from interface:I_CmsRepository
Returns true if the repository specific file translations are enabled (they may also be set without being enabled).- Specified by:
isTranslationEnabled
in interfaceI_CmsRepository
- Returns:
- true if the file translations are enabled
- See Also:
-
login
Login a user given the username and the password.- Parameters:
userName
- the user namepassword
- the user's password- Returns:
- the authenticated session
- Throws:
CmsException
- if the login was not succesful
-
setFilter
Sets the filter.- Specified by:
setFilter
in interfaceI_CmsRepository
- Parameters:
filter
- the filter to set
-
setName
Description copied from interface:I_CmsRepository
Sets the name for this repository.- Specified by:
setName
in interfaceI_CmsRepository
- Parameters:
name
- the name to use for the repository- See Also:
-
setTranslation
Description copied from interface:I_CmsRepository
Sets the repository-specific file translations- Specified by:
setTranslation
in interfaceI_CmsRepository
- Parameters:
translator
- the file translationsenabled
- true if the translations should be enabled- See Also:
-