Statistics
| Revision:

gvsig-projects-pool / org.gvsig.online / trunk / org.gvsig.online / org.gvsig.online.lib / org.gvsig.online.lib.api / src / main / java / org / gvsig / online / lib / api / OnlineSite.java @ 9515

History | View | Annotate | Download (1.4 KB)

1
/*
2
 * To change this license header, choose License Headers in Project Properties.
3
 * To change this template file, choose Tools | Templates
4
 * and open the template in the editor.
5
 */
6
package org.gvsig.online.lib.api;
7

    
8
import java.io.IOException;
9
import java.net.URL;
10
import java.util.Map;
11
import org.gvsig.json.SupportJson;
12
import org.gvsig.online.lib.api.OnlineUserIdentificationRequester.OnlineUserIdentificationRequesterConfig;
13

    
14
/**
15
 *
16
 * @author jjdelcerro
17
 */
18
public interface OnlineSite extends SupportJson {
19
    
20
    public void connect(OnlineUserIdentificationRequesterConfig userIdentificationRequesterConfig, URL url) throws IOException;
21

    
22
    public void connect() throws IOException;
23

    
24
    public OnlineProject getProject(String name);
25

    
26
    public OnlineProject getProject(int id);
27

    
28
    public Iterable<OnlineProject> projects();
29
 
30
    public URL getBaseUrl();
31
    
32
    public OnlineDownloader getDownloader();
33
    
34
    public URL getGeoserverURL(String s);    
35
    
36
    public void setCurrentUserCode(String userCode);
37

    
38
    public String getCurrentUserCode();
39

    
40
    public String getCurrentAuthorizationToken();
41

    
42
    public void setCurrentAuthorizationToken(String authenticationToken);
43

    
44
    public OnlineUserIdentificationRequester getUserIdentificationRequester();
45
    
46
    public void logout();
47
    
48
    public Map<String, OnlineLayer> getPublicLayers();    
49
    
50
    public boolean isPublicLayer(OnlineLayer layer);
51

    
52
}