[java-identity-provider COMMIT] /trunk/idp-tou-api/src/main/java/net/shibboleth/idp/tou/TermsOfUseContext.java
noreply at shibboleth.net
noreply at shibboleth.net
Sun Jan 29 23:58:52 GMT 2012
Author: lajoie
Date: Sun Jan 29 23:58:52 2012
New Revision: 4105
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=4105&view=rev
Log:
port to new context base class
Modified:
trunk/idp-tou-api/src/main/java/net/shibboleth/idp/tou/TermsOfUseContext.java
Modified: trunk/idp-tou-api/src/main/java/net/shibboleth/idp/tou/TermsOfUseContext.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-tou-api/src/main/java/net/shibboleth/idp/tou/TermsOfUseContext.java?rev=4105&r1=4104&r2=4105&view=diff
==============================================================================
--- trunk/idp-tou-api/src/main/java/net/shibboleth/idp/tou/TermsOfUseContext.java (original)
+++ trunk/idp-tou-api/src/main/java/net/shibboleth/idp/tou/TermsOfUseContext.java Sun Jan 29 23:58:52 2012
@@ -17,13 +17,10 @@
package net.shibboleth.idp.tou;
-import net.shibboleth.utilities.java.support.logic.Assert;
-
-import org.opensaml.messaging.context.Subcontext;
-import org.opensaml.messaging.context.SubcontextContainer;
+import org.opensaml.messaging.context.BaseContext;
/** Context used to collect data about the terms of use acceptance. */
-public final class TermsOfUseContext implements Subcontext {
+public final class TermsOfUseContext extends BaseContext {
/** Indicates the result of the terms of use engine's attempt to gain user acceptance. */
public static enum Decision {
@@ -46,25 +43,12 @@
DECLINED
}
- /** Owner of this consent context. */
- private final SubcontextContainer owner;
-
/** The decision determined by the terms of use engine. */
private Decision termsOfUseDecision;
- /**
- * Constructor.
- *
- * @param superContext owner of this context
- */
- public TermsOfUseContext(final SubcontextContainer superContext) {
- owner = Assert.isNotNull(superContext, "Owning super context may not be null");;
+ /** Constructor. */
+ public TermsOfUseContext() {
termsOfUseDecision = Decision.UNSPECIFIED;
- }
-
- /** {@inheritDoc} */
- public SubcontextContainer getOwner() {
- return owner;
}
/**
More information about the commits
mailing list