public interface MimetypeDAO
| Modifier and Type | Method and Description |
|---|---|
Pair<Long,String> |
getMimetype(Long id) |
Pair<Long,String> |
getMimetype(String mimetype) |
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.
|
Pair<Long,String> getMimetype(Long id)
id - the unique ID of the entityAlfrescoRuntimeException - if the ID provided is invalidPair<Long,String> getMimetype(String mimetype)
mimetype - the Mimetype to query forPair<Long,String> getOrCreateMimetype(String mimetype)
mimetype - the Mimetypeint updateMimetype(String oldMimetype, String newMimetype)
oldMimetype - the old MimetypenewMimetype - the new MimetypeCopyright © 2005–2021 Alfresco Software. All rights reserved.