Class ViewVoters

All Implemented Interfaces:
ErrorCollection, I18nHelper, IssueSummaryAware, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class ViewVoters extends AbstractIssueSelectAction
See Also:
  • Constructor Details

  • Method Details

    • doDefault

      public String doDefault() throws Exception
      Overrides:
      doDefault in class webwork.action.ActionSupport
      Throws:
      Exception
    • getVoters

      public Collection<UserBean> getVoters()
    • isVotingEnabled

      public boolean isVotingEnabled()
    • getVoteHistory

      public ViewVoters.SimpleVoteHistory getVoteHistory()
    • getCommaSeperatedDateParts

      public String getCommaSeperatedDateParts(Date date)
    • doAddVote

      public String doAddVote() throws org.ofbiz.core.entity.GenericEntityException
      Throws:
      org.ofbiz.core.entity.GenericEntityException
    • doRemoveVote

      public String doRemoveVote() throws org.ofbiz.core.entity.GenericEntityException
      Remove the current users vote for this issue
      Returns:
      The name of the view to be rendered. Action.ERROR is returned if the issue could not be found or if the user does not have permission to see the issue.
      Throws:
      org.ofbiz.core.entity.GenericEntityException
    • isVotedAlready

      public boolean isVotedAlready()
      Determine whether the current user has voted already or not
      Returns:
      true if current user has already voted, false otherwise
    • isIssueReportedByMe

      public boolean isIssueReportedByMe()
    • isCanAddVote

      public boolean isCanAddVote()
    • isCanRemoveVote

      public boolean isCanRemoveVote()