|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectElectoralSubserver
@ThreadSafe public final class ElectoralSubserver
An electoral subserver.
| Nested Class Summary | |
|---|---|
static class |
ElectoralSubserver.ConfigurationContext
A context for configuring an electoral subserver. |
static class |
ElectoralSubserver.DatabaseCC
A context for configuring a PostgreSQL database for an electoral subserver. |
static class |
ElectoralSubserver.NoSuchServiceException
Thrown when an unknown electoral service is requested. |
class |
ElectoralSubserver.Run
A run of the electoral subserver. |
static interface |
ElectoralSubserver.UserSession
A session between a user and a running subserver. |
| Constructor Summary | |
|---|---|
ElectoralSubserver(String name)
Constructs an ElectoralSubserver. |
|
| Method Summary | |
|---|---|
File |
cacheDirectory()
The directory for storage of files that are generated at runtime, and persisted from run to run. |
(package private) File |
configurationFile()
The configuration file for this subserver. |
String |
domainName()
The Internet domain name of this electoral subserver. |
String |
name()
The name of the user account on the local host, that identifies this subserver. |
String |
registerName()
The service name that identifies the electoral register for this subserver. |
File |
servicesDirectory()
The directory of electoral services that are automatically launched for each run of the subserver. |
String |
shortTitle()
A short version of the title, restricted to roughly SHORT_STRING_LENGTH_MAX characters. |
String |
summaryDescription()
A brief description of this electoral subserver, in sentence form. |
String |
title()
The title of this subserver, in title case. |
File |
votorolaDirectory()
The root directory (/home/subserver-name/votorola) of all subserver configuration files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElectoralSubserver(String name)
throws ScriptException
name - per name()
ScriptException| Method Detail |
|---|
public File cacheDirectory()
ElectoralSubserver.ConfigurationContext.setCacheDirectoryPath(String),
VApplication.cacheDirectory()File configurationFile()
votorolaDirectory/subserver.js
The language is JavaScript. There are restrictions on the character encoding.
public String domainName()
ElectoralSubserver.ConfigurationContext.setDomainName(String)public String name()
public String registerName()
ElectoralSubserver.Run.register(),
ElectoralSubserver.ConfigurationContext.setRegisterName(String)public File servicesDirectory()
votorolaDirectory/services
public String shortTitle()
title(),
ElectoralSubserver.ConfigurationContext.setShortTitle(String)public String summaryDescription()
ElectoralSubserver.ConfigurationContext.setSummaryDescription(String)public String title()
shortTitle(),
ElectoralSubserver.ConfigurationContext.setTitle(String)public File votorolaDirectory()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||