BrightSide Workbench Full Report + Source Code
AssistantConstants.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2014 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 package org.turro.assistant;
20 
25 public class AssistantConstants {
26 
27  public static final String
28  FROM_COMMENTS = "from-comments",
29  FROM_VOTES = "from-votes",
30  FROM_SUBSCRIPTIONS = "from-subscription",
31  FROM_STUDENTS = "from-students",
32  FROM_FORUM = "from-forum";
33 
34  public static String all() {
35  return new StringBuffer()
36  .append(FROM_COMMENTS)
37  .append(",")
38  .append(FROM_VOTES)
39  .append(",")
40  .append(FROM_SUBSCRIPTIONS)
41  .append(",")
42  .append(FROM_STUDENTS)
43  .append(",")
44  .append(FROM_FORUM)
45  .toString();
46  }
47 
48  public static String participants() {
49  return new StringBuffer()
50  .append(FROM_COMMENTS)
51  .append(",")
52  .append(FROM_VOTES)
53  .append(",")
54  .append(FROM_STUDENTS)
55  .append(",")
56  .append(FROM_FORUM)
57  .toString();
58  }
59 
60  public static String subscribers() {
61  return new StringBuffer()
62  .append(FROM_SUBSCRIPTIONS)
63  .append(",")
64  .append(FROM_STUDENTS)
65  .toString();
66  }
67 
68  private AssistantConstants() {
69  }
70 
71 }