summaryrefslogtreecommitdiff
path: root/src/com/p4square/f1oauth
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/p4square/f1oauth')
-rw-r--r--src/com/p4square/f1oauth/FellowshipOneIntegrationDriver.java10
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;
+ }
}