| org.emforge.wiki.providers.hibernateprovider.HibernateAttachmentProvider
HibernateAttachmentProvider | public class HibernateAttachmentProvider extends HibernateDaoSupport implements WikiAttachmentProvider(Code) | | Provides a hibernate-based repository for Wiki attachments.
It is a simple wrapper of AttachmentProviderService, and conver the mapping bean with wiki Attachment.
author: Ray Linn |
Field Summary | |
final protected Log | log |
log | final protected Log log(Code) | | |
deleteAttachment | public void deleteAttachment(Attachment att) throws ProviderException(Code) | | |
deleteVersion | public void deleteVersion(Attachment att) throws ProviderException(Code) | | |
findAttachment | protected AttachmentDO findAttachment(String pageName, String filename, int version)(Code) | | get info for a given page/attachment/version
Parameters: the - name of the page Parameters: the - filename of the attachment Parameters: the - version of the attachment the attachment information collection |
findAttachments | protected List<AttachmentDO> findAttachments(String pageName, String filename)(Code) | | Find all attchments for specified name
Parameters: pageName - Parameters: filename - |
findAttachments | protected List<AttachmentDO> findAttachments(String pageName)(Code) | | get list of attachments for a given page grouped by filename in descending order of version number
Parameters: the - name of the page the attachment information collection |
findAttachments | protected List<AttachmentDO> findAttachments(Date timestamp)(Code) | | get list of attachment changed since the given date
Parameters: timestamp - the attachment information collection |
getAttachmentCount | public int getAttachmentCount()(Code) | | |
getAttachmentInfo | public Attachment getAttachmentInfo(WikiPage page, String name, int version) throws ProviderException(Code) | | |
getVersionHistory | public List<Attachment> getVersionHistory(Attachment att)(Code) | | |
listAllChanged | public List<Attachment> listAllChanged(Date timestamp) throws ProviderException(Code) | | |
listAttachments | public Collection<Attachment> listAttachments(WikiPage page) throws ProviderException(Code) | | |
moveAttachmentsForPage | public void moveAttachmentsForPage(String oldParent, String newParent) throws ProviderException(Code) | | |
setTxManager | public void setTxManager(PlatformTransactionManager txManager)(Code) | | |
|
|