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
构造器和说明 |
---|
A_CmsRepository()
Default constructor initializing member variables.
|
限定符和类型 | 方法和说明 |
---|---|
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, wait
initializeCms
public void addConfigurationParameter(java.lang.String paramName, java.lang.String paramValue)
I_CmsConfigurationParameterHandler
addConfigurationParameter
在接口中 I_CmsConfigurationParameterHandler
paramName
- the name of the parameterparamValue
- the value for the parameterI_CmsConfigurationParameterHandler.addConfigurationParameter(java.lang.String, java.lang.String)
public CmsParameterConfiguration getConfiguration()
I_CmsConfigurationParameterHandler
null
if the class does not need any parameters.getConfiguration
在接口中 I_CmsConfigurationParameterHandler
null
if the class does not need any parametersI_CmsConfigurationParameterHandler.getConfiguration()
public CmsRepositoryFilter getFilter()
getFilter
在接口中 I_CmsRepository
public java.lang.String getName()
I_CmsRepository
getName
在接口中 I_CmsRepository
I_CmsRepository.getName()
public void initConfiguration() throws CmsConfigurationException
I_CmsConfigurationParameterHandler
initConfiguration
在接口中 I_CmsConfigurationParameterHandler
CmsConfigurationException
- 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
在接口中 I_CmsRepository
filter
- the filter to setpublic void setName(java.lang.String name)
I_CmsRepository
setName
在接口中 I_CmsRepository
name
- the name to use for the repositoryI_CmsRepository.setName(String)