|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IForumPoll
A poll can be attached to any object in the system or can exist at the global level. Additionally, polls can exist in a certain time range. For example, one can create a poll and have it be active in 2 weeks for 1 month. Inactive polls can also be displayed and can be later permanently deleted from the system. с
| Field Summary | |
|---|---|
static long |
ALLOW_ANONYMOUS_VOTE_MODIFICATION
Mode to allow guests to change their vote after casting the vote. |
static long |
ALLOW_USER_VOTE_MODIFICATION
Mode to allow users to change their vote after casting the vote. |
static long |
MULTIPLE_SELECTIONS_ALLOWED
Mode to allow users to select multiple options in a poll. |
| Method Summary | |
|---|---|
void |
addAnonymousVote(int index,
String uniqueID)
Adds anonymous vote to the poll |
void |
addOption(String value)
Adds option to the poll |
void |
addUserVote(int index,
String userName)
Adds user vote to the poll |
void |
changeAnonymousVote(int prevIndex,
int newIndex,
String uniqueID)
Changes anonymous vote |
void |
changeUserVote(int prevIndex,
int newIndex,
String username)
Changes user vote |
void |
delete()
Deletes the poll |
void |
deleteOption(int index)
Deletes option |
int |
getAnonymousVoteCount()
Retrieves anonymous vote count |
int |
getAnonymousVoteCount(int index)
Retrieves anonymous vote count |
int[] |
getAnonymousVotes(String uniqueID)
Retrieves option votes |
String |
getAuthorName()
Retrieves the author name of the poll |
Date |
getCreationDate()
Retrieves creation date of the poll |
String |
getDescription()
Retrieves description of the poll |
Date |
getEndDate()
Retrieves end date of the poll |
Date |
getExpirationDate()
Retrieves expiration date of the poll |
long |
getID()
Retrieves the unique identifier of the poll |
Date |
getModificationDate()
Retrieves modification date of the poll |
String |
getName()
Retrieves the name of the poll |
String |
getOption(int index)
Retrieves the value at specific index in the options of the poll |
int |
getOptionCount()
Retrieves the option count for the poll |
Date |
getStartDate()
Retrieves start date of the poll |
int |
getUserVoteCount()
Retrieves the total number of user votes for the poll |
int |
getUserVoteCount(int index)
Retrieves the number of count for specific option |
String[] |
getUserVotes()
Retrieves users voted in the poll |
String[] |
getUserVotes(int index)
Retrieves users voted for specific index in the poll |
int[] |
getUserVotes(String username)
Retrieves the indexes of votes of specific user |
int |
getVoteCount()
Get the total number of votes for the poll |
int |
getVoteCount(int index)
Get total number of votes for specific option in the poll |
boolean |
hasAnonymousVoted(String uniqueID)
Checks if anonymous with specific unique identifier has voted |
boolean |
hasUserVoted(String username)
Checks if user with specific name has voted |
boolean |
isModeEnabled(long mode)
Checks if mode is enabled. |
void |
refresh()
Retrieves latest content of poll |
void |
removeAnonymousVote(int prevIndex,
String uniqueID)
Removes anonymous vote |
void |
removeUserVote(int prevIndex,
String username)
Removes user vote |
void |
save()
Saves the poll |
void |
setDescription(String description)
Sets the description of the poll |
void |
setEndDate(Date endDate)
Sets the end date of the poll |
void |
setExpirationDate(Date expirationDate)
Sets the expiration date of the poll |
void |
setMode(long mode,
boolean enabled)
Sets the mode. |
void |
setName(String name)
Sets the name of the poll |
void |
setOption(int index,
String value)
Sets value of option by index. |
void |
setOptionIndex(int currentIndex,
int newIndex)
Changes option at specific index |
void |
setStartDate(Date startDate)
Sets start date of the poll |
| Field Detail |
|---|
static final long ALLOW_USER_VOTE_MODIFICATION
static final long ALLOW_ANONYMOUS_VOTE_MODIFICATION
static final long MULTIPLE_SELECTIONS_ALLOWED
| Method Detail |
|---|
long getID()
void delete()
throws com.sap.netweaver.coll.forums.exceptions.PollNotFoundException,
com.sap.netweaver.coll.forums.exceptions.PollDeletionException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
com.sap.netweaver.coll.forums.exceptions.PollDeletionException
void save()
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
void refresh()
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
void addOption(String value)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
value - the value of the option
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
void addAnonymousVote(int index,
String uniqueID)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
index - the index of the optionuniqueID - the unique identifier of the anonymous user
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
void addUserVote(int index,
String userName)
throws com.sap.netweaver.coll.forums.exceptions.UserNotFoundException,
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException,
com.sap.netweaver.coll.forums.exceptions.PollException
index - the index of the optionuserName - the user name
com.sap.netweaver.coll.forums.exceptions.UserNotFoundException
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
com.sap.netweaver.coll.forums.exceptions.PollException
void changeAnonymousVote(int prevIndex,
int newIndex,
String uniqueID)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
prevIndex - the previous index of the optionnewIndex - the new index of the optionuniqueID - the unique identifier of the anonymous user
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
void changeUserVote(int prevIndex,
int newIndex,
String username)
throws com.sap.netweaver.coll.forums.exceptions.UserNotFoundException,
com.sap.netweaver.coll.forums.exceptions.PollException,
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
prevIndex - the previous index of the optionnewIndex - the new index of the optionusername - the user name
com.sap.netweaver.coll.forums.exceptions.UserNotFoundException
com.sap.netweaver.coll.forums.exceptions.PollException
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
void deleteOption(int index)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
index - the index of the option
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
int getAnonymousVoteCount()
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
int getAnonymousVoteCount(int index)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
index -
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
int[] getAnonymousVotes(String uniqueID)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
uniqueID - the unique identifier of anonymous user
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundExceptionDate getCreationDate()
String getDescription()
Date getEndDate()
Date getExpirationDate()
Date getModificationDate()
String getName()
String getOption(int index)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
index - the index
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
int getOptionCount()
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundExceptionString getAuthorName()
String[] getUserVotes()
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
String[] getUserVotes(int index)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
index -
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
int[] getUserVotes(String username)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.UserNotFoundException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
username - the user name
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.UserNotFoundException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundExceptionDate getStartDate()
boolean hasAnonymousVoted(String uniqueID)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
uniqueID - the unique identifier of the anonymous user
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
boolean hasUserVoted(String username)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.UserNotFoundException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
username - the user name
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.UserNotFoundException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
boolean isModeEnabled(long mode)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
mode - the mode
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
void removeAnonymousVote(int prevIndex,
String uniqueID)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
prevIndex - the index of the optionuniqueID - the unique identifier of the anonymous user
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
void removeUserVote(int prevIndex,
String username)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.UserNotFoundException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
prevIndex - the index of the optionusername - the user name
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.UserNotFoundException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundExceptionvoid setDescription(String description)
description - the descriptionvoid setEndDate(Date endDate)
endDate - the end datevoid setExpirationDate(Date expirationDate)
expirationDate - the expiration date
void setMode(long mode,
boolean enabled)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
mode - the modeenabled - weather the mode should be enabled or disabled
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundExceptionvoid setName(String name)
name - the name
void setOption(int index,
String value)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
index - value -
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
void setOptionIndex(int currentIndex,
int newIndex)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
currentIndex - the current index of the optionnewIndex - the new index of the option
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundExceptionvoid setStartDate(Date startDate)
startDate - the start date
int getUserVoteCount(int index)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
index - the index of the option
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
int getUserVoteCount()
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
int getVoteCount()
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
int getVoteCount(int index)
throws com.sap.netweaver.coll.forums.exceptions.UnauthorizedException,
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
index - the option index
com.sap.netweaver.coll.forums.exceptions.UnauthorizedException
com.sap.netweaver.coll.forums.exceptions.PollNotFoundException
|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||