public interface ContentDataDAO
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ContentDataDAO.ContentUrlHandler
Interface for callbacks during content URL enumeration
|
| Modifier and Type | Method and Description |
|---|---|
void |
cacheContentDataForNodes(java.util.Set nodeIds) |
org.alfresco.util.Pair |
createContentData(org.alfresco.service.cmr.repository.ContentData contentData)
Create a new ContentData instance.
|
org.alfresco.util.Pair |
createContentUrlOrphaned(java.lang.String contentUrl,
java.util.Date orphanTime)
Creates an immediately-orphaned content URL, if possible
|
void |
deleteContentData(java.lang.Long id)
Delete an instance of content.
|
void |
deleteContentDataForNode(java.lang.Long nodeId,
java.util.Set qnameIds)
Deletes all alf_content_data rows that are referenced by the given node
|
int |
deleteContentUrls(java.util.List ids)
Delete a batch of content URL entities.
|
org.alfresco.util.Pair |
getContentData(java.lang.Long id) |
void |
getContentUrlsOrphaned(ContentDataDAO.ContentUrlHandler contentUrlHandler,
java.lang.Long maxOrphanTimeExclusive,
int maxResults)
Enumerate all available content URLs that were orphaned on or before the given time
|
void |
updateContentData(java.lang.Long id,
org.alfresco.service.cmr.repository.ContentData contentData)
Update a content data instance
|
org.alfresco.util.Pair createContentData(org.alfresco.service.cmr.repository.ContentData contentData)
contentData - the ContentData detailsvoid updateContentData(java.lang.Long id,
org.alfresco.service.cmr.repository.ContentData contentData)
id - the unique ID of the entitycontentData - the new dataorg.alfresco.util.Pair createContentUrlOrphaned(java.lang.String contentUrl,
java.util.Date orphanTime)
contentUrl - the URL to create if it doesn't existorg.springframework.dao.DataIntegrityViolationException - if the URL already existsorg.alfresco.util.Pair getContentData(java.lang.Long id)
id - the unique ID of the entityorg.alfresco.error.AlfrescoRuntimeException - if the ID provided is invalidvoid cacheContentDataForNodes(java.util.Set nodeIds)
nodeIds - the nodeIdsorg.alfresco.error.AlfrescoRuntimeException - if an ID provided is invalidvoid deleteContentData(java.lang.Long id)
id - the unique ID of the entityorg.springframework.dao.ConcurrencyFailureException - if the ID does not existvoid deleteContentDataForNode(java.lang.Long nodeId,
java.util.Set qnameIds)
nodeId - the node IDqnameIds - the content properties to targetvoid getContentUrlsOrphaned(ContentDataDAO.ContentUrlHandler contentUrlHandler, java.lang.Long maxOrphanTimeExclusive, int maxResults)
contentUrlHandler - the callback object to process the rowsmaxOrphanTimeExclusive - the maximum orphan time (exclusive)maxResults - the maximum number of results (1 or greater)int deleteContentUrls(java.util.List ids)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.