1 package com.knowgate.ldap; 2 3 34 35 import java.util.Properties ; 36 import java.sql.Connection ; 37 import java.sql.SQLException ; 38 39 44 45 public abstract class LDAPModel { 46 47 53 54 public abstract void connect (String sConnStr) throws LDAPException; 55 56 65 66 public abstract void connectAndBind (Properties oProps) throws LDAPException; 67 68 76 77 public abstract void bind (String sUser, String sPass) throws LDAPException; 78 79 84 85 public abstract void disconnect() throws LDAPException; 86 87 95 96 public abstract boolean exists (String sSearchString) throws LDAPException; 97 98 103 104 public abstract void dropAll () throws LDAPException; 105 106 120 121 public abstract void addAddress (Connection oJdbc, String sAddrId) throws LDAPException, SQLException ; 122 123 132 133 public abstract void addOrReplaceAddress (Connection oJdbc, String sAddrId) throws LDAPException, SQLException ; 134 135 143 144 public abstract void deleteAddress (Connection oJdbc, String sAddrId) throws LDAPException, SQLException ; 145 146 155 156 165 166 public abstract void addUser (Connection oJdbc, String sUserId) throws LDAPException, SQLException ; 167 168 169 176 177 public abstract void addOrReplaceUser (Connection oJdbc, String sUserId) throws LDAPException, SQLException ; 178 179 186 187 public abstract void deleteUser (Connection oJdbc, String sUserId) throws LDAPException, SQLException ; 188 189 196 197 public abstract void loadDomain (Connection oJdbc, int iDomainId) throws LDAPException, SQLException ; 198 199 207 208 public abstract void loadWorkArea (Connection oJdbc, String sDomainNm, String sWorkAreaNm) throws LDAPException, SQLException ; 209 210 218 219 public abstract void deleteWorkArea (String sDomainNm, String sWorkAreaNm) throws LDAPException, IllegalStateException ; 220 221 223 public static final int PWD_CLEAR_TEXT = 0; 224 public static final int PWD_DTIP_RC4 = 1; 225 226 public static final short USER_NOT_FOUND = -1; 227 public static final short INVALID_PASSWORD = -2; 228 public static final short ACCOUNT_DEACTIVATED = -3; 229 public static final short SESSION_EXPIRED = -4; 230 public static final short DOMAIN_NOT_FOUND = -5; 231 public static final short WORKAREA_NOT_FOUND = -6; 232 public static final short WORKAREA_NOT_SET = -7; 233 public static final short ACCOUNT_CANCELLED = -8; 234 public static final short PASSWORD_EXPIRED = -9; 235 public static final short INTERNAL_ERROR = -255; 236 } | Popular Tags |