01: /*
02: * Copyright 2006-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.module.labor.service;
17:
18: import org.kuali.core.exceptions.UserNotFoundException;
19: import org.kuali.core.service.KualiModuleUserService;
20: import org.kuali.core.service.UniversalUserService;
21: import org.kuali.module.labor.bo.LaborUser;
22:
23: /**
24: * The interface defines a set of methods that can access the universal user service
25: */
26: public interface LaborUserService extends
27: KualiModuleUserService<LaborUser> {
28:
29: /**
30: * Using an employee id or rather <code>personPayrollIdentifier</code>, retrieve a <code>{@link LaborUser}</code> instance.
31: *
32: * @param personPayrollIdentifier to retrieve the <code>{@link LaborUser}</code> with
33: * @return LaborUser
34: * @throws UserNotFoundException
35: */
36: public LaborUser getLaborUserByPersonPayrollIdentifier(
37: String personPayrollIdentifier)
38: throws UserNotFoundException;
39:
40: /**
41: * Inject the KNS <code>{@link UniversalUserService}</code>
42: *
43: * @param userService <code>{@link UniversalUserService}</code> instance to inject
44: */
45: public void setUniversalUserService(UniversalUserService userService);
46:
47: /**
48: * Retrieve injected the KNS <code>{@link UniversalUserService}</code>
49: *
50: * @return UniversalUserService
51: */
52: public UniversalUserService getUniversalUserService();
53: }
|