Project

General

Profile

« Previous | Next » 

Revision 49762

  • Delete shared folder.

View differences:

modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/DatasourcesCollection.java
1
package eu.dnetlib.repo.manager.service.shared;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4
import eu.dnetlib.domain.data.Repository;
5

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

  
9
/**
10
 * Created by nikonas on 14/1/16.
11
 */
12
public class DatasourcesCollection implements IsSerializable{
13

  
14
    private List<Repository> datasourcesOfUser;
15
    private List<Repository> sharedDatasources;
16
    private List<Repository> datasourcesOfOthers;
17

  
18
    public DatasourcesCollection() {
19
        this.datasourcesOfOthers = new ArrayList<Repository>();
20
        this.datasourcesOfUser = new ArrayList<Repository>();
21
        this.datasourcesOfOthers = new ArrayList<Repository>();
22
    }
23

  
24
    public List<Repository> getDatasourcesOfUser() {
25
        return datasourcesOfUser;
26
    }
27

  
28
    public void setDatasourcesOfUser(List<Repository> datasourcesOfUser) {
29
        this.datasourcesOfUser = datasourcesOfUser;
30
    }
31

  
32
    public List<Repository> getDatasourcesOfOthers() {
33
        return datasourcesOfOthers;
34
    }
35

  
36
    public void setDatasourcesOfOthers(List<Repository> datasourcesOfOthers) {
37
        this.datasourcesOfOthers = datasourcesOfOthers;
38
    }
39

  
40
    public List<Repository> getSharedDatasources() {
41
        return sharedDatasources;
42
    }
43

  
44
    public void setSharedDatasources(List<Repository> sharedDatasources) {
45
        this.sharedDatasources = sharedDatasources;
46
    }
47
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/Tuple.java
1
package eu.dnetlib.repo.manager.service.shared;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
/**
6
 * Created by stefania on 12/18/15.
7
 */
8
public class Tuple<K, V> implements IsSerializable {
9

  
10
    private K first;
11
    private V second;
12

  
13
    public Tuple() {
14
    }
15

  
16
    public Tuple(K first, V second) {
17
        this.first = first;
18
        this.second = second;
19
    }
20

  
21
    public K getFirst() {
22
        return first;
23
    }
24

  
25
    public void setFirst(K first) {
26
        this.first = first;
27
    }
28

  
29
    public V getSecond() {
30
        return second;
31
    }
32

  
33
    public void setSecond(V second) {
34
        this.second = second;
35
    }
36
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/ValidationServiceException.java
1
package eu.dnetlib.repo.manager.service.shared;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
/**
6
 * Created by nikonas on 7/12/15.
7
 */
8
public class ValidationServiceException extends Exception implements IsSerializable {
9

  
10
    public enum ErrorCode implements IsSerializable {
11
        NO_ADMIN_EMAILS,
12
        NOT_VALID_BASEURL,
13
        GENERAL_ERROR, NOT_VALID_SET
14
    }
15

  
16
    private ErrorCode errorCode = null;
17

  
18
    public ValidationServiceException() {
19
    }
20

  
21
    public ValidationServiceException(ErrorCode errorCode) {
22
        this.errorCode = errorCode;
23
    }
24

  
25
    public ValidationServiceException(String message, Throwable cause, ErrorCode errorCode) {
26
        super(message, cause);
27

  
28
        this.errorCode = errorCode;
29
    }
30

  
31
    public ValidationServiceException(String message, ErrorCode errorCode) {
32
        super(message);
33

  
34
        this.errorCode = errorCode;
35
    }
36

  
37
    public ValidationServiceException(Throwable cause, ErrorCode errorCode) {
38
        super(cause);
39

  
40
        this.errorCode = errorCode;
41
    }
42

  
43
    public ErrorCode getErrorCode() {
44
        return errorCode;
45
    }
46
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/Timezone.java
1
package eu.dnetlib.repo.manager.service.shared;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
public class Timezone implements IsSerializable {
6
	public String name;
7
	public double offset;
8

  
9
	public Timezone(){
10
	}
11

  
12
	public Timezone(String name, double offset) {
13
		super();
14
		this.name = name;
15
		this.offset = offset;
16
	}
17
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/DatasourceVocabularies.java
1
package eu.dnetlib.repo.manager.service.shared;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
import java.util.List;
6
import java.util.Map;
7

  
8
/**
9
 * Created by nikonas on 21/12/15.
10
 */
11
public class DatasourceVocabularies implements IsSerializable {
12

  
13
    Map<String, String> countries;
14
    List<Timezone> timezones;
15
    Map<String, String> datasourceClasses;
16
    List<String> typologies;
17
    Map<String, String> compatibilityLevels;
18

  
19
    public DatasourceVocabularies() {
20
    }
21

  
22
    public Map<String, String> getCountries() {
23
        return countries;
24
    }
25

  
26
    public void setCountries(Map<String, String> countries) {
27
        this.countries = countries;
28
    }
29

  
30
    public List<Timezone> getTimezones() {
31
        return timezones;
32
    }
33

  
34
    public void setTimezones(List<Timezone> timezones) {
35
        this.timezones = timezones;
36
    }
37

  
38
    public Map<String, String> getDatasourceClasses() {
39
        return datasourceClasses;
40
    }
41

  
42
    public void setDatasourceClasses(Map<String, String> datasourceClasses) {
43
        this.datasourceClasses = datasourceClasses;
44
    }
45

  
46
    public List<String> getTypologies() {
47
        return typologies;
48
    }
49

  
50
    public void setTypologies(List<String> typologies) {
51
        this.typologies = typologies;
52
    }
53

  
54
    public Map<String, String> getCompatibilityLevels() {
55
        return compatibilityLevels;
56
    }
57

  
58
    public void setCompatibilityLevels(Map<String, String> compatibilityLevels) {
59
        this.compatibilityLevels = compatibilityLevels;
60
    }
61
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/ValidationState.java
1
package eu.dnetlib.repo.manager.service.shared;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4
import eu.dnetlib.domain.functionality.validator.JobForValidation;
5

  
6
/**
7
 * Created by stefania on 2/10/16.
8
 */
9
public class ValidationState extends WizardState implements IsSerializable {
10

  
11
    private JobForValidation jobForValidation = new JobForValidation();
12

  
13
    public JobForValidation getJobForValidation() {
14
        return jobForValidation;
15
    }
16
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/PiwikInfo.java
1
package eu.dnetlib.repo.manager.service.shared;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
import java.util.Date;
6

  
7
/**
8
 * Created by stefania on 12/19/16.
9
 */
10
public class PiwikInfo implements IsSerializable {
11

  
12
    private String repositoryId;
13
    private String siteId;
14
    private Date creationDate;
15

  
16
    public PiwikInfo() {
17

  
18
    }
19

  
20
    public PiwikInfo(String repositoryId, String siteId, Date creationDate) {
21
        this.repositoryId = repositoryId;
22
        this.siteId = siteId;
23
        this.creationDate = creationDate;
24
    }
25

  
26
    public String getRepositoryId() {
27
        return repositoryId;
28
    }
29

  
30
    public void setRepositoryId(String repositoryId) {
31
        this.repositoryId = repositoryId;
32
    }
33

  
34
    public String getSiteId() {
35
        return siteId;
36
    }
37

  
38
    public void setSiteId(String siteId) {
39
        this.siteId = siteId;
40
    }
41

  
42
    public Date getCreationDate() {
43
        return creationDate;
44
    }
45

  
46
    public void setCreationDate(Date creationDate) {
47
        this.creationDate = creationDate;
48
    }
49
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/Triple.java
1
package eu.dnetlib.repo.manager.service.shared;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
/**
6
 * Created by stefania on 3/8/16.
7
 */
8
public class Triple<K, V, L> extends Tuple<K, V> implements IsSerializable {
9

  
10
    private L third;
11

  
12
    public Triple() {
13
    }
14

  
15
    public Triple(K first, V second, L third) {
16
        super(first, second);
17
        this.third = third;
18
    }
19

  
20
    public L getThird() {
21
        return third;
22
    }
23

  
24
    public void setThird(L third) {
25
        this.third = third;
26
    }
27
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/WizardState.java
1
package eu.dnetlib.repo.manager.service.shared;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
/**
6
 * Created by stefania on 2/10/16.
7
 */
8
public class WizardState implements IsSerializable {
9
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/BrokerException.java
1
package eu.dnetlib.repo.manager.service.shared;
2

  
3

  
4
/**
5
 * Created by stefanos on 27-Oct-16.
6
 */
7
public class BrokerException extends Exception {
8

  
9
    public BrokerException(Throwable th) {
10
        super(th);
11
    }
12

  
13
    public BrokerException() {
14
    }
15

  
16

  
17
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/Country.java
1
package eu.dnetlib.repo.manager.service.shared;
2

  
3
public class Country {
4

  
5
    private String name;
6
    private String code;
7

  
8

  
9
    public String getName() {
10
        return name;
11
    }
12

  
13
    public void setName(String name) {
14
        this.name = name;
15
    }
16

  
17
    public String getCode() {
18
        return code;
19
    }
20

  
21
    public void setCode(String code) {
22
        this.code = code;
23
    }
24
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/Provenance.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
/**
6
 * Created by claudio on 26/07/16.
7
 */
8
public class Provenance implements IsSerializable {
9

  
10
    private String repositoryName;
11

  
12
    private String url;
13

  
14
    private String id;
15

  
16
    public Provenance() {
17
    }
18

  
19
    public String getRepositoryName() {
20
        return repositoryName;
21
    }
22

  
23
    public void setRepositoryName(String repositoryName) {
24
        this.repositoryName = repositoryName;
25
    }
26

  
27
    public String getUrl() {
28
        return url;
29
    }
30

  
31
    public void setUrl(String url) {
32
        this.url = url;
33
    }
34

  
35
    public String getId() {
36
        return id;
37
    }
38

  
39
    public void setId(String id) {
40
        this.id = id;
41
    }
42
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/EventsPage.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5

  
6
import java.util.List;
7

  
8
/**
9
 * Created by stefanos on 26/10/2016.
10
 */
11
public class EventsPage implements IsSerializable{
12

  
13
    private String datasource;
14
    private String topic;
15
    private long currPage;
16
    private long totalPages;
17
    private long total;
18
    private List<OpenAireEventPayload> values;
19

  
20
    public EventsPage() {
21

  
22
    }
23
    public EventsPage(final String datasource, final String topic, final long currPage, final long totalPages, final long total,
24
                      final List<OpenAireEventPayload> values) {
25
        this.datasource = datasource;
26
        this.topic = topic;
27
        this.currPage = currPage;
28
        this.totalPages = totalPages;
29
        this.total = total;
30
        this.values = values;
31
    }
32

  
33
    public String getDatasource() {
34
        return datasource;
35
    }
36

  
37
    public void setDatasource(String datasource) {
38
        this.datasource = datasource;
39
    }
40

  
41
    public String getTopic() {
42
        return topic;
43
    }
44

  
45
    public void setTopic(String topic) {
46
        this.topic = topic;
47
    }
48

  
49
    public long getCurrPage() {
50
        return currPage;
51
    }
52

  
53
    public void setCurrPage(long currPage) {
54
        this.currPage = currPage;
55
    }
56

  
57
    public long getTotalPages() {
58
        return totalPages;
59
    }
60

  
61
    public void setTotalPages(long totalPages) {
62
        this.totalPages = totalPages;
63
    }
64

  
65
    public long getTotal() {
66
        return total;
67
    }
68

  
69
    public void setTotal(long total) {
70
        this.total = total;
71
    }
72

  
73
    public List<OpenAireEventPayload> getValues() {
74
        return values;
75
    }
76

  
77
    public void setValues(List<OpenAireEventPayload> values) {
78
        this.values = values;
79
    }
80
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/ExternalReference.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
/**
6
 * Created by claudio on 22/07/16.
7
 */
8
public class ExternalReference implements IsSerializable {
9

  
10
    private String url;
11

  
12
    private String sitename;
13

  
14
    private String type;
15

  
16
    private String refidentifier;
17

  
18
    public ExternalReference() {
19
    }
20

  
21
    public String getUrl() {
22
        return url;
23
    }
24

  
25
    public void setUrl(String url) {
26
        this.url = url;
27
    }
28

  
29
    public String getSitename() {
30
        return sitename;
31
    }
32

  
33
    public void setSitename(String sitename) {
34
        this.sitename = sitename;
35
    }
36

  
37
    public String getType() {
38
        return type;
39
    }
40

  
41
    public void setType(String type) {
42
        this.type = type;
43
    }
44

  
45
    public String getRefidentifier() {
46
        return refidentifier;
47
    }
48

  
49
    public void setRefidentifier(String refidentifier) {
50
        this.refidentifier = refidentifier;
51
    }
52
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/ConditionOperator.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
/**
6
 * Created by stefanos on 17/3/2017.
7
 */
8
public enum ConditionOperator implements IsSerializable {
9
    EXACT, MATCH_ANY, MATCH_ALL, RANGE
10
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/Instance.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
/**
6
 * Created by claudio on 22/07/16.
7
 */
8
public class Instance implements IsSerializable {
9

  
10
    private String url;
11

  
12
    private String license;
13

  
14
    private String hostedby;
15

  
16
    private String instancetype;
17

  
18
    public Instance() {
19
    }
20

  
21
    public String getUrl() {
22
        return url;
23
    }
24

  
25
    public void setUrl(String url) {
26
        this.url = url;
27
    }
28

  
29
    public String getLicense() {
30
        return license;
31
    }
32

  
33
    public void setLicense(String license) {
34
        this.license = license;
35
    }
36

  
37
    public String getHostedby() {
38
        return hostedby;
39
    }
40

  
41
    public void setHostedby(String hostedby) {
42
        this.hostedby = hostedby;
43
    }
44

  
45
    public String getInstancetype() {
46
        return instancetype;
47
    }
48

  
49
    public void setInstancetype(String instancetype) {
50
        this.instancetype = instancetype;
51
    }
52
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/Project.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
public class Project implements IsSerializable {
6

  
7
    private String code;
8
    private String acronym;
9
    private String title;
10
    private String funder;
11
    private String fundingProgram;
12
    private String jurisdiction;
13

  
14
    public Project() {
15
    }
16

  
17
    public Project(final String code, final String acronym, final String title, final String funder, final String fundingProgram, final String jurisdiction) {
18
        this.code = code;
19
        this.acronym = acronym;
20
        this.title = title;
21
        this.funder = funder;
22
        this.fundingProgram = fundingProgram;
23
        this.jurisdiction = jurisdiction;
24
    }
25

  
26
    public String getCode() {
27
        return code;
28
    }
29

  
30
    public void setCode(String code) {
31
        this.code = code;
32
    }
33

  
34
    public String getAcronym() {
35
        return acronym;
36
    }
37

  
38
    public void setAcronym(String acronym) {
39
        this.acronym = acronym;
40
    }
41

  
42
    public String getTitle() {
43
        return title;
44
    }
45

  
46
    public void setTitle(String title) {
47
        this.title = title;
48
    }
49

  
50
    public String getFunder() {
51
        return funder;
52
    }
53

  
54
    public void setFunder(String funder) {
55
        this.funder = funder;
56
    }
57

  
58
    public String getFundingProgram() {
59
        return fundingProgram;
60
    }
61

  
62
    public void setFundingProgram(String fundingProgram) {
63
        this.fundingProgram = fundingProgram;
64
    }
65

  
66
    public String getJurisdiction() {
67
        return jurisdiction;
68
    }
69

  
70
    public void setJurisdiction(String jurisdiction) {
71
        this.jurisdiction = jurisdiction;
72
    }
73
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/MapConditions.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
import java.util.ArrayList;
6
import java.util.List;
7

  
8
/**
9
 * Created by stefanos on 17/3/2017.
10
 */
11
public class MapConditions implements IsSerializable {
12

  
13
    private String field;
14
    private MapValueType fieldType;
15
    private ConditionOperator operator;
16
    private List<ConditionParams> listParams = new ArrayList<>();
17

  
18
    public MapConditions() {
19
    }
20

  
21
    public String getField() {
22
        return field;
23
    }
24

  
25
    public void setField(String field) {
26
        this.field = field;
27
    }
28

  
29
    public MapValueType getFieldType() {
30
        return fieldType;
31
    }
32

  
33
    public void setFieldType(MapValueType fieldType) {
34
        this.fieldType = fieldType;
35
    }
36

  
37
    public ConditionOperator getOperator() {
38
        return operator;
39
    }
40

  
41
    public void setOperator(ConditionOperator operator) {
42
        this.operator = operator;
43
    }
44

  
45
    public List<ConditionParams> getListParams() {
46
        return listParams;
47
    }
48

  
49
    public void setListParams(List<ConditionParams> listParams) {
50
        this.listParams = listParams;
51
    }
52
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/OpenaireSubscription.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4
import eu.dnetlib.repo.manager.service.shared.NotificationMode;
5

  
6
/**
7
 * Created by stefanos on 10-Mar-17.
8
 */
9

  
10
public class OpenaireSubscription implements IsSerializable {
11

  
12
    private String subscriber;
13
    private NotificationFrequency frequency;
14
    private NotificationMode mode;
15
    private AdvQueryObject query;
16

  
17
    public OpenaireSubscription() {
18
    }
19

  
20
    public OpenaireSubscription(final String subscriber, final NotificationFrequency frequency, final
21
    NotificationMode mode,
22
                                final AdvQueryObject query) {
23
        this.subscriber = subscriber;
24
        this.frequency = frequency;
25
        this.mode = mode;
26
        this.query = query;
27
    }
28

  
29
    public String getSubscriber() {
30
        return this.subscriber;
31
    }
32

  
33
    public void setSubscriber(final String subscriber) {
34
        this.subscriber = subscriber;
35
    }
36

  
37
    public NotificationFrequency getFrequency() {
38
        return this.frequency;
39
    }
40

  
41
    public void setFrequency(final NotificationFrequency frequency) {
42
        this.frequency = frequency;
43
    }
44

  
45
    public NotificationMode getMode() {
46
        return this.mode;
47
    }
48

  
49
    public void setMode(final NotificationMode mode) {
50
        this.mode = mode;
51
    }
52

  
53
    public AdvQueryObject getQuery() {
54
        return this.query;
55
    }
56

  
57
    public void setQuery(final AdvQueryObject query) {
58
        this.query = query;
59
    }
60

  
61

  
62
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/NotificationFrequency.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
/**
6
 * Created by stefanos on 10-Mar-17.
7
 */
8
public enum NotificationFrequency implements IsSerializable {
9
    never, realtime, daily, weekly, monthly
10
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/Publication.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
import java.util.ArrayList;
6
import java.util.List;
7

  
8
/**
9
 * Created by claudio on 22/07/16.
10
 */
11
public class Publication implements IsSerializable {
12

  
13
    private String originalId;
14

  
15
    private List<String> titles = new ArrayList<>();
16

  
17
    private List<String> abstracts = new ArrayList<>();
18

  
19
    private String language;
20

  
21
    private List<String> subjects = new ArrayList<>();
22

  
23
    private List<String> creators = new ArrayList<>();
24

  
25
    private String publicationdate;
26

  
27
    private String publisher;
28

  
29
    private String embargoenddate;
30

  
31
    private List<String> contributor = new ArrayList<>();
32

  
33
    private Journal journal;
34

  
35
    private List<String> collectedFrom = new ArrayList<>();
36

  
37
    private List<Pid> pids = new ArrayList<>();
38

  
39
    private List<Instance> instances = new ArrayList<>();
40

  
41
    private List<ExternalReference> externalReferences = new ArrayList<>();
42

  
43
    private List<Project> projects = new ArrayList<>();
44

  
45
    private List<Dataset> datasets = new ArrayList<>();
46

  
47
    public Publication() {
48
    }
49

  
50
    public String getOriginalId() {
51
        return originalId;
52
    }
53

  
54
    public void setOriginalId(String originalId) {
55
        this.originalId = originalId;
56
    }
57

  
58
    public List<String> getTitles() {
59
        return titles;
60
    }
61

  
62
    public void setTitles(List<String> titles) {
63
        this.titles = titles;
64
    }
65

  
66
    public List<String> getAbstracts() {
67
        return abstracts;
68
    }
69

  
70
    public void setAbstracts(List<String> abstracts) {
71
        this.abstracts = abstracts;
72
    }
73

  
74
    public String getLanguage() {
75
        return language;
76
    }
77

  
78
    public void setLanguage(String language) {
79
        this.language = language;
80
    }
81

  
82
    public List<String> getSubjects() {
83
        return subjects;
84
    }
85

  
86
    public void setSubjects(List<String> subjects) {
87
        this.subjects = subjects;
88
    }
89

  
90
    public List<String> getCreators() {
91
        return creators;
92
    }
93

  
94
    public void setCreators(List<String> creators) {
95
        this.creators = creators;
96
    }
97

  
98
    public String getPublicationdate() {
99
        return publicationdate;
100
    }
101

  
102
    public void setPublicationdate(String publicationdate) {
103
        this.publicationdate = publicationdate;
104
    }
105

  
106
    public String getPublisher() {
107
        return publisher;
108
    }
109

  
110
    public void setPublisher(String publisher) {
111
        this.publisher = publisher;
112
    }
113

  
114
    public String getEmbargoenddate() {
115
        return embargoenddate;
116
    }
117

  
118
    public void setEmbargoenddate(String embargoenddate) {
119
        this.embargoenddate = embargoenddate;
120
    }
121

  
122
    public List<String> getContributor() {
123
        return contributor;
124
    }
125

  
126
    public void setContributor(List<String> contributor) {
127
        this.contributor = contributor;
128
    }
129

  
130
    public Journal getJournal() {
131
        return journal;
132
    }
133

  
134
    public void setJournal(Journal journal) {
135
        this.journal = journal;
136
    }
137

  
138
    public List<String> getCollectedFrom() {
139
        return collectedFrom;
140
    }
141

  
142
    public void setCollectedFrom(List<String> collectedFrom) {
143
        this.collectedFrom = collectedFrom;
144
    }
145

  
146
    public List<Pid> getPids() {
147
        return pids;
148
    }
149

  
150
    public void setPids(List<Pid> pids) {
151
        this.pids = pids;
152
    }
153

  
154
    public List<Instance> getInstances() {
155
        return instances;
156
    }
157

  
158
    public void setInstances(List<Instance> instances) {
159
        this.instances = instances;
160
    }
161

  
162
    public List<ExternalReference> getExternalReferences() {
163
        return externalReferences;
164
    }
165

  
166
    public void setExternalReferences(List<ExternalReference> externalReferences) {
167
        this.externalReferences = externalReferences;
168
    }
169

  
170
    public List<Project> getProjects() {
171
        return projects;
172
    }
173

  
174
    public void setProjects(List<Project> projects) {
175
        this.projects = projects;
176
    }
177

  
178
    public List<Dataset> getDatasets() {
179
        return datasets;
180
    }
181

  
182
    public void setDatasets(List<Dataset> datasets) {
183
        this.datasets = datasets;
184
    }
185
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/Journal.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
/**
6
 * Created by claudio on 22/07/16.
7
 */
8
public class Journal implements IsSerializable {
9

  
10
    private String name;
11

  
12
    private String issn;
13

  
14
    private String eissn;
15

  
16
    private String lissn;
17

  
18
    public Journal() {
19
    }
20

  
21
    public String getName() {
22
        return name;
23
    }
24

  
25
    public void setName(String name) {
26
        this.name = name;
27
    }
28

  
29
    public String getIssn() {
30
        return issn;
31
    }
32

  
33
    public void setIssn(String issn) {
34
        this.issn = issn;
35
    }
36

  
37
    public String getEissn() {
38
        return eissn;
39
    }
40

  
41
    public void setEissn(String eissn) {
42
        this.eissn = eissn;
43
    }
44

  
45
    public String getLissn() {
46
        return lissn;
47
    }
48

  
49
    public void setLissn(String lissn) {
50
        this.lissn = lissn;
51
    }
52
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/Pid.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
/**
6
 * Created by claudio on 22/07/16.
7
 */
8
public class Pid implements IsSerializable {
9

  
10
    private String value;
11

  
12
    private String type;
13

  
14
    public Pid() {
15
    }
16

  
17
    public String getValue() {
18
        return value;
19
    }
20

  
21
    public void setValue(String value) {
22
        this.value = value;
23
    }
24

  
25
    public String getType() {
26
        return type;
27
    }
28

  
29
    public void setType(String type) {
30
        this.type = type;
31
    }
32
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/MapValueType.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
/**
6
 * Created by stefanos on 17/3/2017.
7
 */
8
public enum MapValueType implements IsSerializable {
9
    STRING, INTEGER, FLOAT, DATE, BOOLEAN, LIST_STRING, LIST_INTEGER, LIST_FLOAT, LIST_DATE, LIST_BOOLEAN;
10
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/OpenAireEventPayload.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
/**
6
 * Created by claudio on 11/07/16.
7
 */
8
public class OpenAireEventPayload implements IsSerializable {
9

  
10
    private Publication publication;
11

  
12
    private Publication highlight;
13

  
14
    private Provenance provenance;
15

  
16
    private float trust;
17

  
18
    public OpenAireEventPayload() {
19
    }
20

  
21
    public Publication getPublication() {
22
        return publication;
23
    }
24

  
25
    public void setPublication(Publication publication) {
26
        this.publication = publication;
27
    }
28

  
29
    public Publication getHighlight() {
30
        return highlight;
31
    }
32

  
33
    public void setHighlight(Publication highlight) {
34
        this.highlight = highlight;
35
    }
36

  
37
    public Provenance getProvenance() {
38
        return provenance;
39
    }
40

  
41
    public void setProvenance(Provenance provenance) {
42
        this.provenance = provenance;
43
    }
44

  
45
    public float getTrust() {
46
        return trust;
47
    }
48

  
49
    public void setTrust(float trust) {
50
        this.trust = trust;
51
    }
52
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/DatasourcesBroker.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4
import eu.dnetlib.repo.manager.service.shared.Tuple;
5

  
6
import java.util.List;
7

  
8
/**
9
 * Created by stefanos on 31/10/2016.
10
 */
11
public class DatasourcesBroker implements IsSerializable {
12

  
13
    private List<Tuple<BrowseEntry, String>> datasourcesOfUser;
14
    private List<Tuple<BrowseEntry, String>> sharedDatasources;
15
    private List<Tuple<BrowseEntry, String>> datasourcesOfOthers;
16

  
17
    public List<Tuple<BrowseEntry, String>> getDatasourcesOfUser() {
18
        return datasourcesOfUser;
19
    }
20

  
21
    public void setDatasourcesOfUser(List<Tuple<BrowseEntry, String>> datasourcesOfUser) {
22
        this.datasourcesOfUser = datasourcesOfUser;
23
    }
24

  
25
    public List<Tuple<BrowseEntry, String>> getSharedDatasources() {
26
        return sharedDatasources;
27
    }
28

  
29
    public void setSharedDatasources(List<Tuple<BrowseEntry, String>> sharedDatasources) {
30
        this.sharedDatasources = sharedDatasources;
31
    }
32

  
33
    public List<Tuple<BrowseEntry, String>> getDatasourcesOfOthers() {
34
        return datasourcesOfOthers;
35
    }
36

  
37
    public void setDatasourcesOfOthers(List<Tuple<BrowseEntry, String>> datasourcesOfOthers) {
38
        this.datasourcesOfOthers = datasourcesOfOthers;
39
    }
40
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/BrowseEntry.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
/**
6
 * Created by stefanos on 26/10/2016.
7
 */
8
public class BrowseEntry implements Comparable<BrowseEntry>, IsSerializable{
9

  
10
    public String value;
11
    public Long size;
12

  
13
    public BrowseEntry() {
14
    }
15

  
16
    public BrowseEntry(final String value, final Long size) {
17
        this.value = value;
18
        this.size = size;
19
    }
20

  
21
    public String getValue() {
22
        return value;
23
    }
24

  
25
    public void setValue(String value) {
26
        this.value = value;
27
    }
28

  
29
    public Long getSize() {
30
        return size;
31
    }
32

  
33
    public void setSize(Long size) {
34
        this.size = size;
35
    }
36

  
37
    @Override
38
    public int compareTo(final BrowseEntry bv) {
39
        return Long.compare(getSize(), bv.getSize());
40
    }
41

  
42
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/Subscription.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
/**
4
 * Created by stefanos on 10-Mar-17.
5
 */
6

  
7

  
8
import com.google.gwt.user.client.rpc.IsSerializable;
9
import eu.dnetlib.repo.manager.service.shared.NotificationMode;
10

  
11
import java.util.Date;
12
import java.util.List;
13

  
14

  
15
public class Subscription implements IsSerializable {
16

  
17
    private String subscriptionId;
18

  
19
    private String subscriber;
20

  
21
    private String topic;
22

  
23
    private NotificationFrequency frequency;
24

  
25
    private NotificationMode mode;
26

  
27
    private Date lastNotificationDate;
28

  
29
    private String conditions;
30

  
31
    private List<MapConditions> conditionsAsList;
32

  
33
    public Subscription() {
34
    }
35

  
36
    public String getSubscriptionId() {
37
        return subscriptionId;
38
    }
39

  
40
    public void setSubscriptionId(String subscriptionId) {
41
        this.subscriptionId = subscriptionId;
42
    }
43

  
44
    public String getSubscriber() {
45
        return subscriber;
46
    }
47

  
48
    public void setSubscriber(String subscriber) {
49
        this.subscriber = subscriber;
50
    }
51

  
52
    public String getTopic() {
53
        return topic;
54
    }
55

  
56
    public void setTopic(String topic) {
57
        this.topic = topic;
58
    }
59

  
60
    public NotificationFrequency getFrequency() {
61
        return frequency;
62
    }
63

  
64
    public void setFrequency(NotificationFrequency frequency) {
65
        this.frequency = frequency;
66
    }
67

  
68
    public NotificationMode getMode() {
69
        return mode;
70
    }
71

  
72
    public void setMode(NotificationMode mode) {
73
        this.mode = mode;
74
    }
75

  
76
    public Date getLastNotificationDate() {
77
        return lastNotificationDate;
78
    }
79

  
80
    public void setLastNotificationDate(Date lastNotificationDate) {
81
        this.lastNotificationDate = lastNotificationDate;
82
    }
83

  
84
    public String getConditions() {
85
        return conditions;
86
    }
87

  
88
    public void setConditions(String conditions) {
89
        this.conditions = conditions;
90
    }
91

  
92
    public List<MapConditions> getConditionsAsList() {
93
        return conditionsAsList;
94
    }
95

  
96
    public void setConditionsAsList(List<MapConditions> conditionsAsList) {
97
        this.conditionsAsList = conditionsAsList;
98
    }
99
}
modules/uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/service/shared/broker/Dataset.java
1
package eu.dnetlib.repo.manager.service.shared.broker;
2

  
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

  
5
import java.util.List;
6

  
7
public class Dataset implements IsSerializable {
8

  
9
    private List<String> titles;
10

  
11
    private List<String> collectedFrom;
12

  
13
    private List<Pid> pids;
14

  
15
    private List<Instance> instances;
16

  
17
    public Dataset() {
18
    }
19

  
20
    public Dataset(final List<String> titles, final List<String> collectedFrom, final List<Pid> pids, final List<Instance> instances) {
21
        this.titles = titles;
22
        this.collectedFrom = collectedFrom;
23
        this.pids = pids;
24
        this.instances = instances;
25
    }
26

  
27
    public List<String> getTitles() {
28
        return titles;
29
    }
30

  
31
    public void setTitles(List<String> titles) {
32
        this.titles = titles;
33
    }
34

  
35
    public List<String> getCollectedFrom() {
36
        return collectedFrom;
37
    }
38

  
39
    public void setCollectedFrom(List<String> collectedFrom) {
40
        this.collectedFrom = collectedFrom;
41
    }
42

  
43
    public List<Pid> getPids() {
44
        return pids;
45
    }
46

  
47
    public void setPids(List<Pid> pids) {
48
        this.pids = pids;
49
    }
50

  
51
    public List<Instance> getInstances() {
52
        return instances;
53
    }
54

  
55
    public void setInstances(List<Instance> instances) {
56
        this.instances = instances;
57
    }
58
}
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff