PageRenderTime 18ms CodeModel.GetById 10ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/v3.2/nimbits-model/src/com/nimbits/client/model/user/User.java

http://nimbits-server.googlecode.com/
Java | 92 lines | 37 code | 37 blank | 18 comment | 0 complexity | d41639e5fda0ebb88911b97aa908e065 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.user;
15
16import com.nimbits.client.model.email.*;
17
18import java.io.*;
19import java.util.*;
20
21
22/**
23 * Created by bsautner
24 * User: benjamin
25 * Date: 4/16/11
26 * Time: 4:10 PM
27 */
28public interface User extends Serializable {
29
30    List<Long> getConnections();
31
32    void addConnection(final long id);
33
34    void removeConnection(final long id);
35
36    boolean getSendEmail();
37
38    void setSendEmail(final boolean sendEmail);
39
40    long getId();
41
42    void setId(final long id);
43
44    Date getDateCreated();
45
46    Date getLastLoggedIn();
47
48    void setLastLoggedIn(final Date lastLoggedIn);
49
50    void setDateCreated(final Date dateCreated);
51
52    EmailAddress getEmail();
53
54    void setEmail(final EmailAddress email);
55
56    String getUserSource();
57
58    void setUserSource(final String userSource);
59
60    String getTwitterTokenSecret();
61
62    void setTwitterTokenSecret(final String twitterTokenSecret);
63
64    String getTwitterToken();
65
66    void setTwitterToken(final String twitterToken);
67
68    String getFacebookToken();
69
70    void setFacebookToken(final String facebookToken);
71
72    long getFacebookID();
73
74    void setFacebookID(final long facebookID);
75
76    void setUuid(final String uuid);
77
78    String getUuid();
79
80    void setHost(final String host);
81
82    String getHost();
83
84    void setSecret(final String secret);
85
86    String getSecret();
87
88    void setRestricted(final boolean restricted);
89
90    boolean isRestricted();
91
92}