public class MimetypesGet
extends org.springframework.extensions.webscripts.DeclarativeWebScript
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected static String |
JOD_WORKER_BEAN |
static String |
MODEL_EXTENSIONS |
static String |
MODEL_MIMETYPE_DETAILS |
static String |
MODEL_MIMETYPES |
protected static String |
OODIRECT_WORKER_BEAN |
protected static String |
PROXY_LABEL_DEFAULT_MESSAGE |
protected static String |
RTS_WORKER_BEAN |
Constructor and Description |
---|
MimetypesGet() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected Map<String,Object> |
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status,
org.springframework.extensions.webscripts.Cache cache) |
protected String |
getComplexTransformerLabel(ComplexContentTransformer cct)
Gets the display label for complex transformers
|
protected List<String> |
getExtractors(String mimetype) |
protected String |
getProxyTransformerLabel(ProxyContentTransformer pct)
Gets the display label for proxy content transformers
|
protected String |
getTransformer(String from,
long sourceSize,
String to)
Note - for now, only does the best one, not all
|
protected List<String> |
getTransformersFrom(String mimetype,
long sourceSize,
List<String> allMimetypes) |
protected List<String> |
getTransformersTo(String mimetype,
long sourceSize,
List<String> allMimetypes) |
protected String |
getWorkerBeanName(ContentTransformerWorker ctw)
Gets the given ContentTransformerWorker's bean name from the cache of known workers
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Uses the context to find OpenOffice related beans.
|
void |
setContentTransformerRegistry(ContentTransformerRegistry contentTransformerRegistry)
Sets the Content Transformer Registry to be used to
decide what transformations exist
|
void |
setKnownWorkerBeanLabels(Map<String,String> knownWorkerBeanLabels)
Sets the map of content transformer worker bean names to
message formatting labels
|
void |
setMetadataExtracterRegistry(MetadataExtracterRegistry metadataExtracterRegistry)
Sets the Metadata Extractor Registry to be used to
decide what extractors exist
|
void |
setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Sets the Mimetype Service to be used to get the
list of mime types
|
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
public static final String MODEL_MIMETYPES
public static final String MODEL_EXTENSIONS
public static final String MODEL_MIMETYPE_DETAILS
protected static final String OODIRECT_WORKER_BEAN
protected static final String JOD_WORKER_BEAN
protected static final String RTS_WORKER_BEAN
protected static final String PROXY_LABEL_DEFAULT_MESSAGE
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
public void setContentTransformerRegistry(ContentTransformerRegistry contentTransformerRegistry)
public void setMetadataExtracterRegistry(MetadataExtracterRegistry metadataExtracterRegistry)
public void setKnownWorkerBeanLabels(Map<String,String> knownWorkerBeanLabels)
protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
executeImpl
in class org.springframework.extensions.webscripts.DeclarativeWebScript
protected List<String> getTransformersFrom(String mimetype, long sourceSize, List<String> allMimetypes)
protected List<String> getTransformersTo(String mimetype, long sourceSize, List<String> allMimetypes)
protected String getTransformer(String from, long sourceSize, String to)
protected String getComplexTransformerLabel(ComplexContentTransformer cct)
cct
- ComplexContentTransformerprotected String getProxyTransformerLabel(ProxyContentTransformer pct)
pct
- ProxyContentTransformerprotected String getWorkerBeanName(ContentTransformerWorker ctw)
In the future ContentTransformerWorker may be made bean name aware.
ctw
- ContentTransformerWorkerCopyright © 2005–2017 Alfresco Software. All rights reserved.