01: /*
02: * Copyright 2005-2006 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.core.service;
17:
18: import java.util.List;
19:
20: import org.kuali.core.bo.user.KualiGroup;
21: import org.kuali.core.bo.user.UniversalUser;
22: import org.kuali.core.exceptions.GroupNotFoundException;
23:
24: /**
25: * This interface defines methods that a KualiGroup Service must provide.
26: *
27: *
28: */
29: public interface KualiGroupService {
30:
31: /**
32: * method to get a KualiGroup based on groupName
33: *
34: * @param groupName
35: * @return KualiGroup if a group by the name passed in exists
36: * @throws GroupNotFoundException
37: */
38: public KualiGroup getByGroupName(String groupName)
39: throws GroupNotFoundException;
40:
41: /**
42: * method to get a list of the users KualiGroups
43: *
44: * @param kualiUser
45: * @return a list of the groups that the user is a member of
46: */
47: public List getUsersGroups(UniversalUser kualiUser);
48:
49: /**
50: * @return true if a group with that name exists
51: */
52: public boolean groupExists(String groupName);
53:
54: }
|