/** * @param reference the reference * @return the entity reference set */ public EntityReferenceSet includes(EntityReference reference) { if (this.includes == null) { this.includes = new EntityReferenceEntry(); } add(reference, this.includes); return this; }
/** * @param reference the reference * @return the entity reference set */ public boolean matches(EntityReference reference) { return matchesInclude(reference) && matchesExclude(reference); } }
private boolean isDocumentEnabled(DocumentReference documentReference) { return this.properties.getEntities() == null || this.properties.getEntities().matches(documentReference); }
.intersection(getParametersKeys(currentEntry.parameters), reference.getParameters().keySet()) .isEmpty());
private boolean isWikiEnabled(WikiReference wikiReference) { return this.properties.getEntities() == null || this.properties.getEntities().matches(wikiReference); }
private boolean isSpaceEnabled(SpaceReference spaceReference) { return this.properties.getEntities() == null || this.properties.getEntities().matches(spaceReference); }
/** * @param reference the reference * @return the entity reference set */ public EntityReferenceSet excludes(EntityReference reference) { if (this.excludes == null) { this.excludes = new EntityReferenceEntry(); } add(reference, this.excludes); return this; }
private boolean isDocumentEnabled(String wiki, String space, String document) { return this.properties.getEntities() == null || this.properties.getEntities().matches(new DocumentReference(wiki, space, document)); }
private boolean isWikiEnabled(String wiki) { return this.properties.getEntities() == null || this.properties.getEntities().matches(new WikiReference(wiki)); }
private boolean isSpaceEnabled(String wiki, String space) { return this.properties.getEntities() == null || this.properties.getEntities().matches(new SpaceReference(space, new WikiReference(wiki))); }
private void sendBeginWikiDocumentLocale(XARInputFilter proxyFilter, boolean force) throws FilterException { if (force || (this.currentDocumentReference != null && this.currentDocumentLocale != null)) { LocalDocumentReference reference = new LocalDocumentReference(this.currentDocumentReference, this.currentDocumentLocale); if (this.properties.getEntities() != null && !this.properties.getEntities().matches(reference)) { throw new SkipEntityException(reference); } sendBeginWikiDocument(proxyFilter, force); if (canSendBeginWikiDocumentLocale(force)) { if (!this.properties.isWithHistory()) { this.currentDocumentLocaleParameters.remove(XWikiWikiDocumentFilter.PARAMETER_JRCSREVISIONS); } proxyFilter.beginWikiDocumentLocale(this.currentDocumentLocale, this.currentDocumentLocaleParameters); this.sentBeginWikiDocumentLocale = true; } } }