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