Tabnine Logo
Session.detachScope
Code IndexAdd Tabnine to your IDE (free)

How to use
detachScope
method
in
org.apache.stanbol.ontologymanager.servicesapi.session.Session

Best Java code snippets using org.apache.stanbol.ontologymanager.servicesapi.session.Session.detachScope (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: apache/stanbol

  @POST
  @Produces({WILDCARD})
  public Response emptyPost(@PathParam("id") String sessionId, @Context HttpHeaders headers) {
    log.debug(" post(no data)");
    session = sesMgr.getSession(sessionId);
    for (Scope sc : getAllScopes()) { // First remove appended scopes not in the list
      String scid = sc.getID();
      if (getAppendedScopes().contains(scid)) {
        session.detachScope(scid);
        log.info("Removed scope \"{]\".", scid);
      }
    }
    ResponseBuilder rb = Response.ok();
//        addCORSOrigin(servletContext, rb, headers);
    return rb.build();
  }

origin: apache/stanbol

@Override
public void scopeUnregistered(Scope scope) {
  for (String sid : getRegisteredSessionIDs())
    getSession(sid).detachScope(scope.getID());
}
origin: apache/stanbol

@Override
public void scopeDeactivated(Scope scope) {
  for (String sid : getRegisteredSessionIDs())
    getSession(sid).detachScope(scope.getID());
}
origin: org.apache.stanbol/org.apache.stanbol.ontologymanager.multiplexer.clerezza

@Override
public void scopeUnregistered(Scope scope) {
  for (String sid : getRegisteredSessionIDs())
    getSession(sid).detachScope(scope.getID());
}
origin: org.apache.stanbol/org.apache.stanbol.ontologymanager.multiplexer.clerezza

@Override
public void scopeDeactivated(Scope scope) {
  for (String sid : getRegisteredSessionIDs())
    getSession(sid).detachScope(scope.getID());
}
origin: apache/stanbol

String scid = sc.getID();
if (!toAppend.contains(scid) && getAppendedScopes().contains(scid)) {
  session.detachScope(scid);
  log.info("Removed scope \"{}\".", scid);
org.apache.stanbol.ontologymanager.servicesapi.sessionSessiondetachScope

Javadoc

Instructs the session to no longer reference the supplied ontology scope. If a scope with the supplied identifier was not attached, this method has no effect.

Popular methods of Session

  • addOntology
  • export
  • getID
  • attachScope
    Instructs the session to reference the supplied ontology scope. This way, whenever session data are
  • getAttachedScopes
    Gets the identifiers of the scopes currently attached to this session.
  • listManagedOntologies
  • addOntologyCollectorListener
  • addSessionListener
  • close
    Closes this Session irreversibly. Most likely includes setting the state to ZOMBIE.
  • getOntology
  • getSessionState
    Returns the current state of this KReS session.
  • hasOntology
  • getSessionState,
  • hasOntology,
  • removeOntology,
  • setActive,
  • setConnectivityPolicy

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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