Project

General

Profile

« Previous | Next » 

Revision 59813

[Trunk | Monitor Service]:
1. In all enums, add capitalized values too (maybe in the future, lowercased values will be removed - NOT NOW).
2. Visibility.java: New enumeration Visibility added with values: PUBLIC, RESTRICTED, PRIVATE (will replace isPublic and isActive fields).
3. Stakeholder.java:
a. Add field "isUpload" (default value: false) to define if "logoUrl" is a link, or a locally uploaded image.
b. Remove fields "isActive" and "isPublic" and add field "visibility" (default value: Visibility.PRIVATE).
c. Remove unused field "managers" (managers are defined from aai roles).
4. Topic.java & Category.java & SubCategory.java:
a. Remove fields "isActive" and "isPublic" and add field "visibility" (default value: Visibility.PRIVATE).
b. Add fields "creationDate" and "updateDate".
5. Section.java: Add fields "creationDate" and "updateDate".
6. Indicator.java:
a. Rename enumeration "IndicatorWidth" to "IndicatorSize" (will be used for width and height).
b. Add field "additionalDescription" (for default profiles, "description" can now be changed only by default profiles settings,
while "additionalDescription" can also be changed by managers too).
c. Add field "height" (default value: IndicatorSize.MEDIUM).
d. Remove fields "isActive" and "isPublic" and add field "visibility" (default value: Visibility.PRIVATE).
e. Add fields "creationDate" and "updateDate".

View differences:

Section.java
4 4
import org.springframework.data.annotation.Id;
5 5

  
6 6
import java.util.ArrayList;
7
import java.util.Date;
7 8
import java.util.List;
8 9

  
9 10
enum SectionType {
10 11
    // Do not rename or remove existring values. This may cause problems with already stored values in DB
11
    number, chart;
12
    number, chart,
13
    NUMBER, CHART;
12 14
}
13 15

  
14 16
public class Section<StringOrIndicator> {
......
20 22
    private String defaultId;
21 23
    private String stakeholderAlias;
22 24
    private SectionType type;
25
    private Date creationDate;
26
    private Date updateDate;
23 27
    private List<StringOrIndicator> indicators;
24 28

  
25 29
    public Section() {}
......
30 34
        defaultId = section.getDefaultId();
31 35
        stakeholderAlias = section.getStakeholderAlias();
32 36
        setType(section.getType());
37
        creationDate = section.getCreationDate();
38
        updateDate = section.getUpdateDate();
33 39
    }
34 40

  
35 41
    public void copyFromDefault(Section defaultSection) {
36 42
        setTitle(defaultSection.getTitle());
37 43
        setType(defaultSection.getType());
38 44
        setDefaultId(defaultSection.id);
45
        setCreationDate(defaultSection.getCreationDate());
46
        setUpdateDate(defaultSection.getUpdateDate());
39 47
        setIndicators(new ArrayList<>());
40 48
    }
41 49

  
......
87 95
        }
88 96
    }
89 97

  
98
    public Date getCreationDate() {
99
        return creationDate;
100
    }
101

  
102
    public void setCreationDate(Date creationDate) {
103
        this.creationDate = creationDate;
104
    }
105

  
106
    public Date getUpdateDate() {
107
        return updateDate;
108
    }
109

  
110
    public void setUpdateDate(Date updateDate) {
111
        this.updateDate = updateDate;
112
    }
113

  
90 114
    public List<StringOrIndicator> getIndicators() {
91 115
        return indicators;
92 116
    }

Also available in: Unified diff