Tabnine Logo
DeleteDeniedException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.jena.shared.DeleteDeniedException
constructor

Best Java code snippets using org.apache.jena.shared.DeleteDeniedException.<init> (Showing top 12 results out of 315)

origin: apache/jena

/**
   Remove a triple from the triple store. The default implementation throws
   a DeleteDeniedException; subclasses must override if they want to be able
   to remove triples.
*/
@Override
public void performDelete( Triple t ) 
  { throw new DeleteDeniedException( "GraphBase::delete" ); }
origin: apache/jena

  @Override
  public void performDelete(Triple t) {
    throw new DeleteDeniedException("GraphUnionRead::performDelete - Read-only graph") ;
  }
}
origin: apache/jena

@Override
public void delete(Triple t) throws DeleteDeniedException
{ throw new DeleteDeniedException("read-only graph") ; }

origin: org.apache.jena/jena-core

/**
   Remove a triple from the triple store. The default implementation throws
   a DeleteDeniedException; subclasses must override if they want to be able
   to remove triples.
*/
@Override
public void performDelete( Triple t ) 
  { throw new DeleteDeniedException( "GraphBase::delete" ); }
origin: apache/jena

@Override
public void clear() 
{ throw new DeleteDeniedException("read-only graph") ; }
origin: apache/jena

@Override
public void performDelete(Triple t) throws DeleteDeniedException
{ throw new DeleteDeniedException("read-only graph") ; }

origin: apache/jena

@Override
public void remove(Node s, Node p, Node o) 
{ throw new DeleteDeniedException("read-only graph") ; }

origin: apache/jena

/**
 * check that delete on the securedModel is allowed,
 * 
 * @throws DeleteDeniedException
 *             on failure
 * @throws AuthenticationRequiredException
 *             if user is not authenticated and is required to be.
 */
protected void checkDelete() throws DeleteDeniedException,
    AuthenticationRequiredException {
  if (!canDelete()) {
    throw new DeleteDeniedException(
        SecuredItem.Util.modelPermissionMsg(modelNode));
  }
}
origin: apache/jena

/**
 * check that the triple can be deleted in the securedModel.,
 * 
 * @param triple
 *            The triple to check.
 * @throws DeleteDeniedException
 *             on failure
 * @throws AuthenticationRequiredException
 *             if user is not authenticated and is required to be.
 */
protected void checkDelete(final Triple triple)
    throws DeleteDeniedException, AuthenticationRequiredException {
  if (!canDelete(triple)) {
    throw new DeleteDeniedException(
        SecuredItem.Util.triplePermissionMsg(modelNode), triple);
  }
}
origin: apache/jena

@Override
public void performDelete( Triple t ) {
  Node g = graphNode(gn) ;
  if ( Quad.isUnionGraph(g) )
    throw new DeleteDeniedException("Can't update the union graph of a dataset") ; 
  Node s = t.getSubject() ;
  Node p = t.getPredicate() ;
  Node o = t.getObject() ;
  dsg.delete(g, s, p, o) ;
}

origin: franzinc/agraph-java-client

@Override
public void performDelete(Triple t) {
  try {
    conn.remove(vf.asResource(t.getSubject()), vf.asURI(t
        .getPredicate()), vf.asValue(t.getObject()), contexts);
  } catch (UnauthorizedException e) {
    throw new DeleteDeniedException(e.getMessage());
  } catch (RepositoryException e) {
    throw new RuntimeException(e);
  }
}
origin: apache/jena

  throw new DeleteDeniedException(
      SecuredItem.Util.triplePermissionMsg(getModelNode()));
} else {
org.apache.jena.sharedDeleteDeniedException<init>

Popular methods of DeleteDeniedException

  • getMessage

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now