use of org.xwiki.security.authorization.testwikis.internal.entities.DefaultTestSpace in project xwiki-platform by xwiki.
the class TestSpaceFactory method getNewInstance.
@Override
TestSpace getNewInstance(ElementParser parser, String name, TestEntity parent, Attributes attributes) {
EntityReference reference = parser.getResolver().resolve(attributes.getValue("name"), DefaultTestSpace.TYPE, parent.getReference());
TestSpace space = (TestSpace) parent.getEntity(reference);
if (space == null) {
space = new DefaultTestSpace(reference, attributes.getValue("alt"), parent);
}
return space;
}
Aggregations