|
Clearspace API (2.0.15) Web Services Client Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.webservices.WSJiveObject
com.jivesoftware.community.webservices.WSPoll
public class WSPoll
Poll webervices object.
| 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. |
| Fields inherited from class com.jivesoftware.community.webservices.WSJiveObject |
|---|
id, objectType |
| Constructor Summary | |
|---|---|
WSPoll()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
getCommentStatus()
Returns the comment status of this poll which may be any one of the following: NONE -- no comments allowed
OPEN -- comments are permitted
CLOSED -- comments were permitted but are not allowed now
Defaults to OPEN. |
long |
getContainerObjectID()
Returns the object ID of the container that 'contains' the poll. |
int |
getContainerObjectType()
Returns the object type of the container that 'contains' the poll. |
java.util.Date |
getCreationDate()
Returns the date the poll was created. |
java.lang.String |
getDescription()
Returns a brief description of the poll. |
java.util.Date |
getEndDate()
Returns the date voting for the poll should end. |
java.util.Date |
getExpirationDate()
Returns the date the poll should expire. |
long |
getMode()
|
java.util.Date |
getModificationDate()
Returns the date the poll was last modified. |
java.lang.String |
getName()
Returns the name of the poll. |
java.lang.String |
getOption(int index)
Returns the text of the option at the specified index. |
int |
getOptionCount()
Returns the number of options available in the poll. |
java.lang.String[] |
getOptions()
|
java.util.Date |
getStartDate()
Returns the date voting for the poll is set to start. |
WSUser |
getUser()
Returns the user who created the poll or null if the poll was created anonymously. |
int |
getVoteCount()
Returns a count of all votes (both guest and user votes) for all options in the poll. |
int |
hashCode()
|
void |
setCommentStatus(int status)
|
void |
setContainerObjectID(long containerObjectID)
|
void |
setContainerObjectType(int containerObjectType)
|
void |
setCreationDate(java.util.Date creationDate)
|
void |
setDescription(java.lang.String description)
Sets the description of the poll. |
void |
setEndDate(java.util.Date endDate)
Sets the date the poll should end. |
void |
setExpirationDate(java.util.Date expireDate)
Sets the date the poll should expire. |
void |
setMode(long mode)
|
void |
setModificationDate(java.util.Date modificationDate)
|
void |
setName(java.lang.String name)
Sets the name of the poll. |
void |
setOptionCount(int ct)
|
void |
setOptions(java.lang.String[] options)
|
void |
setStartDate(java.util.Date startDate)
Sets the date voting for the poll should start. |
void |
setUser(WSUser user)
|
void |
setVoteCount(int voteCount)
|
java.lang.String |
toString()
|
| Methods inherited from class com.jivesoftware.community.webservices.WSJiveObject |
|---|
getID, getObjectType, setID, setObjectType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long ALLOW_USER_VOTE_MODIFICATION
public static final long ALLOW_ANONYMOUS_VOTE_MODIFICATION
public static final long MULTIPLE_SELECTIONS_ALLOWED
| Constructor Detail |
|---|
public WSPoll()
| Method Detail |
|---|
public WSUser getUser()
public int getContainerObjectType()
public long getContainerObjectID()
public java.lang.String getName()
public void setName(java.lang.String name)
throws UnauthorizedException
name - the new name of the poll.
UnauthorizedException - if the user does not have permissions to administer the poll.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
throws UnauthorizedException
description - the description of the poll.
UnauthorizedException - if the user does not have permissions to administer the poll.public java.util.Date getCreationDate()
public java.util.Date getModificationDate()
public java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
throws UnauthorizedException
startDate - the date voting for the poll should start.
UnauthorizedException - if the user does not have permissions to administer the poll.public java.util.Date getEndDate()
public void setEndDate(java.util.Date endDate)
throws UnauthorizedException
endDate - the date the poll should end.
UnauthorizedException - if the user does not have permissions to administer the poll.public java.util.Date getExpirationDate()
public void setExpirationDate(java.util.Date expireDate)
throws UnauthorizedException
expireDate - the date the poll should expire.
UnauthorizedException - if the user does not have permissions to administer the poll.public int getOptionCount()
public java.lang.String getOption(int index)
index - the index of the option to return the text for.
java.lang.IndexOutOfBoundsException - if 0 > index > getOptionCount() - 1
public int getVoteCount()
throws PollException
com.jivesoftware.community.PollException - reserved for future changes.
PollExceptionpublic int getCommentStatus()
NONE -- no comments allowed
OPEN -- comments are permitted
CLOSED -- comments were permitted but are not allowed now
OPEN.
public void setVoteCount(int voteCount)
public void setUser(WSUser user)
public void setContainerObjectType(int containerObjectType)
public void setContainerObjectID(long containerObjectID)
public void setCreationDate(java.util.Date creationDate)
public void setModificationDate(java.util.Date modificationDate)
public void setOptions(java.lang.String[] options)
public java.lang.String[] getOptions()
public void setCommentStatus(int status)
public void setOptionCount(int ct)
public long getMode()
public void setMode(long mode)
public boolean equals(java.lang.Object o)
equals in class WSJiveObjectpublic int hashCode()
hashCode in class WSJiveObjectpublic java.lang.String toString()
toString in class WSJiveObject
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||