Skip to content

Commit 0a79335

Browse files
authored
Merge pull request #63 from redlink-gmbh/MORE-Platform#426-fix-studymanager-bugs
MORE-Platform#426: remove app_title and app_description from GoalTemplateFactory
2 parents d378263 + 9942a62 commit 0a79335

6 files changed

Lines changed: 0 additions & 26 deletions

File tree

studymanager-goaltemplates/src/main/java/io/redlink/more/studymanager/component/goaltemplate/BooleanGoalTemplateFactory.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ public BooleanGoalTemplateFactory() {
1717
public List<Value> getProperties() {
1818
return List.of(
1919
CONFIG_SECTION_CONFIGURATION,
20-
APP_TITLE,
21-
APP_DESCRIPTION,
2220
//GOAL_TITLE_STATE, -> title can not be modified by user!
2321
//ALLOW_INSTANCES_STATE -> not multiple instances of boolean goals
2422
CUSTOM_ADHERENCE_CHECKS_STATE, //allow to enable/disable custom adherence checks for multiple checks per day

studymanager-goaltemplates/src/main/java/io/redlink/more/studymanager/component/goaltemplate/DrinkAmountOfGoalTemplateFactory.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ public DrinkAmountOfGoalTemplateFactory() {
1919
public List<Value> getProperties() {
2020
return List.of(
2121
CONFIG_SECTION_CONFIGURATION,
22-
APP_TITLE,
23-
APP_DESCRIPTION,
2422
GOAL_TITLE_STATE,
2523
//ALLOW_INSTANCES_STATE -> not multiple instances of amount-of goals
2624

studymanager-goaltemplates/src/main/java/io/redlink/more/studymanager/component/goaltemplate/EatAmountOfGoalTemplateFactory.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ public EatAmountOfGoalTemplateFactory() {
1919
public List<Value> getProperties() {
2020
return List.of(
2121
CONFIG_SECTION_CONFIGURATION,
22-
APP_TITLE,
23-
APP_DESCRIPTION,
2422
GOAL_TITLE_STATE,
2523

2624
CONFIG_SECTION_GOAL_CONFIGURATION,

studymanager-goaltemplates/src/main/java/io/redlink/more/studymanager/component/goaltemplate/MedicationGoalTemplateFactory.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ public MedicationGoalTemplateFactory() {
1717
public List<Value> getProperties() {
1818
return List.of(
1919
CONFIG_SECTION_CONFIGURATION,
20-
APP_TITLE,
21-
APP_DESCRIPTION,
2220
//Changing the Goal Title is allowed by participants
2321
GOAL_TITLE_STATE.copyOf()
2422
.setDefaultValue(true)

studymanager-goaltemplates/src/main/java/io/redlink/more/studymanager/component/goaltemplate/ReduceAmountOfGoalTemplateFactory.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ public ReduceAmountOfGoalTemplateFactory(){
1919
public List<Value> getProperties() {
2020
return List.of(
2121
CONFIG_SECTION_CONFIGURATION,
22-
APP_TITLE,
23-
APP_DESCRIPTION,
2422
GOAL_TITLE_STATE,
2523

2624
CONFIG_SECTION_GOAL_CONFIGURATION,

studymanager-goaltemplates/src/main/java/io/redlink/more/studymanager/core/factory/GoalTemplateFactory.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,6 @@ public final String getDescription() {
8787
*/
8888
private static final String GLOBAL_PROPERTY_PREFIX = GOAL_TEMPLATE_PROPERTY_PREFIX + "global.";
8989

90-
/**
91-
* Used to configure the title of the GoalTemplate as shown in the application
92-
*/
93-
public static final Value<String> APP_TITLE = new StringValue("app-title")
94-
.setName(GLOBAL_PROPERTY_PREFIX + "appTitle.name")
95-
.setDescription(GLOBAL_PROPERTY_PREFIX + "appTitle.description")
96-
.setRequired(true);
97-
/**
98-
* Used to configure the custom description of the GoalTemplate as shown in the application
99-
*/
100-
public static final Value<String> APP_DESCRIPTION = new StringTextValue("app-description")
101-
.setName(GLOBAL_PROPERTY_PREFIX + "appDescription.name")
102-
.setDescription(GLOBAL_PROPERTY_PREFIX + "appDescription.description")
103-
.setRequired(false);
104-
105-
10690
/**
10791
* Allows to define that a goal is aktive on x days of the week (e.g. 5/7 days)
10892
*/

0 commit comments

Comments
 (0)