PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/v3.2/nimbits-tds/src/com/nimbits/client/service/user/UserService.java

http://nimbits-server.googlecode.com/
Java | 40 lines | 17 code | 11 blank | 12 comment | 0 complexity | 17f2786e317959000c7835d6a7bec67c 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.service.user;
15
16import com.google.gwt.user.client.rpc.RemoteService;
17import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
18import com.nimbits.client.exception.NimbitsException;
19import com.nimbits.client.model.connection.Connection;
20import com.nimbits.client.model.email.EmailAddress;
21import com.nimbits.client.model.user.User;
22
23import java.util.List;
24
25@RemoteServiceRelativePath("user")
26public interface UserService extends RemoteService {
27
28    void updateSecret() throws NimbitsException;
29
30    void sendConnectionRequest(final EmailAddress email) throws NimbitsException;
31
32    List<Connection> getPendingConnectionRequests(final EmailAddress email);
33
34    void connectionRequestReply(final EmailAddress targetEmail, final EmailAddress RequestorEmail, final String uuid, final boolean accepted) throws NimbitsException;
35
36    List<User> getConnections(final EmailAddress email);
37
38    User getAppUserUsingGoogleAuth() throws NimbitsException;
39
40}