@ThreadSafe public static final class VoteServer.ConstructionContext extends Object
Modifier and Type | Method and Description |
---|---|
VoteServer.DatabaseCC |
database()
The context for configuring the vote-server's relational database.
|
int |
getPollCacheCapacity() |
String |
getServerName() |
String |
getShortTitle() |
String |
getSummaryDescription() |
VoteServer.TestUseMode |
getTestUseMode() |
String |
getTitle() |
URI |
getVotorolaURI()
The public location of the votorola
directory, or null for the default.
|
String |
name()
The name of the vote-server.
|
PollwikiVS.ConstructionContext |
pollwiki()
The context for configuring the vote-server's pollwiki.
|
void |
setPollCacheCapacity(int _pollCacheCapacity)
Sets the maximum number of entries in the poll cache.
|
void |
setServerName(String serverName)
Specifies the fully qualified name of the computer on which this
vote-server is hosted.
|
void |
setSummaryDescription(String summaryDescription)
Sets the summary description of the vote-server.
|
void |
setTestUseMode(VoteServer.TestUseMode testUseMode)
Sets the test use mode of the vote-server.
|
void |
setTitle(String title,
String shortTitle)
Sets the title of the vote-server.
|
void |
setVotorolaLocation(String s)
Sets the public location of the votorola directory.
|
void |
setVotorolaURI(URI u)
Sets the public location of the votorola directory.
|
public VoteServer.DatabaseCC database()
public int getPollCacheCapacity()
@ThreadRestricted(value="constructor") public void setPollCacheCapacity(int _pollCacheCapacity)
public String getServerName()
VoteServer.serverName()
,
setServerName(String)
@ThreadRestricted(value="constructor") public void setServerName(String serverName)
VoteServer.serverName()
public String getShortTitle()
public String getSummaryDescription()
@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 interface.VoteServer.summaryDescription()
public VoteServer.TestUseMode getTestUseMode()
@ThreadRestricted(value="constructor") public void setTestUseMode(VoteServer.TestUseMode testUseMode)
VoteServer.testUseMode()
public String getTitle()
VoteServer.title()
,
setTitle(String,String)
@ThreadRestricted(value="constructor") public void setTitle(String title, String shortTitle)
VoteServer.title()
,
VoteServer.shortTitle()
public String name()
VoteServer.name()
public PollwikiVS.ConstructionContext pollwiki()
public URI getVotorolaURI()
@ThreadRestricted(value="constructor") public void setVotorolaLocation(String s) throws URISyntaxException
IllegalArgumentException
- if the URI ends with a slash '/' character.URISyntaxException
VoteServer.votorolaURI()
@ThreadRestricted(value="constructor") public void setVotorolaURI(URI u)
IllegalArgumentException
- if the URI ends with a slash '/' character.VoteServer.votorolaURI()