ITK Function Reference

(V10000.1.0.60_20160308.00)
audit.h
Go to the documentation of this file.
1 /*==============================================================================
2  Copyright (c) 2003-2005 UGS Corporation
3  Unpublished - All Rights Reserved
4  ==============================================================================*/
5 
13 /* */
14 
15 #ifndef AUDIT_H
16 #define AUDIT_H
17 
18 #include <qry/qry.h>
19 #include <tc/tc_startup.h>
20 #include <tccore/workspaceobject.h>
21 #include <tccore/item.h>
22 #include <stdarg.h>
23 #include <ss/ss_const.h>
24 #include <sa/tccalendar.h>
25 #include <sa/libsa_exports.h>
26 
33 #define AUDIT_equal 0
34 #define AUDIT_not_equal 1
35 #define AUDIT_less_than 2
36 #define AUDIT_less_than_or_equal 3
37 #define AUDIT_greater_than 4
38 #define AUDIT_greater_than_or_equal 5
39 #define AUDIT_like 6
40 #define AUDIT_in 7
41 
42 
58 typedef struct AUDIT_log_query_s {
63  char* id;
65  char* name;
67  char* rev;
69  char* puid;
71  char* userId;
79  char* groupName;
83  char* objSeqNumber;
85  char* objTypeName;
89  char* secObjId;
91  char* secObjName;
93  char* secObjRev;
99  char* errorCode;
101  char* errorMsg;
103  char* projectName;
104  char* projectId;
105  char* projectUid;
108 
109 typedef struct AUDIT_record_s {
110  char objTagStr[15];
112  char id[ITEM_id_size_c + 1];
113  char revName[33];
115  char objTypeName[33];
116  char eventTypeTagStr[15];
117  char eventTypeName[33];
118  char auditDefTagStr[15];
119  char userId[33];
120  char groupTagStr[15];
121  char groupName[257];
122  char secObjTagStr[15];
125  char secObjRevName[33];
127  char secObjTypeName[33];
128  char* dateStr;
130  char errorMsg[257];
133  char** propNames;
134  char** propValues;
137 
138 #ifdef __cplusplus
139  extern "C"{
140 #endif
141 
142 
146 extern SA_API int AUDIT_log_event (
147  tag_t targetObject,
148  tag_t objectType,
149  tag_t eventType,
150  const char* objectId,
151  const char* objectName,
152  const char* rev
153  );
154 
158 extern SA_API int AUDIT_log_event2 (
159  tag_t targetObject,
160  tag_t objectType,
161  tag_t eventType,
162  tag_t subEventType,
165  const char* objectId,
166  const char* objectName,
167  const char* rev
168  );
169 
175 extern SA_API int AUDIT_log_event3 (
176  tag_t targetObject,
177  tag_t objectType,
178  tag_t eventType,
179  tag_t subEventType,
182  const char* objectId,
183  const char* objectName,
184  const char* rev,
185  int objectSeq,
186  tag_t secondaryObject,
187  int paramCount,
188  const char** paramNames,
189  const char** paramValues,
190  int errorCode,
191  const char* errorMsg
192  );
193 
194 extern SA_API int AUDIT_log_event4 (
195  tag_t targetObject,
196  tag_t objectType,
197  tag_t eventType,
198  tag_t subEventType,
201  const char* objectId,
202  const char* objectName,
203  const char* rev,
204  int objectSeq,
205  int secondaryObjectTagCount,
206  tag_t* secondaryObjectTags,
207  const char** secondaryObjectQualifiers,
208  int paramCount,
209  const char** paramNames,
210  const char** paramValues,
211  int errorCode,
212  const char* errorMsg
213  );
214 
215 
219 extern SA_API int AUDIT_get_records (
220  AUDIT_log_query_t logQuery,
222  int nConditions,
223  char** conditionValues,
224  int* resColCount,
225  char*** resColNames,
226  QRY_user_query_row_t** resRows
227  );
228 
229 extern SA_API int AUDIT_get_records_with_specified_col (
230  AUDIT_log_query_t logQuery,
231  int nConditions,
232  char** conditionValues,
233  int resColCount,
234  char** resColNames,
235  QRY_user_query_row_t** resRows
236  );
237 
238 extern SA_API int AUDIT_get_records_with_specified_col2 (
239  AUDIT_log_query_t logQuery,
240  int nConditions,
241  char** conditionPropNames,
242  char** conditionValues,
243  int resColCount,
244  char** resColNames,
245  QRY_user_query_row_t** resRows
246  );
247 
248 extern SA_API int AUDIT_delete_specified_records (
249  int logCount,
250  char** logUidis
251  );
252 
256 extern SA_API int AUDIT_delete_records (
257  AUDIT_log_query_t logQuery
258  );
259 
264 extern SA_API int AUDIT_insert_record (
265  AUDIT_record_t logInfo
266  );
267 
268 extern SA_API void AUDIT_initialize_log_query (
269  AUDIT_log_query_t* logQuery
270  );
271 
274 #ifdef __cplusplus
275 }
276 #endif
277 
278 #include <sa/libsa_undef.h>
279 
280 #endif