public abstract class ForwardingKnowledgeStore extends ForwardingObject implements KnowledgeStore
Constructor and Description |
---|
ForwardingKnowledgeStore() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the
KnowledgeStore instance, releasing any resource possibly
allocated. |
protected abstract KnowledgeStore |
delegate() |
boolean |
isClosed()
Tests whether this
KnowledgeStore instance has been closed. |
Session |
newSession()
Creates a new anonymous user session.
|
Session |
newSession(String username,
String password)
Creates a new user session, using the optional username and password specified.
|
toString
protected abstract KnowledgeStore delegate()
delegate
in class ForwardingObject
public Session newSession() throws IllegalStateException
KnowledgeStore
Session
depend on the security settings for anonymous users of the KnowledgeStore
instance.newSession
in interface KnowledgeStore
Session
IllegalStateException
- in case the KnowledgeStore
instance has been closedpublic Session newSession(@Nullable String username, @Nullable String password) throws IllegalStateException
KnowledgeStore
Session
depend on the security settings
for the specific authenticated user of the KnowledgeStore instance.newSession
in interface KnowledgeStore
username
- the username, possibly nullpassword
- the user password, possibly nullSession
IllegalStateException
- in case the KnowledgeStore
instance has been closedpublic boolean isClosed()
KnowledgeStore
KnowledgeStore
instance has been closed.isClosed
in interface KnowledgeStore
KnowledgeStore
instance has been closedpublic void close()
KnowledgeStore
KnowledgeStore
instance, releasing any resource possibly
allocated. Calling this method additional times has no effect. After this method is called,
calls to other methods of the KnowledgeStore
interface will result in
IllegalStateException
s being thrown.close
in interface KnowledgeStore
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2015–2016 FBK-irst. All rights reserved.