org.exoplatform.poll.service.impl
Class JCRDataStorage
java.lang.Object
org.exoplatform.poll.service.impl.JCRDataStorage
- All Implemented Interfaces:
- DataStorage, PollNodeTypes
public class JCRDataStorage
- extends Object
- implements DataStorage, PollNodeTypes
| 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_MODIFIED_BY, EXO_MODIFIED_DATE, EXO_OPTION, EXO_OWNER, EXO_POLL, EXO_POLLS, EXO_QUESTION, EXO_TIME_OUT, 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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JCRDataStorage
public JCRDataStorage(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)
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
Copyright © 2013 eXo Platform SAS. All Rights Reserved.