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; }
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; }
@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()); }
@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()); }