Package omero.api

Class _ISessionTie

    • Constructor Detail

      • _ISessionTie

        public _ISessionTie()
    • Method Detail

      • ice_delegate

        public java.lang.Object ice_delegate()
        Specified by:
        ice_delegate in interface Ice.TieBase
      • ice_delegate

        public void ice_delegate​(java.lang.Object delegate)
        Specified by:
        ice_delegate in interface Ice.TieBase
      • equals

        public boolean equals​(java.lang.Object rhs)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • closeSession_async

        public void closeSession_async​(AMD_ISession_closeSession __cb,
                                       Session sess,
                                       Ice.Current __current)
                                throws ServerError
        Description copied from interface: _ISessionOperations
        Closes session and releases all resources. It is preferred that all clients call this method as soon as possible to free memory, but it is possible to not call close, and rejoin a session later. The current reference count for the session is returned. If the session does not exist, -1. If this call caused the death of the session, then -2.
        Specified by:
        closeSession_async in interface _ISessionOperations
        Parameters:
        __cb - The callback object for the operation.
        __current - The Current object for the invocation.
        Throws:
        ServerError
      • createSessionWithTimeout_async

        public void createSessionWithTimeout_async​(AMD_ISession_createSessionWithTimeout __cb,
                                                   Principal principal,
                                                   long timeToLiveMilliseconds,
                                                   Ice.Current __current)
                                            throws Glacier2.CannotCreateSessionException,
                                                   ServerError
        Description copied from interface: _ISessionOperations
        Allows an admin to create a Session for the give Principal.
        Specified by:
        createSessionWithTimeout_async in interface _ISessionOperations
        Parameters:
        __cb - The callback object for the operation.
        principal - Non-null Principal with the target user's name
        timeToLiveMilliseconds - The time that this Session has until destruction. This is useful to override the server default so that an initial delay before the user is given the token will not be construed as idle time. A value less than 1 will cause the default max timeToLive to be used; but timeToIdle will be disabled.
        __current - The Current object for the invocation.
        Throws:
        Glacier2.CannotCreateSessionException
        ServerError
      • createSessionWithTimeouts_async

        public void createSessionWithTimeouts_async​(AMD_ISession_createSessionWithTimeouts __cb,
                                                    Principal principal,
                                                    long timeToLiveMilliseconds,
                                                    long timeToIdleMilliseconds,
                                                    Ice.Current __current)
                                             throws Glacier2.CannotCreateSessionException,
                                                    ServerError
        Description copied from interface: _ISessionOperations
        Allows an admin to create a Session for the given Principal.
        Specified by:
        createSessionWithTimeouts_async in interface _ISessionOperations
        Parameters:
        __cb - The callback object for the operation.
        principal - Non-null Principal with the target user's name
        timeToLiveMilliseconds - The time that this Session has until destruction. Setting the value to 0 will prevent destruction unless the session remains idle.
        timeToIdleMilliseconds - The time that this Session can remain idle before being destroyed. Setting the value to 0 will prevent idleness based destruction.
        __current - The Current object for the invocation.
        Throws:
        Glacier2.CannotCreateSessionException
        ServerError
      • createUserSession_async

        public void createUserSession_async​(AMD_ISession_createUserSession __cb,
                                            long timeToLiveMilliseconds,
                                            long timeToIdleMilliseconds,
                                            java.lang.String defaultGroup,
                                            Ice.Current __current)
                                     throws Glacier2.CannotCreateSessionException,
                                            ServerError
        Description copied from interface: _ISessionOperations
        Allows a user to open up another session for him/herself with the given defaults without needing to re-enter password.
        Specified by:
        createUserSession_async in interface _ISessionOperations
        Parameters:
        __cb - The callback object for the operation.
        __current - The Current object for the invocation.
        Throws:
        Glacier2.CannotCreateSessionException
        ServerError