1 /*****************************************************************************
5 * Creation date 21.10.2012
8 * @copyright OPEN CASCADE 2012
9 *****************************************************************************/
11 package org.splat.service;
14 import java.util.List;
17 import org.splat.dal.bo.kernel.User;
18 import org.splat.kernel.InvalidPropertyException;
19 import org.splat.kernel.MismatchException;
20 import org.splat.kernel.MissedPropertyException;
21 import org.splat.kernel.MultiplyDefinedException;
22 import org.splat.manox.XMLException;
25 * User service interface.
27 * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
29 public interface UserService {
31 User createUser(User.Properties uprop)
32 throws MissedPropertyException, InvalidPropertyException,
33 MultiplyDefinedException;
35 Set<User> importUsers(File xfile) throws XMLException,
39 * Returns the manager of the given user. This function is effective providing that users are defined according to the following
42 * <li>One user is assigned in the organization as Nx1 (n+1 manager of members of the organization)</li>
43 * <li>Another user is assigned in the organization as Nx2 (n+2 manager of members of the organization)</li>
45 * If such users do not exit, null is returned.
48 * the user whose manager is get
49 * @return the manager of the given user, if defined
51 User getManagerOf(User user);
53 List<User> selectAllUsers();
55 User selectUser(String username);
57 User selectUser(String username, String password);
59 User selectUser(long index);
61 List<User> selectUsersWhere(User.Properties... uprop);