Package org.opencms.ade.upload
Class CmsDefaultUploadRestriction
java.lang.Object
org.opencms.ade.upload.CmsDefaultUploadRestriction
- All Implemented Interfaces:
I_CmsUploadRestriction
,I_CmsConfigurationParameterHandler
,I_CmsNeedsAdminCmsObject
Default implementation for upload restrictions uses restriction entries from opencms-workplace.xml.
This class directly takes parameters configured via param elements in opencms-workplace.xml and interprets them as restriction entries. The parameter name is interpreted as the path, and the parameter value
-
Field Summary
Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfigurationParameter
(String paramName, String paramValue) Adds a configuration parameter to this parameter configurable class instance.Returns the parameters of this configurable class instance, ornull
if the class does not need any parameters.Gets the upload restriction information for the given CMS contextvoid
Initializes a configuration after all parameters have been added.void
setAdminCmsObject
(CmsObject adminCms) Sets the admin CmsObject.static I_CmsUploadRestriction
-
Constructor Details
-
CmsDefaultUploadRestriction
public CmsDefaultUploadRestriction()
-
-
Method Details
-
unrestricted
-
addConfigurationParameter
Description copied from interface:I_CmsConfigurationParameterHandler
Adds a configuration parameter to this parameter configurable class instance.- Specified by:
addConfigurationParameter
in interfaceI_CmsConfigurationParameterHandler
- Parameters:
paramName
- the name of the parameterparamValue
- the value for the parameter- See Also:
-
getConfiguration
Description copied from interface:I_CmsConfigurationParameterHandler
Returns the parameters of this configurable class instance, ornull
if the class does not need any parameters.- Specified by:
getConfiguration
in interfaceI_CmsConfigurationParameterHandler
- Returns:
- the parameters of this configurable class instance,
or
null
if the class does not need any parameters - See Also:
-
getUploadRestrictionInfo
Description copied from interface:I_CmsUploadRestriction
Gets the upload restriction information for the given CMS context- Specified by:
getUploadRestrictionInfo
in interfaceI_CmsUploadRestriction
- Parameters:
cms
- the CMS context- Returns:
- the upload restriction information
- See Also:
-
initConfiguration
Description copied from interface:I_CmsConfigurationParameterHandler
Initializes a configuration after all parameters have been added.- Specified by:
initConfiguration
in interfaceI_CmsConfigurationParameterHandler
- See Also:
-
setAdminCmsObject
Description copied from interface:I_CmsNeedsAdminCmsObject
Sets the admin CmsObject.- Specified by:
setAdminCmsObject
in interfaceI_CmsNeedsAdminCmsObject
- Parameters:
adminCms
- a CmsObject with admin privileges- See Also:
-