|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectRegister.ConfigurationContext
@ThreadSafe public static final class Register.ConfigurationContext
A context for configuring a register. Each register is configured by its configuration file, which contains a script (s) for that purpose. During construction of the register, an instance of this context (registerCC) is passed to s, via s::configureRegister(registerCC).
| Method Summary | |
|---|---|
void |
addPrimaryTrust(String voter1Email,
int edgeCount)
Adds primary trust edges to the neighbourhood network. |
long |
getElectorateSize()
|
String |
getElectorateSizeExplanation()
|
String |
getFieldDescription_link()
|
String |
getFieldDescription_name()
|
String |
getFieldDescription_note()
|
String |
getFieldDescription_residence()
|
String |
getFieldExample_link()
|
String |
getFieldExample_name()
|
String |
getFieldExample_note()
|
String |
getFieldExample_residence()
|
Geocode.GoogleGeocoding |
getGeocodingMethod()
|
String |
getListSummaryDescription()
Deprecated. |
int |
getPreRegistrationTrustLevel()
|
TrustEdge.Primary[] |
getPrimaryTrustArray()
|
String |
getSummaryDescription()
|
String |
getTitle()
|
ElectoralSubserver.DatabaseCC |
listDatabase()
The context for configuring the register's list database. |
void |
setElectorateSize(long electorateSize)
Sets the estimated size of the electorate. |
void |
setElectorateSizeExplanation(String electorateSizeExplanation)
Sets the electorate size explanation. |
void |
setFieldDescription_link(String fieldDescription_link)
Sets the description of the link field. |
void |
setFieldDescription_name(String fieldDescription_name)
Sets the description of the name field. |
void |
setFieldDescription_note(String fieldDescription_note)
Sets the description of the note field. |
void |
setFieldDescription_residence(String fieldDescription_residence)
Sets the description of the residence field. |
void |
setFieldExample_link(String fieldExample_link)
Sets the description of the link field. |
void |
setFieldExample_name(String fieldExample_name)
Sets the description of the name field. |
void |
setFieldExample_note(String fieldExample_note)
Sets the description of the note field. |
void |
setFieldExample_residence(String fieldExample_residence)
Sets the description of the residence field. |
void |
setGeocodingMethodGoogle(String key)
Sets the geocoding method of the register to GoogleGeocoding. |
void |
setListSummaryDescription(String listSummaryDescription)
Deprecated. |
void |
setPreRegistrationTrustLevel(int preRegistrationTrustLevel)
Sets the pre-registration trust level. |
void |
setSummaryDescription(String summaryDescription)
Sets the summary description of the register. |
void |
setTitle(String title)
Sets the title of the register. |
ElectoralSubserver.DatabaseCC |
voterInputDatabase()
The context for configuring the database of the register's voter input table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public long getElectorateSize()
Register.electorateSize(),
setElectorateSize(long)@ThreadRestricted(value="constructor") public void setElectorateSize(long electorateSize)
Register.electorateSize()public String getElectorateSizeExplanation()
Register.electorateSizeExplanation(),
setElectorateSizeExplanation(String)@ThreadRestricted(value="constructor") public void setElectorateSizeExplanation(String electorateSizeExplanation)
Register.electorateSizeExplanation()public String getFieldDescription_link()
Register.fieldDescription_link(),
setFieldDescription_link(String)@ThreadRestricted(value="constructor") public void setFieldDescription_link(String fieldDescription_link)
IllegalArgumentException - if the description contains
any newline characters, because they might render inconsistently
across different types of user interfaceRegister.fieldDescription_link()public String getFieldExample_link()
Register.fieldExample_link(),
setFieldExample_link(String)@ThreadRestricted(value="constructor") public void setFieldExample_link(String fieldExample_link)
IllegalArgumentException - if the description contains
any newline characters, because they might render inconsistently
across different types of user interfaceRegister.fieldExample_link()public String getFieldDescription_name()
Register.fieldDescription_name(),
setFieldDescription_name(String)@ThreadRestricted(value="constructor") public void setFieldDescription_name(String fieldDescription_name)
IllegalArgumentException - if the description contains
any newline characters, because they might render inconsistently
across different types of user interfaceRegister.fieldDescription_name()public String getFieldExample_name()
Register.fieldExample_name(),
setFieldExample_name(String)@ThreadRestricted(value="constructor") public void setFieldExample_name(String fieldExample_name)
IllegalArgumentException - if the description contains
any newline characters, because they might render inconsistently
across different types of user interfaceRegister.fieldExample_name()public String getFieldDescription_note()
Register.fieldDescription_note(),
setFieldDescription_note(String)@ThreadRestricted(value="constructor") public void setFieldDescription_note(String fieldDescription_note)
IllegalArgumentException - if the description contains
any newline characters, because they might render inconsistently
across different types of user interfaceRegister.fieldDescription_note()public String getFieldExample_note()
Register.fieldExample_note(),
setFieldExample_note(String)@ThreadRestricted(value="constructor") public void setFieldExample_note(String fieldExample_note)
IllegalArgumentException - if the description contains
any newline characters, because they might render inconsistently
across different types of user interfaceRegister.fieldExample_note()public String getFieldDescription_residence()
Register.fieldDescription_residence(),
setFieldDescription_residence(String)@ThreadRestricted(value="constructor") public void setFieldDescription_residence(String fieldDescription_residence)
IllegalArgumentException - if the description contains
any newline characters, because they might render inconsistently
across different types of user interfaceRegister.fieldDescription_residence()public String getFieldExample_residence()
Register.fieldExample_residence(),
setFieldExample_residence(String)@ThreadRestricted(value="constructor") public void setFieldExample_residence(String fieldExample_residence)
IllegalArgumentException - if the description contains
any newline characters, because they might render inconsistently
across different types of user interfaceRegister.fieldExample_residence()public Geocode.GoogleGeocoding getGeocodingMethod()
Register.geocodingMethod(),
setGeocodingMethodGoogle(String)@ThreadRestricted(value="constructor") public void setGeocodingMethodGoogle(String key)
key - per key()Register.geocodingMethod()@Deprecated public String getListSummaryDescription()
VoterList.summaryDescription(),
setListSummaryDescription(String)@Deprecated @ThreadRestricted(value="constructor") public void setListSummaryDescription(String listSummaryDescription)
IllegalArgumentException - if the description contains
any newline characters, because they might render inconsistently
across different types of user interfaceVoterList.summaryDescription()public int getPreRegistrationTrustLevel()
Register.preRegistrationTrustLevel(),
setPreRegistrationTrustLevel(int)@ThreadRestricted(value="constructor") public void setPreRegistrationTrustLevel(int preRegistrationTrustLevel)
Register.preRegistrationTrustLevel()public TrustEdge.Primary[] getPrimaryTrustArray()
Register.primaryTrustList(),
addPrimaryTrust(String,int)
@ThreadRestricted(value="constructor")
public void addPrimaryTrust(String voter1Email,
int edgeCount)
voter1Email - per
TrustEdge.Primary.voter1Email()edgeCount - per
TrustEdge.Primary.edgeCount()Register.primaryTrustList()public String getSummaryDescription()
Register.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 interfaceRegister.summaryDescription()public String getTitle()
Register.title(),
setTitle(String)@ThreadRestricted(value="constructor") public void setTitle(String title)
Register.title()public ElectoralSubserver.DatabaseCC listDatabase()
public ElectoralSubserver.DatabaseCC voterInputDatabase()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||