public class ServiceImpl extends AbstractServiceImpl<Session,SessionImpl> implements Service, org.osgi.framework.ServiceListener
authorizationProvider, sessionsDEFAULT_RESULT| Constructor and Description |
|---|
ServiceImpl(org.osgi.framework.BundleContext context,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
NotifyFuture<Void> |
acknowledge(Session session,
String monitorId,
Date aknTimestamp,
OperationParameters operationParameters,
CallbackHandler callbackHandler) |
protected void |
addEventQuery(String id,
EventQuery query) |
protected void |
addMonitorQuery(String id,
MonitorQuery query) |
void |
closeSession(Session session)
Close the provided session
Closing the session includes: unregistering from all items, canceling all
running operations
|
Query |
createQuery(Session session,
String queryType,
String queryData,
QueryListener listener) |
protected SessionImpl |
createSessionInstance(UserInformation user,
Map<String,String> sessionProperties) |
protected void |
processAcknowledge(String monitorId,
Date aknTimestamp,
OperationParameters operationParameters,
CallbackHandler callbackHandler) |
protected void |
removeEventQuery(String id,
EventQuery query) |
protected void |
removeMonitorQuery(String id,
MonitorQuery query) |
void |
serviceChanged(org.osgi.framework.ServiceEvent event) |
void |
start() |
void |
stop() |
void |
subscribeConditionQuery(Session session,
String queryId) |
void |
subscribeEventQuery(Session session,
String queryId) |
protected void |
triggerBrowserChange(List<BrowserEntry> entries,
Set<String> removed,
boolean full) |
void |
unsubscribeConditionQuery(Session session,
String queryId) |
void |
unsubscribeEventQuery(Session session,
String queryId) |
createSession, createSession, handleSessionClosed, handleSessionCreated, validateSessionauthorize, authorize, extractPrivileges, fillSessionProperties, loginUser, makeEffectiveUserInformation, setAuditLogService, setAuthenticationImplementation, setAuthorizationImplementationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSessionpublic ServiceImpl(org.osgi.framework.BundleContext context,
Executor executor)
throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxExceptionpublic NotifyFuture<Void> acknowledge(Session session, String monitorId, Date aknTimestamp, OperationParameters operationParameters, CallbackHandler callbackHandler) throws InvalidSessionException
InvalidSessionExceptionprotected void processAcknowledge(String monitorId, Date aknTimestamp, OperationParameters operationParameters, CallbackHandler callbackHandler)
protected void addMonitorQuery(String id, MonitorQuery query)
protected void removeMonitorQuery(String id, MonitorQuery query)
protected void addEventQuery(String id, EventQuery query)
protected void removeEventQuery(String id, EventQuery query)
protected void triggerBrowserChange(List<BrowserEntry> entries, Set<String> removed, boolean full)
public Query createQuery(Session session, String queryType, String queryData, QueryListener listener) throws InvalidSessionException
InvalidSessionExceptionpublic void subscribeConditionQuery(Session session, String queryId) throws InvalidSessionException, UnknownQueryException
public void unsubscribeConditionQuery(Session session, String queryId) throws InvalidSessionException
InvalidSessionExceptionpublic void subscribeEventQuery(Session session, String queryId) throws InvalidSessionException, UnknownQueryException
public void unsubscribeEventQuery(Session session, String queryId) throws InvalidSessionException
InvalidSessionExceptionpublic void closeSession(Session session) throws InvalidSessionException
ServicecloseSession in interface Service<Session>closeSession in class AbstractServiceImpl<Session,SessionImpl>session - the session to closeInvalidSessionException - In the case the session is not a valid sessionprotected SessionImpl createSessionInstance(UserInformation user, Map<String,String> sessionProperties)
createSessionInstance in class AbstractServiceImpl<Session,SessionImpl>public void start()
throws Exception
start in interface LifecycleAwarestart in class AbstractServiceImpl<Session,SessionImpl>Exceptionpublic void stop()
throws Exception
stop in interface LifecycleAwarestop in class AbstractServiceImpl<Session,SessionImpl>Exceptionpublic void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged in interface org.osgi.framework.ServiceListenerCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.