Package org.kuali.rice.krad.util

Examples of org.kuali.rice.krad.util.ErrorMessage


      String principalId = document.getDocumentHeader().getWorkflowDocument().getInitiatorPrincipalId();
      String initiatorPrincipalName = KimApiServiceLocator.getIdentityService().getPrincipal(principalId).getPrincipalName();
      if (isPrincipalNameInAssigneeList(matterWork, initiatorPrincipalName)) {
        return true;
      } else {
        ErrorMessage errMsg = new ErrorMessage(MartinlawConstants.MessageKeys.ERROR_NOT_ASSIGNED, initiatorPrincipalName,
                Matter.class.getSimpleName());
        errMsg.setNamespaceCode(MartinlawConstants.MODULE_NAMESPACE_CODE);
        getRulesHelper().addMatterIdError(errMsg);
        return false;
      }
    } else {
      return true;
View Full Code Here


   * creates an error to be displayed to the user that the matter id provided did not match an existing matter of the class type
   * @param klass - the class type - used for looking up a user friendly name for the matter id label from the DD
   * @return the error message
   */
  public ErrorMessage createMatterNotExistingError(Class<?> klass) {
    ErrorMessage errMsg = new ErrorMessage(RiceKeyConstants.ERROR_EXISTENCE,
        getDataDictionaryService().getAttributeLabel(
            klass, MartinlawConstants.PropertyNames.MATTER_ID));
    errMsg.setNamespaceCode(MartinlawConstants.MODULE_NAMESPACE_CODE);
    return errMsg;
  }
View Full Code Here

TOP

Related Classes of org.kuali.rice.krad.util.ErrorMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.