1
|
<?php
|
2
|
/**
|
3
|
* @file
|
4
|
* CDM Server URI definitions.
|
5
|
*/
|
6
|
|
7
|
define('CDM_WS_PORTAL_GENERIC', 'portal/$0');
|
8
|
|
9
|
define('CDM_WS_PORTAL_AGENT', 'portal/agent');
|
10
|
define('CDM_WS_REFERENCE', 'reference');
|
11
|
define('CDM_WS_REFERENCE_AUTHORTEAM', 'reference/$0/authorship');
|
12
|
define('CDM_WS_NOMENCLATURAL_REFERENCE_CITATION', 'reference/$0/nomenclaturalCitation');
|
13
|
|
14
|
define('CDM_WS_NAME', 'name');
|
15
|
define('CDM_WS_NAME_NAMECAHE', 'name/$0/nameCache');
|
16
|
define('CDM_WS_NAME_TYPEDESIGNATIONS', 'name/$0/typeDesignations');
|
17
|
define('CDM_WS_TYPE_DESIGNATION_STATUS_FILTER_TERMS', 'name/typeDesignationStatusFilterTerms');
|
18
|
|
19
|
define('CDM_WS_PORTAL_NAME', 'portal/name');
|
20
|
define('CDM_WS_PORTAL_NAME_FINDBYNAME', 'name/findByName/');
|
21
|
define('CDM_WS_PORTAL_NAME_DESCRIPTIONS', 'portal/name/$0/taxonNameDescriptions');
|
22
|
define('CDM_WS_PORTAL_NAME_TYPEDESIGNATIONS', 'portal/name/$0/typeDesignations');
|
23
|
define('CDM_WS_PORTAL_NAME_NAME_RELATIONS', 'portal/name/$0/nameRelations');
|
24
|
|
25
|
define('CDM_WS_NOMENCLATURALSTATUS', 'nomenclaturalStatus/$0');
|
26
|
|
27
|
define('CDM_TYPEDESIGNATION', 'typedesignation/$0');
|
28
|
|
29
|
define('CDM_WS_TAXON', 'taxon');
|
30
|
define('CDM_WS_TAXON_CLASSIFICATIONS', 'taxon/$0/classifications');
|
31
|
define('CDM_WS_TAXON_FINDBY_DESCRIPTIONELEMENT_FULLTEXT', 'taxon/findByDescriptionElementFullText');
|
32
|
/**
|
33
|
* Parameter $0 : the taxon uuid.
|
34
|
*
|
35
|
* Returns the taxon which is the accepted synonym for the taxon given as
|
36
|
* parameter taxonUuid. If the taxon specified by taxonUuid is itself the
|
37
|
* accepted taxon, this one will be returned.
|
38
|
*/
|
39
|
define('CDM_WS_PORTAL_TAXON_ACCEPTED', 'portal/taxon/$0/accepted');
|
40
|
|
41
|
define('CDM_WS_PORTAL_TAXON', 'portal/taxon');
|
42
|
define('CDM_WS_PORTAL_TAXON_SYNONYMY', 'portal/taxon/$0/synonymy');
|
43
|
define('CDM_WS_PORTAL_TAXON_RELATIONS', 'portal/taxon/$0/taxonRelationships');
|
44
|
define('CDM_WS_PORTAL_TAXON_RELATIONS_DTO', 'taxon/$0/taxonRelationshipsDTO');
|
45
|
define('CDM_WS_PORTAL_TAXON_DESCRIPTIONS', 'portal/taxon/$0/descriptions');
|
46
|
define('CDM_WS_PORTAL_TAXON_TAXONNODEAGENTRELATIONS', 'portal/taxon/$0/taxonNodeAgentRelations/$1');
|
47
|
|
48
|
/**
|
49
|
* Parameter $0: taxon UUID.
|
50
|
* Parameter $1: simple name of the class extending DescriptionElementBase.
|
51
|
*/
|
52
|
define('CDM_WS_PORTAL_TAXON_DESCRIPTIONS_ELEMENTSBYTYPE', 'portal/taxon/$0/descriptions/elementsByType/$1');
|
53
|
define('CDM_WS_PORTAL_TAXON_USEDESCRIPTIONS', 'portal/taxon/$0/useDescriptions');
|
54
|
define('CDM_WS_PORTAL_TAXON_TO_NAMERELATIONS', 'portal/taxon/$0/toNameRelationships');
|
55
|
define('CDM_WS_PORTAL_TAXON_FROM_NAMERELATIONS', 'portal/taxon/$0/fromNameRelationships');
|
56
|
define('CDM_WS_PORTAL_TAXON_MEDIA', 'portal/taxon/$0/media');
|
57
|
define('CDM_WS_PORTAL_TAXON_SUBTREE_MEDIA', 'portal/taxon/$0/subtree/media');
|
58
|
|
59
|
define('CDM_WS_PORTAL_TAXON_TAXONNODES', 'portal/taxon/$0/taxonNodes');
|
60
|
define('CDM_WS_PORTAL_TAXON_FIND', 'portal/taxon/find');
|
61
|
define('CDM_WS_PORTAL_TAXON_SEARCH', 'portal/taxon/search');
|
62
|
define('CDM_WS_TAXON_SEARCH', 'taxon/search');
|
63
|
define('CDM_WS_PORTAL_TAXON_FINDBY_DESCRIPTIONELEMENT_FULLTEXT', 'portal/taxon/findByDescriptionElementFullText');
|
64
|
|
65
|
|
66
|
|
67
|
define('CDM_WS_TAXONNODE', 'taxonNode/$0');
|
68
|
|
69
|
/**
|
70
|
* /description/{uuid}/naturalLanguageDescription/{featuretree_uuid}
|
71
|
*/
|
72
|
define('CDM_WS_DESCRIPTION_NAMEDAREAS_IN_USE', 'description/namedAreasInUse');
|
73
|
define('CDM_WS_DESCRIPTION_NATURALLANGUAGE_DESCRIPTION', 'description/$0/naturalLanguageDescription/$1');
|
74
|
define('CDM_WS_DESCRIPTION_HAS_STRUCTRURED_DATA', 'description/$0/hasStructuredData');
|
75
|
|
76
|
define('CDM_WS_PORTAL_DESCRIPTION', 'portal/description/$0');
|
77
|
define('CDM_WS_PORTAL_DESCRIPTION_AREAS_TREE', 'portal/description/$0/namedAreaTree');
|
78
|
|
79
|
|
80
|
define('CDM_WS_PORTAL_DESCRIPTION_DISTRIBUTION_INFO_FOR', 'portal/description/distributionInfoFor/$0');
|
81
|
|
82
|
define('CDM_WS_DESCRIPTIONELEMENT', 'descriptionElement/$0');
|
83
|
define('CDM_WS_DESCRIPTIONELEMENT_BY_TAXON', 'portal/descriptionElement/byTaxon');
|
84
|
define('CDM_WS_PORTAL_DESCRIPTIONELEMENT', 'portal/descriptionElement/$0');
|
85
|
|
86
|
/**
|
87
|
* Gets the root nodes of the taxonomic concept tree for the concept
|
88
|
* reference specified by the secUuid parameter.
|
89
|
*
|
90
|
* stub: treenode_root
|
91
|
*/
|
92
|
define('CDM_WS_PORTAL_TAXONOMY', 'portal/classification');
|
93
|
/**
|
94
|
* TODO: harmonize return type, the REST service should return TaxonNodeDto, see #6222
|
95
|
*
|
96
|
* returns list of TaxonNode
|
97
|
*/
|
98
|
define('CDM_WS_PORTAL_TAXONOMY_CHILDNODES', 'portal/classification/$0/childNodes');
|
99
|
/**
|
100
|
* returns list of TaxonNodeDto
|
101
|
*/
|
102
|
define('CDM_WS_PORTAL_TAXONOMY_CHILDNODES_AT_RANK', 'portal/classification/$0/childNodesAt/$1');
|
103
|
/**
|
104
|
* returns list of TaxonNodeDto
|
105
|
*/
|
106
|
define('CDM_WS_PORTAL_TAXONOMY_CHILDNODES_OF_TAXON', 'portal/classification/$0/childNodesOf/$1');
|
107
|
/**
|
108
|
* returns list of TaxonNodeDto
|
109
|
*/
|
110
|
define('CDM_WS_PORTAL_TAXONOMY_PATH_FROM', 'portal/classification/$0/pathFrom/$1');
|
111
|
/**
|
112
|
* returns list of TaxonNodeDto
|
113
|
*/
|
114
|
define('CDM_WS_PORTAL_TAXONOMY_PATH_FROM_TO_RANK', 'portal/classification/$0/pathFrom/$1/toRank/$2');
|
115
|
define('CDM_WS_PORTAL_TAXONOMY_MEDIA', 'portal/classification/$0/$1');
|
116
|
|
117
|
define('CDM_WS_TAXONNODE_PARENT', 'taxonNode/$0/parent');
|
118
|
|
119
|
define('CDM_WS_TERMVOCABULARY', 'termVocabulary/$0');
|
120
|
|
121
|
define('CDM_WS_TERM_COMPARE', 'term/$0/compareTo/$1');
|
122
|
define('CDM_WS_TERM', 'term');
|
123
|
define('CDM_WS_PORTAL_TERM', 'portal/term/$0');
|
124
|
|
125
|
/**
|
126
|
* Returns FeatureTrees that are stored in this community store.
|
127
|
*/
|
128
|
define('CDM_WS_FEATURETREE', 'portal/featureTree/$0');
|
129
|
define('CDM_WS_FEATURETREES', 'portal/featureTree');
|
130
|
// define('CDM_WS_FEATURETREE_CHILDREN', 'featureTree/$0/children');
|
131
|
define('CDM_WS_GEOSERVICE_DISTRIBUTIONMAP', 'ext/edit/mapServiceParameters/taxonDistributionFor/$0');
|
132
|
define('CDM_WS_GEOSERVICE_OCCURRENCEMAP_FOR_FIELDUNITS', 'ext/edit/mapServiceParameters/taxonOccurrencesForX');
|
133
|
define('CDM_WS_GEOSERVICE_OCCURRENCEMAP', 'ext/edit/mapServiceParameters/taxonOccurrencesFor/$0');
|
134
|
|
135
|
define('CDM_WS_OCCURRENCE', 'occurrence');
|
136
|
define('CDM_WS_PORTAL_OCCURRENCE', 'portal/occurrence');
|
137
|
define('CDM_WS_OCCURRENCE_ACCESSION_NUMBER', 'occurrence/byGeneticAccessionNumber');
|
138
|
/**
|
139
|
* url query parameters:
|
140
|
*
|
141
|
* - taxonUuid
|
142
|
* - relationshipUuids e.g. CongruentTo; "60974c98-64ab-4574-bb5c-c110f6db634d"
|
143
|
* - relationshipInversUuids
|
144
|
* - maxDepth null for unlimited
|
145
|
* - pageNumber
|
146
|
* - pageSize
|
147
|
* - unknown_type
|
148
|
*/
|
149
|
define('CDM_WS_OCCURRENCE_BY_ASSOCIATEDTAXON', 'occurrence/byAssociatedTaxon');
|
150
|
define('CDM_WS_OCCURRENCE_FIELDUNIT_DTO_BY_ASSOCIATEDTAXON', 'occurrence/specimensOrObservationsByAssociatedTaxon');
|
151
|
define('CDM_WS_DERIVEDUNIT_FACADE', 'derivedUnitFacade/$0');
|
152
|
|
153
|
define('CDM_WS_IDENTIFICATIONKEY', 'identificationKey');
|
154
|
define('CDM_WS_MEDIAKEY', 'mediaKey');
|
155
|
define('CDM_WS_MULTIACCESSKEY', 'multiAccessKey');
|
156
|
define('CDM_WS_POLYTOMOUSKEY', 'polytomousKey');
|
157
|
define('CDM_WS_POLYTOMOUSKEY_NODE', 'polytomousKeyNode');
|
158
|
|
159
|
define('CDM_WS_MEDIA', 'media');
|
160
|
define('CDM_WS_PORTAL_MEDIA', 'portal/media');
|
161
|
|
162
|
define('CDM_WS_MEDIA_METADATA', 'media/$0/metadata');
|
163
|
|
164
|
define('CDM_WS_REGISTRATION_DTO_BY_IDENTIFIER', "registrationDTO/identifier/");
|
165
|
define('CDM_WS_REGISTRATION_STATUS_BY_IDENTIFIER', "registration/identifier/$0/status");
|
166
|
|
167
|
define('CDM_WS_MANAGE_REINDEX', 'manage/reindex');
|
168
|
define('CDM_WS_MANAGE_PURGE', 'manage/purge');
|