|
||||||||||
| 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
| Field Summary | |
|---|---|
protected List<PollEventListener> |
listeners_
|
| 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. |
void |
addListenerPlugin(PollEventListener listener)
|
String |
getActivityIdForOwner(String ownerPath)
Get value of exo:activityId property in specified node via path. |
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. |
void |
removeListenerPlugin(PollEventListener listener)
|
Poll |
removePoll(String pollId)
Removes the poll. |
void |
saveActivityIdForOwner(String ownerPath,
String activityId)
Defines Mixin type exo:activityInfo for node that means to add exo:activityId property into Node what is owner created activity via patch |
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 |
| Field Detail |
|---|
protected List<PollEventListener> listeners_
| 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 exception
public void addListenerPlugin(PollEventListener listener)
throws Exception
addListenerPlugin in interface PollServiceException
public void removeListenerPlugin(PollEventListener listener)
throws Exception
removeListenerPlugin in interface PollServiceExceptionpublic 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
public void saveActivityIdForOwner(String ownerPath,
String activityId)
PollService
saveActivityIdForOwner in interface PollServiceownerPath - - the Path's Node what is owner created activityactivityId - - the Id's activity created.public String getActivityIdForOwner(String ownerPath)
PollService
getActivityIdForOwner in interface PollServiceownerPath - - the Path's Node what is owner created activity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||