@Override public boolean hasFacet(String facet) { return target.hasFacet(facet); // TODO proxy facets }
/** * Returns the first {@code Document} with the given {@code facet}, recursively going up the parent hierarchy. * Returns {@code null} if there is no more parent. * <p> * This method does not check security rights. */ protected Document getFirstParentDocumentWithFacet(DocumentRef docRef, String facet) { Document doc = resolveReference(docRef); while (doc != null && !doc.hasFacet(facet)) { doc = doc.getParent(); } return doc; }