Qore ServiceNowRestDataProvider Module Reference  1.1
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  *hash<auto> access;
40 
42  *hash<auto> accessid;
43 
45  *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 protected:
65  hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
66 public:
67 
68 
70 
72 protected:
73  *list<string> getChildProviderNamesImpl();
74 public:
75 
76 
78 
82 protected:
83  *DataProvider::AbstractDataProvider getChildProviderImpl(string name);
84 public:
85 
86 
88 protected:
89  *hash<auto> getAllAccess();
90 public:
91 
92 
94 protected:
95  *hash<auto> getAccess(string name);
96 public:
97 
98 
100 protected:
101  *hash<auto> getAccessIdIntern(string sys_id, reference<string> name);
102 public:
103 
104 
106 protected:
107  *hash<auto> getMetadata(string name);
108 public:
109 
110 
112 protected:
113  *hash<auto> getMetadataIntern(string name);
114 public:
115 
116 
118  static hash<string, bool> parseBools(hash<auto> h);
119 };
120 };
*hash< auto > getAccessIdIntern(string sys_id, reference< string > name)
Returns access info for one table; must be called with the lock held.
*hash< auto > getAllAccess()
Returns access info for all tables.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
*hash< auto > accessid
Table access keyed by table ID.
Definition: ServiceNowTablesDataProvider.qc.dox.h:42
hash< string, string > scmap
Superclass map; child -> parent.
Definition: ServiceNowTablesDataProvider.qc.dox.h:48
string getName()
Returns the data provider name.
Qore ServiceNowRestDataProvider module definition.
Definition: ServiceNowRestDataProvider.qc.dox.h:32
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
*hash< auto > meta
Metadata keyed by table name.
Definition: ServiceNowTablesDataProvider.qc.dox.h:45
*hash< auto > getAccess(string name)
Returns access info for one table.
*hash< auto > getMetadata(string name)
Returns metadata for the given table.
static hash< string, bool > parseBools(hash< auto > h)
Returns a hash with all values parsed to boolean values.
bool all_access
Flag if all access info has been queried.
Definition: ServiceNowTablesDataProvider.qc.dox.h:36
*DataProvider::AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
*hash< auto > access
Table access keyed by table name.
Definition: ServiceNowTablesDataProvider.qc.dox.h:39
*hash< auto > getMetadataIntern(string name)
Returns metadata for the given table; must have the lock held.
constructor(ServiceNowRestClient rest)
Creates the object from the arguments.
The ServiceNowTablesDataProvider data provider class.
Definition: ServiceNowTablesDataProvider.qc.dox.h:28
Qore::Thread::Mutex lck()
Metadata mutex.
ServiceNowRestClient::ServiceNowRestClient rest
The REST client object for API calls.
Definition: ServiceNowTablesDataProvider.qc.dox.h:32