org.exoplatform.poll.service.impl
Class JCRDataStorage

java.lang.Object
  extended by org.exoplatform.poll.service.impl.JCRDataStorage
All Implemented Interfaces:
DataStorage, PollNodeTypes

public class JCRDataStorage
extends Object
implements DataStorage, PollNodeTypes


Field Summary
 
Fields inherited from interface org.exoplatform.poll.service.PollNodeTypes
APPLICATION_DATA, EXO_CREATED_DATE, EXO_ID, EXO_IS_AGAIN_VOTE, EXO_IS_CLOSED, EXO_IS_MULTI_CHECK, EXO_IS_POLL, EXO_LASTVOTE, EXO_LINK, EXO_MODIFIED_BY, EXO_MODIFIED_DATE, EXO_OPTION, EXO_OWNER, EXO_POLL, EXO_POLLS, EXO_QUESTION, EXO_TIME_OUT, EXO_TOPIC, EXO_USER_VOTE, EXO_VOTE, GROUPS, JCR_ROOT, NT_UNSTRUCTURED, POLL, POLLS, TEXT_HTML
 
Constructor Summary
JCRDataStorage(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)
           
 
Method Summary
 String getActivityIdForOwner(String ownerId)
           
 javax.jcr.Node getNodeByPath(String nodePath, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
           
 List<Poll> getPagePoll()
           
 Poll getPoll(String pollId)
           
 PollSummary getPollSummary(List<String> allInfoOfUser)
           
 javax.jcr.Session getSession(org.exoplatform.services.jcr.ext.common.SessionProvider sprovider)
           
 boolean hasPermissionInForum(String pollPath, List<String> allInfoOfUser)
           
 void initDefaultData()
           
 Poll removePoll(String pollId)
           
 void saveActivityIdForOwner(String ownerId, String activityId)
           
 void savePoll(Poll poll, boolean isNew, boolean isVote)
           
 void setClosedPoll(Poll poll)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCRDataStorage

public JCRDataStorage(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
                      org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)
Method Detail

getNodeByPath

public javax.jcr.Node getNodeByPath(String nodePath,
                                    org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
                             throws Exception
Throws:
Exception

getSession

public javax.jcr.Session getSession(org.exoplatform.services.jcr.ext.common.SessionProvider sprovider)
                             throws Exception
Throws:
Exception

initDefaultData

public void initDefaultData()
                     throws Exception
Throws:
Exception

getPoll

public Poll getPoll(String pollId)
             throws Exception
Specified by:
getPoll in interface DataStorage
Throws:
Exception

getPagePoll

public List<Poll> getPagePoll()
                       throws Exception
Specified by:
getPagePoll in interface DataStorage
Throws:
Exception

hasPermissionInForum

public boolean hasPermissionInForum(String pollPath,
                                    List<String> allInfoOfUser)
                             throws Exception
Specified by:
hasPermissionInForum in interface DataStorage
Throws:
Exception

getPollSummary

public PollSummary getPollSummary(List<String> allInfoOfUser)
                           throws Exception
Specified by:
getPollSummary in interface DataStorage
Throws:
Exception

removePoll

public Poll removePoll(String pollId)
Specified by:
removePoll in interface DataStorage

savePoll

public void savePoll(Poll poll,
                     boolean isNew,
                     boolean isVote)
              throws Exception
Specified by:
savePoll in interface DataStorage
Throws:
Exception

setClosedPoll

public void setClosedPoll(Poll poll)
Specified by:
setClosedPoll in interface DataStorage

saveActivityIdForOwner

public void saveActivityIdForOwner(String ownerId,
                                   String activityId)
Specified by:
saveActivityIdForOwner in interface DataStorage

getActivityIdForOwner

public String getActivityIdForOwner(String ownerId)
Specified by:
getActivityIdForOwner in interface DataStorage


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.