org.alfresco.repo.domain.mimetype
Interface MimetypeDAO
- All Known Implementing Classes:
- AbstractMimetypeDAOImpl, MimetypeDAOImpl
public interface MimetypeDAO
DAO services for alf_mimetype table
- Since:
- 3.2
Method Summary |
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. |
getMimetype
org.alfresco.util.Pair getMimetype(java.lang.Long id)
- Parameters:
id
- the unique ID of the entity
- Returns:
- the Mimetype pair (id, mimetype) (never null)
- Throws:
org.alfresco.error.AlfrescoRuntimeException
- if the ID provided is invalid
getMimetype
org.alfresco.util.Pair getMimetype(java.lang.String mimetype)
- Parameters:
mimetype
- the Mimetype to query for
- Returns:
- the Mimetype pair (id, mimetype) or null if it doesn't exist
getOrCreateMimetype
org.alfresco.util.Pair getOrCreateMimetype(java.lang.String mimetype)
- Retrieve an existing mimetype or create a new one if it doesn't exist.
- Parameters:
mimetype
- the Mimetype
- Returns:
- the Mimetype pair (id, mimetype) (never null)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.