public abstract class A_CmsRepository extends java.lang.Object implements I_CmsRepository
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.
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD| Constructor and Description |
|---|
A_CmsRepository()
Default constructor initializing member variables.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigurationParameter(java.lang.String paramName,
java.lang.String paramValue)
Adds a configuration parameter to this parameter configurable class instance.
|
CmsParameterConfiguration |
getConfiguration()
Returns the parameters of this configurable class instance,
or
null if the class does not need any parameters. |
CmsRepositoryFilter |
getFilter()
Returns the filter.
|
java.lang.String |
getName()
Returns the name of the repository.
|
void |
initConfiguration()
Initializes a configuration after all parameters have been added.
|
abstract I_CmsRepositorySession |
login(java.lang.String userName,
java.lang.String password)
Login a user given the username and the password.
|
void |
setFilter(CmsRepositoryFilter filter)
Sets the filter.
|
void |
setName(java.lang.String name)
Sets the name for this repository.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeCmspublic A_CmsRepository()
public void addConfigurationParameter(java.lang.String paramName, java.lang.String paramValue)
I_CmsConfigurationParameterHandleraddConfigurationParameter in interface I_CmsConfigurationParameterHandlerparamName - the name of the parameterparamValue - the value for the parameterI_CmsConfigurationParameterHandler.addConfigurationParameter(java.lang.String, java.lang.String)public CmsParameterConfiguration getConfiguration()
I_CmsConfigurationParameterHandlernull if the class does not need any parameters.getConfiguration in interface I_CmsConfigurationParameterHandlernull if the class does not need any parametersI_CmsConfigurationParameterHandler.getConfiguration()public CmsRepositoryFilter getFilter()
getFilter in interface I_CmsRepositorypublic java.lang.String getName()
I_CmsRepositorygetName in interface I_CmsRepositoryI_CmsRepository.getName()public void initConfiguration() throws CmsConfigurationException
I_CmsConfigurationParameterHandlerinitConfiguration in interface I_CmsConfigurationParameterHandlerCmsConfigurationException - if something goes wrongI_CmsConfigurationParameterHandler.initConfiguration()public abstract I_CmsRepositorySession login(java.lang.String userName, java.lang.String password) throws CmsException
userName - the user namepassword - the user's passwordCmsException - if the login was not succesfulpublic void setFilter(CmsRepositoryFilter filter)
setFilter in interface I_CmsRepositoryfilter - the filter to setpublic void setName(java.lang.String name)
I_CmsRepositorysetName in interface I_CmsRepositoryname - the name to use for the repositoryI_CmsRepository.setName(String)