|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCommandResponder.Base
CR_Trust
public class CR_Trust
Responder for the command 'trust' - to extend trust to another voter.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface CommandResponder |
|---|
CommandResponder.AnonymousIssueException, CommandResponder.Base, CommandResponder.Session, CommandResponder.X |
| Field Summary |
|---|
| Fields inherited from class CommandResponder.Base |
|---|
electoralService, keyPrefix |
| Constructor Summary | |
|---|---|
CR_Trust(Register register)
Constructs a CR_Trust. |
|
CR_Trust(Register register,
String keyPrefix)
Constructs a CR_Trust as a subclass. |
|
| Method Summary | |
|---|---|
protected void |
appendTrustList(RegistrationC registration,
CommandResponder.Session session)
Appends a list of trusted voters to the reply. |
protected void |
commitTrustAndEcho(String destinationEmail,
boolean toAdd,
RegistrationC registration,
CommandResponder.Session session)
Commits the addition or removal of a trusted voter, and appends an echo of the change to the reply. |
static String |
edgeWarning(Register register,
Registration voter0,
Registration voter1,
BundleFormatter bunA)
Returns a localized edge extension warning; or null if the edge appears to be extendable. |
protected Register |
register()
|
Exception |
respond(String[] argv,
CommandResponder.Session session)
Responds to an invocation of the command. |
| Methods inherited from class CommandResponder.Base |
|---|
acceptsAnonymousIssue, canonicalEmail, commandName, compileBaseOptions, help, parse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CR_Trust(Register register)
CR_Trust(Register register,
String keyPrefix)
| Method Detail |
|---|
@ThreadSafe
public static String edgeWarning(Register register,
Registration voter0,
Registration voter1,
BundleFormatter bunA)
public Exception respond(String[] argv,
CommandResponder.Session session)
CommandResponder
argv - array of command name (index 0)
and any arguments (indeces 1..*)
protected void appendTrustList(RegistrationC registration,
CommandResponder.Session session)
throws IOException,
NoSuchMethodException,
ScriptException,
SQLException
session - with wrapping turned off in its reply builder
IOException
NoSuchMethodException
ScriptException
SQLException
protected void commitTrustAndEcho(String destinationEmail,
boolean toAdd,
RegistrationC registration,
CommandResponder.Session session)
throws SQLException,
VoterInputTable.BadInputException
toAdd - true to add trust, false to remove itsession - with wrapping turned off in its reply builder
SQLException
VoterInputTable.BadInputExceptionprotected Register register()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||