|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.opencms.repository.A_CmsRepository
org.opencms.repository.CmsRepository
public class CmsRepository
Creates a repository session to access OpenCms.
The configuration of the used I_CmsResourceWrapper is done here.
This is the main class to get access to the resources in the VFS of
OpenCms. The method login(String, String) logs in to OpenCms
and returns a CmsRepositorySession to use for basic file and
folder operations.
The project and the site to use for the access to OpenCms is read out of the user settings.
CmsObjectWrapper| Field Summary |
|---|
| Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler |
|---|
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD |
| Constructor Summary | |
|---|---|
CmsRepository()
Empty default constructor. |
|
| Method Summary | |
|---|---|
void |
initConfiguration()
Initializes a configuration after all parameters have been added. |
I_CmsRepositorySession |
login(java.lang.String userName,
java.lang.String password)
Login a user given the username and the password. |
| Methods inherited from class org.opencms.repository.A_CmsRepository |
|---|
addConfigurationParameter, getConfiguration, getFilter, getName, setFilter, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsRepository()
| Method Detail |
|---|
public void initConfiguration()
throws CmsConfigurationException
I_CmsConfigurationParameterHandler
initConfiguration in interface I_CmsConfigurationParameterHandlerinitConfiguration in class A_CmsRepositoryCmsConfigurationException - if something goes wrongA_CmsRepository.initConfiguration()
public I_CmsRepositorySession login(java.lang.String userName,
java.lang.String password)
throws CmsException
I_CmsRepository
userName - the user namepassword - the user's password
CmsException - if the login was not succesfulI_CmsRepository.login(java.lang.String, java.lang.String)
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||