|
||||||||||
| 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 a plugin which initalizes the default data at first runtime. |
void |
addListenerPlugin(PollEventListener listener)
Adds a listener plugin. |
String |
getActivityIdForOwner(String ownerPath)
Gets information of a poll activity that is used for processing the activity streams. |
List<Poll> |
getPagePoll()
Gets a list of polls. |
Poll |
getPoll(String pollId)
Gets a poll by its Id. |
PollSummary |
getPollSummary(List<String> groupOfUser)
Gets summary of a poll. |
boolean |
hasPermissionInForum(String pollPath,
List<String> allInfoOfUser)
Checks if a user has permission on a poll or not. |
void |
removeListenerPlugin(PollEventListener listener)
Removes a listener plugin. |
Poll |
removePoll(String pollId)
Removes a poll. |
void |
saveActivityIdForOwner(String ownerPath,
String activityId)
Saves information of a poll activity that is used for processing the activity streams. |
void |
savePoll(Poll poll,
boolean isNew,
boolean isVote)
Saves a poll. |
void |
setClosedPoll(Poll poll)
Sets a poll to "closed". |
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 to be added.
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 PollServicepollId - Id of the poll.
Exception - the exceptionpublic Poll removePoll(String pollId)
PollService
removePoll in interface PollServicepollId - Id of the poll which is removed.
public void savePoll(Poll poll,
boolean isNew,
boolean isVote)
throws Exception
PollService
savePoll in interface PollServicepoll - The poll to be saved.isNew - If "true", the new poll is added. If "false", the poll is updated.isVote - If "true", the poll can be voted. If "false", the poll is updated.
Exception - the exception
public void addListenerPlugin(PollEventListener listener)
throws Exception
PollService
addListenerPlugin in interface PollServicelistener - The listener plugin to be added.
Exception
public void removeListenerPlugin(PollEventListener listener)
throws Exception
PollService
removeListenerPlugin in interface PollServicelistener - The listener plugin to be removed.
Exceptionpublic void setClosedPoll(Poll poll)
PollService
setClosedPoll in interface PollServicepoll - The poll which is set to "closed".
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 - Path to the poll.allInfoOfUser - Information about user, group and membership of the user.
Exception - the exception
public PollSummary getPollSummary(List<String> groupOfUser)
throws Exception
PollService
getPollSummary in interface PollServicegroupOfUser - All groups of the current user.
Exception - the exception
public void saveActivityIdForOwner(String ownerPath,
String activityId)
PollService
saveActivityIdForOwner in interface PollServiceownerPath - Path to the poll activity.activityId - Id of the poll activity.public String getActivityIdForOwner(String ownerPath)
PollService
getActivityIdForOwner in interface PollServiceownerPath - Path to the poll activity.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||