|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.repository.A_CmsRepository
public abstract class A_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.
| Field Summary |
|---|
| Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler |
|---|
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD |
| Constructor Summary | |
|---|---|
A_CmsRepository()
Default constructor initializing member variables. |
|
| Method Summary | |
|---|---|
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. |
| Methods 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 Detail |
|---|
public A_CmsRepository()
| Method Detail |
|---|
public void addConfigurationParameter(java.lang.String paramName,
java.lang.String paramValue)
I_CmsConfigurationParameterHandler
addConfigurationParameter 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_CmsRepository
getName in interface I_CmsRepositoryI_CmsRepository.getName()
public void initConfiguration()
throws CmsConfigurationException
I_CmsConfigurationParameterHandler
initConfiguration 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 password
CmsException - 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_CmsRepository
setName in interface I_CmsRepositoryname - the name to use for the repositoryI_CmsRepository.setName(String)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||