@Test public void isLegacyMode_On() { ctx.currentResource("/content/legacy-on"); final Video video = ctx.request().adaptTo(Video.class); assertTrue(((VideoImpl) video).isLegacyMode()); }
protected boolean isLegacyMode() { if (legacyMode == null) { if (StringUtils.isNotBlank(renditionName)) { return false; } else { return StringUtils.isNotBlank(computedProperty) || StringUtils.isNotBlank(renditionRegex); } } else { return legacyMode; } }
VideoImpl extends AbstractEmptyTextComponent implements Video { protected boolean isLegacyMode() { if (legacyMode == null) { if (StringUtils.isNotBlank(renditionName)) { return false; } else { return StringUtils.isNotBlank(computedProperty) || StringUtils.isNotBlank(renditionRegex); } } else { return legacyMode; } } }
VideoImpl extends AbstractEmptyTextComponent implements Video { protected boolean isLegacyMode() { if (legacyMode == null) { if (StringUtils.isNotBlank(renditionName)) { return false; } else { return StringUtils.isNotBlank(computedProperty) || StringUtils.isNotBlank(renditionRegex); } } else { return legacyMode; } }  }
VideoImpl extends AbstractEmptyTextComponent implements Video { protected boolean isLegacyMode() { if (legacyMode == null) { if (StringUtils.isNotBlank(renditionName)) { return false; } else { return StringUtils.isNotBlank(computedProperty) || StringUtils.isNotBlank(renditionRegex); } } else { return legacyMode; } }  @PostConstruct void init(); @Override boolean isEmpty(); @Override boolean isReady(); @Override String getSrc(); @Override boolean isVideoAsset(); @Nonnull @Override String getExportedType(); }
VideoImpl extends AbstractEmptyTextComponent implements Video { protected boolean isLegacyMode() { if (legacyMode == null) { if (StringUtils.isNotBlank(renditionName)) { return false; } else { return StringUtils.isNotBlank(computedProperty) || StringUtils.isNotBlank(renditionRegex); } } else { return legacyMode; } }  @PostConstruct void init(); @Override boolean isEmpty(); @Override boolean isReady(); @Override String getSrc(); @Override boolean isVideoAsset(); @Nonnull @Override String getExportedType();  }