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.
Add Issue, Edit Issue screens and Reports
public boolean ucAllowViewDocumentOperation(
HttpServletRequest request,
HttpServletResponse response,
Connection dbconn,
SesameSession session,
Map selectedVals)
throws Exception {
return true;
}
true
if operation is permitted, false
if notERR_MSG
in the selectedVals. The ERR_MSG
may be a text message or an ALERT
messageERR_MSG