/** * {@inheritDoc } */ public void setInsertContext(URI context) { connection.setInsertContext(context); }
/** * Assigns a URI to this connection to be used for new blob versions and the * default insert graph. * * @param bundle * a unique URI */ public void setVersionBundle(URI bundle) { versionBundle = bundle; if (null == getInsertContext()) { setInsertContext(bundle); } }
/** * Assigns a URI to this connection to be used for new blob versions and the * default insert graph. * * @param bundle * a unique URI */ public void setVersionBundle(URI bundle) { versionBundle = bundle; if (null == getInsertContext()) { setInsertContext(bundle); } }
/** * {@inheritDoc } */ public void setAllContexts(URI context) { if(context != null) { connection.setReadContexts(context); connection.setInsertContext(context); connection.setRemoveContexts(context); } else { connection.setReadContexts(ALL_CONTEXTS); connection.setInsertContext(null); connection.setRemoveContexts(ALL_CONTEXTS); } }
private ObjectConnection createObjectConnection(URI context) throws RepositoryException { ObjectConnection connection = objectRepository.getConnection(); if(context != null) { connection.setReadContexts(context); connection.setInsertContext(context); connection.setRemoveContexts(context); } else if (defaultContext != null) { connection.setReadContexts(defaultContext); connection.setInsertContext(defaultContext); connection.setRemoveContexts(defaultContext); } return connection; }