1
- package org .orcid .api . member .model ;
1
+ package org .orcid .core .model ;
2
2
3
3
import java .util .Objects ;
4
4
5
+ import javax .annotation .Resource ;
5
6
import javax .xml .bind .annotation .XmlAccessType ;
6
7
import javax .xml .bind .annotation .XmlAccessorType ;
7
8
import javax .xml .bind .annotation .XmlElement ;
8
9
import javax .xml .bind .annotation .XmlRootElement ;
9
10
import javax .xml .bind .annotation .XmlType ;
11
+ import javax .xml .datatype .XMLGregorianCalendar ;
10
12
13
+ import org .orcid .core .manager .impl .OrcidUrlManager ;
14
+ import org .orcid .jaxb .model .common_v2 .SourceClientId ;
11
15
import org .orcid .jaxb .model .v3 .release .common .CreatedDate ;
12
16
import org .orcid .jaxb .model .v3 .release .common .LastModifiedDate ;
17
+ import org .orcid .jaxb .model .v3 .release .common .OrcidIdentifier ;
18
+ import org .orcid .pojo .summary .AffiliationSummary ;
19
+ import org .orcid .utils .DateUtils ;
13
20
14
21
import io .swagger .v3 .oas .annotations .media .Schema ;
15
22
16
23
@ XmlAccessorType (XmlAccessType .FIELD )
17
- @ XmlType (propOrder = { "createdDate" , "lastModifiedDate" , "creditName" , "orcidIdentifier" , "externalIdentifiers" , "employments" , "profilessionalActivities" , "fundings" ,
24
+ @ XmlType (propOrder = { "createdDate" , "lastModifiedDate" , "creditName" , "orcidIdentifier" , "orcidIdentifier" , " externalIdentifiers" , "employments" , "profilessionalActivities" , "fundings" ,
18
25
"works" , "peerReviews" })
19
26
@ XmlRootElement (name = "work-summary" , namespace = "http://www.orcid.org/ns/work" )
20
27
@ Schema (description = "Record summary" )
21
28
public class RecordSummary {
22
-
29
+ @ Resource
30
+ private OrcidUrlManager orcidUrlManager ;
23
31
@ XmlElement (name = "last-modified-date" , namespace = "http://www.orcid.org/ns/common" )
24
32
private LastModifiedDate lastModifiedDate ;
25
33
@ XmlElement (name = "created-date" , namespace = "http://www.orcid.org/ns/common" )
26
34
private CreatedDate createdDate ;
27
35
@ XmlElement (name = "credit-name" , namespace = "http://www.orcid.org/ns/summary" )
28
36
private String creditName ;
37
+ @ XmlElement (name = "orcid-identifier" , namespace = "http://www.orcid.org/ns/common" )
38
+ protected OrcidIdentifier orcidIdentifier ;
29
39
@ XmlElement (name = "external-identifiers" , namespace = "http://www.orcid.org/ns/summary" )
30
40
private ExternalIdentifiers externalIdentifiers ;
31
41
@ XmlElement (name = "employments" , namespace = "http://www.orcid.org/ns/summary" )
@@ -39,6 +49,14 @@ public class RecordSummary {
39
49
@ XmlElement (name = "peer-reviews" , namespace = "http://www.orcid.org/ns/summary" )
40
50
private PeerReviews peerReviews ;
41
51
52
+ public OrcidIdentifier getOrcidIdentifier () {
53
+ return orcidIdentifier ;
54
+ }
55
+
56
+ public void setOrcidIdentifier (OrcidIdentifier orcidIdentifier ) {
57
+ this .orcidIdentifier = orcidIdentifier ;
58
+ }
59
+
42
60
public LastModifiedDate getLastModifiedDate () {
43
61
return lastModifiedDate ;
44
62
}
@@ -113,7 +131,8 @@ public void setPeerReviews(PeerReviews peerReviews) {
113
131
114
132
@ Override
115
133
public int hashCode () {
116
- return Objects .hash (createdDate , creditName , employments , externalIdentifiers , fundings , lastModifiedDate , peerReviews , professionalActivities , works );
134
+ return Objects .hash (createdDate , creditName , employments , externalIdentifiers , fundings , lastModifiedDate , orcidIdentifier , orcidUrlManager , peerReviews ,
135
+ professionalActivities , works );
117
136
}
118
137
119
138
@ Override
@@ -127,12 +146,8 @@ public boolean equals(Object obj) {
127
146
RecordSummary other = (RecordSummary ) obj ;
128
147
return Objects .equals (createdDate , other .createdDate ) && Objects .equals (creditName , other .creditName ) && Objects .equals (employments , other .employments )
129
148
&& Objects .equals (externalIdentifiers , other .externalIdentifiers ) && Objects .equals (fundings , other .fundings )
130
- && Objects .equals (lastModifiedDate , other .lastModifiedDate ) && Objects .equals (peerReviews , other .peerReviews )
149
+ && Objects .equals (lastModifiedDate , other .lastModifiedDate ) && Objects .equals (orcidIdentifier , other .orcidIdentifier )
150
+ && Objects .equals (orcidUrlManager , other .orcidUrlManager ) && Objects .equals (peerReviews , other .peerReviews )
131
151
&& Objects .equals (professionalActivities , other .professionalActivities ) && Objects .equals (works , other .works );
132
- }
133
-
134
- public RecordSummary valueOf (org .orcid .pojo .summary .RecordSummary coreSummaryObject ) {
135
- RecordSummary summary = new RecordSummary ();
136
- return summary ;
137
- }
152
+ }
138
153
}
0 commit comments