annotate src/jungle/test/bbs/NetworkJungleBulletinBoard.java @ 45:bf3dc481cc9b

modified JungleManager to singleton
author one
date Fri, 12 Jul 2013 09:47:22 +0900
parents 12d87bb4b84d
children fd3643699f83
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
1 package jungle.test.bbs;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
2
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
3 import java.nio.ByteBuffer;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
4 import java.util.concurrent.atomic.AtomicInteger;
39
10359a815068 add alice.jungle.codesegment.remote
one
parents: 38
diff changeset
5
10359a815068 add alice.jungle.codesegment.remote
one
parents: 38
diff changeset
6 import alice.jungle.core.NetworkDefaultJungle;
38
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
7 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.DefaultJungle;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
8 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.Jungle;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
9 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.JungleTree;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
10 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.JungleTreeEditor;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
11 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Children;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
12 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Node;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
13 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNodePath;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
14 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultTreeEditor;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
15 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.EditableNode;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
16 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.NodeEditor;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
17 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.traverser.DefaultTraverser;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
18 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.DefaultEither;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
19 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Either;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
20 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Error;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
21 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.IterableConverter;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
22
39
10359a815068 add alice.jungle.codesegment.remote
one
parents: 38
diff changeset
23 public class NetworkJungleBulletinBoard implements BulletinBoard
38
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
24 {
42
4419ac56cbfd implemented serverName filed
one
parents: 39
diff changeset
25 private JungleManager jm;
38
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
26 private final Jungle jungle;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
27
43
12d87bb4b84d modified LogUpdateCodeSegment
one
parents: 42
diff changeset
28 public NetworkJungleBulletinBoard(String _serverName)
38
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
29 {
45
bf3dc481cc9b modified JungleManager to singleton
one
parents: 43
diff changeset
30 Jungle _j = new NetworkDefaultJungle(null,"hoge",new DefaultTreeEditor(new DefaultTraverser()), _serverName);
bf3dc481cc9b modified JungleManager to singleton
one
parents: 43
diff changeset
31 JungleManager.setJungle(_j);
bf3dc481cc9b modified JungleManager to singleton
one
parents: 43
diff changeset
32 jungle = jm.getJungle();
38
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
33 jungle.createNewTree("boards");
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
34 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
35
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
36 public Iterable<String> getBoards()
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
37 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
38 JungleTree tree = jungle.getTreeByName("boards");
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
39 Node node = tree.getRootNode();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
40 Children<Node> chs = node.getChildren();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
41
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
42 IterableConverter.Converter<String,Node> converter = new IterableConverter.Converter<String,Node>(){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
43 public String conv(Node _b) {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
44 ByteBuffer e = _b.getAttributes().get("name");
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
45 return new String(e.array());
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
46 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
47 };
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
48
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
49 return new IterableConverter<String,Node>(chs,converter);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
50 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
51
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
52 public void createBoards(final String _name,final String _author,final String _initMessage,final String _editKey)
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
53 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
54 if(null == jungle.createNewTree(_name)){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
55 throw new IllegalStateException();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
56 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
57
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
58 JungleTree tree = jungle.getTreeByName("boards");
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
59 JungleTreeEditor editor = tree.getTreeEditor();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
60 DefaultNodePath root = new DefaultNodePath();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
61 Either<Error,JungleTreeEditor> either = editor.addNewChildAt(root,0);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
62 if(either.isA()){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
63 throw new IllegalStateException();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
64 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
65 editor = either.b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
66
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
67 either = editor.putAttribute(root.add(0),"name",ByteBuffer.wrap(_name.getBytes()));
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
68 if(either.isA()){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
69 throw new IllegalStateException();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
70 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
71 editor = either.b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
72 Either<Error,JungleTreeEditor> result = editor.success();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
73 if(result.isA()){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
74 throw new IllegalStateException();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
75 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
76
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
77 tree = jungle.getTreeByName(_name);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
78 editor = tree.getTreeEditor();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
79 either = editor.addNewChildAt(root,0);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
80 if(either.isA()){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
81 throw new IllegalStateException();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
82 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
83 editor = either.b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
84
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
85 NodeEditor e = new NodeEditor(){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
86 public <T extends EditableNode<T>> Either<Error, T> edit(T _e){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
87 _e = _e.getAttributes().put("author",ByteBuffer.wrap(_author.getBytes())).b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
88 _e = _e.getAttributes().put("mes",ByteBuffer.wrap(_initMessage.getBytes())).b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
89 _e = _e.getAttributes().put("key",ByteBuffer.wrap(_editKey.getBytes())).b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
90 return DefaultEither.newB(_e);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
91 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
92 };
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
93
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
94 either = editor.edit(root.add(0),e);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
95 if(either.isA()){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
96 throw new IllegalStateException();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
97 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
98 editor = either.b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
99 editor.success();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
100 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
101
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
102 public void createBoardMessage(final String _board,final String _author,final String _message,final String _editKey)
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
103 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
104 JungleTree tree = jungle.getTreeByName(_board);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
105 if(tree == null){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
106 throw new IllegalStateException();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
107 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
108
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
109 JungleTreeEditor editor;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
110 do{
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
111 Node node = tree.getRootNode();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
112 int size = node.getChildren().size();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
113 DefaultNodePath path = new DefaultNodePath();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
114
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
115 editor = tree.getTreeEditor();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
116 Either<Error, JungleTreeEditor> either = editor.addNewChildAt(path,size);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
117 if(either.isA()){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
118 throw new IllegalStateException();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
119 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
120 editor = either.b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
121
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
122 NodeEditor e = new NodeEditor(){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
123 public <T extends EditableNode<T>> Either<Error, T> edit(T _e){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
124 _e = _e.getAttributes().put("author",ByteBuffer.wrap(_author.getBytes())).b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
125 _e = _e.getAttributes().put("mes",ByteBuffer.wrap(_message.getBytes())).b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
126 _e = _e.getAttributes().put("key",ByteBuffer.wrap(_editKey.getBytes())).b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
127 return DefaultEither.newB(_e);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
128 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
129 };
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
130
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
131 path = path.add(size);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
132 either = editor.edit(path,e);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
133 if(either.isA()){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
134 throw new IllegalStateException();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
135 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
136 editor = either.b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
137 }while(editor.success().isA());
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
138 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
139
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
140 public void editMessage(String _board,String _uuid,final String _author,final String _message,final String _editKey)
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
141 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
142 JungleTreeEditor editor = null;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
143 do{
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
144 DefaultNodePath path = new DefaultNodePath();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
145 path = path.add(Integer.parseInt(_uuid));
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
146
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
147 JungleTree tree = jungle.getTreeByName(_board);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
148 editor = tree.getTreeEditor();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
149 NodeEditor e = new NodeEditor(){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
150 public <T extends EditableNode<T>> Either<Error, T> edit(T _e){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
151 _e = _e.getAttributes().put("author",ByteBuffer.wrap(_author.getBytes())).b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
152 _e = _e.getAttributes().put("mes",ByteBuffer.wrap(_message.getBytes())).b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
153 _e = _e.getAttributes().put("key",ByteBuffer.wrap(_editKey.getBytes())).b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
154 return DefaultEither.newB(_e);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
155 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
156 };
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
157
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
158 Either<Error,JungleTreeEditor> either = editor.edit(path,e);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
159 if(either.isA()){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
160 throw new IllegalStateException();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
161 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
162 editor = either.b();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
163 }while(editor.success().isA());
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
164 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
165
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
166 public Iterable<BoardMessage> getMessages(String _boardName)
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
167 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
168 JungleTree tree = jungle.getTreeByName(_boardName);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
169 Node node = tree.getRootNode();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
170 Children<Node> chs = node.getChildren();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
171
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
172 final AtomicInteger counter = new AtomicInteger(0);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
173 IterableConverter.Converter<BoardMessage,Node> converter = new IterableConverter.Converter<BoardMessage,Node>(){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
174 public BoardMessage conv(Node _b) {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
175 String uuid = Integer.toString(counter.get());
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
176 String author = new String(_b.getAttributes().get("author").array());
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
177 String message = new String(_b.getAttributes().get("mes").array());
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
178 counter.incrementAndGet();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
179 return new BoardMessageImpl(author,message,uuid);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
180 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
181 };
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
182
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
183 return new IterableConverter<BoardMessage,Node>(chs,converter);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
184 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
185
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
186 private static class BoardMessageImpl implements BoardMessage
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
187 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
188 private final String author;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
189 private final String message;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
190 private final String uuid;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
191
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
192 public BoardMessageImpl(String _author,String _message,String _uuid)
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
193 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
194 author = _author;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
195 message = _message;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
196 uuid = _uuid;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
197 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
198
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
199 public String getAuthor()
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
200 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
201 return author;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
202 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
203
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
204 public String getMessage()
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
205 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
206 return message;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
207 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
208
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
209 public String getUUID()
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
210 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
211 return uuid;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
212 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
213 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
214 }