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, getSingletonValue
public 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.Object
protected java.util.Map retrieveValue(java.lang.String userId, java.lang.String storeId) throws org.springframework.extensions.surf.exception.ConnectorServiceException
SingletonValueProcessorExtension
retrieveValue
in class SingletonValueProcessorExtension
userId
- Current user IdstoreId
- Current store Id if any - may be used if per-tenant values are requiredorg.springframework.extensions.surf.exception.ConnectorServiceException
protected java.lang.String getValueName()
SingletonValueProcessorExtension
getValueName
in class SingletonValueProcessorExtension
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.