public class SPECCHIOWebClient extends java.lang.Object implements SPECCHIOClient
| Modifier and Type | Method and Description |
|---|---|
void |
calculateSunAngle(java.util.ArrayList<java.lang.Integer> spectrumIds,
SPECCHIOClient client)
Get metaparameters for spectrum ids and EAV attribute
|
void |
clearMetaparameterRedundancyList()
Clears the known metaparameter list held by the server for this user
|
void |
close()
Close this client
|
void |
connect()
Connect to the SPECCHIO web application.
|
int |
copyHierarchy(int hierarchy_id,
int target_hierarchy_id,
java.lang.String new_name)
Copy a hierarchy to a specified hierarchy with a new name.
|
java.util.ArrayList<java.lang.Integer> |
copySpectra(java.util.ArrayList<java.lang.Integer> spectrum_id,
int target_hierarchy_id,
int current_hierarchy_id)
Copy a spectrum to a specified hierarchy.
|
int |
copySpectrum(int spectrum_id,
int target_hierarchy_id)
Copy a spectrum to a specified hierarchy.
|
void |
createFilterCollection(java.util.ArrayList<java.lang.Integer> spectrumIds,
java.util.ArrayList<java.lang.Integer> attributeIds) |
void |
createInstrument(java.lang.String name)
Create a new instrument.
|
void |
createReference(java.lang.String name)
Create a new reference.
|
User |
createUserAccount(User user)
Create a user account.
|
User |
createUserAccountOnCurrentServer(User user)
Create a user account on this specchio server.
|
void |
dbUpgrade(double version,
java.io.FileInputStream fis)
Database upgrade
|
void |
deleteCalibration(int calibration_id)
Delete calibration data from the database
|
void |
deleteInstrument(int instrument_id)
Delete an instrument from the database.
|
void |
deleteInstrumentPicture(int picture_id)
Delete a picture of an instrument from the database.
|
void |
deleteReference(int reference_id)
Delete a reference from the database.
|
void |
deleteReferencePicture(int picture_id)
Delete a picture of a reference from the database.
|
int |
deleteTargetReferenceLinks(int eav_id)
Delete a target-reference link from the database.
|
void |
disconnect()
Disconnect from the SPECCHIO web application.
|
java.util.ArrayList<java.lang.Integer> |
filterSpectrumIdsByHavingAttribute(java.util.ArrayList<java.lang.Integer> spectrum_ids,
java.lang.String attribute_name)
Get the spectrum identifiers that do have a reference to the specified attribute.
|
java.util.ArrayList<java.lang.Integer> |
filterSpectrumIdsByHavingAttributeValue(java.util.ArrayList<java.lang.Integer> spectrum_ids,
java.lang.String attribute_name,
java.lang.Object value)
Get the spectrum identifiers that do reference to the specified attribute of a specified value.
|
java.util.ArrayList<java.lang.Integer> |
filterSpectrumIdsByNotHavingAttribute(java.util.ArrayList<java.lang.Integer> spectrum_ids,
java.lang.String attribute_name)
Get the spectrum identifiers that do not have a reference to the specified attribute.
|
java.util.ArrayList<java.lang.Integer> |
findMatchingSpectra(java.util.ArrayList<java.lang.Integer> spectrumIds,
java.util.ArrayList<QueryAttribute> queryAttributes) |
AdjacencyMatrix |
getAdjacencyMatrix(int uncertainty_set_id)
Get the adjacency matrix for an uncertainty set
|
attribute[] |
getAttributes()
Get the attributes object containing information on all attributes, units and categories.
|
attribute[] |
getAttributesForCategory(java.lang.String category)
Get the attributes for a metadata category.
|
java.util.Hashtable<java.lang.Integer,attribute> |
getAttributesIdHash()
Get the attributes hashtable
|
java.util.Hashtable<java.lang.String,attribute> |
getAttributesNameHash()
Get the attributes hashtable
|
Units |
getAttributeUnits(attribute attr)
Get the units for an attribute.
|
Instrument |
getCalibratedInstrument(int calibration_id)
Get a calibrated instrument.
|
java.util.ArrayList<java.lang.Integer> |
getCalibrationIds(java.util.ArrayList<java.lang.Integer> spectrum_ids)
Get calibration ids for a list of spectra.
|
CalibrationMetadata[] |
getCalibrationMetadataByCalibrationNumber(int instrument_id,
int calibration_number)
Get an array of CalibrationMetadata based on an instrument id and a calibration number (typically an ASD instrument).
|
Campaign |
getCampaign(int campaign_id)
Get a campaign descriptor.
|
java.io.InputStream |
getCampaignExportInputStream(Campaign c)
Export a campaign.
|
campaign_node |
getCampaignNode(int campaign_id,
java.lang.String order_by,
boolean restrict_to_view)
Get a campaign node for the spectral data browser.
|
Campaign[] |
getCampaigns()
Get all of the campaigns in the database.
|
Campaign[] |
getCampaigns(boolean load_metadata_details)
Get all of the campaigns in the database.
|
java.lang.String |
getCapability(java.lang.String capability)
Get the value of a capability.
|
java.util.ArrayList<Category> |
getCategoriesInfo()
Get the info of all EAV metadata categories.
|
java.util.List<spectral_node_object> |
getChildrenOfNode(spectral_node_object sn)
Get the children of a node of the spectral data browser.
|
java.util.List<TaxonomyNodeObject> |
getChildrenOfTaxonomyNode(TaxonomyNodeObject tn)
Get the children of a node of a taxonomy.
|
Country[] |
getCountries()
Get the list of countries known to the server.
|
database_node |
getDatabaseNode(java.lang.String order_by,
boolean restrict_to_view)
Get a database node for the spectral data browser.
|
java.lang.Integer |
getDirectHierarchyId(int spectrum_id)
Get the direct hierarchy id of a single spectrum
|
java.util.ArrayList<java.lang.Integer> |
getDirectHierarchyIds(java.util.ArrayList<java.lang.Integer> spectrum_ids)
Get hierarchy ids, directly above these spectra
|
java.util.ArrayList<java.lang.Integer> |
getDirectSpectrumIdsOfHierarchy(int hierarchy_id)
Get the identifiers of all spectra directly belonging to a hierarchy
|
java.util.ArrayList<MetaParameter> |
getDistinctValuesOfAttribute(int attribute_id)
Get distinct values of an attribute
|
ConflictTable |
getEavMetadataConflicts(int metadata_level,
java.util.ArrayList<java.lang.Integer> ids)
Get a conflicts in the EAV metadata for a set of spectra.
|
EAVQueryConditionObject |
getEAVQueryConditionObject(attribute attr)
Return an EAVQueryConditionObject configured for the supplied attribute.
|
java.lang.String |
getEdgeValue(int edge_id)
Get edge value for a given edge_id
|
java.lang.Integer |
getExistingMetaparameterCount(java.lang.Integer attribute_id,
java.util.ArrayList<java.lang.Integer> ids)
Get the count of existing metaparameters for the supplied spectrum ids and attribute id
|
int |
getFileFormatId(java.lang.String format)
Get the file format identifier for a file format name.
|
Hierarchy |
getHierarchy(java.lang.Integer hierarchy_id)
Get the hierarchy object for a given hierarchy_id
|
java.lang.String |
getHierarchyFilePath(int hierarchy_id)
Get the file path of a hierarchy.
|
int |
getHierarchyId(Campaign campaign,
java.lang.String name,
int parent_id)
Get the identifier of a hierarchy node.
|
java.util.ArrayList<java.lang.Integer> |
getHierarchyIdsOfSpectra(java.util.ArrayList<java.lang.Integer> spectrum_ids)
Get a list of hierarchy ids, covering all hierarchies above these spectra
|
java.lang.String |
getHierarchyName(int hierarchy_id)
Get the name of a hierarchy.
|
int |
getHierarchyParentId(int hierarchy_id)
Get the parent_id for a given hierarchy_id
|
Institute[] |
getInstitutes()
Get all of the institutes in the database.
|
Instrument |
getInstrument(Instrument instrument)
Get an instrument that matches the passed object or creates a new instrument and returns it
|
Instrument |
getInstrument(int instrument_id)
Get an instrument.
|
CalibrationMetadata[] |
getInstrumentCalibrationMetadata(int instrument_id)
Get the calibration metadata for an instrument.
|
InstrumentDescriptor[] |
getInstrumentDescriptors()
Get descriptors for all of the instruments in the database.
|
Instrument |
getInstrumentForSpectralFile(SpectralFile spec_file)
Get a instrument object for a given spectral file object.
|
java.util.ArrayList<java.lang.Integer> |
getInstrumentIds(java.util.ArrayList<java.lang.Integer> spectrum_ids)
Get instrument ids for a list of spectra.
|
PictureTable |
getInstrumentPictures(int instrument_id)
Get all of the pictures for an instrument.
|
java.util.ArrayList<java.lang.Integer> |
getIrradiance(java.lang.String campaignId)
Get the identifiers of all spectra that match a full text search.
|
User |
getLoggedInUser()
Get a user object representing the user under which the client is logged in.
|
MeasurementUnit |
getMeasurementUnitFromCoding(int coding)
Get measurement unit for ASD based coding.
|
java.util.ArrayList<java.lang.Integer> |
getMetadataCategoriesForApplicationDomain(int taxonomy_id)
Get the metadata categories for application domain
|
ApplicationDomainCategories[] |
getMetadataCategoriesForApplicationDomains()
Get the metadata categories per application domain
|
CategoryTable |
getMetadataCategoriesForIdAccess(java.lang.String field)
Get the metadata categories for a metadata field.
|
java.util.Hashtable<java.lang.String,java.lang.Integer> |
getMetadataCategoriesForNameAccess(java.lang.String field)
Get the metadata categories for a metadata field, ready for access via name
|
ConflictTable |
getMetadataConflicts(java.util.ArrayList<java.lang.Integer> spectrum_ids,
java.lang.String[] fields)
Get the metadata conflicts for a set of spectra and set of fields.
|
MetaParameter |
getMetaparameter(java.lang.Integer id,
java.lang.String attribute_name)
Get metaparameter for spectrum id and EAV attribute
|
java.util.ArrayList<java.util.ArrayList<MetaParameter>> |
getMetaparameters(java.util.ArrayList<java.lang.Integer> ids,
java.util.ArrayList<java.lang.Integer> attribute_ids)
Get list of metaparameters for spectrum ids and EAV attributes
|
java.util.ArrayList<MetaParameter> |
getMetaparameters(java.util.ArrayList<java.lang.Integer> ids,
java.lang.String attribute_name)
Get metaparameters for spectrum ids and EAV attribute
|
java.util.ArrayList<MetaParameter> |
getMetaparameters(java.util.ArrayList<java.lang.Integer> ids,
java.lang.String attribute_name,
java.lang.Boolean distinct)
Get metaparameters for spectrum ids and EAV attribute
|
MetaparameterStatistics |
getMetaparameterStatistics(java.util.ArrayList<java.lang.Integer> ids,
java.lang.String attribute_name)
Get metaparameter value statistics for spectrum ids and EAV attribute
|
MatlabAdaptedArrayList<java.lang.Object> |
getMetaparameterValues(java.util.ArrayList<java.lang.Integer> ids,
java.lang.String attribute_name)
Get values for spectrum ids and EAV attribute (non-distinct values by default)
|
MatlabAdaptedArrayList<java.lang.Object> |
getMetaparameterValues(java.util.ArrayList<java.lang.Integer> ids,
java.lang.String attribute_name,
java.lang.Boolean distinct)
Get values for spectrum ids and EAV attribute
|
java.util.ArrayList<java.lang.Integer> |
getNewestSpectra(int number_of_spectra)
Get newest N spectra.
|
java.util.ArrayList<attribute> |
getNonNullAttributes(java.util.ArrayList<java.lang.Integer> spectrumIds) |
java.util.ArrayList<Category> |
getNonNullCategories(java.util.ArrayList<java.lang.Integer> spectrumIds)
Get the ids and names of all metadata categories used by a set of given spectra.
|
java.lang.String[] |
getPoliciesForSpace(Space space)
Get the data usage policies for a space.
|
Query |
getQueryObject()
Get an empty query object
|
Reference |
getReference(int reference_id)
Get a reference.
|
ReferenceBrand[] |
getReferenceBrands()
Get all of the reference brands in the database.
|
CalibrationMetadata[] |
getReferenceCalibrationMetadata(int reference_id)
Get the calibration metadata for a reference.
|
ReferenceDescriptor[] |
getReferenceDescriptors()
Get descriptors for all of the references in the database.
|
PictureTable |
getReferencePictures(int reference_id)
Get all of the pictures associated with a reference.
|
ReferenceSpaceStruct |
getReferenceSpace(java.util.ArrayList<java.lang.Integer> input_ids)
Get a reference space.
|
Sensor[] |
getSensors()
Get all of the sensors in the database.
|
GonioSamplingPoints |
getSensorSamplingGeometry(SpectralSpace space)
Get sensor sampling geometry
|
SPECCHIOServerDescriptor |
getServerDescriptor()
Get a server descriptor that describes the server to which this client is connected.
|
Space[] |
getSpaces(java.util.ArrayList<java.lang.Integer> ids,
boolean split_spaces_by_sensor,
boolean split_spaces_by_sensor_and_unit,
java.lang.String order_by)
Get the space objects for a set of spectrum identifiers.
|
Space[] |
getSpaces(java.util.ArrayList<java.lang.Integer> ids,
java.lang.String order_by)
Get the space objects for a set of spectrum identifiers.
|
Spectrum |
getSpectrum(int spectrum_id,
boolean load_metadata)
Get a spectrum.
|
Space[] |
getSpectrumCalibrationSpaces(java.util.ArrayList<java.lang.Integer> spectrum_ids)
Get the calibration spaces for a set of spectra.
|
int |
getSpectrumCountInDB()
Get the number of spectra in the database
|
SpectrumFactorTable |
getSpectrumFactorTable(java.util.ArrayList<java.lang.Integer> spectrum_ids_1,
java.util.ArrayList<java.lang.Integer> spectrum_ids_2)
Get the spectrum factor table for a set of spectra.
|
java.util.List<java.lang.Integer> |
getSpectrumIdsForNode(spectral_node_object sn)
Get the identifiers of all spectra beneath a given node of the spectral data browser
|
java.util.ArrayList<java.lang.Integer> |
getSpectrumIdsMatchingFullTextSearch(java.lang.String search_str)
Get the identifiers of all spectra that match a full text search.
|
java.util.ArrayList<java.lang.Integer> |
getSpectrumIdsMatchingFullTextSearchUsingHierarchy(java.lang.String search_str)
Get the identifiers of all spectra that match a full text search using metadata hierarchy.
|
java.util.ArrayList<java.lang.Integer> |
getSpectrumIdsMatchingQuery(Query query)
Get the spectrum identifiers that match a given query.
|
PictureTable |
getSpectrumPictures(int spectrum_id)
Get the pictures associated with a spectrum.
|
int |
getSpectrumQueryCount(Query query)
Get the number of spectra that matach a given query.
|
int |
getSubHierarchyId(Campaign campaign,
java.lang.String name,
int parent_id)
Get the identifier of a sub-hierarchy with a given name, creating the
hierarchy if it doesn't exist (deprecated)
|
int |
getSubHierarchyId(java.lang.String name,
int parent_id)
Get the identifier of a sub-hierarchy with a given name, creating the
hierarchy if it doesn't exist.
|
SpectrumDataLink[] |
getTargetReferenceLinks(java.util.ArrayList<java.lang.Integer> target_ids,
java.util.ArrayList<java.lang.Integer> reference_ids)
Get the spectrum data links that refer to a given set of targets and/or references.
|
java.util.Hashtable<java.lang.String,java.lang.Integer> |
getTaxonomyHash(attribute attribute)
Get the taxonomy hash for a given taxonomy
|
java.util.Hashtable<java.lang.String,java.lang.Integer> |
getTaxonomyHash(int attribute_id)
Get the taxonomy hash for a given taxonomy
|
int |
getTaxonomyId(int attribute_id,
java.lang.String name)
Get the id for a given taxonomy node in a given taxonomy
|
java.util.Hashtable<java.lang.Integer,java.lang.String> |
getTaxonomyIdToNameHash(int attribute_id)
Get the ID to name hash for a given taxonomy
|
TaxonomyNodeObject |
getTaxonomyNode(int taxonomy_id)
Get the node for a given taxonomy
|
TaxonomyNodeObject |
getTaxonomyRootNode(int attribute_id)
Get the top node for a given taxonomy
|
UncertaintyNode |
getUncertaintyInstrumentNode(int instrument_node_id)
Get instrument node for a given instrument node id
|
UncertaintyNode[] |
getUncertaintyNodeComponents(int uncertainty_node_id)
Retrieve an uncertainty node.
|
UncertaintyNode[] |
getUncertaintyNodeSubSets(int uncertainty_node_id)
Retrieve uncertainty node subsets.
|
UncertaintySet |
getUncertaintySet(int uncertainty_set_id)
Get uncertainty set
|
java.util.ArrayList<java.lang.Integer> |
getUncertaintySetIds(int spectrum_id)
Get ids of uncertainty sets that contain a spectrum id
|
java.util.ArrayList<UncertaintySetSpectraList> |
getUncertaintySetSpectraLists(java.util.ArrayList<java.lang.Integer> spectrum_ids)
Retrieve uncertainty set ids where spectrum ids can be found
|
Space[] |
getUncertaintySpaces(java.util.ArrayList<java.lang.Integer> spectrum_ids,
java.util.ArrayList<java.lang.Integer> uncertainty_set_ids,
java.lang.String order_by)
Get the uncertainty spaces for a set of spectra and uncertainty set ids.
|
UncertaintyNode |
getUncertaintySpectrumNode(int spectrum_node_id)
Get spectrum node for a given spectrum node id
|
java.util.ArrayList<java.lang.Integer> |
getUnprocessedHierarchies(java.lang.String campaignId)
Get the identifiers of all spectra that match a full text search.
|
User[] |
getUsers()
Get a list of all of the users in the database.
|
User[] |
getUsersWithStatistics()
Get a list of all of the users in the database with added user statistics (number of loaded spectra, number of campaigns).
|
void |
importCampaign(int user_id,
java.io.InputStream is)
Import a campaign.
|
void |
importCampaign(int user_id,
java.lang.String server_filepath)
Import a campaign from a file that is on the Glassfish server (used for bigger files to prevent timeouts)
|
int |
insertCampaign(Campaign campaign)
Insert a new campaign into the database
|
int |
insertClosestTargetReferenceLink(int target_id,
java.util.ArrayList<java.lang.Integer> reference_ids)
Insert a target-reference link to closest reference on acquisition timeline
|
int |
insertHierarchy(Campaign campaign,
java.lang.String name,
int parent_id)
Insert a hierarchy node.
|
int |
insertInstitute(Institute institute)
Insert a new institute into the database
|
void |
insertInstrumentCalibration(Calibration c)
Insert calibration for an instrument.
|
void |
insertInstrumentPicture(Picture picture)
Insert a picture of an instrument into the database.
|
int |
insertNewUncertaintySet(UncertaintySet uc_set)
Insert new uncertainty set
|
void |
insertReferenceCalibration(Calibration c)
Insert calibration for a reference into the database.
|
void |
insertReferencePicture(Picture picture)
Insert a picture associated with a reference into the database.
|
SpectralFileInsertResult |
insertSpectralFile(SpectralFile spec_file)
Insert a spectral file into the database.
|
int |
insertSpectrumSubset(UncertaintySpectrumNode uc_spectrum_node)
Insert a spectrum subset
|
int |
insertTargetReferenceLinks(int target_id,
java.util.ArrayList<java.lang.Integer> reference_ids)
Insert a target-reference link.
|
int |
insertUncertaintyInstrumentNode(UncertaintyInstrumentNode instrument_node)
Insert instrument node.
|
int |
insertUncertaintyNode(UncertaintyInstrumentNode instrument_node,
int uc_set_id)
Insert instrument node.
|
int |
insertUncertaintyNode(UncertaintySpectrumNode uc_spectrum_node,
int uc_set_id)
Insert an uncertainty node
|
boolean |
instrumentCalibrationExists(Calibration cal)
Test for the existence of a calibration in the database.
|
boolean |
isLoggedInWithRole(java.lang.String roleName)
Test whether or not the web client is logged in under a given role.
|
MetaParameter |
loadMetaparameter(int metaparameter_id)
Get the meta-parameter of the given metaparameter identifier.
|
void |
loadSensor(java.io.InputStream is)
Load a sensor definition into the database from an input stream.
|
Space |
loadSpace(Space space)
Load a Space object.
|
boolean |
moveHierarchy(int source_hierarchy_id,
int target_parent_hierarchy)
Move a hierarchy to a new parent hierarchy within the same campaign.
|
void |
refreshMetadataCategory(java.lang.String field)
Causes the client to reload data values the specified category upon next request.
|
void |
removeEavMetadata(attribute attr,
java.util.ArrayList<java.lang.Integer> spectrum_ids,
int metadata_level)
Remove one or more items of EAV metadata for a collection of spectra for a defined attribute.
|
void |
removeEavMetadata(MetaParameter mp)
Remove an item of EAV metadata.
|
void |
removeEavMetadata(MetaParameter mp,
java.util.ArrayList<java.lang.Integer> spectrum_ids)
Remove an item of EAV metadata for a collection of spectra.
|
void |
removeSpectralNode(spectral_node_object sn)
Remove the data corresponding to a node of the spectral data browser.
|
void |
removeSpectralNodes(java.util.ArrayList<spectral_node_object> sns)
Remove the data corresponding to a node of the spectral data browser.
|
boolean |
renameHierarchy(int hierarchy_id,
java.lang.String name)
Rename a hierarchy in the database and also on the file system if the path is accessible.
|
void |
setProgressReport(ProgressReportInterface pr)
Set the progress report interface to which progress made by this
client will be reported.
|
AVMatchingListCollection |
sortByAttributes(java.util.ArrayList<java.lang.Integer> spectrum_ids,
java.lang.String... attribute_names)
Sort spectra by the values of the specified attributes
|
boolean |
spectralFileExists(SpectralFile spec_file)
Test for the existence of a spectral file in the database.
|
boolean[] |
spectralFilesExist(SpectralFiles spec_files)
Test for the existence of a spectral files in the database.
|
java.lang.String |
submitRDACollection(RDACollectionDescriptor collection_d)
Submit a collection to Research Data Australia.
|
void |
updateCampaign(Campaign campaign)
Update the information about a campaign
|
int |
updateEavMetadata(MetaParameter mp,
java.util.ArrayList<java.lang.Integer> spectrum_ids)
Update EAV metadata.
|
int |
updateEavMetadata(MetaParameter mp,
java.util.ArrayList<java.lang.Integer> spectrum_ids,
MetaParameter mp_old)
Update EAV metadata.
|
int |
updateEavMetadataAnnotation(MetaParameter mp,
java.util.ArrayList<java.lang.Integer> spectrum_ids)
Update EAV metadata annotation.
|
void |
updateInstrument(Instrument instrument)
Update an instrument.
|
void |
updateInstrumentCalibrationMetadata(CalibrationMetadata cm)
Update the calibration metadata for an instrument.
|
void |
updateInstrumentPicture(Picture picture)
Update a picture associated with an instrument.
|
int |
updateOrInsertEavMetadata(java.util.ArrayList<Metadata> md,
java.util.ArrayList<java.lang.Integer> ids,
int campaignId)
Update or insert EAV metadata.
|
int |
updateOrInsertEavMetadata(MetaParameter mp,
java.util.ArrayList<java.lang.Integer> spectrum_ids)
Update or insert EAV metadata.
|
int |
updateOrInsertEavMetadata(MetaParameter mp,
int spectrum_id)
Update or insert EAV metadata.
|
void |
updateReference(Reference reference)
Update an reference.
|
void |
updateReferenceCalibrationMetadata(CalibrationMetadata cm)
Update the calibration metadata for a reference.
|
void |
updateReferencePicture(Picture picture)
Update a picture associated with a reference.
|
void |
updateSpectraMetadata(java.util.ArrayList<java.lang.Integer> ids,
java.lang.String field,
int id)
Update the metadata fields for a set of spectra
|
void |
updateSpectrumVector(int spectrum_id,
float[] vector)
Update the spectral vector of a spectrum
|
void |
updateSpectrumVectors(java.util.HashMap<java.lang.Integer,double[]> updateMap)
Update the spectral vector of a spectrum
|
void |
updateUser(User newUser)
Update the information about a user.
|
public void connect()
throws SPECCHIOWebClientException,
SPECCHIOClientException
connect in interface SPECCHIOClientSPECCHIOWebClientException - could not log in to the serverSPECCHIOClientExceptionpublic void close()
throws SPECCHIOClientException
close in interface SPECCHIOClientSPECCHIOClientException - could not close clientpublic int copySpectrum(int spectrum_id,
int target_hierarchy_id)
throws SPECCHIOClientException
copySpectrum in interface SPECCHIOClientspectrum_id - the spectrum_id of the spectrum to copytarget_hierarchy_id - the hierarchy_id where the copy is to be storedSPECCHIOClientException - could not log inpublic java.util.ArrayList<java.lang.Integer> copySpectra(java.util.ArrayList<java.lang.Integer> spectrum_id,
int target_hierarchy_id,
int current_hierarchy_id)
throws SPECCHIOClientException
copySpectra in interface SPECCHIOClientspectrum_id - the spectrum_id of the spectrum to copytarget_hierarchy_id - the hierarchy_id where the copy is to be storedSPECCHIOClientException - could not log inpublic int copyHierarchy(int hierarchy_id,
int target_hierarchy_id,
java.lang.String new_name)
throws SPECCHIOClientException
copyHierarchy in interface SPECCHIOClienthierarchy_id - the hierarchy_id of the hierarchy to copytarget_hierarchy_id - the hierarchy_id where the copy is to be storednew_name - new name for the copied hierarchySPECCHIOClientException - could not log inpublic void clearMetaparameterRedundancyList()
throws SPECCHIOClientException
clearMetaparameterRedundancyList in interface SPECCHIOClientSPECCHIOClientExceptionpublic User createUserAccount(User user) throws SPECCHIOClientException
createUserAccount in interface SPECCHIOClientuser - a user object describing the new user accountSPECCHIOClientExceptionpublic User createUserAccountOnCurrentServer(User user) throws SPECCHIOClientException
createUserAccountOnCurrentServer in interface SPECCHIOClientuser - a user object describing the new user accountSPECCHIOClientExceptionpublic void createInstrument(java.lang.String name)
throws SPECCHIOWebClientException
createInstrument in interface SPECCHIOClientname - the name of the new instrumentSPECCHIOWebClientExceptionpublic void createReference(java.lang.String name)
throws SPECCHIOWebClientException
createReference in interface SPECCHIOClientname - the name of the new referenceSPECCHIOWebClientExceptionpublic void dbUpgrade(double version,
java.io.FileInputStream fis)
throws SPECCHIOClientException
dbUpgrade in interface SPECCHIOClientversion - DB version to be upgraded tofis - File input stream with SQL upgrade statementsSPECCHIOClientExceptionpublic void deleteCalibration(int calibration_id)
throws SPECCHIOWebClientException
deleteCalibration in interface SPECCHIOClientcalibration_id - the calibration identifierSPECCHIOWebClientExceptionpublic void deleteInstrument(int instrument_id)
throws SPECCHIOWebClientException
deleteInstrument in interface SPECCHIOClientinstrument_id - the instrument identifierSPECCHIOWebClientExceptionpublic void deleteInstrumentPicture(int picture_id)
throws SPECCHIOWebClientException
deleteInstrumentPicture in interface SPECCHIOClientpicture_id - the picture identifierSPECCHIOWebClientExceptionpublic void deleteReference(int reference_id)
throws SPECCHIOWebClientException
deleteReference in interface SPECCHIOClientreference_id - the reference identifierSPECCHIOWebClientExceptionpublic void deleteReferencePicture(int picture_id)
throws SPECCHIOWebClientException
deleteReferencePicture in interface SPECCHIOClientpicture_id - the picture identifierSPECCHIOWebClientExceptionpublic int deleteTargetReferenceLinks(int eav_id)
throws SPECCHIOWebClientException
deleteTargetReferenceLinks in interface SPECCHIOClienteav_id - the eav_id identifierSPECCHIOWebClientExceptionpublic void disconnect()
throws SPECCHIOWebClientException
disconnect in interface SPECCHIOClientSPECCHIOWebClientExceptionpublic java.util.ArrayList<java.lang.Integer> filterSpectrumIdsByHavingAttribute(java.util.ArrayList<java.lang.Integer> spectrum_ids,
java.lang.String attribute_name)
throws SPECCHIOClientException
filterSpectrumIdsByHavingAttribute in interface SPECCHIOClientspectrum_ids - list of ids to filterattribute_name - attribute name to filter withSPECCHIOClientExceptionpublic java.util.ArrayList<java.lang.Integer> filterSpectrumIdsByNotHavingAttribute(java.util.ArrayList<java.lang.Integer> spectrum_ids,
java.lang.String attribute_name)
throws SPECCHIOClientException
filterSpectrumIdsByNotHavingAttribute in interface SPECCHIOClientspectrum_ids - list of ids to filterattribute_name - attribute_name to filter withSPECCHIOClientExceptionpublic java.util.ArrayList<java.lang.Integer> filterSpectrumIdsByHavingAttributeValue(java.util.ArrayList<java.lang.Integer> spectrum_ids,
java.lang.String attribute_name,
java.lang.Object value)
throws SPECCHIOClientException
filterSpectrumIdsByHavingAttributeValue in interface SPECCHIOClientspectrum_ids - list of ids to filterattribute_name - attribute name to filter withvalue - attribute value to matchSPECCHIOClientExceptionpublic attribute[] getAttributesForCategory(java.lang.String category) throws SPECCHIOWebClientException, SPECCHIOClientException
getAttributesForCategory in interface SPECCHIOClientcategory - the category nameSPECCHIOClientExceptionSPECCHIOWebClientExceptionpublic attribute[] getAttributes() throws SPECCHIOClientException
getAttributes in interface SPECCHIOClientSPECCHIOClientExceptionpublic java.util.Hashtable<java.lang.Integer,attribute> getAttributesIdHash() throws SPECCHIOClientException
getAttributesIdHash in interface SPECCHIOClientSPECCHIOClientExceptionpublic java.util.Hashtable<java.lang.String,attribute> getAttributesNameHash() throws SPECCHIOClientException
getAttributesNameHash in interface SPECCHIOClientSPECCHIOClientExceptionpublic Units getAttributeUnits(attribute attr) throws SPECCHIOClientException
getAttributeUnits in interface SPECCHIOClientattr - the attributeSPECCHIOClientExceptionpublic java.util.ArrayList<Category> getCategoriesInfo() throws SPECCHIOClientException
getCategoriesInfo in interface SPECCHIOClientSPECCHIOClientExceptionpublic java.util.ArrayList<Category> getNonNullCategories(java.util.ArrayList<java.lang.Integer> spectrumIds)
SPECCHIOClientgetNonNullCategories in interface SPECCHIOClientspectrumIds - list of spectrum ids for which to search used categoriespublic java.util.ArrayList<attribute> getNonNullAttributes(java.util.ArrayList<java.lang.Integer> spectrumIds)
getNonNullAttributes in interface SPECCHIOClientpublic java.util.ArrayList<java.lang.Integer> findMatchingSpectra(java.util.ArrayList<java.lang.Integer> spectrumIds,
java.util.ArrayList<QueryAttribute> queryAttributes)
findMatchingSpectra in interface SPECCHIOClientpublic void createFilterCollection(java.util.ArrayList<java.lang.Integer> spectrumIds,
java.util.ArrayList<java.lang.Integer> attributeIds)
createFilterCollection in interface SPECCHIOClientpublic Campaign getCampaign(int campaign_id) throws SPECCHIOClientException
getCampaign in interface SPECCHIOClientcampaign_id - the campaign identifierSPECCHIOClientExceptionpublic java.io.InputStream getCampaignExportInputStream(Campaign c) throws SPECCHIOWebClientException
getCampaignExportInputStream in interface SPECCHIOClientc - the campaign to be exportedSPECCHIOWebClientExceptionpublic campaign_node getCampaignNode(int campaign_id, java.lang.String order_by, boolean restrict_to_view) throws SPECCHIOWebClientException
getCampaignNode in interface SPECCHIOClientcampaign_id - the campaign identifierorder_by - the attribute by which to order the campaign's descendentsrestrict_to_view - show user's data onlySPECCHIOWebClientExceptionpublic Campaign[] getCampaigns(boolean load_metadata_details) throws SPECCHIOWebClientException
getCampaigns in interface SPECCHIOClientload_metadata_details - defines if additional detailed metadata should be loadedSPECCHIOWebClientExceptionpublic Campaign[] getCampaigns() throws SPECCHIOWebClientException
getCampaigns in interface SPECCHIOClientSPECCHIOWebClientExceptionpublic java.util.ArrayList<java.lang.Integer> getCalibrationIds(java.util.ArrayList<java.lang.Integer> spectrum_ids)
throws SPECCHIOWebClientException
getCalibrationIds in interface SPECCHIOClientspectrum_ids - the spectrum identifiersSPECCHIOWebClientExceptionpublic Instrument getCalibratedInstrument(int calibration_id) throws SPECCHIOClientException
getCalibratedInstrument in interface SPECCHIOClientcalibration_id - the calibration identifierSPECCHIOClientExceptionpublic CalibrationMetadata[] getCalibrationMetadataByCalibrationNumber(int instrument_id, int calibration_number) throws SPECCHIOClientException
getCalibrationMetadataByCalibrationNumber in interface SPECCHIOClientinstrument_id - the instrument_idcalibration_number - the calibration number is given in the Metadata field "Calibration Number"SPECCHIOClientExceptionpublic java.lang.String getCapability(java.lang.String capability)
throws SPECCHIOClientException
getCapability in interface SPECCHIOClientcapability - the capability nameSPECCHIOClientExceptionpublic java.util.List<spectral_node_object> getChildrenOfNode(spectral_node_object sn) throws SPECCHIOWebClientException
getChildrenOfNode in interface SPECCHIOClientsn - the nodeSPECCHIOWebClientExceptionpublic java.util.List<TaxonomyNodeObject> getChildrenOfTaxonomyNode(TaxonomyNodeObject tn) throws SPECCHIOWebClientException
getChildrenOfTaxonomyNode in interface SPECCHIOClienttn - the nodeSPECCHIOWebClientExceptionpublic Country[] getCountries() throws SPECCHIOWebClientException
getCountries in interface SPECCHIOClientSPECCHIOWebClientExceptionpublic database_node getDatabaseNode(java.lang.String order_by, boolean restrict_to_view) throws SPECCHIOWebClientException
getDatabaseNode in interface SPECCHIOClientorder_by - the attribute to order byrestrict_to_view - display the current user's data onlySPECCHIOWebClientExceptionpublic java.lang.Integer getDirectHierarchyId(int spectrum_id)
throws SPECCHIOClientException
getDirectHierarchyId in interface SPECCHIOClientspectrum_id - the identifier of the spectrumSPECCHIOClientExceptionpublic java.util.ArrayList<java.lang.Integer> getDirectHierarchyIds(java.util.ArrayList<java.lang.Integer> spectrum_ids)
throws SPECCHIOClientException
getDirectHierarchyIds in interface SPECCHIOClientspectrum_ids - the identifiers of the desired spectraSPECCHIOClientExceptionpublic java.util.ArrayList<MetaParameter> getDistinctValuesOfAttribute(int attribute_id)
getDistinctValuesOfAttribute in interface SPECCHIOClientattribute_id - id of the required attributepublic ConflictTable getEavMetadataConflicts(int metadata_level, java.util.ArrayList<java.lang.Integer> ids) throws SPECCHIOWebClientException
getEavMetadataConflicts in interface SPECCHIOClientmetadata_level - storage level identifierids - the primary entity identifiersSPECCHIOWebClientExceptionpublic EAVQueryConditionObject getEAVQueryConditionObject(attribute attr)
getEAVQueryConditionObject in interface SPECCHIOClientattr - attribute objectpublic java.lang.Integer getExistingMetaparameterCount(java.lang.Integer attribute_id,
java.util.ArrayList<java.lang.Integer> ids)
throws SPECCHIOClientException
getExistingMetaparameterCount in interface SPECCHIOClientattribute_id - id of the attributeids - spectrum idsSPECCHIOClientExceptionpublic int getFileFormatId(java.lang.String format)
throws SPECCHIOWebClientException
getFileFormatId in interface SPECCHIOClientformat - the file format nameSPECCHIOWebClientExceptionpublic Hierarchy getHierarchy(java.lang.Integer hierarchy_id) throws SPECCHIOWebClientException
getHierarchy in interface SPECCHIOClienthierarchy_id - the hierarchy_id identifying the required nodeSPECCHIOWebClientExceptionpublic int getHierarchyId(Campaign campaign, java.lang.String name, int parent_id) throws SPECCHIOWebClientException
getHierarchyId in interface SPECCHIOClientcampaign - the campaign in which the node is locatedname - the name of the nodeparent_id - the parent of the nodeSPECCHIOWebClientExceptionpublic java.util.ArrayList<java.lang.Integer> getHierarchyIdsOfSpectra(java.util.ArrayList<java.lang.Integer> spectrum_ids)
throws SPECCHIOClientException
getHierarchyIdsOfSpectra in interface SPECCHIOClientspectrum_ids - the identifiers of the desired spectraSPECCHIOClientExceptionpublic java.lang.String getHierarchyFilePath(int hierarchy_id)
throws SPECCHIOClientException
getHierarchyFilePath in interface SPECCHIOClienthierarchy_id - the identifier of the hierarchySPECCHIOClientException - the database could not accessedpublic java.lang.String getHierarchyName(int hierarchy_id)
throws SPECCHIOClientException
getHierarchyName in interface SPECCHIOClienthierarchy_id - the identifier of the hierarchySPECCHIOClientException - the database could not accessedpublic int getHierarchyParentId(int hierarchy_id)
throws SPECCHIOClientException
getHierarchyParentId in interface SPECCHIOClienthierarchy_id - the hierarchy_id identifying the required nodeSPECCHIOClientExceptionpublic Institute[] getInstitutes() throws SPECCHIOWebClientException
getInstitutes in interface SPECCHIOClientSPECCHIOWebClientExceptionpublic Instrument getInstrument(int instrument_id) throws SPECCHIOWebClientException
getInstrument in interface SPECCHIOClientinstrument_id - the instrument identifierSPECCHIOWebClientExceptionpublic Instrument getInstrument(Instrument instrument) throws SPECCHIOWebClientException
getInstrument in interface SPECCHIOClientinstrument - instanceSPECCHIOWebClientExceptionpublic java.util.ArrayList<java.lang.Integer> getInstrumentIds(java.util.ArrayList<java.lang.Integer> spectrum_ids)
throws SPECCHIOWebClientException
getInstrumentIds in interface SPECCHIOClientspectrum_ids - the spectrum identifiersSPECCHIOWebClientExceptionpublic CalibrationMetadata[] getInstrumentCalibrationMetadata(int instrument_id) throws SPECCHIOWebClientException
getInstrumentCalibrationMetadata in interface SPECCHIOClientinstrument_id - the instrument identifierSPECCHIOWebClientExceptionpublic InstrumentDescriptor[] getInstrumentDescriptors() throws SPECCHIOWebClientException
getInstrumentDescriptors in interface SPECCHIOClientSPECCHIOWebClientExceptionpublic Instrument getInstrumentForSpectralFile(SpectralFile spec_file) throws SPECCHIOClientException
getInstrumentForSpectralFile in interface SPECCHIOClientspec_file - the spectral fileSPECCHIOClientExceptionpublic PictureTable getInstrumentPictures(int instrument_id) throws SPECCHIOWebClientException
getInstrumentPictures in interface SPECCHIOClientinstrument_id - the instrument identifierSPECCHIOWebClientExceptionpublic User getLoggedInUser()
getLoggedInUser in interface SPECCHIOClientpublic java.util.ArrayList<java.lang.Integer> getMetadataCategoriesForApplicationDomain(int taxonomy_id)
throws SPECCHIOClientException
getMetadataCategoriesForApplicationDomain in interface SPECCHIOClienttaxonomy_id - the field nameSPECCHIOClientExceptionpublic ApplicationDomainCategories[] getMetadataCategoriesForApplicationDomains() throws SPECCHIOClientException
getMetadataCategoriesForApplicationDomains in interface SPECCHIOClientSPECCHIOClientExceptionpublic CategoryTable getMetadataCategoriesForIdAccess(java.lang.String field) throws SPECCHIOWebClientException, SPECCHIOClientException
getMetadataCategoriesForIdAccess in interface SPECCHIOClientfield - the field nameSPECCHIOClientExceptionSPECCHIOWebClientExceptionpublic java.util.Hashtable<java.lang.String,java.lang.Integer> getMetadataCategoriesForNameAccess(java.lang.String field)
throws SPECCHIOClientException
getMetadataCategoriesForNameAccess in interface SPECCHIOClientfield - the field nameSPECCHIOClientExceptionpublic ConflictTable getMetadataConflicts(java.util.ArrayList<java.lang.Integer> spectrum_ids, java.lang.String[] fields) throws SPECCHIOWebClientException
getMetadataConflicts in interface SPECCHIOClientspectrum_ids - the spectrum identifiersfields - the fields to checkSPECCHIOWebClientExceptionpublic MetaParameter getMetaparameter(java.lang.Integer id, java.lang.String attribute_name) throws SPECCHIOWebClientException
getMetaparameter in interface SPECCHIOClientid - spectrum idattribute_name - attribute nameSPECCHIOWebClientExceptionpublic java.util.ArrayList<MetaParameter> getMetaparameters(java.util.ArrayList<java.lang.Integer> ids, java.lang.String attribute_name) throws SPECCHIOWebClientException
getMetaparameters in interface SPECCHIOClientids - spectrum idsattribute_name - attribute nameSPECCHIOWebClientExceptionpublic void calculateSunAngle(java.util.ArrayList<java.lang.Integer> spectrumIds,
SPECCHIOClient client)
throws SPECCHIOClientException
SPECCHIOClientcalculateSunAngle in interface SPECCHIOClientspectrumIds - spectrum idsSPECCHIOClientExceptionpublic java.util.ArrayList<MetaParameter> getMetaparameters(java.util.ArrayList<java.lang.Integer> ids, java.lang.String attribute_name, java.lang.Boolean distinct) throws SPECCHIOWebClientException
getMetaparameters in interface SPECCHIOClientids - spectrum idsattribute_name - attribute namedistinct - defines if distinct values should be returned or repeated values for the given spectrum ids: distinct = false means parameters for all spectra, even if redundantSPECCHIOWebClientExceptionpublic java.util.ArrayList<java.util.ArrayList<MetaParameter>> getMetaparameters(java.util.ArrayList<java.lang.Integer> ids, java.util.ArrayList<java.lang.Integer> attribute_ids) throws SPECCHIOWebClientException
getMetaparameters in interface SPECCHIOClientids - spectrum idsattribute_ids - list of attribute idsSPECCHIOWebClientExceptionpublic MetaparameterStatistics getMetaparameterStatistics(java.util.ArrayList<java.lang.Integer> ids, java.lang.String attribute_name) throws SPECCHIOWebClientException
getMetaparameterStatistics in interface SPECCHIOClientids - spectrum idsattribute_name - attribute nameSPECCHIOWebClientExceptionpublic MatlabAdaptedArrayList<java.lang.Object> getMetaparameterValues(java.util.ArrayList<java.lang.Integer> ids, java.lang.String attribute_name) throws SPECCHIOWebClientException
getMetaparameterValues in interface SPECCHIOClientids - spectrum idsattribute_name - attribute nameSPECCHIOWebClientExceptionpublic MatlabAdaptedArrayList<java.lang.Object> getMetaparameterValues(java.util.ArrayList<java.lang.Integer> ids, java.lang.String attribute_name, java.lang.Boolean distinct) throws SPECCHIOWebClientException
getMetaparameterValues in interface SPECCHIOClientids - spectrum idsattribute_name - attribute namedistinct - defines if distinct values should be returned or repeated values for the given spectrum idsSPECCHIOWebClientExceptionpublic MeasurementUnit getMeasurementUnitFromCoding(int coding) throws SPECCHIOWebClientException
getMeasurementUnitFromCoding in interface SPECCHIOClientcoding - coding based on ASD codingSPECCHIOWebClientExceptionpublic java.util.ArrayList<java.lang.Integer> getNewestSpectra(int number_of_spectra)
throws SPECCHIOWebClientException
getNewestSpectra in interface SPECCHIOClientnumber_of_spectra - SPECCHIOWebClientExceptionpublic java.lang.String[] getPoliciesForSpace(Space space) throws SPECCHIOWebClientException
getPoliciesForSpace in interface SPECCHIOClientspace - the spaceSPECCHIOWebClientExceptionpublic Query getQueryObject() throws SPECCHIOClientException
getQueryObject in interface SPECCHIOClientSPECCHIOClientExceptionpublic Reference getReference(int reference_id) throws SPECCHIOWebClientException
getReference in interface SPECCHIOClientreference_id - the reference identifierSPECCHIOWebClientExceptionpublic ReferenceBrand[] getReferenceBrands() throws SPECCHIOWebClientException
getReferenceBrands in interface SPECCHIOClientSPECCHIOWebClientExceptionpublic CalibrationMetadata[] getReferenceCalibrationMetadata(int reference_id) throws SPECCHIOWebClientException
getReferenceCalibrationMetadata in interface SPECCHIOClientreference_id - the reference identifierSPECCHIOWebClientExceptionpublic ReferenceDescriptor[] getReferenceDescriptors() throws SPECCHIOWebClientException
getReferenceDescriptors in interface SPECCHIOClientSPECCHIOWebClientExceptionpublic PictureTable getReferencePictures(int reference_id) throws SPECCHIOWebClientException
getReferencePictures in interface SPECCHIOClientreference_id - the reference identifierSPECCHIOWebClientExceptionpublic ReferenceSpaceStruct getReferenceSpace(java.util.ArrayList<java.lang.Integer> input_ids) throws SPECCHIOWebClientException
getReferenceSpace in interface SPECCHIOClientinput_ids - SPECCHIOWebClientExceptionpublic SPECCHIOServerDescriptor getServerDescriptor()
getServerDescriptor in interface SPECCHIOClientpublic Sensor[] getSensors() throws SPECCHIOWebClientException
getSensors in interface SPECCHIOClientSPECCHIOWebClientExceptionpublic GonioSamplingPoints getSensorSamplingGeometry(SpectralSpace space) throws SPECCHIOWebClientException
getSensorSamplingGeometry in interface SPECCHIOClientspace - holds spectra ids of which geometry is to retrievedSPECCHIOWebClientExceptionpublic int getSubHierarchyId(Campaign campaign, java.lang.String name, int parent_id) throws SPECCHIOClientException
getSubHierarchyId in interface SPECCHIOClientcampaign - the campaign into which to insert the hierarchyparent_id - the identifier of the the parent of the hierarchyname - the name of the desired hierarchySPECCHIOClientExceptionpublic int getSubHierarchyId(java.lang.String name,
int parent_id)
throws SPECCHIOClientException
getSubHierarchyId in interface SPECCHIOClientname - the name of the desired hierarchyparent_id - the identifier of the the parent of the hierarchySPECCHIOClientExceptionpublic Space[] getSpaces(java.util.ArrayList<java.lang.Integer> ids, boolean split_spaces_by_sensor, boolean split_spaces_by_sensor_and_unit, java.lang.String order_by) throws SPECCHIOWebClientException
getSpaces in interface SPECCHIOClientids - the spectrum identifierssplit_spaces_by_sensor - split_spaces_by_sensor_and_unit - order_by - the field to order bySPECCHIOWebClientExceptionpublic Space[] getSpaces(java.util.ArrayList<java.lang.Integer> ids, java.lang.String order_by) throws SPECCHIOWebClientException
getSpaces in interface SPECCHIOClientids - the spectrum identifiersorder_by - the field to order bySPECCHIOWebClientExceptionpublic Spectrum getSpectrum(int spectrum_id, boolean load_metadata) throws SPECCHIOWebClientException
getSpectrum in interface SPECCHIOClientspectrum_id - the spectrum identifierload_metadata - load all spectrum metadata?SPECCHIOWebClientExceptionpublic Space[] getSpectrumCalibrationSpaces(java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOWebClientException
getSpectrumCalibrationSpaces in interface SPECCHIOClientspectrum_ids - the spectrum identifiersSPECCHIOWebClientExceptionpublic SpectrumFactorTable getSpectrumFactorTable(java.util.ArrayList<java.lang.Integer> spectrum_ids_1, java.util.ArrayList<java.lang.Integer> spectrum_ids_2) throws SPECCHIOWebClientException
getSpectrumFactorTable in interface SPECCHIOClientspectrum_ids_1 - spectrum_ids_2 - SPECCHIOWebClientExceptionpublic int getSpectrumCountInDB()
throws SPECCHIOClientException
getSpectrumCountInDB in interface SPECCHIOClientSPECCHIOClientExceptionpublic java.util.List<java.lang.Integer> getSpectrumIdsForNode(spectral_node_object sn) throws SPECCHIOWebClientException
getSpectrumIdsForNode in interface SPECCHIOClientsn - the nodeSPECCHIOWebClientExceptionpublic java.util.ArrayList<java.lang.Integer> getSpectrumIdsMatchingFullTextSearch(java.lang.String search_str)
throws SPECCHIOClientException
getSpectrumIdsMatchingFullTextSearch in interface SPECCHIOClientsearch_str - the search stringSPECCHIOClientExceptionpublic java.util.ArrayList<java.lang.Integer> getSpectrumIdsMatchingFullTextSearchUsingHierarchy(java.lang.String search_str)
throws SPECCHIOClientException
getSpectrumIdsMatchingFullTextSearchUsingHierarchy in interface SPECCHIOClientsearch_str - the search stringSPECCHIOClientExceptionpublic Space[] getUncertaintySpaces(java.util.ArrayList<java.lang.Integer> spectrum_ids, java.util.ArrayList<java.lang.Integer> uncertainty_set_ids, java.lang.String order_by) throws SPECCHIOWebClientException
getUncertaintySpaces in interface SPECCHIOClientspectrum_ids - the spectrum identifiersuncertainty_set_ids - order_by - the field to order bySPECCHIOWebClientExceptionpublic java.util.ArrayList<java.lang.Integer> getUnprocessedHierarchies(java.lang.String campaignId)
throws SPECCHIOClientException
getUnprocessedHierarchies in interface SPECCHIOClientcampaignId - the search stringSPECCHIOClientExceptionpublic java.util.ArrayList<java.lang.Integer> getIrradiance(java.lang.String campaignId)
throws SPECCHIOClientException
SPECCHIOClientgetIrradiance in interface SPECCHIOClientcampaignId - the search stringSPECCHIOClientExceptionpublic java.util.ArrayList<java.lang.Integer> getSpectrumIdsMatchingQuery(Query query) throws SPECCHIOWebClientException
getSpectrumIdsMatchingQuery in interface SPECCHIOClientquery - the querySPECCHIOWebClientExceptionpublic java.util.ArrayList<java.lang.Integer> getDirectSpectrumIdsOfHierarchy(int hierarchy_id)
throws SPECCHIOClientException
getDirectSpectrumIdsOfHierarchy in interface SPECCHIOClienthierarchy_id - the hierarchy_idSPECCHIOClientExceptionpublic PictureTable getSpectrumPictures(int spectrum_id) throws SPECCHIOWebClientException
getSpectrumPictures in interface SPECCHIOClientspectrum_id - the spectrum identifierSPECCHIOWebClientExceptionpublic int getSpectrumQueryCount(Query query) throws SPECCHIOWebClientException
getSpectrumQueryCount in interface SPECCHIOClientquery - the querySPECCHIOWebClientExceptionpublic SpectrumDataLink[] getTargetReferenceLinks(java.util.ArrayList<java.lang.Integer> target_ids, java.util.ArrayList<java.lang.Integer> reference_ids) throws SPECCHIOClientException
getTargetReferenceLinks in interface SPECCHIOClienttarget_ids - the identifiers of the target spectra (null or empty to match all targets)reference_ids - the identifiers of the reference spectra (null or empty to match all references)SPECCHIOClientExceptionpublic TaxonomyNodeObject getTaxonomyRootNode(int attribute_id) throws SPECCHIOWebClientException
getTaxonomyRootNode in interface SPECCHIOClientattribute_id - id of the attribute that defines the taxonomySPECCHIOWebClientExceptionpublic TaxonomyNodeObject getTaxonomyNode(int taxonomy_id) throws SPECCHIOWebClientException
getTaxonomyNode in interface SPECCHIOClienttaxonomy_id - taxonomy_id that defines the taxonomySPECCHIOWebClientExceptionpublic int getTaxonomyId(int attribute_id,
java.lang.String name)
throws SPECCHIOClientException
getTaxonomyId in interface SPECCHIOClientattribute_id - attribute_id that defines the taxonomyname - name of the node of which the id is requiredSPECCHIOClientExceptionpublic java.util.Hashtable<java.lang.String,java.lang.Integer> getTaxonomyHash(int attribute_id)
throws SPECCHIOClientException
getTaxonomyHash in interface SPECCHIOClientattribute_id - attribute_id that defines the taxonomySPECCHIOClientExceptionpublic java.util.Hashtable<java.lang.String,java.lang.Integer> getTaxonomyHash(attribute attribute) throws SPECCHIOClientException
getTaxonomyHash in interface SPECCHIOClientattribute - attribute that defines the taxonomySPECCHIOClientExceptionpublic java.util.Hashtable<java.lang.Integer,java.lang.String> getTaxonomyIdToNameHash(int attribute_id)
throws SPECCHIOClientException
getTaxonomyIdToNameHash in interface SPECCHIOClientattribute_id - attribute_id that defines the taxonomySPECCHIOClientExceptionpublic UncertaintySet getUncertaintySet(int uncertainty_set_id) throws SPECCHIOClientException
getUncertaintySet in interface SPECCHIOClientuncertainty_set_id - the uncertainty set id of the desired uncertainty setSPECCHIOClientExceptionpublic java.util.ArrayList<java.lang.Integer> getUncertaintySetIds(int spectrum_id)
throws SPECCHIOClientException
getUncertaintySetIds in interface SPECCHIOClientspectrum_id - the desired spectrum idSPECCHIOClientExceptionpublic java.util.ArrayList<UncertaintySetSpectraList> getUncertaintySetSpectraLists(java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOClientException
getUncertaintySetSpectraLists in interface SPECCHIOClientspectrum_ids - SPECCHIOClientExceptionpublic void importCampaign(int user_id,
java.io.InputStream is)
throws SPECCHIOWebClientException
importCampaign in interface SPECCHIOClientuser_id - the identifier of the user to whom the campaign will belongis - the input stream from which to read the campaignSPECCHIOWebClientExceptionpublic void importCampaign(int user_id,
java.lang.String server_filepath)
throws SPECCHIOWebClientException
importCampaign in interface SPECCHIOClientuser_id - the identifier of the user to whom the campaign will belongserver_filepath - the server filepath from which to read the campaignSPECCHIOWebClientExceptionpublic User[] getUsers() throws SPECCHIOWebClientException
getUsers in interface SPECCHIOClientSPECCHIOClientExceptionSPECCHIOWebClientExceptionpublic User[] getUsersWithStatistics() throws SPECCHIOWebClientException
getUsersWithStatistics in interface SPECCHIOClientSPECCHIOClientExceptionSPECCHIOWebClientExceptionpublic int insertCampaign(Campaign campaign) throws SPECCHIOWebClientException
insertCampaign in interface SPECCHIOClientcampaign - the campaignSPECCHIOWebClientExceptionpublic int insertHierarchy(Campaign campaign, java.lang.String name, int parent_id) throws SPECCHIOWebClientException
insertHierarchy in interface SPECCHIOClientcampaign - the campaign into which to insert the hierarchyname - the name of the new hierarchyparent_id - the identifier of the parent of the new hierarchySPECCHIOWebClientExceptionpublic int insertInstitute(Institute institute) throws SPECCHIOClientException
insertInstitute in interface SPECCHIOClientinstitute - an Institute object describing the new instituteSPECCHIOClientExceptionpublic void insertInstrumentCalibration(Calibration c) throws SPECCHIOWebClientException
insertInstrumentCalibration in interface SPECCHIOClientc - the calibration dataSPECCHIOWebClientExceptionpublic AdjacencyMatrix getAdjacencyMatrix(int uncertainty_set_id) throws SPECCHIOWebClientException
getAdjacencyMatrix in interface SPECCHIOClientuncertainty_set_id - SPECCHIOWebClientExceptionpublic java.lang.String getEdgeValue(int edge_id)
throws SPECCHIOWebClientException
getEdgeValue in interface SPECCHIOClientedge_id - SPECCHIOWebClientExceptionpublic UncertaintyNode getUncertaintyInstrumentNode(int instrument_node_id) throws SPECCHIOWebClientException
getUncertaintyInstrumentNode in interface SPECCHIOClientinstrument_node_id - instrument node idSPECCHIOWebClientExceptionpublic UncertaintyNode[] getUncertaintyNodeComponents(int uncertainty_node_id) throws SPECCHIOClientException
getUncertaintyNodeComponents in interface SPECCHIOClientuncertainty_node_id - SPECCHIOClientExceptionpublic UncertaintyNode[] getUncertaintyNodeSubSets(int uncertainty_node_id) throws SPECCHIOClientException
getUncertaintyNodeSubSets in interface SPECCHIOClientuncertainty_node_id - SPECCHIOClientExceptionpublic int insertUncertaintyInstrumentNode(UncertaintyInstrumentNode instrument_node) throws SPECCHIOClientException
insertUncertaintyInstrumentNode in interface SPECCHIOClientinstrument_node - InstrumentNode objectSPECCHIOClientExceptionpublic UncertaintyNode getUncertaintySpectrumNode(int spectrum_node_id) throws SPECCHIOWebClientException
getUncertaintySpectrumNode in interface SPECCHIOClientspectrum_node_id - spectrum node idSPECCHIOWebClientExceptionpublic void insertInstrumentPicture(Picture picture) throws SPECCHIOWebClientException
insertInstrumentPicture in interface SPECCHIOClientpicture - the pictureSPECCHIOWebClientExceptionpublic void insertReferenceCalibration(Calibration c) throws SPECCHIOWebClientException
insertReferenceCalibration in interface SPECCHIOClientc - the calibration dataSPECCHIOWebClientExceptionpublic void insertReferencePicture(Picture picture) throws SPECCHIOWebClientException
insertReferencePicture in interface SPECCHIOClientpicture - the pictureSPECCHIOWebClientExceptionpublic SpectralFileInsertResult insertSpectralFile(SpectralFile spec_file) throws SPECCHIOClientException
insertSpectralFile in interface SPECCHIOClientspec_file - the fileSPECCHIOClientExceptionpublic int insertClosestTargetReferenceLink(int target_id,
java.util.ArrayList<java.lang.Integer> reference_ids)
throws SPECCHIOClientException
insertClosestTargetReferenceLink in interface SPECCHIOClienttarget_id - the identifier of the target nodereference_ids - the identifiers of the reference nodesSPECCHIOClientExceptionpublic int insertTargetReferenceLinks(int target_id,
java.util.ArrayList<java.lang.Integer> reference_ids)
throws SPECCHIOClientException
insertTargetReferenceLinks in interface SPECCHIOClienttarget_id - the identifier of the target nodereference_ids - the identifiers of the reference nodesSPECCHIOClientExceptionpublic int insertSpectrumSubset(UncertaintySpectrumNode uc_spectrum_node) throws SPECCHIOClientException
insertSpectrumSubset in interface SPECCHIOClientuc_spectrum_node - a spectrum nodeSPECCHIOClientExceptionpublic int insertUncertaintyNode(UncertaintySpectrumNode uc_spectrum_node, int uc_set_id) throws SPECCHIOClientException
insertUncertaintyNode in interface SPECCHIOClientuc_spectrum_node - a uc_nodeSPECCHIOClientExceptionpublic int insertUncertaintyNode(UncertaintyInstrumentNode instrument_node, int uc_set_id) throws SPECCHIOClientException
insertUncertaintyNode in interface SPECCHIOClientinstrument_node - UncertaintyInstrumentNode objectSPECCHIOClientExceptionpublic int insertNewUncertaintySet(UncertaintySet uc_set) throws SPECCHIOClientException
insertNewUncertaintySet in interface SPECCHIOClientuc_set - an uncertainty set with an uncertainty_set_descriptionSPECCHIOClientExceptionpublic boolean instrumentCalibrationExists(Calibration cal) throws SPECCHIOWebClientException
instrumentCalibrationExists in interface SPECCHIOClientcal - calibration object to checkSPECCHIOWebClientExceptionpublic boolean isLoggedInWithRole(java.lang.String roleName)
throws SPECCHIOWebClientException
isLoggedInWithRole in interface SPECCHIOClientroleName - the role to be testedSPECCHIOWebClientExceptionpublic MetaParameter loadMetaparameter(int metaparameter_id) throws SPECCHIOClientException
loadMetaparameter in interface SPECCHIOClientmetaparameter_id - the metaparameter identifier for which to retrieve metadataSPECCHIOClientExceptionpublic void loadSensor(java.io.InputStream is)
throws SPECCHIOWebClientException
loadSensor in interface SPECCHIOClientis - the input streamSPECCHIOWebClientExceptionpublic Space loadSpace(Space space) throws SPECCHIOWebClientException
loadSpace in interface SPECCHIOClientspace - a partially-filled space objectSPECCHIOWebClientExceptionpublic boolean moveHierarchy(int source_hierarchy_id,
int target_parent_hierarchy)
throws SPECCHIOClientException
moveHierarchy in interface SPECCHIOClientsource_hierarchy_id - hierarchy id of the hierarchy to movetarget_parent_hierarchy - hierarchy id of the new parent hierarchy
return true if move was doneSPECCHIOClientExceptionpublic void refreshMetadataCategory(java.lang.String field)
refreshMetadataCategory in interface SPECCHIOClientfield - namepublic void removeEavMetadata(MetaParameter mp) throws SPECCHIOWebClientException
removeEavMetadata in interface SPECCHIOClientmp - the meta-parameter to be removedSPECCHIOWebClientExceptionpublic void removeEavMetadata(MetaParameter mp, java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOWebClientException
removeEavMetadata in interface SPECCHIOClientmp - the meta-parameter to be removedspectrum_ids - the spectrum identifiersSPECCHIOWebClientExceptionpublic void removeEavMetadata(attribute attr, java.util.ArrayList<java.lang.Integer> spectrum_ids, int metadata_level) throws SPECCHIOClientException
removeEavMetadata in interface SPECCHIOClientattr - the attribute to be removedspectrum_ids - the spectrum identifiersmetadata_level - storage level identifierSPECCHIOClientExceptionpublic boolean renameHierarchy(int hierarchy_id,
java.lang.String name)
throws SPECCHIOClientException
renameHierarchy in interface SPECCHIOClienthierarchy_id - id of the hierarchy to be renamedname - new name of the hierarchySPECCHIOClientExceptionpublic void setProgressReport(ProgressReportInterface pr)
setProgressReport in interface SPECCHIOClientpr - the progress report; use null to report no progresspublic void removeSpectralNode(spectral_node_object sn) throws SPECCHIOWebClientException
removeSpectralNode in interface SPECCHIOClientsn - the node to be removedSPECCHIOWebClientExceptionpublic void removeSpectralNodes(java.util.ArrayList<spectral_node_object> sns) throws SPECCHIOWebClientException
removeSpectralNodes in interface SPECCHIOClientsns - list of nodes to be removedSPECCHIOWebClientExceptionpublic AVMatchingListCollection sortByAttributes(java.util.ArrayList<java.lang.Integer> spectrum_ids, java.lang.String... attribute_names) throws SPECCHIOClientException
sortByAttributes in interface SPECCHIOClientspectrum_ids - list of ids to sortattribute_names - attribute names to sort bySPECCHIOClientExceptionpublic boolean spectralFileExists(SpectralFile spec_file) throws SPECCHIOWebClientException
spectralFileExists in interface SPECCHIOClientspec_file - spectral file object to checkSPECCHIOWebClientExceptionpublic boolean[] spectralFilesExist(SpectralFiles spec_files) throws SPECCHIOClientException
spectralFilesExist in interface SPECCHIOClientspec_files - container with arraylist of spectral files to checkSPECCHIOClientExceptionpublic java.lang.String submitRDACollection(RDACollectionDescriptor collection_d) throws SPECCHIOWebClientException
submitRDACollection in interface SPECCHIOClientcollection_d - the collection descriptorSPECCHIOClientException - could not contact the serverSPECCHIOWebClientExceptionpublic void updateCampaign(Campaign campaign) throws SPECCHIOClientException
updateCampaign in interface SPECCHIOClientcampaign - the new campaign dataSPECCHIOClientExceptionpublic int updateEavMetadata(MetaParameter mp, java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOWebClientException
updateEavMetadata in interface SPECCHIOClientmp - the meta-parameter to updatespectrum_ids - the identifiers for which to update the parameterSPECCHIOWebClientExceptionpublic int updateEavMetadata(MetaParameter mp, java.util.ArrayList<java.lang.Integer> spectrum_ids, MetaParameter mp_old) throws SPECCHIOWebClientException
updateEavMetadata in interface SPECCHIOClientmp - the meta-parameter to updatespectrum_ids - the identifiers for which to update the parametermp_old - the old meta-parameterSPECCHIOWebClientExceptionpublic int updateEavMetadataAnnotation(MetaParameter mp, java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOWebClientException
updateEavMetadataAnnotation in interface SPECCHIOClientmp - the meta-parameter to updatespectrum_ids - the identifiers for which to update the parameterSPECCHIOWebClientExceptionpublic int updateOrInsertEavMetadata(MetaParameter mp, java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOWebClientException
updateOrInsertEavMetadata in interface SPECCHIOClientmp - the meta-parameter to update or insertspectrum_ids - the identifiers for which to update or insert the parameterSPECCHIOWebClientExceptionpublic int updateOrInsertEavMetadata(MetaParameter mp, int spectrum_id) throws SPECCHIOWebClientException
updateOrInsertEavMetadata in interface SPECCHIOClientmp - the meta-parameter to update or insertspectrum_id - the identifiers for which to update or insert the parameterSPECCHIOWebClientExceptionpublic int updateOrInsertEavMetadata(java.util.ArrayList<Metadata> md, java.util.ArrayList<java.lang.Integer> ids, int campaignId) throws SPECCHIOWebClientException
updateOrInsertEavMetadata in interface SPECCHIOClientmd - the meta-parameter to update or insertSPECCHIOWebClientExceptionpublic void updateInstrument(Instrument instrument) throws SPECCHIOWebClientException
updateInstrument in interface SPECCHIOClientinstrument - the instrumentSPECCHIOWebClientExceptionpublic void updateInstrumentCalibrationMetadata(CalibrationMetadata cm) throws SPECCHIOWebClientException
updateInstrumentCalibrationMetadata in interface SPECCHIOClientcm - the calibration metadataSPECCHIOWebClientExceptionpublic void updateInstrumentPicture(Picture picture) throws SPECCHIOClientException
updateInstrumentPicture in interface SPECCHIOClientpicture - the pictureSPECCHIOClientExceptionpublic void updateReference(Reference reference) throws SPECCHIOWebClientException
updateReference in interface SPECCHIOClientreference - the referenceSPECCHIOWebClientExceptionpublic void updateReferenceCalibrationMetadata(CalibrationMetadata cm) throws SPECCHIOWebClientException
updateReferenceCalibrationMetadata in interface SPECCHIOClientcm - the calibration metadataSPECCHIOWebClientExceptionpublic void updateReferencePicture(Picture picture) throws SPECCHIOClientException
updateReferencePicture in interface SPECCHIOClientpicture - the pictureSPECCHIOClientExceptionpublic void updateSpectraMetadata(java.util.ArrayList<java.lang.Integer> ids,
java.lang.String field,
int id)
throws SPECCHIOWebClientException
updateSpectraMetadata in interface SPECCHIOClientids - the spectrum identifiersfield - the name of the field to be updatedid - SPECCHIOWebClientExceptionpublic void updateSpectrumVector(int spectrum_id,
float[] vector)
throws SPECCHIOClientException
updateSpectrumVector in interface SPECCHIOClientspectrum_id - the spectrum identifiervector - new spectral dataSPECCHIOClientExceptionpublic void updateSpectrumVectors(java.util.HashMap<java.lang.Integer,double[]> updateMap)
throws SPECCHIOClientException
updateSpectrumVectors in interface SPECCHIOClientupdateMap - a map containing the spectrum_id as key and the vector as valueSPECCHIOClientExceptionpublic void updateUser(User newUser) throws SPECCHIOClientException
updateUser in interface SPECCHIOClientnewUser - the user dataSPECCHIOClientException