|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentDataDAO
DAO services for alf_content_data table
Nested Class Summary | |
---|---|
static interface |
ContentDataDAO.ContentUrlHandler
Interface for callbacks during content URL enumeration |
Method Summary | |
---|---|
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 |
Method Detail |
---|
org.alfresco.util.Pair createContentData(org.alfresco.service.cmr.repository.ContentData contentData)
contentData
- the ContentData details
void 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 exist
org.springframework.dao.DataIntegrityViolationException
- if the URL already existsorg.alfresco.util.Pair getContentData(java.lang.Long id)
id
- the unique ID of the entity
org.alfresco.error.AlfrescoRuntimeException
- if the ID provided is invalidvoid deleteContentData(java.lang.Long id)
id
- the unique ID of the entity
org.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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |