Author: tchemit Date: 2008-01-24 10:33:53 +0000 (Thu, 24 Jan 2008) New Revision: 480 Added: trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/MockAuthenticationServiceImpl.java Log: un service mock?\195?\169 Added: trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/MockAuthenticationServiceImpl.java =================================================================== --- trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/MockAuthenticationServiceImpl.java (rev 0) +++ trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/MockAuthenticationServiceImpl.java 2008-01-24 10:33:53 UTC (rev 480) @@ -0,0 +1,130 @@ +/* +* ##% Copyright (C) 2008 Code Lutin, Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.security.service; + +import fr.cemagref.simexplorer.is.security.entities.Group; +import fr.cemagref.simexplorer.is.security.entities.User; + + +public class MockAuthenticationServiceImpl implements AuthenticationService { + + + public String loginUser(String login, String password) { + return (String) checkImplemented(); + } + + public void closeSessionTimer(String token) { + checkImplemented(); + } + + public User requestAccount(String login, String mail) { + return (User) checkImplemented(); + } + + public User saveUser(String token, String login, String mail) { + return (User) checkImplemented(); + } + + public void resetPassword(String token, String login) { + checkImplemented(); + } + + public void changePassword(String token, String login, String password) { + checkImplemented(); + } + + public User getUser(String token, Integer id) { + return (User) checkImplemented(); + } + + public User getUser(String token, String login) { + return (User) checkImplemented(); + } + + public User updateUser(String token, User user) { + return (User) checkImplemented(); + } + + public void deleteUser(String token, Integer id) { + checkImplemented(); + } + + public User[] getUsers(String token) { + return (User[]) checkImplemented(); + } + + public User[] getUsersOfGroup(String token, Group group) { + return (User[]) checkImplemented(); + } + + public void setUsersOfGroup(String token, Group group, Integer[] usersInGroup) { + checkImplemented(); + } + + public void setGroupsOfGroup(String token, Group group, Integer[] groupsIds) { + checkImplemented(); + } + + public Group[] getGroupsOfUser(String token, User user) { + return (Group[]) checkImplemented(); + } + + public Group[] getGroupsOfGroup(String token, Group group) { + return (Group[]) checkImplemented(); + } + + public void setGroupsOfUser(String token, User user, Integer[] groupsIds) { + checkImplemented(); + } + + public Group saveGroup(String token, String name, User owner) { + return (Group) checkImplemented(); + } + + public Group getGroup(String token, Integer id) { + return (Group) checkImplemented(); + } + + public Group getGroup(String token, String name) { + return (Group) checkImplemented(); + } + + public Group updateGroup(String token, Group group) { + return (Group) checkImplemented(); + } + + public void deleteGroup(String token, Integer id) { + checkImplemented(); + } + + public Group[] getGroups(String token) { + return (Group[]) checkImplemented(); + } + + public Group[] getGroupsOwnedBy(String token, User user) { + return (Group[]) checkImplemented(); + } + + public User getLoggedUser(String token) { + return (User) checkImplemented(); + } + + private Object checkImplemented() { + throw new IllegalStateException("not implemented"); + } +} \ No newline at end of file
participants (1)
-
tchemit@users.labs.libre-entreprise.org