@Test public void testGetOriginalWikiReference() throws Exception { assertThat(factory.newEntityReference(null).getOriginalWikiReference(), equalTo(xwiki)); assertThat(factory.newEntityReference(xwiki).getOriginalWikiReference(), equalTo(xwiki)); assertThat(factory.newEntityReference(wiki).getOriginalWikiReference(), equalTo(wiki)); assertThat(factory.newEntityReference(xspace).getOriginalWikiReference(), nullValue()); assertThat(factory.newEntityReference(space).getOriginalWikiReference(), nullValue()); assertThat(factory.newEntityReference(mainEntity).getOriginalWikiReference(), nullValue()); assertThat(factory.newEntityReference(subEntity).getOriginalWikiReference(), nullValue()); }
public WikiReference getOriginalWikiReference() { return (this.getType() == EntityType.WIKI) ? (this.originalReference instanceof WikiReference) ? (WikiReference) this.originalReference : new WikiReference(this.originalReference) : null; }
SecurityReference extends EntityReference { public WikiReference getOriginalWikiReference() { return (this.getType() == EntityType.WIKI) ? (this.originalReference instanceof WikiReference) ? (WikiReference) this.originalReference : new WikiReference(this.originalReference) : null; } }
SecurityReference extends EntityReference { public WikiReference getOriginalWikiReference() { return (this.getType() == EntityType.WIKI) ? (this.originalReference instanceof WikiReference) ? (WikiReference) this.originalReference : new WikiReference(this.originalReference) : null; } SecurityReference(EntityReference reference);   SecurityReference(EntityReference reference, SecurityReference mainWiki); }
SecurityReference extends EntityReference { public WikiReference getOriginalWikiReference() { return (this.getType() == EntityType.WIKI) ? (this.originalReference instanceof WikiReference) ? (WikiReference) this.originalReference : new WikiReference(this.originalReference) : null; } SecurityReference(EntityReference reference);   SecurityReference(EntityReference reference, SecurityReference mainWiki); SecurityReference getParentSecurityReference(); Deque<SecurityReference> getReversedSecurityReferenceChain(); EntityType getSecurityType(); SecurityReference getWikiReference(); EntityReference getOriginalReference(); WikiReference getOriginalWikiReference(); SpaceReference getOriginalSpaceReference(); DocumentReference getOriginalDocumentReference(); }
SecurityReference extends EntityReference { public WikiReference getOriginalWikiReference() { return (this.getType() == EntityType.WIKI) ? (this.originalReference instanceof WikiReference) ? (WikiReference) this.originalReference : new WikiReference(this.originalReference) : null; } SecurityReference(EntityReference reference);   SecurityReference(EntityReference reference, SecurityReference mainWiki); SecurityReference getParentSecurityReference(); Deque<SecurityReference> getReversedSecurityReferenceChain(); EntityType getSecurityType(); SecurityReference getWikiReference(); EntityReference getOriginalReference(); WikiReference getOriginalWikiReference(); SpaceReference getOriginalSpaceReference(); DocumentReference getOriginalDocumentReference(); static final EntityType FARM; }