Package org.martinlaw.bo

Examples of org.martinlaw.bo.MatterExtensionHelper


    assertTrue(message,StringUtils.isEmpty(keyValues.getQualifiedMatterClassName(model)));
    Maintainable maintainable = mock(Maintainable.class);
    when(doc.getNewMaintainableObject()).thenReturn(maintainable);
    assertTrue(message,StringUtils.isEmpty(keyValues.getQualifiedMatterClassName(model)));
   
    MatterExtensionHelper matterHelper = getTestDataObject();
    matterHelper.setMatterId(matterId);
    when(maintainable.getDataObject()).thenReturn(matterHelper);
    assertTrue(message,StringUtils.isEmpty(keyValues.getQualifiedMatterClassName(model)));
   
    when(boSvc.findBySinglePrimaryKey(same(Matter.class), same(matterId))).thenReturn(matter);
    assertNotNull("Qualified Matter Class Name should not be null", keyValues.getQualifiedMatterClassName(model));
View Full Code Here


      MaintenanceDocumentForm form = (MaintenanceDocumentForm)model;
      if (form.getDocument() != null && form.getDocument().getNewMaintainableObject() != null
          && form.getDocument().getNewMaintainableObject().getDataObject() != null) {
        Object dataObject = form.getDocument().getNewMaintainableObject().getDataObject();
        if (dataObject instanceof MatterExtensionHelper) {
          MatterExtensionHelper helper = (MatterExtensionHelper)dataObject;
          if (helper.getMatterId() != null) {
            qualifiedMatterClassName = retrieveQualifiedMatterClassName(qualifiedMatterClassName, helper.getMatterId());
          }
        // works for court case, matter, conveyance, contract maintenance
        } else if (dataObject instanceof Matter) {
          qualifiedMatterClassName = dataObject.getClass().getCanonicalName();
        }
View Full Code Here

TOP

Related Classes of org.martinlaw.bo.MatterExtensionHelper

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.