[java-identity-provider COMMIT] in /trunk: idp-authn-api/src/main/java/net/shibboleth/idp/session/SessionManager.java...
noreply at shibboleth.net
noreply at shibboleth.net
Fri Aug 12 13:22:35 BST 2011
Author: lajoie
Date: Fri Aug 12 13:22:35 2011
New Revision: 4011
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=4011&view=rev
Log:
Add interface for persistence management and make session manager extend it
Added:
trunk/idp-core/src/main/java/net/shibboleth/idp/persistence/
trunk/idp-core/src/main/java/net/shibboleth/idp/persistence/PersistenceManager.java (with props)
trunk/idp-core/src/main/java/net/shibboleth/idp/persistence/package-info.java (with props)
Modified:
trunk/idp-authn-api/src/main/java/net/shibboleth/idp/session/SessionManager.java
Modified: trunk/idp-authn-api/src/main/java/net/shibboleth/idp/session/SessionManager.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-authn-api/src/main/java/net/shibboleth/idp/session/SessionManager.java?rev=4011&r1=4010&r2=4011&view=diff
==============================================================================
--- trunk/idp-authn-api/src/main/java/net/shibboleth/idp/session/SessionManager.java (original)
+++ trunk/idp-authn-api/src/main/java/net/shibboleth/idp/session/SessionManager.java Fri Aug 12 13:22:35 2011
@@ -17,19 +17,12 @@
package net.shibboleth.idp.session;
+import net.shibboleth.idp.persistence.PersistenceManager;
+
import org.opensaml.messaging.context.Subcontext;
-import org.opensaml.util.component.IdentifiedComponent;
-import org.opensaml.util.component.ValidatableComponent;
/** A manager of identity provider sessions. */
-public interface SessionManager extends IdentifiedComponent, ValidatableComponent {
-
- /**
- * Gets all the sessions currently under control of this manager.
- *
- * @return sessions currently under control of this manager, never null
- */
- public Iterable<IdPSession> getSessions();
+public interface SessionManager extends PersistenceManager<IdPSession> {
/**
* Creates a new session.
@@ -37,20 +30,6 @@
* @return the new session, never null
*/
public IdPSession createSession();
-
- /**
- * Removes a session from the control of this manager.
- *
- * @param idpSession session to be removed, may not be null
- */
- public void removeSession(IdPSession idpSession);
-
- /**
- * Updates the last activity instant of the given session to the current time.
- *
- * @param idpSession session to be removed, may not be null
- */
- public void updateSessionLastActivityInstant(IdPSession idpSession);
/**
* Adds an authentication event to an existing session.
More information about the commits
mailing list