public class CmsJlanRepository extends java.lang.Object implements I_CmsRepository
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
PARAM_ADD_BOM
Parameter for controlling whether byte order marks should be added to plaintext files.
|
static java.lang.String |
PARAM_PROJECT
The parameter for the project in which this repository should operate.
|
static java.lang.String |
PARAM_ROOT
Name of the parameter to configure the root directory.
|
static java.lang.String |
PARAM_WRAPPER
Name of the parameter to configure resource wrappers.
|
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD| 构造器和说明 |
|---|
CmsJlanRepository()
Creates a new repository instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addConfigurationParameter(java.lang.String paramName,
java.lang.String paramValue)
Adds a configuration parameter to this parameter configurable class instance.
|
boolean |
allowAccess(java.lang.String user)
Checks if a user may access this repository.
|
static org.alfresco.jlan.server.filesys.DiskInterface |
createLoggingProxy(org.alfresco.jlan.server.filesys.DiskInterface impl)
Creates a dynamic proxy for a disk interface which logs the method calls and their results.
|
CmsObjectWrapper |
getCms(org.alfresco.jlan.server.SrvSession session,
org.alfresco.jlan.server.filesys.TreeConnection connection)
Creates a CmsObjectWrapper for the current session.
|
CmsParameterConfiguration |
getConfiguration()
Returns the parameters of this configurable class instance,
or
null if the class does not need any parameters. |
org.alfresco.jlan.server.filesys.DiskDeviceContext |
getDeviceContext()
Gets the device context for this repository.
|
org.alfresco.jlan.server.filesys.DiskInterface |
getDiskInterface()
Gets the disk interface for this repository.
|
CmsRepositoryFilter |
getFilter()
Gets the repository filter.
|
java.lang.String |
getName()
Returns the name of the repository.
|
CmsProject |
getProject()
Gets the configured project.
|
java.lang.String |
getRoot()
Gets the root directory configured for this repository.
|
java.util.List<I_CmsResourceWrapper> |
getWrappers()
Gets the resource wrappers which have been configured for this repository.
|
void |
initConfiguration()
Initializes a configuration after all parameters have been added.
|
void |
initializeCms(CmsObject cms)
Initializes this repository with an admin CMS object.
|
void |
setFilter(CmsRepositoryFilter filter)
Sets the repository filter.
|
void |
setName(java.lang.String name)
Sets the name for this repository.
|
public static final java.lang.String PARAM_ADD_BOM
public static final java.lang.String PARAM_PROJECT
public static final java.lang.String PARAM_ROOT
public static final java.lang.String PARAM_WRAPPER
public static org.alfresco.jlan.server.filesys.DiskInterface createLoggingProxy(org.alfresco.jlan.server.filesys.DiskInterface impl)
impl - the disk interface for which a logging proxy should be createdpublic void addConfigurationParameter(java.lang.String paramName,
java.lang.String paramValue)
I_CmsConfigurationParameterHandleraddConfigurationParameter 在接口中 I_CmsConfigurationParameterHandlerparamName - the name of the parameterparamValue - the value for the parameterI_CmsConfigurationParameterHandler.addConfigurationParameter(java.lang.String, java.lang.String)public boolean allowAccess(java.lang.String user)
user - the name of the userpublic CmsObjectWrapper getCms(org.alfresco.jlan.server.SrvSession session, org.alfresco.jlan.server.filesys.TreeConnection connection) throws CmsException
session - the current sessionconnection - the tree connectionCmsException - if something goes wrongpublic CmsParameterConfiguration getConfiguration()
I_CmsConfigurationParameterHandlernull if the class does not need any parameters.getConfiguration 在接口中 I_CmsConfigurationParameterHandlernull if the class does not need any parametersI_CmsConfigurationParameterHandler.getConfiguration()public org.alfresco.jlan.server.filesys.DiskDeviceContext getDeviceContext()
public org.alfresco.jlan.server.filesys.DiskInterface getDiskInterface()
public CmsRepositoryFilter getFilter()
I_CmsRepositorygetFilter 在接口中 I_CmsRepositoryI_CmsRepository.getFilter()public java.lang.String getName()
I_CmsRepositorygetName 在接口中 I_CmsRepositoryI_CmsRepository.getName()public CmsProject getProject()
public java.lang.String getRoot()
public java.util.List<I_CmsResourceWrapper> getWrappers()
public void initConfiguration()
throws CmsConfigurationException
I_CmsConfigurationParameterHandlerinitConfiguration 在接口中 I_CmsConfigurationParameterHandlerCmsConfigurationException - if something goes wrongI_CmsConfigurationParameterHandler.initConfiguration()public void initializeCms(CmsObject cms) throws CmsException
I_CmsRepositoryinitializeCms 在接口中 I_CmsRepositorycms - an admin CMS objectCmsException - if something goes wrongI_CmsRepository.initializeCms(org.opencms.file.CmsObject)public void setFilter(CmsRepositoryFilter filter)
I_CmsRepositorysetFilter 在接口中 I_CmsRepositoryfilter - the repository filterI_CmsRepository.setFilter(org.opencms.repository.CmsRepositoryFilter)public void setName(java.lang.String name)
I_CmsRepositorysetName 在接口中 I_CmsRepositoryname - the name to use for the repositoryI_CmsRepository.setName(java.lang.String)