01: /**
02: * Sequoia: Database clustering technology.
03: * Copyright (C) 2002-2004 French National Institute For Research In Computer
04: * Science And Control (INRIA).
05: * Copyright (C) 2005 AmicoSoft, Inc. dba Emic Networks
06: * Contact: sequoia@continuent.org
07: *
08: * Licensed under the Apache License, Version 2.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.apache.org/licenses/LICENSE-2.0
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: * Initial developer(s): Nicolas Modrzyk
21: * Contributor(s): ______________________.
22: */package org.continuent.sequoia.common.users;
23:
24: import org.continuent.sequoia.common.xml.DatabasesXmlTags;
25:
26: /**
27: * This class defines a AdminUser
28: *
29: * @author <a href="mailto:Nicolas.Modrzyk@inria.fr">Nicolas Modrzyk </a>
30: * @version 1.0
31: */
32: public class AdminUser extends AbstractDatabaseUser {
33: private static final long serialVersionUID = 5080497103560621226L;
34:
35: /**
36: * Creates a new <code>AdminUser</code> instance. The caller must ensure
37: * that the parameters are not <code>null</code>.
38: *
39: * @param login the user name.
40: * @param password the password.
41: */
42: public AdminUser(String login, String password) {
43: super (login, password);
44: }
45:
46: /**
47: * @see org.continuent.sequoia.common.users.AbstractDatabaseUser#getXml()
48: */
49: public String getXml() {
50: return "<" + DatabasesXmlTags.ELT_User + " "
51: + DatabasesXmlTags.ATT_username + "=\""
52: + this .getName() + "\" "
53: + DatabasesXmlTags.ATT_password + "=\""
54: + this .getPassword() + "\" />";
55: }
56: }
|