public class JCRDataStorage extends Object implements DataStorage, 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 and Description |
|---|
JCRDataStorage(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.forum.common.jcr.KSDataLocation dataLocator) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public JCRDataStorage(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)
public javax.jcr.Node getNodeByPath(String nodePath, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) throws Exception
Exceptionpublic javax.jcr.Session getSession(org.exoplatform.services.jcr.ext.common.SessionProvider sprovider)
throws Exception
Exceptionpublic Poll getPoll(String pollId) throws Exception
getPoll in interface DataStorageExceptionpublic List<Poll> getPagePoll() throws Exception
getPagePoll in interface DataStorageExceptionpublic boolean hasPermissionInForum(String pollPath, List<String> allInfoOfUser) throws Exception
hasPermissionInForum in interface DataStorageExceptionpublic PollSummary getPollSummary(List<String> allInfoOfUser) throws Exception
getPollSummary in interface DataStorageExceptionpublic Poll removePoll(String pollId)
removePoll in interface DataStoragepublic void savePoll(Poll poll, boolean isNew, boolean isVote) throws Exception
savePoll in interface DataStorageExceptionpublic void setClosedPoll(Poll poll)
setClosedPoll in interface DataStoragepublic void saveActivityIdForOwner(String ownerId, String activityId)
saveActivityIdForOwner in interface DataStoragepublic String getActivityIdForOwner(String ownerId)
getActivityIdForOwner in interface DataStorageCopyright © 2003–2016 eXo Platform SAS. All rights reserved.