public interface MimetypeDAO
| Modifier and Type | Method and Description |
|---|---|
org.alfresco.util.Pair<Long,String> |
getMimetype(Long id) |
org.alfresco.util.Pair<Long,String> |
getMimetype(String mimetype) |
org.alfresco.util.Pair<Long,String> |
getOrCreateMimetype(String mimetype)
Retrieve an existing mimetype or create a new one if it doesn't exist.
|
int |
updateMimetype(String oldMimetype,
String newMimetype)
Update a mimetype if it exists.
|
org.alfresco.util.Pair<Long,String> getMimetype(Long id)
id - the unique ID of the entityorg.alfresco.error.AlfrescoRuntimeException - if the ID provided is invalidorg.alfresco.util.Pair<Long,String> getMimetype(String mimetype)
mimetype - the Mimetype to query fororg.alfresco.util.Pair<Long,String> getOrCreateMimetype(String mimetype)
mimetype - the Mimetypeint updateMimetype(String oldMimetype, String newMimetype)
oldMimetype - the old MimetypenewMimetype - the new MimetypeCopyright © 2005–2018 Alfresco Software. All rights reserved.