Interface IGeneralInformationService
- All Superinterfaces:
IRpcService
Service for retrieving general informations.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncountNumberOfSamplesForType(String sessionToken, String sampleTypeCode) Returns number of samples for a sample type code.filterDataSetsVisibleToUser(String sessionToken, List<DataSet> allDataSets, String userId) Returns a filtered list of allDataSets containing those data sets which are visible to userId.filterExperimentsVisibleToUser(String sessionToken, List<Experiment> allExperiments, String userId) Returns a filtered list of allExperiments containing those experiments which are visible to userId.filterSamplesVisibleToUser(String sessionToken, List<Sample> allSamples, String userId) Returns a filtered list of allSamples containing those samples which are visible to userId.generateCode(String sessionToken, String prefix, String entityKind) Generate Code.getDataSetMetaData(String sessionToken, List<String> dataSetCodes) Returns meta data for all specified data sets.getDataSetMetaData(String sessionToken, List<String> dataSetCodes, EnumSet<DataSetFetchOption> fetchOptions) Returns meta data for all specified data sets.getDataStoreBaseURLs(String sessionToken, List<String> dataSetCodes) Returns the download URL for the data store of specified data sets.getDefaultPutDataStoreBaseURL(String sessionToken) Returns the URL for the default data store server for this openBIS AS.getMetaproject(String sessionToken, IMetaprojectId metaprojectId) Returns all entities tagged with given metaproject.getMetaprojectOnBehalfOfUser(String sessionToken, IMetaprojectId metaprojectId, String userId) Returns all entities tagged with given metaproject for specified user.getUserDisplaySettings(String sessionToken) getVocabularyTermsMap(String sessionToken) Deprecated.booleanisSessionActive(String sessionToken) Returns true if session with the specified token is still active, false otherwise.listAttachmentsForExperiment(String sessionToken, IExperimentId experimentId, boolean allVersions) Lists attachments of specified experiment.listAttachmentsForProject(String sessionToken, IProjectId projectId, boolean allVersions) Lists attachments of specified project.listAttachmentsForSample(String sessionToken, ISampleId sampleId, boolean allVersions) Lists attachments of specified sample.listAvailableSearchDomains(String sessionToken) Lists available search domains.listDataSets(String sessionToken, List<Sample> samples) Return all data sets attached to the given samples.listDataSets(String sessionToken, List<Sample> samples, EnumSet<DataSet.Connections> connectionsToGet) Return all data sets attached to the given samples with connections.listDataSetsForExperiments(String sessionToken, List<Experiment> experiments, EnumSet<DataSet.Connections> connectionsToGet) Return all data sets attached to the given experiments with connections.listDataSetsForExperimentsOnBehalfOfUser(String sessionToken, List<Experiment> experiments, EnumSet<DataSet.Connections> connectionsToGet, String userId) Return all data sets attached to the given experiments with connections that the user userId is allowed to see.listDataSetsForSample(String sessionToken, Sample sample, boolean areOnlyDirectlyConnectedIncluded) Return the data sets attached to the specified sample, optionally including child samples.listDataSetsOnBehalfOfUser(String sessionToken, List<Sample> samples, EnumSet<DataSet.Connections> connectionsToGet, String userId) Return all data sets attached to the given samples with connections that the user userId is allowed to see.listDataSetTypes(String sessionToken) Returns all data set types.listDataStores(String sessionToken) Lists all DSS server registered this openBIS server instance.listDeletions(String sessionToken, EnumSet<DeletionFetchOption> fetchOptions) Returns all deletions.listExperiments(String sessionToken, List<Project> projects, String experimentType) Return all experiments of the given type that belong to the supplied projects.listExperiments(String sessionToken, List<String> experimentIdentifiers) Return all experiments matching a specified set of identifiers.listExperimentsHavingDataSets(String sessionToken, List<Project> projects, String experimentType) Return all experiments of the given type that belong to the supplied projects and have registered data sets.listExperimentsHavingSamples(String sessionToken, List<Project> projects, String experimentType) Return all experiments of the given type that belong to the supplied projects and have registered samles.listExperimentTypes(String sessionToken) Returns all experiment types.listMetaprojects(String sessionToken) Lists all metaprojects belonging to current user.listMetaprojectsOnBehalfOfUser(String sessionToken, String userId) Lists all metaprojects belonging to specified user.listNamedRoleSets(String sessionToken) Returns all named role sets.listPersons(String sessionToken) Returns all persons.listProjects(String sessionToken) Returns all available projects.listProjectsOnBehalfOfUser(String sessionToken, String userId) Returns all available projects that a particular user is allowed to see.listPropertyTypes(String sessionToken, boolean withRelations) Lists property types.listSamplesForExperiment(String sessionToken, String experimentIdentifierString) Return all samples that belong to the supplied experiment.listSamplesForExperimentOnBehalfOfUser(String sessionToken, String experimentIdentifierString, String userId) Return all samples that belong to the supplied experiment that are visible to user userId.listSampleTypes(String sessionToken) Returns all sample types.listSpacesWithProjectsAndRoleAssignments(String sessionToken, String databaseInstanceCodeOrNull) Returns all spaces of specified database instance enriched with their projects and role assignments.listVocabularies(String sessionToken) Returns all available vocabularies together with the contained terms.voidLogout the session with the specified session token.searchForDataSets(String sessionToken, SearchCriteria searchCriteria) Return all data sets matching specified search criteria.searchForDataSetsOnBehalfOfUser(String sessionToken, SearchCriteria searchCriteria, String userId) Return all data sets matching specified search criteria and visible to user userId.searchForExperiments(String sessionToken, SearchCriteria searchCriteria) Returns all experiments matching specified search criteria.searchForSamples(String sessionToken, SearchCriteria searchCriteria) Return all samples that match the search criteria.searchForSamples(String sessionToken, SearchCriteria searchCriteria, EnumSet<SampleFetchOption> fetchOptions) Return all samples that match the search criteria.searchForSamplesOnBehalfOfUser(String sessionToken, SearchCriteria searchCriteria, EnumSet<SampleFetchOption> fetchOptions, String userId) Return all samples that match the search criteria and that a particular user is allowed to see.searchOnSearchDomain(String sessionToken, String preferredSearchDomainOrNull, String searchString, Map<String, String> optionalParametersOrNull) Searches on a search domain.tryGetDataStoreBaseURL(String sessionToken, String dataSetCode) Returns the download URL for the data store of specified data set or null if such data set does not exist.tryToAuthenticateForAllServices(String userID, String userPassword) Tries to authenticate specified user with specified password.Methods inherited from interface ch.systemsx.cisd.common.api.IRpcService
getMajorVersion, getMinorVersion
-
Field Details
-
SERVICE_NAME
Name of this service for which it is registered at the RPC name server.- See Also:
-
SERVICE_URL
Application part of the URL to access this service remotely.- See Also:
-
JSON_SERVICE_URL
- See Also:
-
-
Method Details
-
tryToAuthenticateForAllServices
Tries to authenticate specified user with specified password. Returns session token if succeeded otherwisenullis returned. The returned session token can be used for all methods and interfaces of the same openBIS server. -
logout
Logout the session with the specified session token. -
isSessionActive
Returns true if session with the specified token is still active, false otherwise.- Since:
- 1.4
-
listNamedRoleSets
Returns all named role sets. The name is the key of the returned map. -
listSpacesWithProjectsAndRoleAssignments
List<SpaceWithProjectsAndRoleAssignments> listSpacesWithProjectsAndRoleAssignments(String sessionToken, String databaseInstanceCodeOrNull) Returns all spaces of specified database instance enriched with their projects and role assignments.- Parameters:
databaseInstanceCodeOrNull- Code of an imported database instance ornullfor the home database instance is meant.
-
filterSamplesVisibleToUser
List<Sample> filterSamplesVisibleToUser(String sessionToken, List<Sample> allSamples, String userId) Returns a filtered list of allSamples containing those samples which are visible to userId.- Parameters:
allSamples- The list of samples that should be filtered.userId- The user that the samples should be visible to that survive the filtering.- Returns:
- The filtered list of allSamples containing those samples which are visible to userId.
- Since:
- 1.18
-
listSamplesForExperiment
Return all samples that belong to the supplied experiment.- Parameters:
experimentIdentifierString- The identifier of the experiment samples will be listed for.- Since:
- 1.1
-
listSamplesForExperimentOnBehalfOfUser
List<Sample> listSamplesForExperimentOnBehalfOfUser(String sessionToken, String experimentIdentifierString, String userId) Return all samples that belong to the supplied experiment that are visible to user userId.May only be called by users with capability
LIST_PROJECTS_ON_BEHALF_OF_USER.- Parameters:
experimentIdentifierString- The identifier of the experiment samples will be listed for.userId- The user to run this query on behalf of.- Since:
- 1.18
-
listDataSets
Return all data sets attached to the given samples.- Parameters:
samples- The samples for which we return attached data sets.- Since:
- 1.1
-
listExperiments
List<Experiment> listExperiments(String sessionToken, List<Project> projects, String experimentType) Return all experiments of the given type that belong to the supplied projects.- Parameters:
projects- The projects for which we return attached experiments.experimentType- The experiment type of the experiments we want to list. Since version 1.9 NULL are accepted. Specifying a NULL experiment type will result in all experiments for the specified projects being returned.- Since:
- 1.2
-
listExperimentsHavingSamples
List<Experiment> listExperimentsHavingSamples(String sessionToken, List<Project> projects, String experimentType) Return all experiments of the given type that belong to the supplied projects and have registered samles.- Parameters:
projects- The projects for which we return attached experiments.experimentType- The experiment type of the experiments we want to list. Specifying a NULL experiment type will result in all experiments for the specified projects being returned.- Since:
- 1.15
-
listExperimentsHavingDataSets
List<Experiment> listExperimentsHavingDataSets(String sessionToken, List<Project> projects, String experimentType) Return all experiments of the given type that belong to the supplied projects and have registered data sets.- Parameters:
projects- The projects for which we return attached experiments.experimentType- The experiment type of the experiments we want to list. Specifying a NULL experiment type will result in all experiments for the specified projects being returned.- Since:
- 1.15
-
filterExperimentsVisibleToUser
List<Experiment> filterExperimentsVisibleToUser(String sessionToken, List<Experiment> allExperiments, String userId) Returns a filtered list of allExperiments containing those experiments which are visible to userId.- Parameters:
allExperiments- The list of experiments that should be filtered.userId- The user that the experiments should be visible to that survive the filtering.- Returns:
- The filtered list of allExperiments containing all experiments which are visible to userId.
- Since:
- 1.18
-
listDataStores
Lists all DSS server registered this openBIS server instance. Any of the returned instances could be offline at the time of the listing.- Since:
- 1.23
-
getDefaultPutDataStoreBaseURL
Returns the URL for the default data store server for this openBIS AS.- Since:
- 1.4
-
tryGetDataStoreBaseURL
Returns the download URL for the data store of specified data set or null if such data set does not exist.- Since:
- 1.4
-
getDataStoreBaseURLs
Returns the download URL for the data store of specified data sets.- Returns:
- One entry for each data store that has data sets from dataSetCodes, together with the data set codes that are in this data store.
- Since:
- 1.19
-
listDataSetTypes
Returns all data set types.- Since:
- 1.5
-
listSampleTypes
Returns all sample types.- Since:
- 1.25
-
listExperimentTypes
Returns all experiment types.- Since:
- 1.25
-
getVocabularyTermsMap
@Deprecated HashMap<Vocabulary,List<ControlledVocabularyPropertyType.VocabularyTerm>> getVocabularyTermsMap(String sessionToken) Deprecated.Please uselistVocabularies(String)instead.Returns map of avaialable vocabulary terms.The method cannot be fully utilized over JSON-RPC, because there is no sensible way to (de)serialize a
Vocabularyobject to/from String. Any working implementation will make the life of non-java clients (e.g. Javascript) unnecessarily complicated.- Since:
- 1.6
-
listVocabularies
Returns all available vocabularies together with the contained terms.- Since:
- 1.13
-
listDataSets
List<DataSet> listDataSets(String sessionToken, List<Sample> samples, EnumSet<DataSet.Connections> connectionsToGet) Return all data sets attached to the given samples with connections.- Parameters:
samples- The samples for which we return attached data sets.- Since:
- 1.7
-
listDataSetsOnBehalfOfUser
List<DataSet> listDataSetsOnBehalfOfUser(String sessionToken, List<Sample> samples, EnumSet<DataSet.Connections> connectionsToGet, String userId) Return all data sets attached to the given samples with connections that the user userId is allowed to see.May only be called by users with capability
LIST_PROJECTS_ON_BEHALF_OF_USER.- Parameters:
samples- The samples for which we return attached data sets.userId- The user to run this query on behalf of.- Since:
- 1.18
-
listDataSetsForExperiments
List<DataSet> listDataSetsForExperiments(String sessionToken, List<Experiment> experiments, EnumSet<DataSet.Connections> connectionsToGet) Return all data sets attached to the given experiments with connections.- Parameters:
experiments- The experiments for which we return attached data sets.- Since:
- 1.14
-
listDataSetsForExperimentsOnBehalfOfUser
List<DataSet> listDataSetsForExperimentsOnBehalfOfUser(String sessionToken, List<Experiment> experiments, EnumSet<DataSet.Connections> connectionsToGet, String userId) Return all data sets attached to the given experiments with connections that the user userId is allowed to see.May only be called by users with capability
LIST_PROJECTS_ON_BEHALF_OF_USER.- Parameters:
experiments- The experiments for which we return attached data sets.userId- The user to run this query on behalf of.- Since:
- 1.18
-
getDataSetMetaData
Returns meta data for all specified data sets. This contains data set type, properties, and codes of linked parent and children data sets. For container data sets the contained data sets are not returned. Thus,DataSet.getContainedDataSets()is always empty.- Parameters:
dataSetCodes- Codes of requested data sets.- Returns:
- result in the same order as the list of data set codes.
- Since:
- 1.12
-
getDataSetMetaData
List<DataSet> getDataSetMetaData(String sessionToken, List<String> dataSetCodes, EnumSet<DataSetFetchOption> fetchOptions) Returns meta data for all specified data sets. Which parts of the data sets objects are fetched is controlled with thefetchOptionsparameter.- Parameters:
dataSetCodes- Codes of requested data sets.fetchOptions- Options that control which parts of the data sets are fetched.- Returns:
- result in the same order as the list of data set codes.
- Since:
- 1.16
-
searchOnSearchDomain
List<SearchDomainSearchResult> searchOnSearchDomain(String sessionToken, String preferredSearchDomainOrNull, String searchString, Map<String, String> optionalParametersOrNull) Searches on a search domain. If no preferred search domain is specified the first available one will be used. If the preferred sequence search domain doesn't exist or isn't available also the first available one will be used.- Parameters:
preferredSearchDomainOrNull- The key of the preferred search domain ornull.searchString- The search string.optionalParametersOrNull- Optional parameters. Can benull. The semantics depends on the type of search domain.- Since:
- 1.29
-
listAvailableSearchDomains
Lists available search domains. Their name attribute can be used when invokingsearchOnSearchDomain(String, String, String, Map).- Returns:
- empty list if no search domain is available.
- Since:
- 1.29
-
filterDataSetsVisibleToUser
List<DataSet> filterDataSetsVisibleToUser(String sessionToken, List<DataSet> allDataSets, String userId) Returns a filtered list of allDataSets containing those data sets which are visible to userId.- Parameters:
allDataSets- The list of data sets that should be filtered.userId- The user that the data sets should be visible to that survive the filtering.- Returns:
- The filtered list of allDataSets containing those data sets which are visible to userId.
- Since:
- 1.18
-
listExperiments
Return all experiments matching a specified set of identifiers.- Parameters:
experimentIdentifiers- the identifiers of the experiments to be returned.- Since:
- 1.9
-
listProjects
Returns all available projects. -
listProjectsOnBehalfOfUser
Returns all available projects that a particular user is allowed to see.May only be called by users with capability
LIST_PROJECTS_ON_BEHALF_OF_USER.- Parameters:
userId- The user identifier of the user to get the projects for.- Since:
- 1.18
-
listMetaprojects
Lists all metaprojects belonging to current user. -
listMetaprojectsOnBehalfOfUser
Lists all metaprojects belonging to specified user.- Since:
- 1.24
-
getUserDisplaySettings
-
listPropertyTypes
Lists property types.- Parameters:
withRelations- Iftrue, return relations.- Since:
- 1.26
-
generateCode
Generate Code.- Parameters:
prefix-entityKind-- Since:
- 1.28
-
listDeletions
Returns all deletions.- Parameters:
fetchOptions- Options that control which parts of the deletions are fetched.- Returns:
- a sorted list of
Deletion. - Since:
- 1.30
-
listPersons
Returns all persons.- Returns:
- a list of maps with the user information.
- Since:
- 1.31
-
countNumberOfSamplesForType
Returns number of samples for a sample type code.- Returns:
- the number of samples for certain type.
- Since:
- 1.32
-
listVocabularies(String)instead.