Project

General

Profile

« Previous | Next » 

Revision 3399c2a2

Added by Andreas Müller almost 3 years ago

cleanup

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dto/HomotypicGroupDto.java
27 27
 */
28 28
public class HomotypicGroupDto extends UuidAndTitleCache<HomotypicalGroup> {
29 29

  
30
    Set<UUID> uuidsOfSecundumReferences = new HashSet<>();
31
    Map<UUID, Boolean> publishFlagsForSynonyms = new HashMap<>();
32
    Set<UUID> uuidsOfTaxonBases = new HashSet<>();
33
    /**
34
     * @param uuid
35
     * @param id
36
     * @param titleCache
37
     */
30
    private static final long serialVersionUID = 5016285663369538997L;
31

  
32
    private Set<UUID> uuidsOfSecundumReferences = new HashSet<>();
33
    private Map<UUID, Boolean> publishFlagsForSynonyms = new HashMap<>();
34
    private Set<UUID> uuidsOfTaxonBases = new HashSet<>();
35

  
38 36
    public HomotypicGroupDto(HomotypicalGroup group, UUID nodeUuid) {
39 37
        super(group.getUuid(), group.getId(), group.getUserFriendlyDescription());
40 38
        for (TaxonName name: group.getTypifiedNames()){
41
            TaxonBase tbInHomotypicGroup = null;
42
            for (TaxonBase tb:name.getTaxonBases()){
39
            TaxonBase<?> tbInHomotypicGroup = null;
40
            for (TaxonBase<?> tb:name.getTaxonBases()){
43 41
                if (tb instanceof Taxon){
44 42
                    for (TaxonNode node: ((Taxon)tb).getTaxonNodes()){
45 43
                        if (node.getUuid().equals(nodeUuid)){
......
63 61
            }
64 62
        }
65 63
    }
66
    /**
67
     * @return the uuidsOfSecundumReferences
68
     */
64

  
69 65
    public Set<UUID> getUuidsOfSecundumReferences() {
70 66
        return uuidsOfSecundumReferences;
71 67
    }
72
    /**
73
     * @param uuidsOfSecundumReferences the uuidsOfSecundumReferences to set
74
     */
75 68
    public void setUuidsOfSecundumReferences(Set<UUID> uuidsOfSecundumReferences) {
76 69
        this.uuidsOfSecundumReferences = uuidsOfSecundumReferences;
77 70
    }
78
    /**
79
     * @return the publishFlagsForSynonyms
80
     */
71

  
81 72
    public Map<UUID, Boolean> getPublishFlagsForSynonyms() {
82 73
        return publishFlagsForSynonyms;
83 74
    }
84
    /**
85
     * @param publishFlagsForSynonyms the publishFlagsForSynonyms to set
86
     */
87 75
    public void setPublishFlagsForSynonyms(Map<UUID, Boolean> publishFlagsForSynonyms) {
88 76
        this.publishFlagsForSynonyms = publishFlagsForSynonyms;
89 77
    }
90
    /**
91
     * @return the uuidsOfTaxonBases
92
     */
78

  
93 79
    public Set<UUID> getUuidsOfTaxonBases() {
94 80
        return uuidsOfTaxonBases;
95 81
    }
96
    /**
97
     * @param uuidsOfTaxonBases the uuidsOfTaxonBases to set
98
     */
99 82
    public void setUuidsOfTaxonBases(Set<UUID> uuidsOfTaxonBases) {
100 83
        this.uuidsOfTaxonBases = uuidsOfTaxonBases;
101 84
    }
102

  
103
}
85
}

Also available in: Unified diff