Class MimetypeDescriptionsGet
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractWebScript
-
- org.springframework.extensions.webscripts.DeclarativeWebScript
-
- org.alfresco.repo.web.scripts.content.MimetypeDescriptionsGet
-
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
public class MimetypeDescriptionsGet extends org.springframework.extensions.webscripts.DeclarativeWebScript
Returns the descriptions of all the mimetypes known to the system. This is normally used so that things outside of the repo tier (eg Share) can display user-facing descriptions of the mimetypes in the system.- Since:
- 4.0.1
- Author:
- Nick Burch
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MODEL_DEFAULT_EXTENSIONS
static java.lang.String
MODEL_MIMETYPES
static java.lang.String
MODEL_OTHER_EXTENSIONS
-
Constructor Summary
Constructors Constructor Description MimetypeDescriptionsGet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.lang.Object>
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
void
setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Sets the Mimetype Service to be used to get the list of mime types-
Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
-
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
-
-
-
-
Field Detail
-
MODEL_MIMETYPES
public static final java.lang.String MODEL_MIMETYPES
- See Also:
- Constant Field Values
-
MODEL_DEFAULT_EXTENSIONS
public static final java.lang.String MODEL_DEFAULT_EXTENSIONS
- See Also:
- Constant Field Values
-
MODEL_OTHER_EXTENSIONS
public static final java.lang.String MODEL_OTHER_EXTENSIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setMimetypeService
public void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Sets the Mimetype Service to be used to get the list of mime types
-
executeImpl
protected java.util.Map<java.lang.String,java.lang.Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
- Overrides:
executeImpl
in classorg.springframework.extensions.webscripts.DeclarativeWebScript
-
-