public Object call() throws RepositoryException { return service.getPathFactory(); } }, "getPathFactory()", new Object[]{});
public Object call() throws RepositoryException { return service.getPathFactory(); } }, "getPathFactory()", new Object[]{});
public PathFactory getPathFactory() throws RepositoryException { return repositoryService.getPathFactory(); }
public void testGetPathFactory() throws RepositoryException { assertNotNull(service.getPathFactory()); }
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); }
public QNodeDefinition getRootNodeDefinition() throws RepositoryException { if (rootNodeDefinition == null) { IdFactory idFactory = service.getIdFactory(); PathFactory pf = service.getPathFactory(); rootNodeDefinition = service.getNodeDefinition( sessionInfo, idFactory.createNodeId((String) null, pf.getRootPath())); } return rootNodeDefinition; }
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); }
public QNodeDefinition getRootNodeDefinition() throws RepositoryException { if (rootNodeDefinition == null) { IdFactory idFactory = service.getIdFactory(); PathFactory pf = service.getPathFactory(); rootNodeDefinition = service.getNodeDefinition( sessionInfo, idFactory.createNodeId((String) null, pf.getRootPath())); } return rootNodeDefinition; }
public WorkspaceManager(RepositoryConfig config, SessionInfo sessionInfo, boolean observationSupported) throws RepositoryException { this.config = config; this.service = config.getRepositoryService(); this.sessionInfo = sessionInfo; this.observationSupported = observationSupported; this.nameFactory = service.getNameFactory(); this.pathFactory = service.getPathFactory(); idFactory = service.getIdFactory(); nsRegistry = new NamespaceRegistryImpl(this); ntRegistry = createNodeTypeRegistry(nsRegistry); definitionProvider = createDefinitionProvider(getEffectiveNodeTypeProvider()); TransientItemStateFactory stateFactory = createItemStateFactory(); this.isf = stateFactory; this.hierarchyManager = createHierarchyManager(stateFactory, idFactory); // If cache behavior is observation register a hierarchy listener which is // notified about all changes. Otherwise just add a hierarchy listener which // is only notified on changes for which client event listeners have been // installed. Note: this listener has to be the first one called in order // for the hierarchy to be consistent with the event (See JCR-2293). InternalEventListener listener = createHierarchyListener(hierarchyManager); CacheBehaviour cacheBehaviour = config.getCacheBehaviour(); if (cacheBehaviour == CacheBehaviour.OBSERVATION) { addEventListener(listener); } else { listeners.add(listener); } }
public WorkspaceManager(RepositoryConfig config, SessionInfo sessionInfo, boolean observationSupported) throws RepositoryException { this.config = config; this.service = config.getRepositoryService(); this.sessionInfo = sessionInfo; this.observationSupported = observationSupported; this.nameFactory = service.getNameFactory(); this.pathFactory = service.getPathFactory(); idFactory = service.getIdFactory(); nsRegistry = new NamespaceRegistryImpl(this); ntRegistry = createNodeTypeRegistry(nsRegistry); definitionProvider = createDefinitionProvider(getEffectiveNodeTypeProvider()); TransientItemStateFactory stateFactory = createItemStateFactory(); this.isf = stateFactory; this.hierarchyManager = createHierarchyManager(stateFactory, idFactory); // If cache behavior is observation register a hierarchy listener which is // notified about all changes. Otherwise just add a hierarchy listener which // is only notified on changes for which client event listeners have been // installed. Note: this listener has to be the first one called in order // for the hierarchy to be consistent with the event (See JCR-2293). InternalEventListener listener = createHierarchyListener(hierarchyManager); CacheBehaviour cacheBehaviour = config.getCacheBehaviour(); if (cacheBehaviour == CacheBehaviour.OBSERVATION) { addEventListener(listener); } else { listeners.add(listener); } }
protected void setUp() throws Exception { super.setUp(); RepositoryService service = helper.getRepositoryService(); factory = service.getQValueFactory(); rootPath = service.getPathFactory().getRootPath(); testName = service.getNameFactory().create(Name.NS_JCR_URI, "data"); reference = getProperty("reference"); }
protected void setUp() throws Exception { super.setUp(); RepositoryService service = helper.getRepositoryService(); factory = service.getQValueFactory(); rootPath = service.getPathFactory().getRootPath(); testName = service.getNameFactory().create(Name.NS_JCR_URI, "data"); reference = getProperty("reference"); }