KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > slide > projector > repository > Repository


1 package org.apache.slide.projector.repository;
2
3 import java.io.IOException JavaDoc;
4 import java.util.Map JavaDoc;
5
6 import org.apache.commons.httpclient.Credentials;
7 import org.apache.slide.projector.URI;
8 import org.apache.slide.projector.value.ArrayValue;
9 import org.apache.slide.projector.value.StreamableValue;
10 import org.apache.slide.projector.value.Value;
11 import org.apache.webdav.lib.Subscriber;
12
13 /**
14  * The Connector interface
15  *
16  */

17 public interface Repository {
18     public Credentials login(String JavaDoc user, String JavaDoc password) throws IOException JavaDoc;
19         
20     public URI createUser(String JavaDoc user, String JavaDoc password, Credentials credentials) throws UserExistsException, IOException JavaDoc;
21     
22     public void deleteUser(URI user, Credentials credentials) throws IOException JavaDoc;
23     
24     public URI createRole(String JavaDoc role, Credentials credentials) throws RoleExistsException, IOException JavaDoc;
25     
26     public void deleteRole(URI role, Credentials credentials) throws IOException JavaDoc;
27     
28     public ArrayValue listRoles(URI user, Credentials credentials) throws IOException JavaDoc;
29
30     public void addRole(URI user, URI role, Credentials credentials) throws UserExistsException, IOException JavaDoc;
31     
32     public void removeRole(URI user, URI role, Credentials credentials) throws UserExistsException, IOException JavaDoc;
33     
34     public void changePassword(URI uri, String JavaDoc oldPassword, String JavaDoc newPassword, Credentials credentials) throws IOException JavaDoc;
35     
36     public Value getResource(URI uri, Credentials credentials) throws IOException JavaDoc;
37
38     public ArrayValue getProperties(URI uri, Credentials credentials) throws IOException JavaDoc;
39
40     public void setResource(URI uri, StreamableValue resource, Credentials credentials) throws IOException JavaDoc;
41
42     public void removeResource(URI uri, Credentials credentials) throws IOException JavaDoc;
43
44     public ArrayValue getChildren(URI uri, Credentials credentials) throws IOException JavaDoc;
45     
46     public Value[] search(String JavaDoc query, Credentials credentials) throws IOException JavaDoc;
47
48     public void subscribe(String JavaDoc method, URI uri, int depth, Subscriber listener, Credentials credentials);
49
50     public void subscribe(String JavaDoc method, URI uri, int depth, int lifetime, int notificationDelay, Subscriber listener, Credentials credentials);
51
52     public void unsubscribe(URI uri, Subscriber listener, Credentials credentials);
53
54     public void fireEvent(Map JavaDoc information, Credentials credentials) throws IOException JavaDoc;
55
56     public void fireVetoableEvent(Map JavaDoc information, Credentials credentials) throws IOException JavaDoc;
57 }
58
Popular Tags