congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Session.getAttachedScopes
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/stanbol

public Set<Scope> getAppendableScopes() {
  Set<Scope> notAppended = new HashSet<Scope>();
  for (Scope sc : onMgr.getRegisteredScopes())
    if (!session.getAttachedScopes().contains(sc.getID())) notAppended.add(sc);
  return notAppended;
}
origin: apache/stanbol

public Set<String> getAppendedScopes() {
  Set<String> appended = new HashSet<String>();
  for (Scope sc : onMgr.getRegisteredScopes())
    if (session.getAttachedScopes().contains(sc.getID())) appended.add(sc.getID());
  return appended;
}
origin: org.apache.stanbol/org.apache.stanbol.ontologymanager.multiplexer.clerezza

@Override
public boolean equals(Object arg0) {
  if (arg0 == null) return false;
  if (!(arg0 instanceof Session)) return false;
  if (this == arg0) return true;
  log.warn(
    "{} only implements weak equality, i.e. managed ontologies are only checked by public key, not by content.",
    getClass());
  Session coll = (Session) arg0;
  return super.equals(arg0) && this.getAttachedScopes().equals(coll.getAttachedScopes())
      && this.getAttachedScopes().equals(coll.getAttachedScopes())
      && this.getSessionState().equals(coll.getSessionState());
}
origin: apache/stanbol

@Override
public boolean equals(Object arg0) {
  if (arg0 == null) return false;
  if (!(arg0 instanceof Session)) return false;
  if (this == arg0) return true;
  log.warn(
    "{} only implements weak equality, i.e. managed ontologies are only checked by public key, not by content.",
    getClass());
  Session coll = (Session) arg0;
  return super.equals(arg0) && this.getAttachedScopes().equals(coll.getAttachedScopes())
      && this.getAttachedScopes().equals(coll.getAttachedScopes())
      && this.getSessionState().equals(coll.getSessionState());
}
org.apache.stanbol.ontologymanager.servicesapi.sessionSessiongetAttachedScopes

Javadoc

Gets the identifiers of the scopes currently attached to this session.

Popular methods of Session

  • addOntology
  • export
  • getID
  • attachScope
    Instructs the session to reference the supplied ontology scope. This way, whenever session data are
  • detachScope
    Instructs the session to no longer reference the supplied ontology scope. If a scope with the suppli
  • 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

  • Making http post requests using okhttp
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collectors (java.util.stream)
  • ImageIO (javax.imageio)
  • 21 Best IntelliJ Plugins
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