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