1 18 package sync4j.server.admin.ejb; 19 20 import java.rmi.RemoteException ; 21 import javax.ejb.*; 22 23 import sync4j.framework.config.LoggingConfiguration; 24 import sync4j.framework.engine.source.SyncSource; 25 import sync4j.framework.security.Sync4jPrincipal; 26 import sync4j.framework.server.Sync4jUser; 27 import sync4j.framework.server.Sync4jDevice; 28 import sync4j.framework.server.store.Clause; 29 import sync4j.framework.server.Sync4jModule; 30 import sync4j.framework.server.error.ServerException; 31 32 import sync4j.server.admin.AdminException; 33 34 import sync4j.server.config.Configuration; 35 36 42 public interface AdminRemote extends javax.ejb.EJBObject 43 { 44 47 public Configuration getConfig() throws RemoteException ; 48 49 52 public String [] getRoles() 53 throws RemoteException , ServerException, AdminException; 54 55 public Sync4jUser[] getUsers(Clause clause) 56 throws RemoteException , ServerException, AdminException; 57 58 public void addUser(Sync4jUser u) 59 throws RemoteException , ServerException, AdminException; 60 61 public void setUser(Sync4jUser u) 62 throws RemoteException , ServerException, AdminException; 63 64 public void deleteUser(String userName) 65 throws RemoteException , ServerException, AdminException; 66 67 public int countUsers(Clause clause) 68 throws RemoteException , ServerException, AdminException; 69 70 73 public Sync4jDevice[] getDevices(Clause clause) 74 throws RemoteException , ServerException, AdminException; 75 76 public String addDevice(Sync4jDevice d) 77 throws RemoteException , ServerException, AdminException; 78 79 public void setDevice(Sync4jDevice d) 80 throws RemoteException , ServerException, AdminException; 81 82 public void deleteDevice(String deviceId) 83 throws RemoteException , ServerException, AdminException; 84 85 public int countDevices(Clause clause) 86 throws RemoteException , ServerException, AdminException; 87 88 89 92 public Sync4jPrincipal[] getPrincipals(Clause clause) 93 throws RemoteException , ServerException, AdminException; 94 95 public String addPrincipal(Sync4jPrincipal p) 96 throws RemoteException , ServerException, AdminException; 97 98 public void deletePrincipal(String principalId) 99 throws RemoteException , ServerException, AdminException; 100 101 public int countPrincipals(Clause clause) 102 throws RemoteException , ServerException, AdminException; 103 104 107 public Sync4jModule[] getModulesName() 108 throws RemoteException , ServerException, AdminException; 109 110 public Sync4jModule getModule(String moduleId) 111 throws RemoteException , ServerException, AdminException; 112 113 116 public void addSource(String moduleId, String connectorId, String sourceTypeId, SyncSource source) 117 throws RemoteException , ServerException, AdminException; 118 119 public void setSource(String moduleId, String connectorId, String sourceTypeId, SyncSource source) 120 throws RemoteException , ServerException, AdminException; 121 122 public void deleteSource(String sourceUri) 123 throws RemoteException , ServerException, AdminException; 124 125 128 129 133 public LoggingConfiguration getLoggingConfiguration() 134 throws RemoteException , ServerException, AdminException; 135 136 139 140 148 public Object getServerBean(String bean) 149 throws RemoteException , ServerException, AdminException; 150 151 159 public void setServerBean(String bean, Object obj) 160 throws RemoteException , ServerException, AdminException; 161 162 163 } 164 | Popular Tags |