/** Initialization after action creation during lifecycle setup. * <p>Sets the action dataset. Setting will replace any existing {@link DataAccessPoint} and {@link DataService}, * as the {@link DatasetGraph} of the current HTTP Action.</p> * * <p>Once it has updated its members, the HTTP Action will change its transactional state and * {@link Transactional} instance according to its base dataset graph.</p> * * @param dataAccessPoint {@link DataAccessPoint} * @param dService {@link DataService} * @see Transactional */ public void setRequest(DataAccessPoint dataAccessPoint, DataService dService) { this.dataAccessPoint = dataAccessPoint ; if ( dataAccessPoint != null ) this.datasetName = dataAccessPoint.getName() ; if ( this.dataService != null ) throw new FusekiException("Redefinition of DatasetRef in the request action") ; this.dataService = dService ; if ( dService == null || dService.getDataset() == null ) // Null does not happens for service requests, (it does for admin requests - call setControlRequest) throw new FusekiException("Null DataService in the request action") ; setDataset(dService.getDataset()) ; }
/** Initialization after action creation during lifecycle setup. * <p>Sets the action dataset. Setting will replace any existing {@link DataAccessPoint} and {@link DataService}, * as the {@link DatasetGraph} of the current HTTP Action.</p> * * <p>Once it has updated its members, the HTTP Action will change its transactional state and * {@link Transactional} instance according to its base dataset graph.</p> * * @param dataAccessPoint {@link DataAccessPoint} * @param dService {@link DataService} * @see Transactional */ public void setRequest(DataAccessPoint dataAccessPoint, DataService dService) { this.dataAccessPoint = dataAccessPoint ; if ( dataAccessPoint != null ) this.datasetName = dataAccessPoint.getName() ; if ( this.dataService != null ) throw new FusekiException("Redefinition of DatasetRef in the request action") ; this.dataService = dService ; if ( dService == null || dService.getDataset() == null ) // Null does not happens for service requests, (it does for admin requests - call setControlRequest) throw new FusekiException("Null DataService in the request action") ; setDataset(dService.getDataset()) ; }
public void setControlRequest(DataAccessPoint dataAccessPoint, String datasetUri) { this.dataAccessPoint = dataAccessPoint ; this.dataService = null ; if ( dataAccessPoint != null ) this.dataService = dataAccessPoint.getDataService() ; this.datasetName = datasetUri ; if ( dataService != null ) setDataset(dataAccessPoint.getDataService().getDataset()) ; }
public void setControlRequest(DataAccessPoint dataAccessPoint, String datasetUri) { this.dataAccessPoint = dataAccessPoint ; this.dataService = null ; if ( dataAccessPoint != null ) this.dataService = dataAccessPoint.getDataService() ; this.datasetName = datasetUri ; if ( dataService != null ) setDataset(dataAccessPoint.getDataService().getDataset()) ; }
.map(name-> dataAccessPoints.get(name).getDataService().getDataset()) .anyMatch(DataAccessCtl::isAccessControlled);
.map(name-> dataAccessPoints.get(name).getDataService().getDataset()) .anyMatch(DataAccessCtl::isAccessControlled);
boolean isTDB1 = org.apache.jena.tdb.sys.TDBInternal.isTDB1(dataService.getDataset()); boolean isTDB2 = org.apache.jena.tdb2.sys.TDBInternal.isTDB2(dataService.getDataset());
boolean isTDB1 = org.apache.jena.tdb.sys.TDBInternal.isTDB1(dataService.getDataset()); boolean isTDB2 = org.apache.jena.tdb2.sys.TDBInternal.isTDB2(dataService.getDataset());
DatasetGraph dsg = dap.getDataService().getDataset(); if ( dap.getDataService().authPolicy() != null ) { JettyLib.addPathConstraint(csh, DataAccessPoint.canonical(name));
DatasetGraph dsg = dap.getDataService().getDataset(); if ( dap.getDataService().authPolicy() != null ) { JettyLib.addPathConstraint(csh, DataAccessPoint.canonical(name));
DatasetGraph dsg = server.getDataAccessPointRegistry().get("/database").getDataService().getDataset(); Txn.executeWrite(dsg, ()->{ dsg.add(SSE.parseQuad("(<http://host/graphname1> :s1 :p :o)"));
DatasetGraph dsg = server.getDataAccessPointRegistry().get("/database").getDataService().getDataset(); Txn.executeWrite(dsg, ()->{ dsg.add(SSE.parseQuad("(<http://host/graphname1> :s1 :p :o)"));