1 /**
2 * Copyright 2005-2006 the original author or authors.
3 *
4 * Licensed under the Gnu General Pubic License, Version 2.0 (the
5 * "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/gpl-license.php
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the Gnu General Public License for more details.
14 */
15 package org.figure8.join.businessobjects.security.persistence;
16
17 import org.figure8.join.core.persistence.ObjectDao;
18 import org.figure8.join.businessobjects.security.User;
19
20 import java.util.List;
21 /**
22 * Data Access interface for User business objects.
23 * @author <a href="mailto:laurent.broudoux@free.fr">Laurent Broudoux</a>
24 * @version $Revision: 1.1 $
25 */
26 public interface UserDao extends ObjectDao{
27
28
29
30 /**
31 * @param login User login (should be a unique identifier)
32 * @return The user object corresponding to <b>login</b>
33 */
34 public abstract User getUser(String login);
35
36 /**
37 * Retrieve all users having lastname 'like' the specified one
38 * @param lastname The string that users lastname should contain
39 * @return A List of {@code org.figure8.join.businessobjects.security.User}
40 */
41 public abstract List getUsersWithLastnameLike(String lastname);
42 }