public String getMenuLink ( Record recMenu ) { String strRecordClass = recMenu . getClass ( ) . getName ( ) ; String strLink = HtmlConstants . SERVLET_LINK ; strLink = Utility . addURLParam ( strLink , DBParams . RECORD , strRecordClass ) ; strLink = Utility . addURLParam ( strLink , DBParams . COMMAND , MenuConstants . FORM ) ; if ( ( recMenu . getEditMode ( ) == Constants . EDIT_IN_PROGRESS ) || ( recMenu . getEditMode ( ) == Constants . EDIT_CURRENT ) ) { try { String strBookmark = recMenu . getHandle ( DBConstants . OBJECT_ID_HANDLE ) . toString ( ) ; strLink = Utility . addURLParam ( strLink , DBConstants . STRING_OBJECT_ID_HANDLE , strBookmark ) ; } catch ( DBException ex ) { ex . printStackTrace ( ) ; } } return strLink ; }
Get menu link .