@Test public void testInValid() { context.currentResource("/content/apache/sling-apache-org/index/jcr:content"); PublishableResource publishableResource = context.currentResource().adaptTo(PublishableResource.class); assertNotNull(publishableResource); assertNull(publishableResource.getContentResource()); }
@Override public Resource getContentResource() { return contentResource; }
PublishableResourceImpl implements PublishableResource { @Override public Resource getContentResource() { return contentResource; } }
PublishableResourceImpl implements PublishableResource { @Override public Resource getContentResource() { return contentResource; } @Inject  PublishableResourceImpl(@Self Resource resource); }
PublishableResourceImpl implements PublishableResource { @Override public Resource getContentResource() { return contentResource; } @Inject  PublishableResourceImpl(@Self Resource resource); @Override Resource getContentResource(); @Override Calendar getCreated(); @Override String getCreatedBy(); @Override Calendar getLastModified(); @Override String getLastModifiedBy(); @Override PublicationType getLastPublicationType(); @Override Calendar getLastPublication(); @Override String getLastPublicationBy(); @Override String getName(); @Override Resource getParent(); @Override String getPath(); @Override ValueMap getProperties(); @Override String getPublishedPath(); @Override String getPublishedUrl(); @Override Resource getResource(); @Override Site getSite(); @Override boolean isPublished(); }
PublishableResourceImpl implements PublishableResource { @Override public Resource getContentResource() { return contentResource; } @Inject  PublishableResourceImpl(@Self Resource resource); @Override Resource getContentResource(); @Override Calendar getCreated(); @Override String getCreatedBy(); @Override Calendar getLastModified(); @Override String getLastModifiedBy(); @Override PublicationType getLastPublicationType(); @Override Calendar getLastPublication(); @Override String getLastPublicationBy(); @Override String getName(); @Override Resource getParent(); @Override String getPath(); @Override ValueMap getProperties(); @Override String getPublishedPath(); @Override String getPublishedUrl(); @Override Resource getResource(); @Override Site getSite(); @Override boolean isPublished(); static final String LEGACY_PUBLISHED_PROPERTY; }