1 24 25 package org.objectweb.cjdbc.common.users; 26 27 35 public class DatabaseBackendUser extends AbstractDatabaseUser 36 { 37 private static final long serialVersionUID = 92260597820622650L; 38 39 40 private String backendName; 41 42 50 public DatabaseBackendUser(String backendName, String login, String password) 51 { 52 super(login, password); 53 this.backendName = backendName; 54 } 55 56 61 public String getBackendName() 62 { 63 return backendName; 64 } 65 66 75 public boolean matches(String backendName, String login, String password) 76 { 77 return (super.matches(login, password) && this.backendName 78 .equals(backendName)); 79 } 80 81 88 public boolean equals(Object other) 89 { 90 if ((other == null) || !(other instanceof DatabaseBackendUser)) 91 return false; 92 93 DatabaseBackendUser user = (DatabaseBackendUser) other; 94 return (super.matches(user.login, user.password) && backendName 95 .equals(user.backendName)); 96 } 97 98 101 public String getXml() 102 { 103 return ""; 104 } 120 } 121 | Popular Tags |