|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.poll.service.impl.PollServiceImpl
public class PollServiceImpl
| Constructor Summary | |
|---|---|
PollServiceImpl(org.exoplatform.container.xml.InitParams params,
org.exoplatform.forum.common.jcr.KSDataLocation locator,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator)
|
|
| Method Summary | |
|---|---|
void |
addInitialDefaultDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Adds the plugin. |
List<Poll> |
getPagePoll()
Gets list polls. |
Poll |
getPoll(String pollId)
Gets the poll. |
PollSummary |
getPollSummary(List<String> groupOfUser)
Gets the poll summary. |
boolean |
hasPermissionInForum(String pollPath,
List<String> allInfoOfUser)
check has permission of user viewer the poll in the forum. |
Poll |
removePoll(String pollId)
Removes the poll. |
void |
savePoll(Poll poll,
boolean isNew,
boolean isVote)
Save poll. |
void |
setClosedPoll(Poll poll)
Sets the closed poll. |
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PollServiceImpl(org.exoplatform.container.xml.InitParams params,
org.exoplatform.forum.common.jcr.KSDataLocation locator,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator)
throws Exception
Exception| Method Detail |
|---|
public void addInitialDefaultDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
PollService
addInitialDefaultDataPlugin in interface PollServiceplugin - the plugin
Exception - the exceptionpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startable
public Poll getPoll(String pollId)
throws Exception
PollService
getPoll in interface PollServiceException - the exceptionpublic Poll removePoll(String pollId)
PollService
removePoll in interface PollService
public void savePoll(Poll poll,
boolean isNew,
boolean isVote)
throws Exception
PollService
savePoll in interface PollServicepoll - the pollisNew - is the newisVote - is the vote
Exception - the exceptionpublic void setClosedPoll(Poll poll)
PollService
setClosedPoll in interface PollService
public List<Poll> getPagePoll()
throws Exception
PollService
getPagePoll in interface PollServiceException - the exception
public boolean hasPermissionInForum(String pollPath,
List<String> allInfoOfUser)
throws Exception
PollService
hasPermissionInForum in interface PollServicepollPath - the path of the poll.allInfoOfUser - user, group and membership of the user.
Exception - the exception
public PollSummary getPollSummary(List<String> groupOfUser)
throws Exception
PollService
getPollSummary in interface PollServicegroupOfUser - group
Exception - the exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||