public interface PollService
Modifier and Type | Method and Description |
---|---|
void |
addInitialDefaultDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Adds a plugin which initalizes the default data at first runtime.
|
void |
addListenerPlugin(org.exoplatform.poll.service.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<org.exoplatform.poll.service.Poll> |
getPagePoll()
Gets a list of polls.
|
org.exoplatform.poll.service.Poll |
getPoll(String pollId)
Gets a poll by its Id.
|
org.exoplatform.poll.service.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(org.exoplatform.poll.service.PollEventListener listener)
Removes a listener plugin.
|
org.exoplatform.poll.service.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(org.exoplatform.poll.service.Poll poll,
boolean isNew,
boolean isVote)
Saves a poll.
|
void |
setClosedPoll(org.exoplatform.poll.service.Poll poll)
Sets a poll to "closed".
|
void addInitialDefaultDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin) throws Exception
plugin
- The plugin to be added.Exception
- the exceptionorg.exoplatform.poll.service.Poll getPoll(String pollId) throws Exception
pollId
- Id of the poll.Exception
- the exceptionvoid savePoll(org.exoplatform.poll.service.Poll poll, boolean isNew, boolean isVote) throws Exception
poll
- 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 exceptionorg.exoplatform.poll.service.Poll removePoll(String pollId)
pollId
- Id of the poll which is removed.void setClosedPoll(org.exoplatform.poll.service.Poll poll)
poll
- The poll which is set to "closed".List<org.exoplatform.poll.service.Poll> getPagePoll() throws Exception
Exception
- the exceptionboolean hasPermissionInForum(String pollPath, List<String> allInfoOfUser) throws Exception
pollPath
- Path to the poll.allInfoOfUser
- Information about user, group and membership of the user.Exception
- the exceptionorg.exoplatform.poll.service.PollSummary getPollSummary(List<String> groupOfUser) throws Exception
groupOfUser
- All groups of the current user.Exception
- the exceptionvoid saveActivityIdForOwner(String ownerPath, String activityId)
ownerPath
- Path to the poll activity.activityId
- Id of the poll activity.String getActivityIdForOwner(String ownerPath)
ownerPath
- Path to the poll activity.void addListenerPlugin(org.exoplatform.poll.service.PollEventListener listener) throws Exception
listener
- The listener plugin to be added.Exception
Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.