summaryrefslogtreecommitdiff
path: root/src/com/p4square/f1oauth/Attribute.java
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2014-09-21 15:01:40 -0700
committerJesse Morgan <jesse@jesterpm.net>2014-09-21 15:01:40 -0700
commitd01b3c8e49251c85cfa9c426064b841233c6c8e4 (patch)
tree755dbbf4ecc373b84f55f81d9de83e7d03454c49 /src/com/p4square/f1oauth/Attribute.java
parentc2feb363e513c0dea83d507eb9ba1918748d4e8e (diff)
Adding Support for Assigning Attributes in F1.
Adding a new interface, F1API for F1 APIs which require a valid access token. This is now used by AssessmentResultsPage to assign an attribute each time someone completes the assessment. Also adding an AttributeTool to list all attributes and assign attributes to users.
Diffstat (limited to 'src/com/p4square/f1oauth/Attribute.java')
-rw-r--r--src/com/p4square/f1oauth/Attribute.java87
1 files changed, 87 insertions, 0 deletions
diff --git a/src/com/p4square/f1oauth/Attribute.java b/src/com/p4square/f1oauth/Attribute.java
new file mode 100644
index 0000000..fa46d90
--- /dev/null
+++ b/src/com/p4square/f1oauth/Attribute.java
@@ -0,0 +1,87 @@
+/*
+ * Copyright 2014 Jesse Morgan
+ */
+
+package com.p4square.f1oauth;
+
+import java.util.Date;
+
+/**
+ * F1 Attribute Data.
+ *
+ * @author Jesse Morgan <jesse@jesterpm.net>
+ */
+public class Attribute {
+ /*Attribute
+ *{
+ "attribute": {
+ "@id": "",
+ "@uri": "",
+ "person": {
+ "@id": "1636208",
+ "@uri": "https://demo.fellowshiponeapi.com/v1/People/1636208"
+ },
+ "attributeGroup": {
+ "@id": "",
+ "@uri": "",
+ "name": null,
+ "attribute": {
+ "@id": "958",
+ "@uri": "",
+ "name": null
+ }
+ },
+ "startDate": null,
+ "endDate": null,
+ "comment": null,
+ "createdDate": null,
+ "lastUpdatedDate": null
+ }
+ */
+
+ private Date mStartDate;
+ private Date mEndDate;
+ private String mComment;
+
+ /**
+ * @return the start date for the attribute.
+ */
+ public Date getStartDate() {
+ return mStartDate;
+ }
+
+ /**
+ * Set the start date for the attribute.
+ */
+ public void setStartDate(Date date) {
+ mStartDate = date;
+ }
+
+ /**
+ * @return the end date for the attribute.
+ */
+ public Date getEndDate() {
+ return mEndDate;
+ }
+
+ /**
+ * Set the end date for the attribute.
+ */
+ public void setEndDate(Date date) {
+ mEndDate = date;
+ }
+
+ /**
+ * @return The comment on the Attribute.
+ */
+ public String getComment() {
+ return mComment;
+ }
+
+ /**
+ * Set the comment on the attribute.
+ */
+ public void setComment(String comment) {
+ mComment = comment;
+ }
+}