2019-10-04 10:45:51 +02:00
|
|
|
export class ContentProvider {
|
|
|
|
id: string;
|
|
|
|
openaireId: string;
|
|
|
|
communityId: string;
|
|
|
|
name: string;
|
|
|
|
officialname: string;
|
2019-11-05 16:18:08 +01:00
|
|
|
selectioncriteria: SelectionCriteria;
|
2024-02-28 13:46:29 +01:00
|
|
|
deposit: boolean;
|
2024-03-15 14:58:15 +01:00
|
|
|
enabled:boolean;
|
2024-02-28 13:46:29 +01:00
|
|
|
message: string;
|
2019-10-04 10:45:51 +02:00
|
|
|
}
|
|
|
|
|
2019-10-13 22:08:47 +02:00
|
|
|
export class SelectionCriteria {
|
2019-10-04 10:45:51 +02:00
|
|
|
criteria: Criteria[] = [];
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Criteria {
|
2019-11-05 16:18:08 +01:00
|
|
|
constraint: Constraint[] = [];
|
2019-10-04 10:45:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export class Constraint {
|
|
|
|
verb: string = 'contains';
|
|
|
|
field: string = null;
|
|
|
|
value: string;
|
2021-04-06 16:44:48 +02:00
|
|
|
|
|
|
|
constructor(verb: string, field: string, value:string) {
|
|
|
|
this.verb = verb;
|
|
|
|
this.field = field;
|
|
|
|
this.value = value;
|
|
|
|
}
|
2019-10-04 10:45:51 +02:00
|
|
|
}
|