diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2016-03-22 21:42:03 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2016-03-22 21:42:03 -0700 |
commit | 6698ffbb300ff8e48b5f3fe59144c699d39ab094 (patch) | |
tree | d7964fa97fff6d7ac4e219d75b49e47615550d28 /src/com/p4square/f1oauth/FellowshipOneIntegrationDriver.java | |
parent | ab52d26e4c0e3d939e681020c7c2cc3d14d4b595 (diff) |
Integrating the ProgressReporter
Using the new ProgressReporter interface in AssessmentResultsPage and
ChapterCompletePage.
Diffstat (limited to 'src/com/p4square/f1oauth/FellowshipOneIntegrationDriver.java')
-rw-r--r-- | src/com/p4square/f1oauth/FellowshipOneIntegrationDriver.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/p4square/f1oauth/FellowshipOneIntegrationDriver.java b/src/com/p4square/f1oauth/FellowshipOneIntegrationDriver.java index e72df5e..865f5d6 100644 --- a/src/com/p4square/f1oauth/FellowshipOneIntegrationDriver.java +++ b/src/com/p4square/f1oauth/FellowshipOneIntegrationDriver.java @@ -3,6 +3,7 @@ package com.p4square.f1oauth; import com.codahale.metrics.MetricRegistry; import com.p4square.grow.config.Config; import com.p4square.grow.frontend.IntegrationDriver; +import com.p4square.grow.frontend.ProgressReporter; import org.restlet.Context; import org.restlet.security.Verifier; @@ -17,6 +18,8 @@ public class FellowshipOneIntegrationDriver implements IntegrationDriver { private final Config mConfig; private final F1Access mAPI; + private final ProgressReporter mProgressReporter; + public FellowshipOneIntegrationDriver(final Context context) { mContext = context; mConfig = (Config) context.getAttributes().get("com.p4square.grow.config"); @@ -29,6 +32,8 @@ public class FellowshipOneIntegrationDriver implements IntegrationDriver { mConfig.getString("f1ChurchCode", "pfseawa"), F1Access.UserType.WEBLINK); mAPI.setMetricRegistry(mMetricRegistry); + + mProgressReporter = new F1ProgressReporter(mAPI); } /** @@ -42,4 +47,9 @@ public class FellowshipOneIntegrationDriver implements IntegrationDriver { public Verifier newUserAuthenticationVerifier() { return new SecondPartyVerifier(mContext, mAPI); } + + @Override + public ProgressReporter getProgressReporter() { + return mProgressReporter; + } } |