irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

icatDefines.h
Go to the documentation of this file.
1 
4 
10 #ifndef ICAT_DEFINES_H__
11 #define ICAT_DEFINES_H__
12 
13 #define MAX_NUM_OF_SELECT_ITEMS 30
14 #define MAX_NUM_OF_CONCURRENT_STMTS 50
15 #define MAX_NUM_OF_COLS_IN_TABLE 50
16 #define MAX_SQL_SIZE 4000
17 #define MAX_SQL_SIZE_GENERAL_QUERY 16000
18 
19 #define MAX_INTEGER_SIZE 40 /* ??, for now */
20 
21 #define DB_USERNAME_LEN 64
22 #define DB_PASSWORD_LEN 64
23 #define DB_TYPENAME_LEN 64
24 
25 #define DB_TYPE_POSTGRES 1
26 #define DB_TYPE_ORACLE 2
27 #define DB_TYPE_MYSQL 3
28 
29 #define TICKET_TYPE_DATA "data"
30 #define TICKET_TYPE_COLL "collection"
31 
32 /*
33  These are the access permissions known to the system, listed in
34  order. The defines are here to make it clear what these are and
35  where in the code they are being used.
36 
37  These, and their integer values, are defined in the R_TOKN_MAIN
38  table.
39 
40  Having a particular access permission implies that the user has
41  all of the lower ones. For example, if you have "own", you have
42  all the rest. And if you have "delete metadata", you have "modify
43  metadata". The ICAT code generates sql that asks, essentially,
44  "does the user have ACCESS_x or better?"
45 
46  */
47 #define ACCESS_NULL "null"
48 #define ACCESS_EXECUTE "execute"
49 #define ACCESS_READ_ANNOTATION "read annotation"
50 #define ACCESS_READ_SYSTEM_METADATA "read system metadata"
51 #define ACCESS_READ_METADATA "read metadata"
52 #define ACCESS_READ_OBJECT "read object"
53 #define ACCESS_WRITE_ANNOTATION "write annotation"
54 #define ACCESS_CREATE_METADATA "create metadata"
55 #define ACCESS_MODIFY_METADATA "modify metadata"
56 #define ACCESS_DELETE_METADATA "delete metadata"
57 #define ACCESS_ADMINISTER_OBJECT "administer object"
58 #define ACCESS_CREATE_OBJECT "create object"
59 #define ACCESS_MODIFY_OBJECT "modify object"
60 #define ACCESS_DELETE_OBJECT "delete object"
61 #define ACCESS_CREATE_TOKEN "create token"
62 #define ACCESS_DELETE_TOKEN "delete token"
63 #define ACCESS_CURATE "curate"
64 #define ACCESS_OWN "own"
65 
66 #define ACCESS_INHERIT "inherit"
67 #define ACCESS_NO_INHERIT "noinherit"
68 
69 
70 // The following are the Auditing action values
71 
72 #define AU_ACCESS_GRANTED 1000
73 
74 #define AU_REGISTER_DATA_OBJ 2010
75 #define AU_REGISTER_DATA_REPLICA 2011
76 #define AU_UNREGISTER_DATA_OBJ 2012
77 
78 #define AU_REGISTER_DELAYED_RULE 2020
79 #define AU_MODIFY_DELAYED_RULE 2021
80 #define AU_DELETE_DELAYED_RULE 2022
81 
82 #define AU_REGISTER_RESOURCE 2030
83 #define AU_DELETE_RESOURCE 2031
84 
85 #define AU_DELETE_USER_RE 2040
86 
87 #define AU_REGISTER_COLL_BY_ADMIN 2050
88 #define AU_REGISTER_COLL 2051
89 
90 #define AU_DELETE_COLL_BY_ADMIN 2060
91 #define AU_DELETE_COLL 2061
92 #define AU_DELETE_ZONE 2062
93 
94 #define AU_REGISTER_ZONE 2064
95 
96 #define AU_MOD_USER_NAME 2070
97 #define AU_MOD_USER_TYPE 2071
98 #define AU_MOD_USER_ZONE 2072
99 #define AU_MOD_USER_DN 2073 // no longer used
100 #define AU_MOD_USER_INFO 2074
101 #define AU_MOD_USER_COMMENT 2075
102 #define AU_MOD_USER_PASSWORD 2076
103 
104 #define AU_ADD_USER_AUTH_NAME 2077
105 #define AU_DELETE_USER_AUTH_NAME 2078
106 
107 #define AU_MOD_GROUP 2080
108 #define AU_MOD_RESC 2090
109 #define AU_MOD_RESC_FREE_SPACE 2091
110 #define AU_MOD_RESC_GROUP 2092
111 #define AU_MOD_ZONE 2093
112 
113 #define AU_REGISTER_USER_RE 2100
114 #define AU_ADD_AVU_METADATA 2110
115 #define AU_DELETE_AVU_METADATA 2111
116 #define AU_COPY_AVU_METADATA 2112
117 #define AU_ADD_AVU_WILD_METADATA 2113
118 
119 #define AU_MOD_ACCESS_CONTROL_OBJ 2120
120 #define AU_MOD_ACCESS_CONTROL_COLL 2121
121 #define AU_MOD_ACCESS_CONTROL_COLL_RECURSIVE 2122
122 #define AU_MOD_ACCESS_CONTROL_RESOURCE 2123
123 
124 #define AU_RENAME_DATA_OBJ 2130
125 #define AU_RENAME_COLLECTION 2131
126 
127 #define AU_MOVE_DATA_OBJ 2140
128 #define AU_MOVE_COLL 2141
129 
130 #define AU_REG_TOKEN 2150
131 #define AU_DEL_TOKEN 2151
132 
133 #define AU_ADD_CHILD_RESOURCE 2160
134 #define AU_DEL_CHILD_RESOURCE 2161
135 
136 #define AU_CREATE_TICKET 2170
137 #define AU_MOD_TICKET 2171
138 #define AU_DELETE_TICKET 2172
139 #define AU_USE_TICKET 2173
140 
141 
142 
143 #endif // ICAT_DEFINES_H__