Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Informer : make ISurveyable trait-compatible

  • Loading branch information...
commit e2937679796d82bda5e912428ca092b96ad44be3 1 parent e43c02a
@sotty sotty authored
View
8 ...nformer/drools-informer-core/src/main/java/org/drools/informer/generator/ISurveyable.java
@@ -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 );
}
View
4 ...informer/drools-informer-core/src/main/java/org/drools/informer/generator/Surveyable.java
@@ -43,6 +43,10 @@ public boolean isSurveyEnabled() {
return surveyEnabled;
}
+ public void setSurveyEnabled(boolean surveyEnabled) {
+ this.surveyEnabled = surveyEnabled;
+ }
+
public boolean isStateful() {
return stateful;
}
View
8 drools-informer/drools-informer-core/src/test/java/org/drools/informer/Person.java
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.