public interface 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 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> specturmIds,
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 an 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, ready for access via ID
|
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 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 match 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 selected instrument 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 details of 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 and uncertainty set ids.
|
UncertaintyNode |
getUncertaintySpectrumNode(int spectrum_node_id)
Get spectrum node for a selected 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 links.
|
int |
insertUncertaintyInstrumentNode(UncertaintyInstrumentNode instrument_node)
Insert an instrument node into the database.
|
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.
|
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.
|
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.
|
void connect() throws SPECCHIOClientException
SPECCHIOClientException
- could not log invoid close() throws SPECCHIOClientException
SPECCHIOClientException
- could not close clientint copySpectrum(int spectrum_id, int target_hierarchy_id) throws SPECCHIOClientException
spectrum_id
- the spectrum_id of the spectrum to copytarget_hierarchy_id
- the hierarchy_id where the copy is to be storedSPECCHIOClientException
- could not log injava.util.ArrayList<java.lang.Integer> copySpectra(java.util.ArrayList<java.lang.Integer> spectrum_id, int target_hierarchy_id, int current_hierarchy_id) throws SPECCHIOClientException
spectrum_id
- the spectrum_id of the spectrum to copytarget_hierarchy_id
- the hierarchy_id where the copy is to be storedSPECCHIOClientException
- could not log inint copyHierarchy(int hierarchy_id, int target_hierarchy_id, java.lang.String new_name) throws SPECCHIOClientException
hierarchy_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 invoid clearMetaparameterRedundancyList() throws SPECCHIOClientException
SPECCHIOClientException
User createUserAccount(User user) throws SPECCHIOClientException
user
- a user object describing the new user accountSPECCHIOClientException
User createUserAccountOnCurrentServer(User user) throws SPECCHIOClientException
user
- a user object describing the new user accountSPECCHIOClientException
void createInstrument(java.lang.String name) throws SPECCHIOClientException
name
- the name of the new instrumentSPECCHIOClientException
void createReference(java.lang.String name) throws SPECCHIOClientException
name
- the name of the new referenceSPECCHIOClientException
void dbUpgrade(double version, java.io.FileInputStream fis) throws SPECCHIOClientException
version
- DB version to be upgraded tofis
- File input stream with SQL upgrade statementsSPECCHIOClientException
void deleteCalibration(int calibration_id) throws SPECCHIOClientException
calibration_id
- the calibration identifierSPECCHIOClientException
void deleteInstrument(int instrument_id) throws SPECCHIOClientException
instrument_id
- the instrument identifierSPECCHIOClientException
void deleteInstrumentPicture(int picture_id) throws SPECCHIOClientException
picture_id
- the picture identifierSPECCHIOClientException
void deleteReference(int reference_id) throws SPECCHIOClientException
reference_id
- the reference identifierSPECCHIOClientException
void deleteReferencePicture(int picture_id) throws SPECCHIOClientException
picture_id
- the picture identifierSPECCHIOClientException
int deleteTargetReferenceLinks(int eav_id) throws SPECCHIOClientException
eav_id
- the eav_id identifierSPECCHIOClientException
void disconnect() throws SPECCHIOClientException
SPECCHIOClientException
java.util.ArrayList<java.lang.Integer> filterSpectrumIdsByHavingAttribute(java.util.ArrayList<java.lang.Integer> spectrum_ids, java.lang.String attribute_name) throws SPECCHIOClientException
spectrum_ids
- list of ids to filterattribute_name
- attribute name to filter withSPECCHIOClientException
java.util.ArrayList<java.lang.Integer> filterSpectrumIdsByNotHavingAttribute(java.util.ArrayList<java.lang.Integer> spectrum_ids, java.lang.String attribute_name) throws SPECCHIOClientException
spectrum_ids
- list of ids to filterattribute_name
- attribute name to filter withSPECCHIOClientException
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
spectrum_ids
- list of ids to filterattribute_name
- attribute name to filter withvalue
- attribute value to matchSPECCHIOClientException
ApplicationDomainCategories[] getMetadataCategoriesForApplicationDomains()
attribute[] getAttributesForCategory(java.lang.String category) throws SPECCHIOClientException
category
- the category nameSPECCHIOClientException
attribute[] getAttributes() throws SPECCHIOClientException
SPECCHIOClientException
java.util.Hashtable<java.lang.Integer,attribute> getAttributesIdHash() throws SPECCHIOClientException
SPECCHIOClientException
java.util.Hashtable<java.lang.String,attribute> getAttributesNameHash() throws SPECCHIOClientException
SPECCHIOClientException
Units getAttributeUnits(attribute attr) throws SPECCHIOClientException
attr
- the attributeSPECCHIOClientException
Campaign getCampaign(int campaign_id) throws SPECCHIOClientException
campaign_id
- the campaign identifierSPECCHIOClientException
java.util.ArrayList<Category> getCategoriesInfo() throws SPECCHIOClientException
SPECCHIOClientException
java.util.ArrayList<Category> getNonNullCategories(java.util.ArrayList<java.lang.Integer> spectrumIds)
spectrumIds
- list of spectrum ids for which to search used categoriesjava.util.ArrayList<attribute> getNonNullAttributes(java.util.ArrayList<java.lang.Integer> spectrumIds)
java.util.ArrayList<java.lang.Integer> findMatchingSpectra(java.util.ArrayList<java.lang.Integer> spectrumIds, java.util.ArrayList<QueryAttribute> queryAttributes)
void createFilterCollection(java.util.ArrayList<java.lang.Integer> specturmIds, java.util.ArrayList<java.lang.Integer> attributeIds)
java.io.InputStream getCampaignExportInputStream(Campaign c) throws SPECCHIOClientException
c
- the campaign to be exportedSPECCHIOClientException
campaign_node getCampaignNode(int campaign_id, java.lang.String order_by, boolean restrict_to_view) throws SPECCHIOClientException
campaign_id
- the campaign identifierorder_by
- the attribute by which to order the campaign's descendentsrestrict_to_view
- show user's data onlySPECCHIOClientException
Campaign[] getCampaigns() throws SPECCHIOClientException
SPECCHIOClientException
Campaign[] getCampaigns(boolean load_metadata_details) throws SPECCHIOWebClientException
load_metadata_details
- defines if additional detailed metadata should be loadedSPECCHIOWebClientException
java.util.ArrayList<java.lang.Integer> getCalibrationIds(java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOWebClientException
spectrum_ids
- the spectrum identifiersSPECCHIOWebClientException
Instrument getCalibratedInstrument(int calibration_id) throws SPECCHIOClientException
calibration_id
- the calibration identifierSPECCHIOClientException
CalibrationMetadata[] getCalibrationMetadataByCalibrationNumber(int instrument_id, int calibration_number) throws SPECCHIOClientException
instrument_id
- the instrument_idcalibration_number
- the calibration number is given in the Metadata field "Calibration Number"SPECCHIOClientException
java.lang.String getCapability(java.lang.String capability) throws SPECCHIOClientException
capability
- the capability nameSPECCHIOClientException
java.util.List<spectral_node_object> getChildrenOfNode(spectral_node_object sn) throws SPECCHIOClientException
sn
- the nodeSPECCHIOClientException
java.util.List<TaxonomyNodeObject> getChildrenOfTaxonomyNode(TaxonomyNodeObject tn) throws SPECCHIOClientException
tn
- the nodeSPECCHIOClientException
Country[] getCountries() throws SPECCHIOClientException
SPECCHIOClientException
database_node getDatabaseNode(java.lang.String order_by, boolean restrict_to_view) throws SPECCHIOClientException
order_by
- the attribute to order byrestrict_to_view
- display the current user's data onlySPECCHIOClientException
java.lang.Integer getDirectHierarchyId(int spectrum_id) throws SPECCHIOClientException
spectrum_id
- the identifier of the spectrumSPECCHIOClientException
java.util.ArrayList<java.lang.Integer> getDirectHierarchyIds(java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOClientException
spectrum_ids
- the identifiers of the desired spectraSPECCHIOClientException
java.util.ArrayList<MetaParameter> getDistinctValuesOfAttribute(int attribute_id) throws SPECCHIOClientException
attribute_id
- id of the required attributeSPECCHIOClientException
ConflictTable getEavMetadataConflicts(int metadata_level, java.util.ArrayList<java.lang.Integer> ids) throws SPECCHIOClientException
metadata_level
- storage level identifierids
- the primary entity identifiersSPECCHIOClientException
EAVQueryConditionObject getEAVQueryConditionObject(attribute attr)
attr
- attribute objectjava.lang.Integer getExistingMetaparameterCount(java.lang.Integer attribute_id, java.util.ArrayList<java.lang.Integer> ids) throws SPECCHIOClientException
attribute_id
- id of the attributeids
- spectrum idsSPECCHIOClientException
int getFileFormatId(java.lang.String format) throws SPECCHIOClientException
format
- the file format nameSPECCHIOClientException
Hierarchy getHierarchy(java.lang.Integer hierarchy_id) throws SPECCHIOWebClientException
hierarchy_id
- the hierarchy_id identifying the required nodeSPECCHIOWebClientException
int getHierarchyId(Campaign campaign, java.lang.String name, int parent_id) throws SPECCHIOClientException
campaign
- the campaign in which the node is locatedname
- the name of the nodeparent_id
- the parent of the nodeSPECCHIOClientException
java.util.ArrayList<java.lang.Integer> getHierarchyIdsOfSpectra(java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOClientException
spectrum_ids
- the identifiers of the desired spectraSPECCHIOClientException
int getHierarchyParentId(int hierarchy_id) throws SPECCHIOClientException
hierarchy_id
- the hierarchy_id identifying the required nodeSPECCHIOClientException
java.lang.String getHierarchyFilePath(int hierarchy_id) throws SPECCHIOClientException
hierarchy_id
- the identifier of the hierarchySPECCHIOClientException
- the database could not accessedjava.lang.String getHierarchyName(int hierarchy_id) throws SPECCHIOClientException
hierarchy_id
- the identifier of the hierarchySPECCHIOClientException
- the database could not accessedInstitute[] getInstitutes() throws SPECCHIOClientException
SPECCHIOClientException
Instrument getInstrument(int instrument_id) throws SPECCHIOClientException
instrument_id
- the instrument identifierSPECCHIOClientException
Instrument getInstrument(Instrument instrument) throws SPECCHIOWebClientException
instrument
- instanceSPECCHIOWebClientException
java.util.ArrayList<java.lang.Integer> getInstrumentIds(java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOWebClientException
spectrum_ids
- the spectrum identifiersSPECCHIOWebClientException
CalibrationMetadata[] getInstrumentCalibrationMetadata(int instrument_id) throws SPECCHIOClientException
instrument_id
- the instrument identifierSPECCHIOClientException
InstrumentDescriptor[] getInstrumentDescriptors() throws SPECCHIOClientException
SPECCHIOClientException
Instrument getInstrumentForSpectralFile(SpectralFile spec_file) throws SPECCHIOClientException
spec_file
- the spectral fileSPECCHIOClientException
PictureTable getInstrumentPictures(int instrument_id) throws SPECCHIOClientException
instrument_id
- the instrument identifierSPECCHIOClientException
User getLoggedInUser()
java.util.ArrayList<java.lang.Integer> getMetadataCategoriesForApplicationDomain(int taxonomy_id) throws SPECCHIOClientException
taxonomy_id
- the field nameSPECCHIOClientException
CategoryTable getMetadataCategoriesForIdAccess(java.lang.String field) throws SPECCHIOClientException
field
- the field nameSPECCHIOClientException
java.util.Hashtable<java.lang.String,java.lang.Integer> getMetadataCategoriesForNameAccess(java.lang.String field) throws SPECCHIOClientException
field
- the field nameSPECCHIOClientException
java.util.ArrayList<MetaParameter> getMetaparameters(java.util.ArrayList<java.lang.Integer> ids, java.lang.String attribute_name) throws SPECCHIOClientException
ids
- spectrum idsattribute_name
- attribute nameSPECCHIOClientException
void calculateSunAngle(java.util.ArrayList<java.lang.Integer> spectrumIds, SPECCHIOClient client) throws SPECCHIOClientException
spectrumIds
- spectrum idsSPECCHIOClientException
MetaParameter getMetaparameter(java.lang.Integer id, java.lang.String attribute_name) throws SPECCHIOWebClientException
id
- spectrum idattribute_name
- attribute nameSPECCHIOWebClientException
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
ids
- spectrum idsattribute_ids
- list of attribute idsSPECCHIOWebClientException
java.util.ArrayList<MetaParameter> getMetaparameters(java.util.ArrayList<java.lang.Integer> ids, java.lang.String attribute_name, java.lang.Boolean distinct) throws SPECCHIOWebClientException
ids
- 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 redundantSPECCHIOWebClientException
MetaparameterStatistics getMetaparameterStatistics(java.util.ArrayList<java.lang.Integer> ids, java.lang.String attribute_name) throws SPECCHIOWebClientException
ids
- spectrum idsattribute_name
- attribute nameSPECCHIOWebClientException
MatlabAdaptedArrayList<java.lang.Object> getMetaparameterValues(java.util.ArrayList<java.lang.Integer> ids, java.lang.String attribute_name) throws SPECCHIOWebClientException
ids
- spectrum idsattribute_name
- attribute nameSPECCHIOWebClientException
MatlabAdaptedArrayList<java.lang.Object> getMetaparameterValues(java.util.ArrayList<java.lang.Integer> ids, java.lang.String attribute_name, java.lang.Boolean distinct) throws SPECCHIOWebClientException
ids
- spectrum idsattribute_name
- attribute namedistinct
- defines if distinct values should be returned or repeated values for the given spectrum idsSPECCHIOWebClientException
ConflictTable getMetadataConflicts(java.util.ArrayList<java.lang.Integer> spectrum_ids, java.lang.String[] fields) throws SPECCHIOClientException
spectrum_ids
- the spectrum identifiersfields
- the fields to checkSPECCHIOClientException
MeasurementUnit getMeasurementUnitFromCoding(int coding) throws SPECCHIOWebClientException
coding
- coding based on ASD codingSPECCHIOWebClientException
java.util.ArrayList<java.lang.Integer> getNewestSpectra(int number_of_spectra) throws SPECCHIOWebClientException
number_of_spectra
- SPECCHIOWebClientException
java.lang.String[] getPoliciesForSpace(Space space) throws SPECCHIOClientException
space
- the spaceSPECCHIOClientException
Query getQueryObject() throws SPECCHIOClientException
SPECCHIOClientException
Reference getReference(int reference_id) throws SPECCHIOClientException
reference_id
- the reference identifierSPECCHIOClientException
CalibrationMetadata[] getReferenceCalibrationMetadata(int reference_id) throws SPECCHIOClientException
reference_id
- the reference identifierSPECCHIOClientException
ReferenceDescriptor[] getReferenceDescriptors() throws SPECCHIOClientException
SPECCHIOClientException
ReferenceBrand[] getReferenceBrands() throws SPECCHIOClientException
SPECCHIOClientException
PictureTable getReferencePictures(int reference_id) throws SPECCHIOClientException
reference_id
- the reference identifierSPECCHIOClientException
ReferenceSpaceStruct getReferenceSpace(java.util.ArrayList<java.lang.Integer> input_ids) throws SPECCHIOClientException
input_ids
- SPECCHIOClientException
SPECCHIOServerDescriptor getServerDescriptor()
Sensor[] getSensors() throws SPECCHIOClientException
SPECCHIOClientException
GonioSamplingPoints getSensorSamplingGeometry(SpectralSpace space) throws SPECCHIOWebClientException
space
- holds spectra ids of which geometry is to retrievedSPECCHIOWebClientException
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
ids
- the spectrum identifierssplit_spaces_by_sensor
- booleansplit_spaces_by_sensor_and_unit
- booleanorder_by
- the field to order bySPECCHIOClientException
Space[] getSpaces(java.util.ArrayList<java.lang.Integer> ids, java.lang.String order_by) throws SPECCHIOWebClientException
ids
- the spectrum identifiersorder_by
- the field to order bySPECCHIOWebClientException
Spectrum getSpectrum(int spectrum_id, boolean load_metadata) throws SPECCHIOClientException
spectrum_id
- the spectrum identifierload_metadata
- load all spectrum metadata?SPECCHIOClientException
int getSpectrumCountInDB() throws SPECCHIOClientException
SPECCHIOClientException
Space[] getSpectrumCalibrationSpaces(java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOClientException
spectrum_ids
- the spectrum identifiersSPECCHIOClientException
SpectrumFactorTable getSpectrumFactorTable(java.util.ArrayList<java.lang.Integer> spectrum_ids_1, java.util.ArrayList<java.lang.Integer> spectrum_ids_2) throws SPECCHIOClientException
spectrum_ids_1
- spectrum_ids_2
- SPECCHIOClientException
java.util.List<java.lang.Integer> getSpectrumIdsForNode(spectral_node_object sn) throws SPECCHIOClientException
sn
- the nodeSPECCHIOClientException
java.util.ArrayList<java.lang.Integer> getSpectrumIdsMatchingFullTextSearch(java.lang.String search_str) throws SPECCHIOClientException
search_str
- the search stringSPECCHIOClientException
java.util.ArrayList<java.lang.Integer> getSpectrumIdsMatchingFullTextSearchUsingHierarchy(java.lang.String search_str) throws SPECCHIOClientException
search_str
- the search stringSPECCHIOClientException
java.util.ArrayList<java.lang.Integer> getUnprocessedHierarchies(java.lang.String campaignId) throws SPECCHIOClientException
campaignId
- the search stringSPECCHIOClientException
java.util.ArrayList<java.lang.Integer> getIrradiance(java.lang.String campaignId) throws SPECCHIOClientException
campaignId
- the search stringSPECCHIOClientException
java.util.ArrayList<java.lang.Integer> getSpectrumIdsMatchingQuery(Query query) throws SPECCHIOClientException
query
- the querySPECCHIOClientException
java.util.ArrayList<java.lang.Integer> getDirectSpectrumIdsOfHierarchy(int hierarchy_id) throws SPECCHIOClientException
hierarchy_id
- the hierarchy_idSPECCHIOClientException
PictureTable getSpectrumPictures(int spectrum_id) throws SPECCHIOClientException
spectrum_id
- the spectrum identifierSPECCHIOClientException
int getSpectrumQueryCount(Query query) throws SPECCHIOClientException
query
- the querySPECCHIOClientException
SpectrumDataLink[] getTargetReferenceLinks(java.util.ArrayList<java.lang.Integer> target_ids, java.util.ArrayList<java.lang.Integer> reference_ids) throws SPECCHIOClientException
target_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)SPECCHIOClientException
int getSubHierarchyId(Campaign campaign, java.lang.String name, int parent_id) throws SPECCHIOClientException
campaign
- the campaign into which to insert the hierarchyparent_id
- the identifier of the the parent of the hierarchyname
- the name of the desired hierarchySPECCHIOClientException
int getSubHierarchyId(java.lang.String name, int parent_id) throws SPECCHIOClientException
name
- the name of the desired hierarchyparent_id
- the identifier of the the parent of the hierarchySPECCHIOClientException
TaxonomyNodeObject getTaxonomyRootNode(int attribute_id) throws SPECCHIOClientException
attribute_id
- id of the attribute that defines the taxonomySPECCHIOClientException
TaxonomyNodeObject getTaxonomyNode(int taxonomy_id) throws SPECCHIOClientException
taxonomy_id
- taxonomy_id that defines the taxonomySPECCHIOClientException
int getTaxonomyId(int attribute_id, java.lang.String name) throws SPECCHIOClientException
attribute_id
- attribute_id that defines the taxonomyname
- name of the node of which the id is requiredSPECCHIOClientException
java.util.Hashtable<java.lang.String,java.lang.Integer> getTaxonomyHash(int attribute_id) throws SPECCHIOClientException
attribute_id
- attribute_id that defines the taxonomySPECCHIOClientException
java.util.Hashtable<java.lang.String,java.lang.Integer> getTaxonomyHash(attribute attribute) throws SPECCHIOClientException
attribute
- attribute that defines the taxonomySPECCHIOClientException
java.util.Hashtable<java.lang.Integer,java.lang.String> getTaxonomyIdToNameHash(int attribute_id) throws SPECCHIOClientException
attribute_id
- attribute_id that defines the taxonomySPECCHIOClientException
UncertaintySet getUncertaintySet(int uncertainty_set_id) throws SPECCHIOClientException
uncertainty_set_id,
- the desired uncertainty_set_id of the uncertainty setSPECCHIOClientException
java.util.ArrayList<java.lang.Integer> getUncertaintySetIds(int spectrum_id) throws SPECCHIOClientException
spectrum_id,
- the desired spectrum idSPECCHIOClientException
java.util.ArrayList<UncertaintySetSpectraList> getUncertaintySetSpectraLists(java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOClientException
spectrum_ids
- SPECCHIOClientException
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
spectrum_ids
- the spectrum identifiersuncertainty_set_ids
- uncertainty set idsorder_by
- the field to order bySPECCHIOClientException
User[] getUsers() throws SPECCHIOClientException
SPECCHIOClientException
User[] getUsersWithStatistics() throws SPECCHIOWebClientException
SPECCHIOClientException
SPECCHIOWebClientException
void importCampaign(int user_id, java.io.InputStream is) throws SPECCHIOClientException
user_id
- the identifier of the user to whom the campaign will belongis
- the input stream from which to read the campaignSPECCHIOClientException
void importCampaign(int user_id, java.lang.String server_filepath) throws SPECCHIOWebClientException
user_id
- the identifier of the user to whom the campaign will belongserver_filepath
- the server filepath from which to read the campaignSPECCHIOWebClientException
int insertCampaign(Campaign campaign) throws SPECCHIOClientException
campaign
- the campaignSPECCHIOClientException
int insertHierarchy(Campaign campaign, java.lang.String name, int parent_id) throws SPECCHIOClientException
campaign
- the campaign into which to insert the hierarchyname
- the name of the new hierarchyparent_id
- the identifier of the parent of the new hierarchySPECCHIOClientException
int insertInstitute(Institute institute) throws SPECCHIOClientException
institute
- an Instite object describing the new instituteSPECCHIOClientException
void insertInstrumentCalibration(Calibration c) throws SPECCHIOClientException
c
- the calibration dataSPECCHIOClientException
void insertInstrumentPicture(Picture picture) throws SPECCHIOClientException
picture
- the pictureSPECCHIOClientException
void insertReferenceCalibration(Calibration c) throws SPECCHIOClientException
c
- the calibration dataSPECCHIOClientException
void insertReferencePicture(Picture picture) throws SPECCHIOClientException
picture
- the pictureSPECCHIOClientException
SpectralFileInsertResult insertSpectralFile(SpectralFile spec_file) throws SPECCHIOClientException
spec_file
- the fileSPECCHIOClientException
int insertClosestTargetReferenceLink(int target_id, java.util.ArrayList<java.lang.Integer> reference_ids) throws SPECCHIOClientException
target_id
- the identifier of the target nodereference_ids
- the identifiers of the reference nodesSPECCHIOClientException
int insertSpectrumSubset(UncertaintySpectrumNode uc_spectrum_node) throws SPECCHIOClientException
spectrum
- node a spectrum nodeSPECCHIOClientException
int insertUncertaintyNode(UncertaintySpectrumNode uc_spectrum_node, int uc_set_id) throws SPECCHIOClientException
uc_spectrum_node
- an uncertainty node of type spectrumSPECCHIOClientException
int insertUncertaintyNode(UncertaintyInstrumentNode uc_instrument_node, int uc_set_id) throws SPECCHIOClientException
uc_instrument_node
- an uncertainty node of type instrumentSPECCHIOClientException
int insertNewUncertaintySet(UncertaintySet uc_set) throws SPECCHIOClientException
uc_set
- SPECCHIOClientException
AdjacencyMatrix getAdjacencyMatrix(int uncertainty_set_id) throws SPECCHIOClientException
uncertainty_set_id
- the uncertainty set identifierSPECCHIOClientException
java.lang.String getEdgeValue(int edge_id) throws SPECCHIOClientException
edge_id
- SPECCHIOClientException
UncertaintyNode getUncertaintyInstrumentNode(int instrument_node_id) throws SPECCHIOClientException
instrument_node_id
- instrument node idSPECCHIOClientException
int insertUncertaintyInstrumentNode(UncertaintyInstrumentNode instrument_node) throws SPECCHIOClientException
instrument_node
- UncertaintyInstrumentNode typeSPECCHIOClientException
UncertaintyNode[] getUncertaintyNodeComponents(int uncertainty_node_id) throws SPECCHIOClientException
uncertainty_node_id
- SPECCHIOClientException
UncertaintyNode[] getUncertaintyNodeSubSets(int uncertainty_node_id) throws SPECCHIOClientException
uncertainty_node_id
- SPECCHIOClientException
UncertaintyNode getUncertaintySpectrumNode(int spectrum_node_id) throws SPECCHIOClientException
spectrum_node_id
- spectrum node idSPECCHIOClientException
int insertTargetReferenceLinks(int target_id, java.util.ArrayList<java.lang.Integer> reference_ids) throws SPECCHIOClientException
target_id
- the identifier of the target nodereference_ids
- the identifiers of the reference nodesSPECCHIOClientException
boolean instrumentCalibrationExists(Calibration cal) throws SPECCHIOWebClientException
cal
- calibration object to checkSPECCHIOWebClientException
boolean isLoggedInWithRole(java.lang.String roleName) throws SPECCHIOClientException
roleName
- the role to be testedSPECCHIOClientException
MetaParameter loadMetaparameter(int metaparameter_id) throws SPECCHIOClientException
metaparameter_id
- the metaparameter identifier for which to retrieve metadataSPECCHIOClientException
void loadSensor(java.io.InputStream is) throws SPECCHIOClientException
is
- the input streamSPECCHIOClientException
Space loadSpace(Space space) throws SPECCHIOClientException
space
- a partially-filled space objectSPECCHIOClientException
boolean moveHierarchy(int source_hierarchy_id, int target_parent_hierarchy) throws SPECCHIOClientException
source_hierarchy_id
- hierarchy id of the hierarchy to movetarget_parent_hierarchy
- hierarchy id of the new parent hierarchy
return true if move was doneSPECCHIOClientException
void refreshMetadataCategory(java.lang.String field)
field
- namevoid removeEavMetadata(MetaParameter mp) throws SPECCHIOClientException
mp
- the meta-parameter to be removedSPECCHIOClientException
void removeEavMetadata(MetaParameter mp, java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOClientException
mp
- the meta-parameter to be removedspectrum_ids
- the spectrum identifiersSPECCHIOClientException
void removeEavMetadata(attribute attr, java.util.ArrayList<java.lang.Integer> spectrum_ids, int metadata_level) throws SPECCHIOClientException
attr
- the attribute to be removedspectrum_ids
- the spectrum identifiersmetadata_level
- storage level identifierSPECCHIOClientException
void removeSpectralNode(spectral_node_object sn) throws SPECCHIOClientException
sn
- the node to be removedSPECCHIOClientException
void removeSpectralNodes(java.util.ArrayList<spectral_node_object> sns) throws SPECCHIOWebClientException
sns
- list of nodes to be removedSPECCHIOWebClientException
boolean renameHierarchy(int hierarchy_id, java.lang.String name) throws SPECCHIOClientException
hierarchy_id
- id of the hierarchy to be renamedname
- new name of the hierarchySPECCHIOClientException
void setProgressReport(ProgressReportInterface pr)
pr
- the progress report; use null to report no progressAVMatchingListCollection sortByAttributes(java.util.ArrayList<java.lang.Integer> spectrum_ids, java.lang.String... attribute_names) throws SPECCHIOClientException
spectrum_ids
- list of ids to sortattribute_names
- attribute names to sort bySPECCHIOClientException
boolean spectralFileExists(SpectralFile spec_file) throws SPECCHIOClientException
spec_file
- spectral file object to checkSPECCHIOClientException
boolean[] spectralFilesExist(SpectralFiles spec_files) throws SPECCHIOClientException
spec_files
- container with arraylist of spectral files to checkSPECCHIOClientException
java.lang.String submitRDACollection(RDACollectionDescriptor collection_d) throws SPECCHIOClientException
collection_d
- the collection descriptorSPECCHIOClientException
- could not contact the servervoid updateCampaign(Campaign campaign) throws SPECCHIOClientException
campaign
- the new campaign dataSPECCHIOClientException
int updateEavMetadata(MetaParameter mp, java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOClientException
mp
- the meta-parameter to updatespectrum_ids
- the identifiers for which to update the parameterSPECCHIOClientException
int updateEavMetadata(MetaParameter mp, java.util.ArrayList<java.lang.Integer> spectrum_ids, MetaParameter mp_old) throws SPECCHIOClientException
mp
- the meta-parameter to updatespectrum_ids
- the identifiers for which to update the parametermp_old
- the old meta-parameterSPECCHIOClientException
int updateEavMetadataAnnotation(MetaParameter mp, java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOWebClientException
mp
- the meta-parameter to updatespectrum_ids
- the identifiers for which to update the parameterSPECCHIOWebClientException
int updateOrInsertEavMetadata(MetaParameter mp, java.util.ArrayList<java.lang.Integer> spectrum_ids) throws SPECCHIOWebClientException
mp
- the meta-parameter to update or insertspectrum_ids
- the identifiers for which to update or insert the parameterSPECCHIOWebClientException
int updateOrInsertEavMetadata(MetaParameter mp, int spectrum_id) throws SPECCHIOWebClientException
mp
- the meta-parameter to update or insertspectrum_id
- the identifiers for which to update or insert the parameterSPECCHIOWebClientException
int updateOrInsertEavMetadata(java.util.ArrayList<Metadata> md, java.util.ArrayList<java.lang.Integer> ids, int campaignId) throws SPECCHIOWebClientException
md
- list containing all metadataSPECCHIOWebClientException
void updateInstrument(Instrument instrument) throws SPECCHIOClientException
instrument
- the instrumentSPECCHIOClientException
void updateInstrumentCalibrationMetadata(CalibrationMetadata cm) throws SPECCHIOClientException
cm
- the calibration metadataSPECCHIOClientException
void updateInstrumentPicture(Picture picture) throws SPECCHIOClientException
picture
- the pictureSPECCHIOClientException
void updateReference(Reference reference) throws SPECCHIOClientException
reference
- the referenceSPECCHIOClientException
void updateReferenceCalibrationMetadata(CalibrationMetadata cm) throws SPECCHIOClientException
cm
- the calibration metadataSPECCHIOClientException
void updateReferencePicture(Picture picture) throws SPECCHIOClientException
picture
- the pictureSPECCHIOClientException
void updateSpectraMetadata(java.util.ArrayList<java.lang.Integer> ids, java.lang.String field, int id) throws SPECCHIOClientException
ids
- the spectrum identifiersfield
- the name of the field to be updatedid
- SPECCHIOClientException
void updateSpectrumVector(int spectrum_id, float[] vector) throws SPECCHIOClientException
spectrum_id
- the spectrum identifiervector
- new spectral dataSPECCHIOClientException
void updateSpectrumVectors(java.util.HashMap<java.lang.Integer,double[]> updateMap) throws SPECCHIOClientException
updateMap
- a map containing the spectrum_id as key and the vector as valueSPECCHIOClientException
void updateUser(User user) throws SPECCHIOClientException
user
- the user dataSPECCHIOClientException