4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
P2Constants.java
Go to the documentation of this file.
1 /*
2  * Project: Server for annotations sharing
3  * Author: Ing. Jaroslav Dytrych idytrych@fit.vutbr.cz
4  * File: P2Constants.java
5  * Description: Class with constants for protocol version 2
6  */
7 
8 /**
9  * @file P2Constants.java
10  *
11  * @brief Constants for protocol version 2
12  */
13 
14 package cz.vutbr.fit.knot.annotations.comet.protocolV2_0;
15 
16 /**
17  * Constants for protocol version 2
18  *
19  * @brief Constants for protocol version 2
20  */
21 public class P2Constants {
22  /* The constants are used for naming fields in array of strings with request
23  * for users information (specify informations that will be return) */
24  public static int USER_URI_ATTR = 0;
25  public static int USER_LOGIN_ATTR = 1;
26  public static int USER_NAME_ATTR = 2;
27  public static int USER_EMAIL_ATTR = 3;
28  public static int USER_IMAGE_ATTR = 4;
29  public static int USER_GROUPS_ATTR = 5;
30  public static int USER_ATTR_COUNT = 6;
31 
32  /* The constants are used for naming fields in array of strings with query
33  * for users */
34  public static int USERS_Q_URI_ATTR = 0;
35  public static int USERS_Q_EMAIL_ATTR = 1;
36  public static int USERS_Q_NAME_ATTR = 2;
37  public static int USERS_Q_GROUP_ATTR = 3;
38  public static int USERS_Q_ATTR_COUNT = 4;
39 
40  /* The constants are used for naming fields in array of strings with request
41  * for groups information (specify informations that will be return) */
42  public static int GROUPS_Q_NAME = 0;
43  public static int GROUPS_Q_ID = 1;
44  public static int GROUPS_Q_W_USERS = 2;
45  public static int GROUPS_Q_ATTR_COUNT = 3;
46 
47  /* The constants are used for naming fields in array of strings with query
48  * for groups */
49  public static int SUBS_QUERY_URI = 0;
50  public static int SUBS_QUERY_AUTHOR = 1;
51  public static int SUBS_QUERY_GROUP = 2;
52  public static int SUBS_QUERY_COUNT = 3;
53 } // public class P2Constants