public class GetResponseRecordFilter extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
GetResponseRecordFilter() |
| Modifier and Type | Method and Description |
|---|---|
static List<Long> |
fileIdentifiersToIds(List<String> UUIDs,
String scope)
File identifiers to ids.
|
static String |
getMetaCategoryByFileIdentifier(String fileIdentifier,
String geonetworkURL,
String user,
String pwd)
Gets the meta category by file identifier.
|
static String |
getMetadataValueByFileIdentifier(String fileIdentifier,
String geonetworkURL,
String user,
String pwd,
String metadataName)
Gets the metadata value by file identifier.
|
static String |
getMetaOwnerNameByFileIdentifier(String fileIdentifier,
String geonetworkURL,
String user,
String pwd)
Gets the meta owner name by file identifier.
|
static List<String> |
getTextContentStringsForTagName(Document doc,
String tagName)
Gets the text content strings for tag name.
|
static Document |
inputStreamToW3CDocument(InputStream getRecordsResponse)
Input stream to w3 c document.
|
static InputStream |
overrideResponseIdsByListIds(InputStream getRecordsResponse,
List<String> idsToRemove,
String messageToWrite)
Override response ids by list ids.
|
static String |
requestXmlMetadataGet(String fileIdentifier,
String geonetworkURL,
String user,
String pwd)
Perform the request xml metadata get.
|
static InputStream |
w3CDocumentToInputStream(Document xml)
W3 c document to input stream.
|
public static List<String> getTextContentStringsForTagName(Document doc, String tagName)
doc - the doctagName - the tag namepublic static Document inputStreamToW3CDocument(InputStream getRecordsResponse) throws Exception
getRecordsResponse - the get records responseException - the exceptionpublic static InputStream overrideResponseIdsByListIds(InputStream getRecordsResponse, List<String> idsToRemove, String messageToWrite) throws IOException
getRecordsResponse - the get records responseidsToRemove - the ids to removemessageToWrite - the message to replace the right ID in the response.IOException - Signals that an I/O exception has occurred.public static final InputStream w3CDocumentToInputStream(Document xml) throws Exception
xml - the xmlException - the exceptionpublic static List<Long> fileIdentifiersToIds(List<String> UUIDs, String scope) throws GeonetworkInstanceException
UUIDs - the UUI dsscope - the scopeGeonetworkInstanceException - the geonetwork instance exceptionpublic static String requestXmlMetadataGet(String fileIdentifier, String geonetworkURL, String user, String pwd)
fileIdentifier - the file identifier is the UUIDgeonetworkURL - the geonetwork urluser - the userpwd - the pwdpublic static String getMetaCategoryByFileIdentifier(String fileIdentifier, String geonetworkURL, String user, String pwd)
fileIdentifier - the file identifiergeonetworkURL - the geonetwork urluser - the userpwd - the pwdpublic static String getMetaOwnerNameByFileIdentifier(String fileIdentifier, String geonetworkURL, String user, String pwd)
fileIdentifier - the file identifiergeonetworkURL - the geonetwork urluser - the userpwd - the pwdpublic static String getMetadataValueByFileIdentifier(String fileIdentifier, String geonetworkURL, String user, String pwd, String metadataName)
fileIdentifier - the file identifiergeonetworkURL - the geonetwork urluser - the userpwd - the pwdmetadataName - the metadata nameCopyright © 2021. All Rights Reserved.