PageRenderTime 38ms CodeModel.GetById 28ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/v3.2/nimbits-model/src/com/nimbits/client/model/usercontext/UserContextImpl.java

http://nimbits-server.googlecode.com/
Java | 54 lines | 21 code | 15 blank | 18 comment | 0 complexity | 9e19ab421786f4a48031b4c594b10829 MD5 | raw file
 1/*
 2 * Copyright (c) 2010 Tonic Solutions LLC.
 3 *
 4 * http://www.nimbits.com
 5 *
 6 *
 7 * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
 8 *
 9 * http://www.gnu.org/licenses/gpl.html
10 *
11 * Unless required by applicable law or agreed to in writing, software distributed under the license is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
12 */
13
14package com.nimbits.client.model.usercontext;
15
16import java.io.Serializable;
17import java.util.ArrayList;
18import java.util.List;
19
20/**
21 * Created by bsautner
22 * User: benjamin
23 * Date: 9/29/11
24 * Time: 12:11 PM
25 */
26public class UserContextImpl implements Serializable, UserContext {
27
28    private static final long serialVersionUID = 1L;
29
30    private List<String> trace;
31
32    public UserContextImpl() {
33
34    }
35
36    public List<String> getTrace() {
37        return trace;
38    }
39
40    public UserContextImpl(final String className) {
41
42        trace = new ArrayList<String>();
43        trace.add(className);
44
45    }
46
47    @Override
48    public void addTrace(final String traceText) {
49
50        trace.add(traceText);
51    }
52
53
54}