org.alfresco.repo.domain.avm
Interface AVMVersionRootDAO

All Known Implementing Classes:
AbstractAVMVersionRootDAOImpl, AVMVersionRootDAOImpl

public interface AVMVersionRootDAO

DAO services for avm_version_roots table

Since:
3.2

Method Summary
 AVMVersionLayeredNodeEntryEntity createVersionLayeredNodeEntry(long versionRootId, java.lang.String md5sum, java.lang.String path)
           
 AVMVersionRootEntity createVersionRoot(long storeId, long rootNodeId, int version, java.lang.String creator, java.lang.String tag, java.lang.String description)
          Create a new AVM version root
 void deleteVersionLayeredNodeEntries(long versionRootId)
           
 void deleteVersionRoot(long versionRootId)
          Delete an existing AVM version root
 java.util.List getAllInStore(long storeId)
          Get all the version roots in a given store
 java.util.List getByDates(long storeId, java.util.Date from, java.util.Date to)
          Get the version of a store by dates.
 AVMVersionRootEntity getByRoot(long rootNodeId)
          Get one from its root.
 AVMVersionRootEntity getByVersionID(long storeId, int version)
          Get the VersionRoot corresponding to the given id.
 java.util.List getByVersionsBetween(long id, int startVersion, int endVersion)
           
 java.util.List getByVersionsFrom(long id, int version)
           
 java.util.List getByVersionsTo(long id, int version)
           
 AVMVersionRootEntity getMaxVersion(long storeId)
          Get the highest numbered version in a store.
 java.lang.Long getMaxVersionID(long storeId)
          Get the highest numbered id from all the versions in a store.
 java.util.List getVersionLayeredNodeEntries(long versionRootId)
           
 void updateVersionRoot(AVMVersionRootEntity vrEntity)
          Update an AVM version root (tag and description only)
 

Method Detail

createVersionRoot

AVMVersionRootEntity createVersionRoot(long storeId,
                                       long rootNodeId,
                                       int version,
                                       java.lang.String creator,
                                       java.lang.String tag,
                                       java.lang.String description)
Create a new AVM version root


updateVersionRoot

void updateVersionRoot(AVMVersionRootEntity vrEntity)
Update an AVM version root (tag and description only)

Parameters:
vrEntity -

deleteVersionRoot

void deleteVersionRoot(long versionRootId)
Delete an existing AVM version root

Parameters:
vrEntity - the version root entity
Throws:
org.springframework.dao.ConcurrencyFailureException - if the ID does not exist

getAllInStore

java.util.List getAllInStore(long storeId)
Get all the version roots in a given store

Parameters:
store - The store.
Returns:
A List of VersionRoots. In id order.

getByVersionID

AVMVersionRootEntity getByVersionID(long storeId,
                                    int version)
Get the VersionRoot corresponding to the given id.

Parameters:
store - The store
id - The version id.
Returns:
The VersionRoot or null if not found.

getByRoot

AVMVersionRootEntity getByRoot(long rootNodeId)
Get one from its root.

Parameters:
root - The root to match.
Returns:
The version root or null.

getByDates

java.util.List getByDates(long storeId,
                          java.util.Date from,
                          java.util.Date to)
Get the version of a store by dates.

Parameters:
store - The store.
from - The starting date. May be null but not with to null also.
to - The ending date. May be null but not with from null also.
Returns:
A List of VersionRoots.

getMaxVersion

AVMVersionRootEntity getMaxVersion(long storeId)
Get the highest numbered version in a store.

Parameters:
store - The store.
Returns:
The highest numbered version.

getMaxVersionID

java.lang.Long getMaxVersionID(long storeId)
Get the highest numbered id from all the versions in a store.

Parameters:
store - The store.
Returns:
The highest numbered id.

createVersionLayeredNodeEntry

AVMVersionLayeredNodeEntryEntity createVersionLayeredNodeEntry(long versionRootId,
                                                               java.lang.String md5sum,
                                                               java.lang.String path)

deleteVersionLayeredNodeEntries

void deleteVersionLayeredNodeEntries(long versionRootId)

getVersionLayeredNodeEntries

java.util.List getVersionLayeredNodeEntries(long versionRootId)

getByVersionsTo

java.util.List getByVersionsTo(long id,
                               int version)
Parameters:
id -
version -
Returns:

getByVersionsFrom

java.util.List getByVersionsFrom(long id,
                                 int version)
Parameters:
id -
version -
Returns:

getByVersionsBetween

java.util.List getByVersionsBetween(long id,
                                    int startVersion,
                                    int endVersion)
Parameters:
id -
startVersion -
endVersion -
Returns:


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.