|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.imcode.imcms.mapping.DocumentSaver
public class DocumentSaver
To enable transactions support this class must be instantiated using spring framework.
| Constructor Summary | |
|---|---|
DocumentSaver()
|
|
DocumentSaver(DocumentMapper documentMapper)
|
|
| Method Summary | |
|---|---|
void |
checkIfAliasAlreadyExist(DocumentDomainObject document)
|
void |
createWorkingDocumentFromExisting(DocumentDomainObject document,
UserDomainObject user)
Creates working document version from existing document. |
DocumentMapper |
getDocumentMapper()
|
MetaDao |
getMetaDao()
|
void |
publishWorkingDocument(DocumentDomainObject document,
UserDomainObject user)
Published working version of a document. |
void |
saveDocumentFragment(DocumentDomainObject document,
UserDomainObject user,
org.springframework.orm.hibernate3.HibernateCallback hibernateCallback)
--experimental-- Existing API saves whole document even if only a fragment of it (say text field or image) was modified. |
void |
saveNewDocument(UserDomainObject user,
DocumentDomainObject document,
boolean copying)
|
void |
setDocumentMapper(DocumentMapper documentMapper)
|
void |
setMetaDao(MetaDao metaDao)
|
void |
updateDocument(DocumentDomainObject document,
DocumentDomainObject oldDocument,
UserDomainObject user)
Updates published or working document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentSaver()
public DocumentSaver(DocumentMapper documentMapper)
| Method Detail |
|---|
@Transactional
public void saveDocumentFragment(DocumentDomainObject document,
UserDomainObject user,
org.springframework.orm.hibernate3.HibernateCallback hibernateCallback)
throws NoPermissionInternalException,
DocumentSaveException
NoPermissionInternalException
DocumentSaveException
@Transactional
public void publishWorkingDocument(DocumentDomainObject document,
UserDomainObject user)
@Transactional
public void updateDocument(DocumentDomainObject document,
DocumentDomainObject oldDocument,
UserDomainObject user)
throws NoPermissionInternalException,
DocumentSaveException
NoPermissionInternalException
DocumentSaveException
@Transactional
public void createWorkingDocumentFromExisting(DocumentDomainObject document,
UserDomainObject user)
throws NoPermissionInternalException,
DocumentSaveException
document - an instance of TextDocumentDomainObject
NoPermissionInternalException
DocumentSaveException
@Transactional
public void saveNewDocument(UserDomainObject user,
DocumentDomainObject document,
boolean copying)
throws NoPermissionToAddDocumentToMenuException,
DocumentSaveException
NoPermissionToAddDocumentToMenuException
DocumentSaveException
public void checkIfAliasAlreadyExist(DocumentDomainObject document)
throws AliasAlreadyExistsInternalException
AliasAlreadyExistsInternalExceptionpublic DocumentMapper getDocumentMapper()
public void setDocumentMapper(DocumentMapper documentMapper)
public MetaDao getMetaDao()
public void setMetaDao(MetaDao metaDao)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||