ucAllowViewDocumentOperation

Purpose

This method is called when a user accesses a document field, attempting to view the document.  This gives control within user custom code to selectively allow different documents to be downloaded by users according to criteria defined by the administrator.

Applies To

Add Issue, Edit Issue screens and Reports

Signature

public boolean ucAllowViewDocumentOperation(
        HttpServletRequest request,
        HttpServletResponse response,
        Connection dbconn,
        SesameSession session,
        Map selectedVals) 
    throws Exception {
      return true;
    }

Notes

  • The method returns true if operation is permitted, false if not
  • You should set a value into ERR_MSG in the selectedVals.  The ERR_MSG may be a text message or an ALERT message
  • The base code will display the content of ERR_MSG
  • The method is called when the user clicks the link to view the contents of the Document field.