use of org.apache.jackrabbit.spi.PathFactory in project jackrabbit by apache.
the class WorkspaceItemStateFactory method createRootState.
public NodeState createRootState(NodeEntry entry) throws ItemNotFoundException, RepositoryException {
IdFactory idFactory = service.getIdFactory();
PathFactory pf = service.getPathFactory();
return createNodeState(idFactory.createNodeId((String) null, pf.getRootPath()), entry);
}
use of org.apache.jackrabbit.spi.PathFactory in project jackrabbit by apache.
the class RepositoryStubImpl method createService.
protected RepositoryService createService(String uri) throws RepositoryException {
IdFactory idFactory = IdFactoryImpl.getInstance();
NameFactory nFactory = NameFactoryImpl.getInstance();
PathFactory pFactory = PathFactoryImpl.getInstance();
QValueFactory vFactory = QValueFactoryImpl.getInstance();
return new RepositoryServiceImpl(uri, idFactory, nFactory, pFactory, vFactory);
}
use of org.apache.jackrabbit.spi.PathFactory in project jackrabbit by apache.
the class ServiceStubImpl method getRepositoryService.
@Override
public RepositoryService getRepositoryService() throws RepositoryException {
if (service == null) {
String uri = getProperty(PROP_REPOSITORY_URI);
IdFactory idFactory = IdFactoryImpl.getInstance();
NameFactory nFactory = NameFactoryImpl.getInstance();
PathFactory pFactory = PathFactoryImpl.getInstance();
QValueFactory vFactory = QValueFactoryImpl.getInstance();
service = new RepositoryServiceImpl(uri, idFactory, nFactory, pFactory, vFactory);
}
return service;
}
Aggregations