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
trueif operation is permitted,falseif not -
You should set a value into
ERR_MSGin the selectedVals. TheERR_MSGmay be a text message or anALERTmessage -
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.
