summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/chat/Session.ice
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/demo/IceE/chat/Session.ice')
-rw-r--r--cppe/demo/IceE/chat/Session.ice232
1 files changed, 0 insertions, 232 deletions
diff --git a/cppe/demo/IceE/chat/Session.ice b/cppe/demo/IceE/chat/Session.ice
deleted file mode 100644
index 4ec5a0c728c..00000000000
--- a/cppe/demo/IceE/chat/Session.ice
+++ /dev/null
@@ -1,232 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice-E is licensed to you under the terms described in the
-// ICEE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-#ifndef GLACIER2_SESSION_ICE
-#define GLACIER2_SESSION_ICE
-
-#include <IceE/BuiltinSequences.ice>
-#include <IceE/Identity.ice>
-
-module Ice
-{
-
-sequence<Identity> IdentitySeq;
-
-};
-
-module Glacier2
-{
-
-/**
- *
- * This exception is raised if an attempt to create a new session
- * failed.
- *
- * @see Router::createSession
- * @see SessionManager::createSession
- *
- **/
-exception CannotCreateSessionException
-{
- /**
- *
- * The reason why session creation has failed.
- *
- **/
- string reason;
-};
-
-/**
- *
- * A client-visible session object, which is tied to the lifecycle of
- * a [Router].
- *
- * @see Router
- * @see SessionManager
- *
- **/
-interface Session
-{
- /**
- *
- * Destroy the session. This is called automatically when the
- * [Router] is destroyed.
- *
- **/
- void destroy();
-};
-
-/**
- *
- * An object for managing the set of identity constraints for specific
- * parts of object identity on a
- * [Session].
- *
- * @see Session
- * @see SessionControl
- *
- **/
-interface StringSet
-{
- /**
- *
- * Add a sequence of strings to this set of constraints. Order is
- * not preserved and duplicates are implicitly removed.
- *
- * @param additions The sequence of strings to be added.
- *
- **/
- idempotent void add(Ice::StringSeq additions);
-
- /**
- *
- * Remove a sequence of strings from this set of constraints. No
- * errors are returned if an entry is not found.
- *
- * @param deletions The sequence of strings to be removed.
- *
- **/
- idempotent void remove(Ice::StringSeq deletions);
-
- /**
- *
- * Returns a sequence of strings describing the constraints in this
- * set.
- *
- * @return The sequence of strings for this set.
- *
- **/
- idempotent Ice::StringSeq get();
-};
-
-/**
- *
- * An object for managing the set of object identity constraints on a
- * [Session].
- *
- * @see Session
- * @see SessionControl
- *
- **/
-interface IdentitySet
-{
- /**
- *
- * Add a sequence of Ice identities to this set of constraints. Order is
- * not preserved and duplicates are implicitly removed.
- *
- * @param additions The sequence of Ice identities to be added.
- *
- **/
- idempotent void add(Ice::IdentitySeq additions);
-
- /**
- *
- * Remove a sequence of identities from this set of constraints. No
- * errors are returned if an entry is not found.
- *
- * @param deletions The sequence of Ice identities to be removed.
- *
- **/
- idempotent void remove(Ice::IdentitySeq deletions);
-
- /**
- *
- * Returns a sequence of identities describing the constraints in this
- * set.
- *
- * @return The sequence of Ice identities for this set.
- *
- **/
- idempotent Ice::IdentitySeq get();
-};
-
-/**
- *
- * An administrative session control object, which is tied to the
- * lifecycle of a [Session].
- *
- * @see Session
- *
- **/
-interface SessionControl
-{
- /**
- *
- * Access the object that manages the allowable categories
- * for object identities for this session.
- *
- * @return A StringSet object
- *
- **/
- StringSet* categories();
-
- /**
- *
- * Access the object that manages the allowable adapter identities
- * for objects for this session.
- *
- * @return A StringSet object
- *
- **/
- StringSet* adapterIds();
-
- /**
- *
- * Access the object that manages the allowable object identities
- * for this session.
- *
- * @return An IdentitySet object
- *
- **/
- IdentitySet* identities();
-
- /**
- *
- * Destroy the associated session.
- *
- **/
- void destroy();
-};
-
-/**
- *
- * The session manager for username/password authenticated users that
- * is responsible for managing [Session] objects. New session objects
- * are created by the [Router] object calling on an application-provided
- * session manager. If no session manager is provided by the application,
- * no client-visible sessions are passed to the client.
- *
- * @see Router
- * @see Session
- *
- **/
-interface SessionManager
-{
- /**
- *
- * Create a new session.
- *
- * @param userId The user id for the session.
- *
- * @param control A proxy to the session control object.
- *
- * @return A proxy to the newly created session.
- *
- * @throws CannotCreateSessionException Raised if the session
- * cannot be created.
- *
- **/
- Session* create(string userId, SessionControl* control)
- throws CannotCreateSessionException;
-};
-
-};
-
-#endif