org.jasig.portlet.cms.model.repository
Class JcrRepositoryDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.extensions.jcr.support.JcrDaoSupport
          extended by org.jasig.portlet.cms.model.repository.JcrRepositoryDao
All Implemented Interfaces:
RepositoryDao, org.springframework.beans.factory.InitializingBean

public class JcrRepositoryDao
extends org.springframework.extensions.jcr.support.JcrDaoSupport
implements RepositoryDao


Constructor Summary
JcrRepositoryDao()
           
 
Method Summary
 Post getPost(String nodeName)
           
 Collection<Post> search(RepositorySearchOptions options)
           
 void setPost(Post post)
           
 void setPostDao(JcrPostDao postDao)
           
 
Methods inherited from class org.springframework.extensions.jcr.support.JcrDaoSupport
checkDaoConfig, convertJcrAccessException, getSession, getSession, getSessionFactory, getTemplate, releaseSession, setSessionFactory, setTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcrRepositoryDao

public JcrRepositoryDao()
Method Detail

getPost

@Cacheable(cacheName="postCache")
public Post getPost(String nodeName)
             throws JcrRepositoryException
Specified by:
getPost in interface RepositoryDao
Throws:
JcrRepositoryException

search

@Cacheable(cacheName="postCache")
public Collection<Post> search(RepositorySearchOptions options)
                        throws JcrRepositoryException
Specified by:
search in interface RepositoryDao
Throws:
JcrRepositoryException

setPost

@TriggersRemove(cacheName="postCache",
                when=AFTER_METHOD_INVOCATION,
                removeAll=true)
public void setPost(Post post)
             throws JcrRepositoryException
Specified by:
setPost in interface RepositoryDao
Throws:
JcrRepositoryException

setPostDao

public void setPostDao(JcrPostDao postDao)


Copyright © 2011 uPortal Jasig Community. All Rights Reserved.