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