public class MimetypesGet
extends org.springframework.extensions.webscripts.DeclarativeWebScript
implements org.springframework.context.ApplicationContextAware
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
JOD_WORKER_BEAN |
static java.lang.String |
MODEL_EXTENSIONS |
static java.lang.String |
MODEL_MIMETYPE_DETAILS |
static java.lang.String |
MODEL_MIMETYPES |
protected static java.lang.String |
OODIRECT_WORKER_BEAN |
Constructor and Description |
---|
MimetypesGet() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map |
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status,
org.springframework.extensions.webscripts.Cache cache) |
protected java.util.List |
getExtractors(java.lang.String mimetype) |
protected java.lang.String |
getTransformer(java.lang.String from,
long sourceSize,
java.lang.String to)
Note - for now, only does the best one, not all
|
protected java.util.List |
getTransformersFrom(java.lang.String mimetype,
long sourceSize,
java.util.List allMimetypes) |
protected java.util.List |
getTransformersTo(java.lang.String mimetype,
long sourceSize,
java.util.List allMimetypes) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Uses the context to find OpenOffice related beans.
|
void |
setContentTransformerRegistry(org.alfresco.repo.content.transform.ContentTransformerRegistry contentTransformerRegistry)
Sets the Content Transformer Registry to be used to
decide what transformations exist
|
void |
setMetadataExtracterRegistry(org.alfresco.repo.content.metadata.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 java.lang.String MODEL_MIMETYPES
public static final java.lang.String MODEL_EXTENSIONS
public static final java.lang.String MODEL_MIMETYPE_DETAILS
protected static final java.lang.String OODIRECT_WORKER_BEAN
protected static final java.lang.String JOD_WORKER_BEAN
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 setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
public void setContentTransformerRegistry(org.alfresco.repo.content.transform.ContentTransformerRegistry contentTransformerRegistry)
public void setMetadataExtracterRegistry(org.alfresco.repo.content.metadata.MetadataExtracterRegistry metadataExtracterRegistry)
protected java.util.Map 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 java.util.List getExtractors(java.lang.String mimetype)
protected java.util.List getTransformersFrom(java.lang.String mimetype, long sourceSize, java.util.List allMimetypes)
protected java.util.List getTransformersTo(java.lang.String mimetype, long sourceSize, java.util.List allMimetypes)
protected java.lang.String getTransformer(java.lang.String from, long sourceSize, java.lang.String to)
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.