summaryrefslogtreecommitdiff
path: root/src/com/p4square/grow/ccb/CCBUser.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/p4square/grow/ccb/CCBUser.java')
-rw-r--r--src/com/p4square/grow/ccb/CCBUser.java37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/com/p4square/grow/ccb/CCBUser.java b/src/com/p4square/grow/ccb/CCBUser.java
deleted file mode 100644
index 7313172..0000000
--- a/src/com/p4square/grow/ccb/CCBUser.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package com.p4square.grow.ccb;
-
-import com.p4square.ccbapi.model.IndividualProfile;
-import org.restlet.security.User;
-
-/**
- * CCBUser is an adapter between a CCB IndividualProfile and a Restlet User.
- *
- * Note: CCBUser prefixes the user's identifier with "CCB-". This is done to
- * ensure the identifier does not collide with identifiers from other
- * systems.
- */
-public class CCBUser extends User {
-
- private final IndividualProfile mProfile;
-
- /**
- * Wrap an IndividualProfile inside a User object.
- *
- * @param profile The CCB IndividualProfile for the user.
- */
- public CCBUser(final IndividualProfile profile) {
- mProfile = profile;
-
- setIdentifier("CCB-" + mProfile.getId());
- setFirstName(mProfile.getFirstName());
- setLastName(mProfile.getLastName());
- setEmail(mProfile.getEmail());
- }
-
- /**
- * @return The IndividualProfile of the user.
- */
- public IndividualProfile getProfile() {
- return mProfile;
- }
-}