public class CmsJlanRepository extends java.lang.Object implements I_CmsRepository
Modifier and Type | Field and Description |
---|---|
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
Constructor and Description |
---|
CmsJlanRepository()
Creates a new repository instance.
|
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.
|
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 CmsJlanRepository()
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_CmsConfigurationParameterHandler
addConfigurationParameter
in interface I_CmsConfigurationParameterHandler
paramName
- 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_CmsConfigurationParameterHandler
null
if the class does not need any parameters.getConfiguration
in interface I_CmsConfigurationParameterHandler
null
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_CmsRepository
getFilter
in interface I_CmsRepository
I_CmsRepository.getFilter()
public java.lang.String getName()
I_CmsRepository
getName
in interface I_CmsRepository
I_CmsRepository.getName()
public CmsProject getProject()
public java.lang.String getRoot()
public java.util.List<I_CmsResourceWrapper> getWrappers()
public void initConfiguration() throws CmsConfigurationException
I_CmsConfigurationParameterHandler
initConfiguration
in interface I_CmsConfigurationParameterHandler
CmsConfigurationException
- if something goes wrongI_CmsConfigurationParameterHandler.initConfiguration()
public void initializeCms(CmsObject cms) throws CmsException
I_CmsRepository
initializeCms
in interface I_CmsRepository
cms
- an admin CMS objectCmsException
- if something goes wrongI_CmsRepository.initializeCms(org.opencms.file.CmsObject)
public void setFilter(CmsRepositoryFilter filter)
I_CmsRepository
setFilter
in interface I_CmsRepository
filter
- the repository filterI_CmsRepository.setFilter(org.opencms.repository.CmsRepositoryFilter)
public void setName(java.lang.String name)
I_CmsRepository
setName
in interface I_CmsRepository
name
- the name to use for the repositoryI_CmsRepository.setName(java.lang.String)