|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPollserver.ConstructionContext
@ThreadSafe public static final class Pollserver.ConstructionContext
A context for configuring a pollserver. The pollserver is configured by its startup configuration file, which contains a script (s) for that purpose. During construction of the pollserver, an instance of this context (psCC) is passed to s, via s::contructingPollserver(psCC).
| Method Summary | |
|---|---|
Pollserver.DatabaseCC |
geocodeDatabase()
The context for configuring the database of the pollserver's geocode table. |
String |
getDistrictName()
Deprecated. |
String |
getServerName()
|
String |
getShortTitle()
|
String |
getSummaryDescription()
|
Pollserver.TestUseMode |
getTestUseMode()
|
String |
getTitle()
|
URI |
getWikiLocation()
|
String |
name()
The name of the pollserver. |
Pollserver.DatabaseCC |
outputDatabase()
The context for configuring the pollserver's output database. |
void |
setDistrictName(String title)
Deprecated. |
void |
setServerName(String serverName)
Specifies the fully qualified name of the computer on which this pollserver is hosted. |
void |
setSummaryDescription(String summaryDescription)
Sets the summary description of the pollserver. |
void |
setTestUseMode(Pollserver.TestUseMode testUseMode)
Sets the test use mode of the pollserver. |
void |
setTitle(String title,
String shortTitle)
Sets the title of the pollserver. |
void |
setWikiLocation(String wikiLocationString)
Sets the location of the pollwiki. |
void |
setWikiLocation(URI wikiLocation)
Sets the location of the pollwiki. |
Pollserver.DatabaseCC |
userDatabase()
The context for configuring the pollserver's user database. |
Pollserver.DatabaseCC |
voterInputDatabase()
The context for configuring the pollserver's voter input database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Pollserver.DatabaseCC geocodeDatabase()
@Deprecated public String getDistrictName()
getTitle()@Deprecated @ThreadRestricted(value="constructor") public void setDistrictName(String title)
setTitle(String,String)public String getServerName()
Pollserver.serverName(),
setServerName(String)@ThreadRestricted(value="constructor") public void setServerName(String serverName)
Pollserver.serverName()public String getShortTitle()
Pollserver.shortTitle(),
setTitle(String,String)public String getSummaryDescription()
Pollserver.summaryDescription(),
setSummaryDescription(String)@ThreadRestricted(value="constructor") public void setSummaryDescription(String summaryDescription)
IllegalArgumentException - if the description contains
any newline characters, because they might render inconsistently
across different types of user interfacePollserver.summaryDescription()public Pollserver.TestUseMode getTestUseMode()
Pollserver.testUseMode(),
setTestUseMode(Pollserver.TestUseMode)@ThreadRestricted(value="constructor") public void setTestUseMode(Pollserver.TestUseMode testUseMode)
Pollserver.testUseMode()public String getTitle()
Pollserver.title(),
setTitle(String,String)
@ThreadRestricted(value="constructor")
public void setTitle(String title,
String shortTitle)
Pollserver.title(),
Pollserver.shortTitle()public URI getWikiLocation()
Pollserver.wikiLocation(),
setWikiLocation(String),
setWikiLocation(URI)
@ThreadRestricted(value="constructor")
public void setWikiLocation(String wikiLocationString)
throws URISyntaxException
URISyntaxExceptionPollserver.wikiLocation()@ThreadRestricted(value="constructor") public void setWikiLocation(URI wikiLocation)
IllegalArgumentException - if the URI does not end
with a slash '/' characterPollserver.wikiLocation()public String name()
Pollserver.name()public Pollserver.DatabaseCC outputDatabase()
Pollserver.Run.outputDatabase()public Pollserver.DatabaseCC userDatabase()
Pollserver.Run.userTable()public Pollserver.DatabaseCC voterInputDatabase()
in_registration and in_vote
are created in this database, if they do not already exist.
Pollserver.Run.voterInputDatabase()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||