Class SetHelp

java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetHelp

public class SetHelp extends DAO
A Data Access Object to update Online Help entries and Help Desk Issues.
Since:
1.0
Version:
11.0
Author:
Luke
  • Constructor Details

    • SetHelp

      public SetHelp(Connection c)
      Initializes the Data Access Object.
      Parameters:
      c - the JDBC connection to use
  • Method Details

    • write

      public void write(ResponseTemplate rsp) throws DAOException
      Writes a Help Desk response template to the database.
      Parameters:
      rsp - the ResponseTemplate bean
      Throws:
      DAOException - if a JDBC error occurs
    • write

      public void write(Issue i) throws DAOException
      Updates a Help Desk Issue in the database.
      Parameters:
      i - the Issue bean
      Throws:
      DAOException - if a JDBC error occurss
    • write

      public void write(IssueComment ic) throws DAOException
      Adds an Issue Comment to the database.
      Parameters:
      ic - the IssueComment bean
      Throws:
      DAOException - if a JDBC error occurss
    • markFAQ

      public void markFAQ(int id, Instant createdOn) throws DAOException
      Marks a Help Desk Issue as part of the FAQ.
      Parameters:
      id - the Issue database ID
      createdOn - the creation date of the Comment to mark as the answer, or null to remove from the FAQ
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(int id) throws DAOException
      Deletes a Help Desk Issue from the database.
      Parameters:
      id - the Issue database ID
      Throws:
      DAOException - if a JDBC error occurss
    • deleteTemplate

      public void deleteTemplate(String title) throws DAOException
      Deletes a Help Desk response template from the database.
      Parameters:
      title - the template title
      Throws:
      DAOException - if a JDBC error occurss
    • link

      public void link(Issue i, int devIssueID) throws DAOException
      Links a Help Desk Issue to a Development Issue.
      Parameters:
      i - the Issue
      devIssueID - the Development Issue ID
      Throws:
      DAOException - if a JDBC error occurs
    • deleteComment

      public void deleteComment(int issueID, Instant createdOn) throws DAOException
      Deletes a Help Desk Issue comment.
      Parameters:
      issueID - the Issue's database ID
      createdOn - the Comment's creation date/time
      Throws:
      DAOException - if a JDBC error occurs