public class SPECCHIOClientCache extends java.lang.Object implements SPECCHIOClient
| Constructor and Description |
|---|
SPECCHIOClientCache(SPECCHIOClient client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateSunAngle(java.util.ArrayList<java.lang.Integer> spectrumIds,
SPECCHIOClient client)
Update the information about a user.
|
void |
clearMetaparameterRedundancyList()
Clears the known metaparameter list held by the server for this user
|
void |
close()
Close this client
|
void |
connect()
Connect to the server.
|
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 target-reference links from the database.
|
void |
disconnect()
Disconnect from the server.
|
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 a given 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 ids and names of all 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 the 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.
|
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 an 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 an 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.
|
UncertaintyNode |
getUncertaintySpectrumNode(int spectrum_node_id)
Get spectrum node for a 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 a new blank 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 uc_instrument_node,
int uc_set_id)
Insert an uncertainty 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 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.
|
Space |
loadSpace(Space space,
int band)
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 path is accessible.
|
void |
setProgressReport(ProgressReportInterface pr)
Set the progress report interface to which progress made by this
client will be reported.
|
void |
setServerDescriptor(SPECCHIOServerDescriptor serverDescriptor) |
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 user)
Update the information about a user.
|
public SPECCHIOClientCache(SPECCHIOClient client)
client - the client object to be cachedpublic void connect()
throws SPECCHIOClientException
connect in interface SPECCHIOClientSPECCHIOClientException - could not log inpublic 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 SPECCHIOClientException
createInstrument in interface SPECCHIOClientname - the name of the new instrumentSPECCHIOClientExceptionpublic void createReference(java.lang.String name)
throws SPECCHIOClientException
createReference in interface SPECCHIOClientname - the name of the new referenceSPECCHIOClientExceptionpublic 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 SPECCHIOClientException
deleteCalibration in interface SPECCHIOClientcalibration_id - the calibration identifierSPECCHIOClientExceptionpublic void deleteInstrument(int instrument_id)
throws SPECCHIOClientException
deleteInstrument in interface SPECCHIOClientinstrument_id - the instrument identifierSPECCHIOClientExceptionpublic void deleteInstrumentPicture(int picture_id)
throws SPECCHIOClientException
deleteInstrumentPicture in interface SPECCHIOClientpicture_id - the picture identifierSPECCHIOClientExceptionpublic void deleteReference(int reference_id)
throws SPECCHIOClientException
deleteReference in interface SPECCHIOClientreference_id - the reference identifierSPECCHIOClientExceptionpublic void deleteReferencePicture(int picture_id)
throws SPECCHIOClientException
deleteReferencePicture in interface SPECCHIOClientpicture_id - the picture identifierSPECCHIOClientExceptionpublic int deleteTargetReferenceLinks(int eav_id)
throws SPECCHIOClientException
deleteTargetReferenceLinks in interface SPECCHIOClienteav_id - the eav_id identifierSPECCHIOClientExceptionpublic void disconnect()
throws SPECCHIOClientException
disconnect in interface SPECCHIOClientSPECCHIOClientExceptionpublic 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 SPECCHIOClientException
getAttributesForCategory in interface SPECCHIOClientcategory - the category nameSPECCHIOClientExceptionpublic 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 Campaign getCampaign(int campaign_id) throws SPECCHIOClientException
getCampaign in interface SPECCHIOClientcampaign_id - the campaign identifierSPECCHIOClientExceptionpublic 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 java.io.InputStream getCampaignExportInputStream(Campaign c) throws SPECCHIOClientException
getCampaignExportInputStream in interface SPECCHIOClientc - the campaign to be exportedSPECCHIOClientExceptionpublic campaign_node getCampaignNode(int campaign_id, java.lang.String order_by, boolean restrict_to_view) throws SPECCHIOClientException
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 onlySPECCHIOClientExceptionpublic Campaign[] getCampaigns() throws SPECCHIOClientException
getCampaigns in interface SPECCHIOClientSPECCHIOClientExceptionpublic Campaign[] getCampaigns(boolean load_metadata_details) throws SPECCHIOWebClientException
getCampaigns in interface SPECCHIOClientload_metadata_details - defines if additional detailed metadata should be loadedSPECCHIOWebClientExceptionpublic 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 SPECCHIOClientException
getChildrenOfNode in interface SPECCHIOClientsn - the nodeSPECCHIOClientExceptionpublic java.util.List<TaxonomyNodeObject> getChildrenOfTaxonomyNode(TaxonomyNodeObject tn) throws SPECCHIOClientException
getChildrenOfTaxonomyNode in interface SPECCHIOClienttn - the nodeSPECCHIOClientExceptionpublic Country[] getCountries() throws SPECCHIOClientException
getCountries in interface SPECCHIOClientSPECCHIOClientExceptionpublic database_node getDatabaseNode(java.lang.String order_by, boolean restrict_to_view) throws SPECCHIOClientException
getDatabaseNode in interface SPECCHIOClientorder_by - the attribute to order byrestrict_to_view - display the current user's data onlySPECCHIOClientExceptionpublic 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) throws SPECCHIOClientException
getDistinctValuesOfAttribute in interface SPECCHIOClientattribute_id - id of the required attributeSPECCHIOClientExceptionpublic ConflictTable getEavMetadataConflicts(int metadata_level, java.util.ArrayList<java.lang.Integer> ids) throws SPECCHIOClientException
getEavMetadataConflicts in interface SPECCHIOClientmetadata_level - storage level identifierids - the primary entity identifiersSPECCHIOClientExceptionpublic 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 SPECCHIOClientException
getFileFormatId in interface SPECCHIOClientformat - the file format nameSPECCHIOClientExceptionpublic 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 SPECCHIOClientException
getHierarchyId in interface SPECCHIOClientcampaign - the campaign in which the node is locatedname - the name of the nodeparent_id - the parent of the nodeSPECCHIOClientExceptionpublic 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 int getHierarchyParentId(int hierarchy_id)
throws SPECCHIOClientException
getHierarchyParentId in interface SPECCHIOClienthierarchy_id - the hierarchy_id identifying the required nodeSPECCHIOClientExceptionpublic 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 Institute[] getInstitutes() throws SPECCHIOClientException
getInstitutes in interface SPECCHIOClientSPECCHIOClientExceptionpublic Instrument getInstrument(int instrument_id) throws SPECCHIOClientException
getInstrument in interface SPECCHIOClientinstrument_id - the instrument identifierSPECCHIOClientExceptionpublic Instrument getInstrument(Instrument instrument) throws SPECCHIOWebClientException
getInstrument in interface SPECCHIOClientinstrument - instanceSPECCHIOWebClientExceptionpublic CalibrationMetadata[] getInstrumentCalibrationMetadata(int instrument_id) throws SPECCHIOClientException
getInstrumentCalibrationMetadata in interface SPECCHIOClientinstrument_id - the instrument identifierSPECCHIOClientExceptionpublic 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 InstrumentDescriptor[] getInstrumentDescriptors() throws SPECCHIOClientException
getInstrumentDescriptors in interface SPECCHIOClientSPECCHIOClientExceptionpublic Instrument getInstrumentForSpectralFile(SpectralFile spec_file) throws SPECCHIOClientException
getInstrumentForSpectralFile in interface SPECCHIOClientspec_file - the spectral fileSPECCHIOClientExceptionpublic PictureTable getInstrumentPictures(int instrument_id) throws SPECCHIOClientException
getInstrumentPictures in interface SPECCHIOClientinstrument_id - the instrument identifierSPECCHIOClientExceptionpublic 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 SPECCHIOClientException
getMetadataCategoriesForIdAccess in interface SPECCHIOClientfield - the field nameSPECCHIOClientExceptionpublic java.util.Hashtable<java.lang.String,java.lang.Integer> getMetadataCategoriesForNameAccess(java.lang.String field)
throws SPECCHIOClientException
getMetadataCategoriesForNameAccess in interface SPECCHIOClientfield - the field nameSPECCHIOClientExceptionpublic 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 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 ConflictTable getMetadataConflicts(java.util.ArrayList<java.lang.Integer> spectrum_ids, java.lang.String[] fields) throws SPECCHIOClientException
getMetadataConflicts in interface SPECCHIOClientspectrum_ids - the spectrum identifiersfields - the fields to checkSPECCHIOClientExceptionpublic 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 SPECCHIOClientException
getPoliciesForSpace in interface SPECCHIOClientspace - the spaceSPECCHIOClientExceptionpublic Query getQueryObject() throws SPECCHIOClientException
getQueryObject in interface SPECCHIOClientSPECCHIOClientExceptionpublic Reference getReference(int reference_id) throws SPECCHIOClientException
getReference in interface SPECCHIOClientreference_id - the reference identifierSPECCHIOClientExceptionpublic CalibrationMetadata[] getReferenceCalibrationMetadata(int reference_id) throws SPECCHIOClientException
getReferenceCalibrationMetadata in interface SPECCHIOClientreference_id - the reference identifierSPECCHIOClientExceptionpublic ReferenceDescriptor[] getReferenceDescriptors() throws SPECCHIOClientException
getReferenceDescriptors in interface SPECCHIOClientSPECCHIOClientExceptionpublic ReferenceBrand[] getReferenceBrands() throws SPECCHIOClientException
getReferenceBrands in interface SPECCHIOClientSPECCHIOClientExceptionpublic PictureTable getReferencePictures(int reference_id) throws SPECCHIOClientException
getReferencePictures in interface SPECCHIOClientreference_id - the reference identifierSPECCHIOClientExceptionpublic ReferenceSpaceStruct getReferenceSpace(java.util.ArrayList<java.lang.Integer> input_ids) throws SPECCHIOClientException
getReferenceSpace in interface SPECCHIOClientinput_ids - SPECCHIOClientExceptionpublic SPECCHIOServerDescriptor getServerDescriptor()
getServerDescriptor in interface SPECCHIOClientpublic void setServerDescriptor(SPECCHIOServerDescriptor serverDescriptor)
public Sensor[] getSensors() throws SPECCHIOClientException
getSensors in interface SPECCHIOClientSPECCHIOClientExceptionpublic GonioSamplingPoints getSensorSamplingGeometry(SpectralSpace space) throws SPECCHIOWebClientException
getSensorSamplingGeometry in interface SPECCHIOClientspace - holds spectra ids of which geometry is to retrievedSPECCHIOWebClientExceptionpublic 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 SPECCHIOClientException
getSpaces in interface SPECCHIOClientids - the spectrum identifierssplit_spaces_by_sensor - split_spaces_by_sensor_and_unit - order_by - the field to order bySPECCHIOClientExceptionpublic 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 SPECCHIOClientException
getSpectrum in interface SPECCHIOClientspectrum_id - the spectrum identifierload_metadata - load all spectrum metadata?SPECCHIOClientExceptionpublic Space[] getSpectrumCalibrationSpaces(java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOClientException
getSpectrumCalibrationSpaces in interface SPECCHIOClientspectrum_ids - the spectrum identifiersSPECCHIOClientExceptionpublic int getSpectrumCountInDB()
throws SPECCHIOClientException
getSpectrumCountInDB in interface SPECCHIOClientSPECCHIOClientExceptionpublic SpectrumFactorTable getSpectrumFactorTable(java.util.ArrayList<java.lang.Integer> spectrum_ids_1, java.util.ArrayList<java.lang.Integer> spectrum_ids_2) throws SPECCHIOClientException
getSpectrumFactorTable in interface SPECCHIOClientspectrum_ids_1 - spectrum_ids_2 - SPECCHIOClientExceptionpublic java.util.List<java.lang.Integer> getSpectrumIdsForNode(spectral_node_object sn) throws SPECCHIOClientException
getSpectrumIdsForNode in interface SPECCHIOClientsn - the nodeSPECCHIOClientExceptionpublic 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 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 SPECCHIOClientException
getSpectrumIdsMatchingQuery in interface SPECCHIOClientquery - the querySPECCHIOClientExceptionpublic 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 SPECCHIOClientException
getSpectrumPictures in interface SPECCHIOClientspectrum_id - the spectrum identifierSPECCHIOClientExceptionpublic int getSpectrumQueryCount(Query query) throws SPECCHIOClientException
getSpectrumQueryCount in interface SPECCHIOClientquery - the querySPECCHIOClientExceptionpublic 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 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 TaxonomyNodeObject getTaxonomyRootNode(int attribute_id) throws SPECCHIOClientException
getTaxonomyRootNode in interface SPECCHIOClientattribute_id - id of the attribute that defines the taxonomySPECCHIOClientExceptionpublic TaxonomyNodeObject getTaxonomyNode(int taxonomy_id) throws SPECCHIOClientException
getTaxonomyNode in interface SPECCHIOClienttaxonomy_id - taxonomy_id that defines the taxonomySPECCHIOClientExceptionpublic 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 for 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 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 SPECCHIOClientException
getUncertaintySpaces in interface SPECCHIOClientspectrum_ids - the spectrum identifiersuncertainty_set_ids - the uncertainty set idsorder_by - the field to order bySPECCHIOClientExceptionpublic User[] getUsers() throws SPECCHIOClientException
getUsers in interface SPECCHIOClientSPECCHIOClientExceptionpublic User[] getUsersWithStatistics() throws SPECCHIOWebClientException
getUsersWithStatistics in interface SPECCHIOClientSPECCHIOClientExceptionSPECCHIOWebClientExceptionpublic void importCampaign(int user_id,
java.io.InputStream is)
throws SPECCHIOClientException
importCampaign in interface SPECCHIOClientuser_id - the identifier of the user to whom the campaign will belongis - the input stream from which to read the campaignSPECCHIOClientExceptionpublic 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 int insertCampaign(Campaign campaign) throws SPECCHIOClientException
insertCampaign in interface SPECCHIOClientcampaign - the campaignSPECCHIOClientExceptionpublic int insertHierarchy(Campaign campaign, java.lang.String name, int parent_id) throws SPECCHIOClientException
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 hierarchySPECCHIOClientExceptionpublic int insertInstitute(Institute institute) throws SPECCHIOClientException
insertInstitute in interface SPECCHIOClientinstitute - an Instite object describing the new instituteSPECCHIOClientExceptionpublic void insertInstrumentCalibration(Calibration c) throws SPECCHIOClientException
insertInstrumentCalibration in interface SPECCHIOClientc - the calibration dataSPECCHIOClientExceptionpublic AdjacencyMatrix getAdjacencyMatrix(int uncertainty_set_id) throws SPECCHIOClientException
getAdjacencyMatrix in interface SPECCHIOClientuncertainty_set_id - SPECCHIOClientExceptionpublic java.lang.String getEdgeValue(int edge_id)
throws SPECCHIOClientException
getEdgeValue in interface SPECCHIOClientedge_id - SPECCHIOClientExceptionpublic UncertaintyNode getUncertaintyInstrumentNode(int instrument_node_id) throws SPECCHIOClientException
getUncertaintyInstrumentNode in interface SPECCHIOClientinstrument_node_id - SPECCHIOClientExceptionpublic int insertUncertaintyInstrumentNode(UncertaintyInstrumentNode instrument_node) throws SPECCHIOClientException
insertUncertaintyInstrumentNode in interface SPECCHIOClientinstrument_node - an UncertaintyInstrumentNode objectSPECCHIOClientExceptionpublic 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 UncertaintyNode getUncertaintySpectrumNode(int spectrum_node_id) throws SPECCHIOClientException
getUncertaintySpectrumNode in interface SPECCHIOClientspectrum_node_id - SPECCHIOClientExceptionpublic void insertInstrumentPicture(Picture picture) throws SPECCHIOClientException
insertInstrumentPicture in interface SPECCHIOClientpicture - the pictureSPECCHIOClientExceptionpublic void insertReferenceCalibration(Calibration c) throws SPECCHIOClientException
insertReferenceCalibration in interface SPECCHIOClientc - the calibration dataSPECCHIOClientExceptionpublic void insertReferencePicture(Picture picture) throws SPECCHIOClientException
insertReferencePicture in interface SPECCHIOClientpicture - the pictureSPECCHIOClientExceptionpublic 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 - an uncertainty node of type spectrumSPECCHIOClientExceptionpublic int insertUncertaintyNode(UncertaintyInstrumentNode uc_instrument_node, int uc_set_id) throws SPECCHIOClientException
insertUncertaintyNode in interface SPECCHIOClientuc_instrument_node - an uncertainty node of type instrumentSPECCHIOClientExceptionpublic 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 SPECCHIOClientException
isLoggedInWithRole in interface SPECCHIOClientroleName - the role to be testedSPECCHIOClientExceptionpublic 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 SPECCHIOClientException
loadSensor in interface SPECCHIOClientis - the input streamSPECCHIOClientExceptionpublic Space loadSpace(Space space) throws SPECCHIOClientException
loadSpace in interface SPECCHIOClientspace - a partially-filled space objectSPECCHIOClientExceptionpublic Space loadSpace(Space space, int band) throws SPECCHIOClientException
space - a partially-filled space objectSPECCHIOClientExceptionpublic 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 SPECCHIOClientException
removeEavMetadata in interface SPECCHIOClientmp - the meta-parameter to be removedSPECCHIOClientExceptionpublic void removeEavMetadata(MetaParameter mp, java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOClientException
removeEavMetadata in interface SPECCHIOClientmp - the meta-parameter to be removedspectrum_ids - the spectrum identifiersSPECCHIOClientExceptionpublic 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 void removeSpectralNode(spectral_node_object sn) throws SPECCHIOClientException
removeSpectralNode in interface SPECCHIOClientsn - the node to be removedSPECCHIOClientExceptionpublic void removeSpectralNodes(java.util.ArrayList<spectral_node_object> sns) throws SPECCHIOWebClientException
removeSpectralNodes in interface SPECCHIOClientsns - list of nodes to be removedSPECCHIOWebClientExceptionpublic 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 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 SPECCHIOClientException
spectralFileExists in interface SPECCHIOClientspec_file - spectral file object to checkSPECCHIOClientExceptionpublic 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 SPECCHIOClientException
submitRDACollection in interface SPECCHIOClientcollection_d - the collection descriptorSPECCHIOClientException - could not contact the serverpublic 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 SPECCHIOClientException
updateEavMetadata in interface SPECCHIOClientmp - the meta-parameter to updatespectrum_ids - the identifiers for which to update the parameterSPECCHIOClientExceptionpublic int updateEavMetadata(MetaParameter mp, java.util.ArrayList<java.lang.Integer> spectrum_ids, MetaParameter mp_old) throws SPECCHIOClientException
updateEavMetadata in interface SPECCHIOClientmp - the meta-parameter to updatespectrum_ids - the identifiers for which to update the parametermp_old - the old meta-parameterSPECCHIOClientExceptionpublic 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 void updateInstrument(Instrument instrument) throws SPECCHIOClientException
updateInstrument in interface SPECCHIOClientinstrument - the instrumentSPECCHIOClientExceptionpublic 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 - list containing all metadataSPECCHIOWebClientExceptionpublic void updateInstrumentCalibrationMetadata(CalibrationMetadata cm) throws SPECCHIOClientException
updateInstrumentCalibrationMetadata in interface SPECCHIOClientcm - the calibration metadataSPECCHIOClientExceptionpublic void updateInstrumentPicture(Picture picture) throws SPECCHIOClientException
updateInstrumentPicture in interface SPECCHIOClientpicture - the pictureSPECCHIOClientExceptionpublic void updateReference(Reference reference) throws SPECCHIOClientException
updateReference in interface SPECCHIOClientreference - the referenceSPECCHIOClientExceptionpublic void updateReferenceCalibrationMetadata(CalibrationMetadata cm) throws SPECCHIOClientException
updateReferenceCalibrationMetadata in interface SPECCHIOClientcm - the calibration metadataSPECCHIOClientExceptionpublic 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 SPECCHIOClientException
updateSpectraMetadata in interface SPECCHIOClientids - the spectrum identifiersfield - the name of the field to be updatedid - SPECCHIOClientExceptionpublic 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 user) throws SPECCHIOClientException
updateUser in interface SPECCHIOClientuser - the user dataSPECCHIOClientExceptionpublic void calculateSunAngle(java.util.ArrayList<java.lang.Integer> spectrumIds,
SPECCHIOClient client)
throws SPECCHIOClientException
calculateSunAngle in interface SPECCHIOClientspectrumIds - the ids for which to calculate the sun anglesSPECCHIOClientException