/
System.ice
194 lines (171 loc) · 5.2 KB
/
System.ice
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
/*
* $Id$
*
* Copyright 2007 Glencoe Software, Inc. All rights reserved.
* Use is subject to license terms supplied in LICENSE.txt
*
*/
#ifndef OMERO_SYSTEM_ICE
#define OMERO_SYSTEM_ICE
#include <omero/RTypes.ice>
#include <omero/ModelF.ice>
#include <Ice/BuiltinSequences.ice>
/*
* The omero::system module combines the ome.system and ome.parameters
* packages from OMERO.server, and represent API arguments which are
* neither model objects (omero.model.*.ice) nor RTypes (RTypes.ice).
*/
module omero {
module sys {
// START: TRANSFERRED FROM COLLECTIONS
/*
* Some collections were initially defined under omero::sys
*/
["java:type:java.util.ArrayList<Long>:java.util.List<Long>"]
sequence<long> LongList;
["java:type:java.util.ArrayList<Integer>:java.util.List<Integer>"]
sequence<int> IntList;
["java:type:java.util.HashMap<Long,Long>:java.util.Map<Long,Long>"]
dictionary<long, long> CountMap;
/**
* ParamMap replaces the ome.parameters.QueryParam
* type, since the use of varargs is not possible.
**/
["java:type:java.util.HashMap"]
dictionary<string,omero::RType> ParamMap;
/**
* IdByteMap is used by the ThumbnailService for the multiple thumbnail
* retrieval methods.
**/
["java:type:java.util.HashMap"]
dictionary<long,Ice::ByteSeq> IdByteMap;
// END: TRANSFERRED FROM COLLECTIONS
/**
* Maps the ome.system.EventContext interface. Represents the
* information known by the server security system about the
* current user login.
**/
class EventContext
{
long shareId;
long sessionId;
string sessionUuid;
long userId;
string userName;
long groupId;
string groupName;
bool isAdmin;
long eventId;
string eventType;
LongList memberOfGroups;
LongList leaderOfGroups;
omero::model::Permissions groupPermissions;
};
/**
* Provides common filters which MAY be applied to a
* query. Check the documentation for the particular
* method for more information on how these values will
* be interpreted as well as default values if they
* are missing. In general they are intended to mean:
*
* unique := similar to SQL's ""DISTINCT"" keyword
*
* ownerId := (some) objects queried should belong
* to this user
*
* groupId := (some) objects queried should belong
* to this group
*
* preferOwner := true implies if if ownerId and groupId
* are both defined, use only ownerId
*
* offset/limit := represent a page which should be loaded
* Note: servers may choose to impose a
* maximum limit.
*
* start/endTime := (some) objects queried shoud have been
* created and/or modified within time span.
*
**/
class Filter
{
omero::RBool unique;
omero::RLong ownerId;
omero::RLong groupId;
omero::RInt offset;
omero::RInt limit;
omero::RTime startTime;
omero::RTime endTime;
// omero::RBool preferOwner; Not yet implemented
};
/**
* Similar to Filter, provides common options which MAY be
* applied on a given method. Check each interface's
* documentation for more details.
*
* leaves := whether or not graph leaves (usually images)
* should be loaded
*
* orphan := whether or not orphaned objects (e.g. datasets
* not in a project) should be loaded
*
* acquisition...:= whether or not acquisitionData (objectives, etc.)
* should be loaded
*
**/
class Options
{
omero::RBool leaves;
omero::RBool orphan;
omero::RBool acquisitionData;
};
/**
* Holder for all the parameters which can be taken to a query.
**/
class Parameters
{
/*
* Contains named arguments which may either be used by
* a Query implementation or by the method itself for
* further refinements.
*/
ParamMap map;
Filter theFilter;
Options theOptions;
};
/**
* Principal used for login, etc.
**/
class Principal
{
string name;
string group;
string eventType;
omero::model::Permissions umask;
};
/**
* Server-constants used for determining particular groups and
* users.
**/
class Roles
{
// Root account
long rootId;
string rootName;
// System group (defines who is an "admin")
long systemGroupId;
string systemGroupName;
// The group which defines a ""user"". Any user not in the user
// group is considered inactive.
long userGroupId;
string userGroupName;
// the guest user
long guestId;
string guestName;
// ""guest"" group. Can log in and use some methods.
long guestGroupId;
string guestGroupName;
};
};
};
#endif // OMERO_SYSTEM_ICE