public class MimetypesQuery extends SingletonValueProcessorExtension<Map<String,org.alfresco.web.scripts.Mimetype>> implements Serializable
Service object that maintains no state other than the mimetypes info itself.
| Constructor and Description |
|---|
MimetypesQuery() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getDisplaysByMimetype()
Get all human readable mimetype descriptions, indexed by mimetype
|
String |
getExtension(String mimetype)
Get the extension for the specified mimetype
|
Map<String,String> |
getMimetypesByDisplay()
Gets all the human readable mimetype descriptions, sorted, along
with their mimetypes.
|
protected String |
getValueName()
Output value name for informational and error messages to the administrator.
|
protected Map<String,org.alfresco.web.scripts.Mimetype> |
retrieveValue(String userId,
String storeId)
Method for implementing class to provide that retrieve the remote value from the appropriate
endpoint and API.
|
String |
toString() |
getSingletonValue, getSingletonValuepublic Map<String,String> getDisplaysByMimetype()
public Map<String,String> getMimetypesByDisplay()
public String getExtension(String mimetype)
mimetype - a valid mimetypeprotected Map<String,org.alfresco.web.scripts.Mimetype> retrieveValue(String userId, String storeId) throws org.springframework.extensions.surf.exception.ConnectorServiceException
SingletonValueProcessorExtensionretrieveValue in class SingletonValueProcessorExtension<Map<String,org.alfresco.web.scripts.Mimetype>>userId - Current user IdstoreId - Current store Id if any - may be used if per-tenant values are requiredorg.springframework.extensions.surf.exception.ConnectorServiceExceptionprotected String getValueName()
SingletonValueProcessorExtensiongetValueName in class SingletonValueProcessorExtension<Map<String,org.alfresco.web.scripts.Mimetype>>Copyright © 2005–2014 Alfresco Software. All rights reserved.