/** * Returns a set of <code>{@link CmsPublishedResource}</code> objects specified by the * <code><export-resources></code> node of this rule, if the publishedResource * matches a modified Resource regular expression.<p> * * @param cms the cms context * @param publishedResource a published resource to test * * @return a set of matching resources, or <code>null</code> if resource does not match * * @throws CmsException if something goes wrong */ public Set getRelatedResources(CmsObject cms, CmsPublishedResource publishedResource) throws CmsException { if (match(publishedResource.getRootPath())) { return getExportResources(cms); } return null; }
/** * Returns a set of <code>{@link CmsPublishedResource}</code> objects specified by the * <code><export-resources></code> node of this rule, if the publishedResource * matches a modified Resource regular expression.<p> * * @param cms the cms context * @param publishedResource a published resource to test * * @return a set of matching resources, or <code>null</code> if resource does not match * * @throws CmsException if something goes wrong */ public Set<CmsPublishedResource> getRelatedResources(CmsObject cms, CmsPublishedResource publishedResource) throws CmsException { if (match(publishedResource.getRootPath())) { return getExportResources(cms); } return null; }