Nuxeo ECM Projects 5.6-RC1

org.nuxeo.ecm.poll
Class PollActions

java.lang.Object
  extended by org.nuxeo.ecm.poll.PollActions
All Implemented Interfaces:
Serializable

@Name(value="pollActions")
@Scope(value=CONVERSATION)
@Install(precedence=10)
public class PollActions
extends Object
implements Serializable

Handles Poll related web actions.

Since:
5.4.3
Author:
Thomas Roger
See Also:
Serialized Form

Field Summary
static String SURVEYS_TAB
           
 
Constructor Summary
PollActions()
           
 
Method Summary
 String backToPollsListing(DocumentModel poll)
           
 void closePoll(DocumentModel poll)
           
 void createPoll()
           
 boolean displayResults(DocumentModel pollDoc)
           
 DocumentModel getNewPoll()
           
 DocumentModel getPollsContainer()
           
 DocumentModel getPollsContainer(DocumentModel doc)
           
 boolean hasUnansweredOpenPolls()
           
 boolean isShowCreateForm()
           
 void openPoll(DocumentModel poll)
           
 void toggleAndReset()
           
 void toggleCreateForm()
           
 Poll toPoll(DocumentModel poll)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SURVEYS_TAB

public static final String SURVEYS_TAB
See Also:
Constant Field Values
Constructor Detail

PollActions

public PollActions()
Method Detail

getPollsContainer

public DocumentModel getPollsContainer()
                                throws ClientException
Throws:
ClientException

getPollsContainer

public DocumentModel getPollsContainer(DocumentModel doc)
                                throws ClientException
Throws:
ClientException

isShowCreateForm

public boolean isShowCreateForm()

toggleCreateForm

public void toggleCreateForm()

toggleAndReset

public void toggleAndReset()

getNewPoll

public DocumentModel getNewPoll()
                         throws ClientException
Throws:
ClientException

createPoll

public void createPoll()
                throws ClientException
Throws:
ClientException

toPoll

public Poll toPoll(DocumentModel poll)

openPoll

public void openPoll(DocumentModel poll)
              throws ClientException
Throws:
ClientException

closePoll

public void closePoll(DocumentModel poll)
               throws ClientException
Throws:
ClientException

backToPollsListing

public String backToPollsListing(DocumentModel poll)
                          throws ClientException
Throws:
ClientException

hasUnansweredOpenPolls

public boolean hasUnansweredOpenPolls()

displayResults

public boolean displayResults(DocumentModel pollDoc)

Nuxeo ECM Projects 5.6-RC1

Copyright © 2012 Nuxeo SA. All Rights Reserved.