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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfigurationParameter(String paramName, String paramValue) Adds a configuration parameter to this parameter configurable class instance.Returns the parameters of this configurable class instance, ornullif the class does not need any parameters.Returns the filter.getName()Returns the name of the repository.Gets the repository-specific file translations.voidInitializes a configuration after all parameters have been added.booleanReturns true if the repository specific file translations are enabled (they may also be set without being enabled).abstract I_CmsRepositorySessionLogin a user given the username and the password.voidsetFilter(CmsRepositoryFilter filter) Sets the filter.voidSets the name for this repository.voidsetTranslation(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, waitMethods 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_CmsConfigurationParameterHandlerAdds a configuration parameter to this parameter configurable class instance.- Specified by:
addConfigurationParameterin interfaceI_CmsConfigurationParameterHandler- Parameters:
paramName- the name of the parameterparamValue- the value for the parameter- See Also:
-
getConfiguration
Description copied from interface:I_CmsConfigurationParameterHandlerReturns the parameters of this configurable class instance, ornullif the class does not need any parameters.- Specified by:
getConfigurationin interfaceI_CmsConfigurationParameterHandler- Returns:
- the parameters of this configurable class instance,
or
nullif the class does not need any parameters - See Also:
-
getFilter
Returns the filter.- Specified by:
getFilterin interfaceI_CmsRepository- Returns:
- the filter
-
getName
Description copied from interface:I_CmsRepositoryReturns the name of the repository.- Specified by:
getNamein interfaceI_CmsRepository- Returns:
- the name of the repository
- See Also:
-
getTranslation
Description copied from interface:I_CmsRepositoryGets the repository-specific file translations.- Specified by:
getTranslationin interfaceI_CmsRepository- Returns:
- the repository-specific file translations
- See Also:
-
initConfiguration
Description copied from interface:I_CmsConfigurationParameterHandlerInitializes a configuration after all parameters have been added.- Specified by:
initConfigurationin interfaceI_CmsConfigurationParameterHandler- Throws:
CmsConfigurationException- if something goes wrong- See Also:
-
isTranslationEnabled
Description copied from interface:I_CmsRepositoryReturns true if the repository specific file translations are enabled (they may also be set without being enabled).- Specified by:
isTranslationEnabledin 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:
setFilterin interfaceI_CmsRepository- Parameters:
filter- the filter to set
-
setName
Description copied from interface:I_CmsRepositorySets the name for this repository.- Specified by:
setNamein interfaceI_CmsRepository- Parameters:
name- the name to use for the repository- See Also:
-
setTranslation
Description copied from interface:I_CmsRepositorySets the repository-specific file translations- Specified by:
setTranslationin interfaceI_CmsRepository- Parameters:
translator- the file translationsenabled- true if the translations should be enabled- See Also:
-