za.org.coefficient.modules.vote
Class Vote
java.lang.Object
za.org.coefficient.modules.BaseModule
za.org.coefficient.modules.BaseProjectModule
za.org.coefficient.modules.vote.Vote
- All Implemented Interfaces:
- CoefficientEventPublisher, ModuleLocal
public class Vote
- extends BaseProjectModule
Constructor Summary |
Vote()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ADD
public static final java.lang.String ADD
- See Also:
- Constant Field Values
CLOSE
public static final java.lang.String CLOSE
- See Also:
- Constant Field Values
DELETE
public static final java.lang.String DELETE
- See Also:
- Constant Field Values
REOPEN
public static final java.lang.String REOPEN
- See Also:
- Constant Field Values
RESET
public static final java.lang.String RESET
- See Also:
- Constant Field Values
EDIT
public static final java.lang.String EDIT
- See Also:
- Constant Field Values
ERROR
public static final java.lang.String ERROR
- See Also:
- Constant Field Values
MODULE
public static final java.lang.String MODULE
- See Also:
- Constant Field Values
PROJECT
public static final java.lang.String PROJECT
- See Also:
- Constant Field Values
OP
public static final java.lang.String OP
- See Also:
- Constant Field Values
BUTTON
public static final java.lang.String BUTTON
- See Also:
- Constant Field Values
DATEUTIL
public static final java.lang.String DATEUTIL
- See Also:
- Constant Field Values
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
PERSON
public static final java.lang.String PERSON
- See Also:
- Constant Field Values
QUESTION
public static final java.lang.String QUESTION
- See Also:
- Constant Field Values
CHOICE
public static final java.lang.String CHOICE
- See Also:
- Constant Field Values
CHOICE1
public static final java.lang.String CHOICE1
- See Also:
- Constant Field Values
CHOICE2
public static final java.lang.String CHOICE2
- See Also:
- Constant Field Values
STARTYEAR
public static final java.lang.String STARTYEAR
- See Also:
- Constant Field Values
STARTMONTH
public static final java.lang.String STARTMONTH
- See Also:
- Constant Field Values
STARTDAY
public static final java.lang.String STARTDAY
- See Also:
- Constant Field Values
ENDYEAR
public static final java.lang.String ENDYEAR
- See Also:
- Constant Field Values
ENDMONTH
public static final java.lang.String ENDMONTH
- See Also:
- Constant Field Values
ENDDAY
public static final java.lang.String ENDDAY
- See Also:
- Constant Field Values
ROLES
public static final java.lang.String ROLES
- See Also:
- Constant Field Values
MINIMUMROLE
public static final java.lang.String MINIMUMROLE
- See Also:
- Constant Field Values
VOTE
public static final java.lang.String VOTE
- See Also:
- Constant Field Values
VOTES
public static final java.lang.String VOTES
- See Also:
- Constant Field Values
MORE
public static final java.lang.String MORE
- See Also:
- Constant Field Values
ON
public static final java.lang.String ON
- See Also:
- Constant Field Values
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
RESULTS
public static final java.lang.String RESULTS
- See Also:
- Constant Field Values
DEFAULTUSER
public static final java.lang.String DEFAULTUSER
- See Also:
- Constant Field Values
ERRORPAGE
public static final java.lang.String ERRORPAGE
- See Also:
- Constant Field Values
ADMINPAGE
public static final java.lang.String ADMINPAGE
- See Also:
- Constant Field Values
LISTPAGE
public static final java.lang.String LISTPAGE
- See Also:
- Constant Field Values
INDEXPAGE
public static final java.lang.String INDEXPAGE
- See Also:
- Constant Field Values
RESULTSPAGE
public static final java.lang.String RESULTSPAGE
- See Also:
- Constant Field Values
ADDMSG
public static final java.lang.String ADDMSG
- See Also:
- Constant Field Values
COMPLETEDMSG
public static final java.lang.String COMPLETEDMSG
- See Also:
- Constant Field Values
FINISHED
public static final java.lang.String FINISHED
- See Also:
- Constant Field Values
NOPROJECT
public static final java.lang.String NOPROJECT
- See Also:
- Constant Field Values
MISSINGDATA
public static final java.lang.String MISSINGDATA
- See Also:
- Constant Field Values
Vote
public Vote()
getMainMethod
public java.lang.String getMainMethod()
- Description copied from interface:
ModuleLocal
- This method is used to determine which method should be invoked when
the module is requested without an operation.
- Specified by:
getMainMethod
in interface ModuleLocal
- Specified by:
getMainMethod
in class BaseModule
- Returns:
- name of the method that should be invoked
getModuleDescription
public java.lang.String getModuleDescription()
- Description copied from interface:
ModuleLocal
- This method is used to find the description of the module
- Specified by:
getModuleDescription
in interface ModuleLocal
- Specified by:
getModuleDescription
in class BaseModule
- Returns:
- the description of the module
getModuleDisplayName
public java.lang.String getModuleDisplayName()
- Description copied from interface:
ModuleLocal
- This method is used to find the display name of the module
- Specified by:
getModuleDisplayName
in interface ModuleLocal
- Specified by:
getModuleDisplayName
in class BaseModule
- Returns:
- the display name of the module
canExecuteForRole
public java.lang.String canExecuteForRole(CoefficientContext ctx,
java.lang.String methodName,
Role usersHighestRole)
- Description copied from class:
BaseModule
- This is a base implementation that will allow all methods to be
invoked without regard to roles
- Specified by:
canExecuteForRole
in interface ModuleLocal
- Overrides:
canExecuteForRole
in class BaseModule
- Returns:
- null if we can execute the method an error message if not
castavote
public CoefficientContext castavote(CoefficientContext ctx)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteAllForProject
public CoefficientContext deleteAllForProject(CoefficientContext ctx)
throws java.lang.Exception
- Specified by:
deleteAllForProject
in class BaseProjectModule
- Throws:
java.lang.Exception
getSummaryForProject
public java.lang.String getSummaryForProject(CoefficientContext ctx)
throws net.sf.hibernate.HibernateException
- Overrides:
getSummaryForProject
in class BaseProjectModule
- Throws:
net.sf.hibernate.HibernateException
showSummaryForProject
public CoefficientContext showSummaryForProject(CoefficientContext ctx)
throws java.lang.Exception
- Overrides:
showSummaryForProject
in class BaseProjectModule
- Throws:
java.lang.Exception
processVotes
private void processVotes(CoefficientContext ctx,
java.util.HashMap map)
transferChoices
private void transferChoices(CoefficientContext ctx,
VoteData data)
Copyright CSIR. All Rights Reserved.