/***
 * Excerpted from "Domain-Driven Design Using Naked Objects",
 * published by The Pragmatic Bookshelf.
 * Copyrights apply to this code. It may not be used to create training material, 
 * courses, books, articles, and the like. Contact us if you are in doubt.
 * We make no guarantees that this code is fit for any purpose. 
 * Visit http://www.pragmaticprogrammer.com/titles/dhnako for more book information.
***/
package com.pragprog.dhnako.carserv.dom.employee;

import java.util.List;

import org.nakedobjects.applib.annotation.Debug;
import org.nakedobjects.applib.annotation.Exploration;
import org.nakedobjects.applib.annotation.Named;
import org.nakedobjects.applib.annotation.Optional;
import org.nakedobjects.applib.security.UserMemento;

import com.pragprog.dhnako.carserv.dom.person.Person;

@Named("Employees")
public interface EmployeeRepository {

	public Employee me();
	
	public Person newEmployee();

	public List<Employee> findByName(
	        @Optional
	        @Named("Last Name")
	        final String lastName,
	        @Optional
	        @Named("First Name")
	        final String firstName);


	@Exploration
	public List<Employee> allEmployees();

	@Debug
	public UserMemento currentUser();



}
