@Service
@Transactional
public class DocumentVersionMapper
extends java.lang.Object
| Constructor and Description |
|---|
DocumentVersionMapper(VersionService versionService) |
| Modifier and Type | Method and Description |
|---|---|
DocumentVersion |
create(int docId,
int userId)
Creates and returns a new version of a document.
|
DocumentVersion |
get(VersionRef versionRef) |
java.util.List<DocumentVersion> |
getAll(int docId) |
DocumentVersion |
getDefault(int docId) |
DocumentVersionInfo |
getInfo(int docId) |
DocumentVersion |
getWorking(int docId) |
@Autowired public DocumentVersionMapper(VersionService versionService)
public DocumentVersion get(VersionRef versionRef)
@Transactional(propagation=SUPPORTS) public java.util.List<DocumentVersion> getAll(int docId)
@Transactional(propagation=SUPPORTS) public DocumentVersion getDefault(int docId)
@Transactional(propagation=SUPPORTS) public DocumentVersion getWorking(int docId)
@Transactional(propagation=SUPPORTS) public DocumentVersionInfo getInfo(int docId)
public DocumentVersion create(int docId, int userId)