$darkmode

| Qore ServiceNowRestDataProvider Module Reference 1.2

ServiceNowTablesDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
26 namespace ServiceNowRestDataProvider {
28 class ServiceNowTablesDataProvider : public DataProvider::AbstractDataProvider {
29
30 public:
32 ServiceNowRestClient::ServiceNowRestClient rest;
33
34 protected:
36 bool all_access;
37
39 *hash<auto> access;
40
42 *hash<auto> accessid;
43
45 *hash<auto> meta;
46
48 hash<string, string> scmap;
49
51 Qore::Thread::Mutex lck();
52
53 public:
54
56 constructor(ServiceNowRestClient rest);
57
58
60 string getName();
61
62
64 string getDesc();
65
66
68 protected:
69 hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
70 public:
71
72
74
76 protected:
77 *list<string> getChildProviderNamesImpl();
78 public:
79
80
82
86 protected:
87 *DataProvider::AbstractDataProvider getChildProviderImpl(string name);
88 public:
89
90
92 *list<hash<DataProviderSummaryInfo>> getChildProviderSummaryInfo();
93
94
96 protected:
97 *hash<auto> getAllAccess();
98 public:
99
100
102 protected:
103 *hash<auto> getAccess(string name);
104 public:
105
106
108 protected:
109 *hash<auto> getAccessIdIntern(string sys_id, reference<string> name);
110 public:
111
112
114 protected:
115 *hash<auto> getMetadata(string name);
116 public:
117
118
120 protected:
121 *hash<auto> getMetadataIntern(string name);
122 public:
123
124
126 static hash<string, bool> parseBools(hash<auto> h);
127};
128};
Qore::Thread::Mutex
ServiceNowRestDataProvider::ServiceNowTablesDataProvider
The ServiceNowTablesDataProvider data provider class.
Definition: ServiceNowTablesDataProvider.qc.dox.h:28
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::getStaticInfoImpl
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::getChildProviderSummaryInfo
*list< hash< DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::all_access
bool all_access
Flag if all access info has been queried.
Definition: ServiceNowTablesDataProvider.qc.dox.h:36
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::getAllAccess
*hash< auto > getAllAccess()
Returns access info for all tables.
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::rest
ServiceNowRestClient::ServiceNowRestClient rest
The REST client object for API calls.
Definition: ServiceNowTablesDataProvider.qc.dox.h:32
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::lck
Qore::Thread::Mutex lck()
Metadata mutex.
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::getMetadataIntern
*hash< auto > getMetadataIntern(string name)
Returns metadata for the given table; must have the lock held.
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::meta
*hash< auto > meta
Metadata keyed by table name.
Definition: ServiceNowTablesDataProvider.qc.dox.h:45
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::scmap
hash< string, string > scmap
Superclass map; child -> parent.
Definition: ServiceNowTablesDataProvider.qc.dox.h:48
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::getChildProviderNamesImpl
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::getDesc
string getDesc()
Returns the data provider description.
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::getName
string getName()
Returns the data provider name.
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::getChildProviderImpl
*DataProvider::AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::parseBools
static hash< string, bool > parseBools(hash< auto > h)
Returns a hash with all values parsed to boolean values.
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::constructor
constructor(ServiceNowRestClient rest)
Creates the object from the arguments.
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::getMetadata
*hash< auto > getMetadata(string name)
Returns metadata for the given table.
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::getAccessIdIntern
*hash< auto > getAccessIdIntern(string sys_id, reference< string > name)
Returns access info for one table; must be called with the lock held.
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::accessid
*hash< auto > accessid
Table access keyed by table ID.
Definition: ServiceNowTablesDataProvider.qc.dox.h:42
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::access
*hash< auto > access
Table access keyed by table name.
Definition: ServiceNowTablesDataProvider.qc.dox.h:39
ServiceNowRestDataProvider::ServiceNowTablesDataProvider::getAccess
*hash< auto > getAccess(string name)
Returns access info for one table.
ServiceNowRestDataProvider
Qore ServiceNowRestDataProvider module definition.
Definition: ServiceNowRestDataProvider.qc.dox.h:26