/**
* $URL: https://source.sakaiproject.org/svn/sitestats/trunk/sitestats-impl/src/test/org/sakaiproject/sitestats/test/mocks/FakeUserDirectoryService.java $
* $Id: FakeUserDirectoryService.java 130729 2013-10-22 12:07:50Z azeckoski@unicon.net $
*
* Copyright (c) 2006-2009 The Sakai Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ECL-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.sakaiproject.sitestats.test.mocks;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Stack;
import org.sakaiproject.entity.api.Entity;
import org.sakaiproject.entity.api.HttpAccess;
import org.sakaiproject.entity.api.Reference;
import org.sakaiproject.entity.api.ResourceProperties;
import org.sakaiproject.user.api.PasswordPolicyProvider;
import org.sakaiproject.user.api.User;
import org.sakaiproject.user.api.UserAlreadyDefinedException;
import org.sakaiproject.user.api.UserDirectoryService;
import org.sakaiproject.user.api.UserEdit;
import org.sakaiproject.user.api.UserIdInvalidException;
import org.sakaiproject.user.api.UserLockedException;
import org.sakaiproject.user.api.UserNotDefinedException;
import org.sakaiproject.user.api.UserPermissionException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
public class FakeUserDirectoryService implements UserDirectoryService {
public UserEdit addUser(String arg0, String arg1) throws UserIdInvalidException, UserAlreadyDefinedException, UserPermissionException {
// TODO Auto-generated method stub
return null;
}
public User addUser(String arg0, String arg1, String arg2, String arg3, String arg4, String arg5, String arg6, ResourceProperties arg7) throws UserIdInvalidException, UserAlreadyDefinedException,
UserPermissionException {
// TODO Auto-generated method stub
return null;
}
public boolean allowAddUser() {
// TODO Auto-generated method stub
return false;
}
public boolean allowRemoveUser(String arg0) {
// TODO Auto-generated method stub
return false;
}
public boolean allowUpdateUser(String arg0) {
// TODO Auto-generated method stub
return false;
}
public boolean allowUpdateUserEmail(String arg0) {
// TODO Auto-generated method stub
return false;
}
public boolean allowUpdateUserName(String arg0) {
// TODO Auto-generated method stub
return false;
}
public boolean allowUpdateUserPassword(String arg0) {
// TODO Auto-generated method stub
return false;
}
public boolean allowUpdateUserType(String arg0) {
// TODO Auto-generated method stub
return false;
}
public User authenticate(String arg0, String arg1) {
// TODO Auto-generated method stub
return null;
}
public void cancelEdit(UserEdit arg0) {
// TODO Auto-generated method stub
}
public void commitEdit(UserEdit arg0) throws UserAlreadyDefinedException {
// TODO Auto-generated method stub
}
public int countSearchUsers(String arg0) {
// TODO Auto-generated method stub
return 0;
}
public int countUsers() {
// TODO Auto-generated method stub
return 0;
}
public void destroyAuthentication() {
// TODO Auto-generated method stub
}
public UserEdit editUser(String arg0) throws UserNotDefinedException, UserPermissionException, UserLockedException {
// TODO Auto-generated method stub
return null;
}
public Collection findUsersByEmail(String arg0) {
// TODO Auto-generated method stub
return null;
}
public User getAnonymousUser() {
// TODO Auto-generated method stub
return null;
}
public User getCurrentUser() {
return new FakeUser();
}
public User getUser(String arg0) throws UserNotDefinedException {
return new FakeUser();
}
public User getUserByEid(String arg0) throws UserNotDefinedException {
return new FakeUser();
}
public String getUserEid(String arg0) throws UserNotDefinedException {
return (new FakeUser()).getEid();
}
public String getUserId(String arg0) throws UserNotDefinedException {
return (new FakeUser()).getId();
}
public List getUsers() {
// TODO Auto-generated method stub
return null;
}
public List getUsers(Collection arg0) {
// TODO Auto-generated method stub
return null;
}
public List getUsers(int arg0, int arg1) {
// TODO Auto-generated method stub
return null;
}
public List<User> getUsersByEids(Collection<String> arg0) {
// TODO Auto-generated method stub
return null;
}
public UserEdit mergeUser(Element arg0) throws UserIdInvalidException, UserAlreadyDefinedException, UserPermissionException {
// TODO Auto-generated method stub
return null;
}
public void removeUser(UserEdit arg0) throws UserPermissionException {
// TODO Auto-generated method stub
}
public List searchUsers(String arg0, int arg1, int arg2) {
// TODO Auto-generated method stub
return null;
}
public String userReference(String arg0) {
// TODO Auto-generated method stub
return null;
}
public String archive(String arg0, Document arg1, Stack arg2, String arg3, List arg4) {
// TODO Auto-generated method stub
return null;
}
public Entity getEntity(Reference arg0) {
// TODO Auto-generated method stub
return null;
}
public Collection getEntityAuthzGroups(Reference arg0, String arg1) {
// TODO Auto-generated method stub
return null;
}
public String getEntityDescription(Reference arg0) {
// TODO Auto-generated method stub
return null;
}
public ResourceProperties getEntityResourceProperties(Reference arg0) {
// TODO Auto-generated method stub
return null;
}
public String getEntityUrl(Reference arg0) {
// TODO Auto-generated method stub
return null;
}
public HttpAccess getHttpAccess() {
// TODO Auto-generated method stub
return null;
}
public String getLabel() {
// TODO Auto-generated method stub
return null;
}
public String merge(String arg0, Element arg1, String arg2, String arg3, Map arg4, Map arg5, Set arg6) {
// TODO Auto-generated method stub
return null;
}
public boolean parseEntityReference(String arg0, Reference arg1) {
// TODO Auto-generated method stub
return false;
}
public boolean willArchiveMerge() {
// TODO Auto-generated method stub
return false;
}
public List<User> searchExternalUsers(String criteria, int first, int last){
return null;
}
public UserDirectoryService.PasswordRating validatePassword(String password, User user) {
return UserDirectoryService.PasswordRating.PASSED_DEFAULT;
}
}