Search in sources :

Example 6 with PathFactory

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);
}
Also used : IdFactory(org.apache.jackrabbit.spi.IdFactory) PathFactory(org.apache.jackrabbit.spi.PathFactory)

Example 7 with PathFactory

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);
}
Also used : IdFactory(org.apache.jackrabbit.spi.IdFactory) PathFactory(org.apache.jackrabbit.spi.PathFactory) QValueFactory(org.apache.jackrabbit.spi.QValueFactory) NameFactory(org.apache.jackrabbit.spi.NameFactory)

Example 8 with PathFactory

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;
}
Also used : IdFactory(org.apache.jackrabbit.spi.IdFactory) PathFactory(org.apache.jackrabbit.spi.PathFactory) QValueFactory(org.apache.jackrabbit.spi.QValueFactory) NameFactory(org.apache.jackrabbit.spi.NameFactory)

Aggregations

PathFactory (org.apache.jackrabbit.spi.PathFactory)8 IdFactory (org.apache.jackrabbit.spi.IdFactory)5 NameFactory (org.apache.jackrabbit.spi.NameFactory)3 QValueFactory (org.apache.jackrabbit.spi.QValueFactory)3 Path (org.apache.jackrabbit.spi.Path)2 BigDecimal (java.math.BigDecimal)1 URI (java.net.URI)1 Calendar (java.util.Calendar)1 RepositoryException (javax.jcr.RepositoryException)1 NodeId (org.apache.jackrabbit.core.id.NodeId)1 PropertyId (org.apache.jackrabbit.core.id.PropertyId)1 PropertyEntry (org.apache.jackrabbit.core.persistence.util.NodePropBundle.PropertyEntry)1 AbstractFieldComparator (org.apache.jackrabbit.core.query.lucene.sort.AbstractFieldComparator)1 IllegalNameException (org.apache.jackrabbit.spi.commons.conversion.IllegalNameException)1 PathBuilder (org.apache.jackrabbit.spi.commons.name.PathBuilder)1 FieldComparator (org.apache.lucene.search.FieldComparator)1