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