1 18 package sync4j.server.admin.ejb; 19 20 import javax.ejb.*; 21 22 import sync4j.framework.config.LoggingConfiguration; 23 import sync4j.framework.engine.source.SyncSource; 24 import sync4j.framework.security.Sync4jPrincipal; 25 import sync4j.framework.server.Sync4jUser; 26 import sync4j.framework.server.Sync4jDevice; 27 import sync4j.framework.server.store.Clause; 28 import sync4j.framework.server.Sync4jModule; 29 import sync4j.framework.server.error.ServerException; 30 import sync4j.framework.server.Sync4jModule; 31 32 import sync4j.server.admin.AdminException; 33 34 import sync4j.server.config.Configuration; 35 36 43 public interface AdminLocal extends EJBLocalObject { 44 45 48 public Configuration getConfig(); 49 50 53 public String [] getRoles() 54 throws ServerException, AdminException; 55 56 public Sync4jUser[] getUsers(Clause clause) 57 throws ServerException, AdminException; 58 59 public void addUser(Sync4jUser u) 60 throws ServerException, AdminException; 61 62 public void setUser(Sync4jUser u) 63 throws ServerException, AdminException; 64 65 public void deleteUser(String userName) 66 throws ServerException, AdminException; 67 68 public int countUsers(Clause clause) 69 throws ServerException, AdminException; 70 71 72 75 public Sync4jDevice[] getDevices(Clause clause) 76 throws ServerException, AdminException; 77 78 public String addDevice(Sync4jDevice d) 79 throws ServerException, AdminException; 80 81 public void setDevice(Sync4jDevice d) 82 throws ServerException, AdminException; 83 84 public void deleteDevice(String deviceId) 85 throws ServerException, AdminException; 86 87 public int countDevices(Clause clause) 88 throws ServerException, AdminException; 89 90 91 94 public Sync4jPrincipal[] getPrincipals(Clause clause) 95 throws ServerException, AdminException; 96 97 public String addPrincipal(Sync4jPrincipal p) 98 throws ServerException, AdminException; 99 100 public void deletePrincipal(String principalId) 101 throws ServerException, AdminException; 102 103 public int countPrincipals(Clause clause) 104 throws ServerException, AdminException; 105 106 107 110 public Sync4jModule[] getModulesName() 111 throws ServerException, AdminException; 112 113 public Sync4jModule getModule(String moduleId) 114 throws ServerException, AdminException; 115 116 119 public void addSource(String moduleId, String connectorId, String sourceTypeId, SyncSource source) 120 throws ServerException, AdminException; 121 122 public void setSource(String moduleId, String connectorId, String sourceTypeId, SyncSource source) 123 throws ServerException, AdminException; 124 125 public void deleteSource(String sourceUri) 126 throws ServerException, AdminException; 127 128 131 132 136 public LoggingConfiguration getLoggingConfiguration() 137 throws ServerException, AdminException; 138 139 142 143 151 public Object getServerBean(String bean) 152 throws ServerException, AdminException; 153 154 162 public void setServerBean(String bean, Object obj) 163 throws ServerException, AdminException; 164 165 } 166 | Popular Tags |