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(Set<Long> nodeIds) |
org.alfresco.util.Pair<Long,org.alfresco.service.cmr.repository.ContentData> |
createContentData(org.alfresco.service.cmr.repository.ContentData contentData)
Create a new ContentData instance.
|
org.alfresco.util.Pair<Long,String> |
createContentUrlOrphaned(String contentUrl,
Date orphanTime)
Creates an immediately-orphaned content URL, if possible
|
void |
deleteContentData(Long id)
Delete an instance of content.
|
void |
deleteContentDataForNode(Long nodeId,
Set<Long> qnameIds)
Deletes all alf_content_data rows that are referenced by the given node
|
int |
deleteContentUrls(List<Long> ids)
Delete a batch of content URL entities.
|
org.alfresco.util.Pair<Long,org.alfresco.service.cmr.repository.ContentData> |
getContentData(Long id) |
void |
getContentUrlsOrphaned(ContentDataDAO.ContentUrlHandler contentUrlHandler,
Long maxOrphanTimeExclusive,
int maxResults)
Enumerate all available content URLs that were orphaned on or before the given time
|
void |
updateContentData(Long id,
org.alfresco.service.cmr.repository.ContentData contentData)
Update a content data instance
|
org.alfresco.util.Pair<Long,org.alfresco.service.cmr.repository.ContentData> createContentData(org.alfresco.service.cmr.repository.ContentData contentData)
contentData - the ContentData detailsvoid updateContentData(Long id, org.alfresco.service.cmr.repository.ContentData contentData)
id - the unique ID of the entitycontentData - the new dataorg.alfresco.util.Pair<Long,String> createContentUrlOrphaned(String contentUrl, Date orphanTime)
contentUrl - the URL to create if it doesn't existorg.springframework.dao.DataIntegrityViolationException - if the URL already existsorg.alfresco.util.Pair<Long,org.alfresco.service.cmr.repository.ContentData> getContentData(Long id)
id - the unique ID of the entityorg.alfresco.error.AlfrescoRuntimeException - if the ID provided is invalidvoid cacheContentDataForNodes(Set<Long> nodeIds)
nodeIds - the nodeIdsorg.alfresco.error.AlfrescoRuntimeException - if an ID provided is invalidvoid deleteContentData(Long id)
id - the unique ID of the entityorg.springframework.dao.ConcurrencyFailureException - if the ID does not existvoid deleteContentDataForNode(Long nodeId, Set<Long> qnameIds)
nodeId - the node IDqnameIds - the content properties to targetvoid getContentUrlsOrphaned(ContentDataDAO.ContentUrlHandler contentUrlHandler, 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)Copyright © 2005–2014 Alfresco Software. All rights reserved.