@Test public void testGetGuidePath() { AEMFormModel aemFormModel = getFormUnderTest(AEMFormModel.class, ADAPTIVE_FORM); assertEquals("/content/forms/af/form1/jcr:content/guideContainer.html", aemFormModel.getGuidePath()); aemFormModel = getFormUnderTest(AEMFormModel.class, IC); assertEquals("/content/forms/af/form2/channels/web/jcr:content/guideContainer.html", aemFormModel.getGuidePath()); }
@Nullable public String getGuidePath() { if (ADAPTIVE_FORM.equals(formType) && formRef != null) { return GuideUtils.guideRefToGuidePath(formRef) + ".html"; } else if (ADAPTIVE_DOCUMENT.equals(formType)) { if ("webChannel".equals(icChannel) && docRefWeb != null) { return GuideUtils.guideRefToDocPath(docRefWeb) + ".html"; } else if ("printChannel".equals(icChannel) && docRefPrint != null) { return docRefPrint + "/jcr:content"; } } return null; }
AEMFormModel implements ComponentExporter { @Nullable public String getGuidePath() { if (ADAPTIVE_FORM.equals(formType) && formRef != null) { return GuideUtils.guideRefToGuidePath(formRef) + ".html"; } else if (ADAPTIVE_DOCUMENT.equals(formType)) { if ("webChannel".equals(icChannel) && docRefWeb != null) { return GuideUtils.guideRefToDocPath(docRefWeb) + ".html"; } else if ("printChannel".equals(icChannel) && docRefPrint != null) { return docRefPrint + "/jcr:content"; } } return null; } }
AEMFormModel implements ComponentExporter { @Nullable public String getGuidePath() { if (ADAPTIVE_FORM.equals(formType) && formRef != null) { return GuideUtils.guideRefToGuidePath(formRef) + ".html"; } else if (ADAPTIVE_DOCUMENT.equals(formType)) { if ("webChannel".equals(icChannel) && docRefWeb != null) { return GuideUtils.guideRefToDocPath(docRefWeb) + ".html"; } else if ("printChannel".equals(icChannel) && docRefPrint != null) { return docRefPrint + "/jcr:content"; } } return null; }  }
AEMFormModel implements ComponentExporter { @Nullable public String getGuidePath() { if (ADAPTIVE_FORM.equals(formType) && formRef != null) { return GuideUtils.guideRefToGuidePath(formRef) + ".html"; } else if (ADAPTIVE_DOCUMENT.equals(formType)) { if ("webChannel".equals(icChannel) && docRefWeb != null) { return GuideUtils.guideRefToDocPath(docRefWeb) + ".html"; } else if ("printChannel".equals(icChannel) && docRefPrint != null) { return docRefPrint + "/jcr:content"; } } return null; }  @Nullable String getFormPath(); @Nullable String getGuidePath(); String getThemeRef(); Boolean getIsValidForm(); String getFormType(); @Nullable String getIcChannel(); String getWcmMode(); @Nonnull @Override String getExportedType(); }
AEMFormModel implements ComponentExporter { @Nullable public String getGuidePath() { if (ADAPTIVE_FORM.equals(formType) && formRef != null) { return GuideUtils.guideRefToGuidePath(formRef) + ".html"; } else if (ADAPTIVE_DOCUMENT.equals(formType)) { if ("webChannel".equals(icChannel) && docRefWeb != null) { return GuideUtils.guideRefToDocPath(docRefWeb) + ".html"; } else if ("printChannel".equals(icChannel) && docRefPrint != null) { return docRefPrint + "/jcr:content"; } } return null; }  @Nullable String getFormPath(); @Nullable String getGuidePath(); String getThemeRef(); Boolean getIsValidForm(); String getFormType(); @Nullable String getIcChannel(); String getWcmMode(); @Nonnull @Override String getExportedType();  }