Added Admin Extended Service ASN
[yaz-moved-to-github.git] / z39.50 / esadmin.asn
1 ESFormat-Admin
2 {Z39-50-extendedService Index-Data(81) AdminES (1)} DEFINITIONS ::=
3   -- oid is 1.2.840.10003.9.81.1
4 BEGIN
5 IMPORTS DiagRec, InternationalString, Segment
6 FROM Z39-50-APDU-1995;
7 Admin ::= CHOICE{
8     esRequest      [1] IMPLICIT SEQUENCE{
9        toKeep         [1] OriginPartToKeep,
10        notToKeep      [2] OriginPartNotToKeep},
11     taskPackage    [2] IMPLICIT SEQUENCE{
12                        originPart     [1]
13                                    OriginPartToKeep,
14                        targetPart     [2] TargetPart}}
15
16 OriginPartToKeep ::= SEQUENCE{
17 action                  [1] CHOICE{
18     reIndex         [1] NULL,
19     truncate        [2] NULL,
20     delete          [3] NULL,
21     create          [4] NULL,
22     import          [5] ImportParameters,
23     refresh         [6] NULL,   -- Review internal representation of records against source files on disk to
24                                 -- see if they have been updated.
25     commit          [7] NULL},
26 databaseName           [2] IMPLICIT InternationalString OPTIONAL}
27
28 OriginPartNotToKeep ::= CHOICE{
29 records                 [1] Segment,
30 recordsWillFollow       [0] NULL}
31
32 TargetPart ::= SEQUENCE{
33   updateStatus        [1] IMPLICIT INTEGER{
34                           success (1),
35                           partial (2),
36                           failure (3)},
37   globalDiagnostics   [2] IMPLICIT SEQUENCE OF
38                               DiagRec OPTIONAL
39                }
40                
41 -- Auxiliary definitions for Admin
42
43 ImportParameters ::= SEQUENCE{
44  recordType          [1] IMPLICIT InternationalString
45 }
46
47 END