@Test public void isVideoAsset() { ctx.currentResource("/content/video"); final Video video = ctx.request().adaptTo(Video.class); assertTrue(video.isVideoAsset()); }
@Override public boolean isVideoAsset() { if (null != asset && null != asset.getResource()) { return DamUtil.isVideo(asset.getResource().adaptTo(Asset.class)); } return false; }
VideoImpl extends AbstractEmptyTextComponent implements Video { @Override public boolean isVideoAsset() { if (null != asset && null != asset.getResource()) { return DamUtil.isVideo(asset.getResource().adaptTo(Asset.class)); } return false; } }
VideoImpl extends AbstractEmptyTextComponent implements Video { @Override public boolean isVideoAsset() { if (null != asset && null != asset.getResource()) { return DamUtil.isVideo(asset.getResource().adaptTo(Asset.class)); } return false; }  }
VideoImpl extends AbstractEmptyTextComponent implements Video { @Override public boolean isVideoAsset() { if (null != asset && null != asset.getResource()) { return DamUtil.isVideo(asset.getResource().adaptTo(Asset.class)); } return false; }  @PostConstruct void init(); @Override boolean isEmpty(); @Override boolean isReady(); @Override String getSrc(); @Override boolean isVideoAsset(); @Nonnull @Override String getExportedType(); }
VideoImpl extends AbstractEmptyTextComponent implements Video { @Override public boolean isVideoAsset() { if (null != asset && null != asset.getResource()) { return DamUtil.isVideo(asset.getResource().adaptTo(Asset.class)); } return false; }  @PostConstruct void init(); @Override boolean isEmpty(); @Override boolean isReady(); @Override String getSrc(); @Override boolean isVideoAsset(); @Nonnull @Override String getExportedType();  }