|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PollService
Main Facade for all Poll operations.
| 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". |
| Method Detail |
|---|
void addInitialDefaultDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
plugin - The plugin to be added.
Exception - the exception
Poll getPoll(String pollId)
throws Exception
pollId - Id of the poll.
Exception - the exception
void savePoll(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 exceptionPoll removePoll(String pollId)
pollId - Id of the poll which is removed.
void setClosedPoll(Poll poll)
poll - The poll which is set to "closed".
List<Poll> getPagePoll()
throws Exception
Exception - the exception
boolean 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 exception
PollSummary getPollSummary(List<String> groupOfUser)
throws Exception
groupOfUser - All groups of the current user.
Exception - the exception
void 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(PollEventListener listener)
throws Exception
listener - The listener plugin to be added.
Exception
void removeListenerPlugin(PollEventListener listener)
throws Exception
listener - The listener plugin to be removed.
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||