|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectVoterService
Poll
@ThreadRestricted(value="holds lock()") public final class Poll
A poll provided as a voter service. A poll is a collection of votes on a prospective issue.
| Nested Class Summary | |
|---|---|
static class |
Poll.ConstructionContext
A context for configuring the construction of a poll. |
static class |
Poll.PollserverScope
API for all polls within the scope of a pollserver. |
| Nested classes/interfaces inherited from class VoterService |
|---|
VoterService.IllegalNameException, VoterService.NoSuchServiceException |
| Nested classes/interfaces inherited from interface InputStore |
|---|
InputStore.X |
| Field Summary | |
|---|---|
static Pattern |
POLL_NAME_PATTERN
The allowable pattern of a poll name. |
static String |
TEST_POLL_NAME
The standard name of the local test poll. |
| Fields inherited from class VoterService |
|---|
constructionContext, lock, name, NAME_MAX_LENGTH, NAME_PATTERN, pollserverRun |
| Method Summary | |
|---|---|
(package private) JavaScriptIncluder |
configurationScript()
The compiled configuration script for the poll. |
Count |
countToReport()
The current count to report, or null if there is none. |
Exception |
dispatch(String[] argArray,
CommandResponder.Session commandSession)
Looks up the responder of the specified command, and sends the command to it. |
Set<String> |
divisionalComponents()
The set of divisions whose members are exclusively eligible to vote in this poll. |
String |
divisionPageName()
The polling division, specified by its pollwiki pagename. |
String |
divisionSmallMapPageName()
A small map of the polling division, specified by its pollwiki pagename. |
ActivityEvent |
newChangeEventOrNull(Vote oldVote,
Vote newVote)
Either constructs an event to record the change that occured between oldVote and newVote; or returns null, if no significant change occured. |
long |
populationSize()
The estimated number of eligible voters for this poll. |
String |
populationSizeExplanation()
An explanation of the population size. |
File |
startupConfigurationFile()
The startup configuration file for this service. |
String |
summaryDescription()
A short description that summarizes this service. |
String |
title()
The display title of this service in wiki-style title case. |
InputTable |
voterInputTable()
The relational store of voter input for this service. |
String |
wgLogoImageLocation()
The wiki logo (wgLogo) image location for this poll; or null if none is specified. |
String |
wgLogoLinkTarget()
The wiki logo (wgLogo) link target for this poll. |
| Methods inherited from class VoterService |
|---|
dispatch, equals, help, helpA_1, helpA_2, helpA_3, helpA, helpB, helpC, init, isNonPoll, lock, name, pollserverRun, responderByClassName, responderForCommand, responders, serviceDirectory, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Pattern POLL_NAME_PATTERN
VoterService.name(),
VoterService.NAME_PATTERN,
u.zelea.com/w/Category:Pollpublic static final String TEST_POLL_NAME
| Method Detail |
|---|
@Warning(value="thread restricted object") JavaScriptIncluder configurationScript()
Poll.PollserverScope.configurationFile()
public Count countToReport()
throws IOException,
SQLException
IOException
SQLException@ThreadSafe public Set<String> divisionalComponents()
Poll.ConstructionContext.addDivisionalComponent(String),
u.zelea.com/w/Property:Division#Divisions@ThreadSafe public String divisionPageName()
Poll.ConstructionContext.setDivisionPageName(String),
u.zelea.com/w/Property:Division@ThreadSafe public String divisionSmallMapPageName()
Poll.ConstructionContext.setDivisionSmallMapPageName(String),
u.zelea.com/w/Property:Small_map
public ActivityEvent newChangeEventOrNull(Vote oldVote,
Vote newVote)
@ThreadSafe public long populationSize()
Poll.ConstructionContext.setPopulationSize(long),
u.zelea.com/w/Property:Population size@ThreadSafe public String populationSizeExplanation()
Poll.ConstructionContext.setPopulationSizeExplanation(String),
u.zelea.com/w/Property:Population size explanation@ThreadSafe public String wgLogoImageLocation()
Poll.ConstructionContext.setWGLogoImageLocation(String),
www.mediawiki.org/wiki/Manual:$wgLogo@ThreadSafe public String wgLogoLinkTarget()
Poll.ConstructionContext.setWGLogoLinkTarget(String),
www.mediawiki.org/wiki/Manual:$wgLogo
public Exception dispatch(String[] argArray,
CommandResponder.Session commandSession)
VoterService
dispatch in class VoterServiceargArray - an array containing the command name and arguments,
per CommandResponder.respond(argv,session)
CommandResponder.respond(String[],CommandResponder.Session)@ThreadSafe public File startupConfigurationFile()
VoterService
startupConfigurationFile in class VoterServicePoll.PollserverScope.configurationFile()@ThreadSafe public String summaryDescription()
VoterService
summaryDescription in class VoterServicePoll.ConstructionContext.setSummaryDescription(String)@ThreadSafe public String title()
VoterService
title in class VoterServicePoll.ConstructionContext.setTitle(String)@ThreadSafe public InputTable voterInputTable()
InputStore
voterInputTable in interface InputStorePollserver.Run.voterInputDatabase()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||