|
Mantid
|
CompositeCatalog is responsible for storing and performing options on multiple catalogues. More...
#include <CompositeCatalog.h>
Public Member Functions | |
| void | add (const ICatalog_sptr &catalog) |
| Adds a catalog to the list of catalogs (m_catalogs) More... | |
| CompositeCatalog () | |
| Constructor. More... | |
| void | getDataFiles (const std::string &investigationId, ITableWorkspace_sptr &outputws) override |
| Get datafiles. More... | |
| void | getDataSets (const std::string &investigationId, ITableWorkspace_sptr &outputws) override |
| Get datasets. More... | |
| int64_t | getNumberOfSearchResults (const ICat::CatalogSearchParam &inputs) override |
| Obtain the number of results returned by the search method. More... | |
| void | keepAlive () override |
| Keep current session alive. More... | |
| void | listInstruments (std::vector< std::string > &instruments) override |
| Get instruments list. More... | |
| void | listInvestigationTypes (std::vector< std::string > &invstTypes) override |
| Get investigationtypes list. More... | |
| CatalogSession_sptr | login (const std::string &username, const std::string &password, const std::string &endpoint, const std::string &facility) override |
| Log the user into the catalog system. More... | |
| void | logout () override |
| Log the user out of the catalog system. More... | |
| void | myData (ITableWorkspace_sptr &outputws) override |
| Show the logged in user's investigations search results. More... | |
| void | search (const ICat::CatalogSearchParam &inputs, ITableWorkspace_sptr &outputws, const int &offset, const int &limit) override |
| Search the catalog for data. More... | |
Public Member Functions inherited from Mantid::API::ICatalog | |
| virtual void | getDataFiles (const std::string &, ITableWorkspace_sptr &)=0 |
| get datafiles More... | |
| virtual void | getDataSets (const std::string &, ITableWorkspace_sptr &)=0 |
| get datasets. More... | |
| virtual int64_t | getNumberOfSearchResults (const ICat::CatalogSearchParam &)=0 |
| Obtain the number of results returned by the search method. More... | |
| virtual void | keepAlive ()=0 |
| keep alive More... | |
| virtual void | listInstruments (std::vector< std::string > &)=0 |
| instrument list More... | |
| virtual void | listInvestigationTypes (std::vector< std::string > &)=0 |
| get investigationtype lists More... | |
| virtual CatalogSession_sptr | login (const std::string &, const std::string &, const std::string &, const std::string &)=0 |
| method to login to a catalog More... | |
| virtual void | logout ()=0 |
| logout from catalog More... | |
| virtual void | myData (ITableWorkspace_sptr &)=0 |
| search logged in users data More... | |
| virtual void | search (const ICat::CatalogSearchParam &, ITableWorkspace_sptr &, const int &, const int &)=0 |
| Search investigations. More... | |
| virtual | ~ICatalog ()=default |
| Virtual destructor. More... | |
Private Attributes | |
| std::list< ICatalog_sptr > | m_catalogs |
CompositeCatalog is responsible for storing and performing options on multiple catalogues.
Definition at line 23 of file CompositeCatalog.h.
| Mantid::API::CompositeCatalog::CompositeCatalog | ( | ) |
Constructor.
Definition at line 12 of file CompositeCatalog.cpp.
| void Mantid::API::CompositeCatalog::add | ( | const ICatalog_sptr & | catalog | ) |
Adds a catalog to the list of catalogs (m_catalogs)
Add a catalog to the catalog container.
| catalog | :: The catalog to add to the container. |
Definition at line 18 of file CompositeCatalog.cpp.
References m_catalogs.
|
overridevirtual |
Get datafiles.
Obtain and save the datafiles for a given investigation for each catalog in the container.
| investigationId | :: A unique identifier of the investigation. |
| outputws | :: The workspace to store the results. |
Implements Mantid::API::ICatalog.
Definition at line 102 of file CompositeCatalog.cpp.
References m_catalogs.
|
overridevirtual |
Get datasets.
Obtain and save the datasets for a given investigation for each catalog in the container.
| investigationId | :: A unique identifier of the investigation. |
| outputws | :: The workspace to store the results. |
Implements Mantid::API::ICatalog.
Definition at line 90 of file CompositeCatalog.cpp.
References m_catalogs.
|
overridevirtual |
Obtain the number of results returned by the search method.
Obtain the number of investigations to be returned by the catalog.
Implements Mantid::API::ICatalog.
Definition at line 65 of file CompositeCatalog.cpp.
References m_catalogs.
|
overridevirtual |
Keep current session alive.
Keep each catalog session alive in the container.
Implements Mantid::API::ICatalog.
Definition at line 131 of file CompositeCatalog.cpp.
References m_catalogs.
|
overridevirtual |
Get instruments list.
Obtain a list of instruments from each catalog in the container.
| instruments | :: A reference to the vector to store the results. |
Implements Mantid::API::ICatalog.
Definition at line 112 of file CompositeCatalog.cpp.
References m_catalogs.
|
overridevirtual |
Get investigationtypes list.
Obtain a list of investigations from each catalog in the container.
| invstTypes | :: A reference to the vector to store the results. |
Implements Mantid::API::ICatalog.
Definition at line 122 of file CompositeCatalog.cpp.
References m_catalogs.
|
overridevirtual |
Log the user into the catalog system.
Authenticate the user against all catalogues in the container.
| username | :: The login name of the user. |
| password | :: The password of the user. |
| endpoint | :: The endpoint url of the catalog to log in to. |
| facility | :: The facility of the catalog to log in to. |
Implements Mantid::API::ICatalog.
Definition at line 27 of file CompositeCatalog.cpp.
References UNUSED_ARG.
|
overridevirtual |
Log the user out of the catalog system.
Log the user out of all catalogues in the container.
Implements Mantid::API::ICatalog.
Definition at line 39 of file CompositeCatalog.cpp.
References m_catalogs.
|
overridevirtual |
Show the logged in user's investigations search results.
Obtain and save the investigations that the user is an investigator of within each catalog.
| outputws | :: The workspace to store the results. |
Implements Mantid::API::ICatalog.
Definition at line 78 of file CompositeCatalog.cpp.
References m_catalogs.
|
overridevirtual |
Search the catalog for data.
Search through all catalogues that are in the container.
| inputs | :: A reference to a class containing the user's inputs. |
| outputws | :: A shared pointer to workspace were the search results are stored. |
| offset | :: Skip this many rows and start returning rows from this point. |
| limit | :: The limit of the number of rows returned by the query. |
Implements Mantid::API::ICatalog.
Definition at line 54 of file CompositeCatalog.cpp.
References m_catalogs.
|
private |
Definition at line 53 of file CompositeCatalog.h.
Referenced by add(), getDataFiles(), getDataSets(), getNumberOfSearchResults(), keepAlive(), listInstruments(), listInvestigationTypes(), logout(), myData(), and search().