Permalink
Browse files

Informer : make ISurveyable trait-compatible

  • Loading branch information...
1 parent e43c02a commit e2937679796d82bda5e912428ca092b96ad44be3 @sotty sotty committed Aug 8, 2012
@@ -19,19 +19,23 @@
import java.io.Serializable;
-public interface ISurveyable extends Serializable {
+public interface ISurveyable<K> extends Serializable {
public String getQuestionnaireId();
+ public void setQuestionnaireId( String qid );
+
public void enableSurvey();
public void disableSurvey();
public boolean isSurveyEnabled();
+ public void setSurveyEnabled( boolean enabled );
+
public boolean isStateful();
- public void setStateful(boolean stateful);
+ public void setStateful( boolean stateful );
}
@@ -43,6 +43,10 @@ public boolean isSurveyEnabled() {
return surveyEnabled;
}
+ public void setSurveyEnabled(boolean surveyEnabled) {
+ this.surveyEnabled = surveyEnabled;
+ }
+
public boolean isStateful() {
return stateful;
}
@@ -65,6 +65,10 @@ public String getQuestionnaireId() {
return questionnaireId;
}
+ public void setQuestionnaireId(String questionnaireId) {
+ this.questionnaireId = questionnaireId;
+ }
+
private boolean surv = true;
public void enableSurvey() {
@@ -79,6 +83,10 @@ public boolean isSurveyEnabled() {
return surv;
}
+ public void setSurveyEnabled( boolean enable ) {
+ surv = enable;
+ }
+
public boolean isStateful() {
return stateful;
}

0 comments on commit e293767

Please sign in to comment.