]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/extras/ils_events.xml
added some NOT_FOUND events for record, copy, and circ (more to come)
[Evergreen.git] / Open-ILS / src / extras / ils_events.xml
1 <ils_events>
2         <notes>
3                 This file describes the event codes that an ILS method might return.  Not all
4                 methods will return event codes and it is up to each method to define which
5                 types of events it may return.  The standard event procedure is to return an
6                 object (JSON hash) with a field called "ilsevent" which contains the event code
7                 below.
8
9                 If events need to be placed into groups for any reason, the segregation shall
10                 be defined below with the accompanying events.
11         </notes>
12
13         <event code='0' textcode='SUCCESS'>
14                 <desc>No errors or unexpected events occurred</desc>
15         </event>
16         <event code='1000' textcode='LOGIN_FAILED'>
17                 <desc>
18                         User login failed.  Why the login failed is not specified.
19                 </desc>
20         </event>
21
22         <event code='1001' textcode='NO_SESSION'>
23                 <desc>
24                         User login session has either timed out or does not exist.
25                 </desc>
26         </event>
27
28         <event code='1002' textcode='USER_NOT_FOUND'>
29                 <desc>
30                         Someone attempted to retrieve a user from the system and the user
31                         was not found.
32                 </desc>
33         </event>
34
35         <event code='1500' textcode='CIRCULATION_NOT_FOUND'>
36                 <desc>
37                         Someone attempted to retrieve a circulation object from the system and 
38                         the object was not found.
39                 </desc>
40         </event>
41
42         <event code='1501' textcode='BIBLIO_RECORD_NOT_FOUND'>
43                 <desc>
44                         Someone attempted to retrieve a biblio record entry object from the 
45                         system and the object was not found.
46                 </desc>
47         </event>
48
49         <event code='1502' textcode='COPY_NOT_FOUND'>
50                 <desc>
51                         Someone attempted to retrieve a copy object from the 
52                         system and the object was not found.
53                 </desc>
54         </event>
55
56
57
58
59         <event code='2000' textcode='BAD_PARAMS'>
60                 <desc>
61                         Invalid parameters were encountered in a method
62                 </desc>
63         </event>
64
65         <event code='5000' textcode='PERM_FAILURE'>
66                 <desc> 
67                         Permission Error.  * The object returning this code shall also 
68                         contain a field "ilsperm" containing the name of the permission which failed 
69                         and a field called "ilspermloc" defining the location at which the permission
70                         failed if available.
71                 </desc>
72         </event>
73 </ils_events>
74
75
76
77