| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| NotificationContentTypeService |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2007-2008 The Kuali Foundation | |
| 3 | * | |
| 4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.opensource.org/licenses/ecl2.php | |
| 9 | * | |
| 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.rice.ken.service; | |
| 17 | ||
| 18 | import java.util.Collection; | |
| 19 | ||
| 20 | import org.kuali.rice.ken.bo.NotificationContentType; | |
| 21 | ||
| 22 | /** | |
| 23 | * Service for accessing {@link NotificationContentType}s | |
| 24 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
| 25 | */ | |
| 26 | public interface NotificationContentTypeService { | |
| 27 | /** | |
| 28 | * This method retrieves a NotificationContentType by name. | |
| 29 | * @param name The name of the content type | |
| 30 | * @return NotificationContentType | |
| 31 | */ | |
| 32 | public NotificationContentType getNotificationContentType(String name); | |
| 33 | ||
| 34 | /** | |
| 35 | * This method saves a NotificationContentType object instance to the DB, creating a new, current, | |
| 36 | * version if one already exists. Note that this means that this API cannot be used to modify | |
| 37 | * the data of an existing content type record. | |
| 38 | * @param contentType The NotificationContentType instance to save. | |
| 39 | */ | |
| 40 | public void saveNotificationContentType(NotificationContentType contentType); | |
| 41 | ||
| 42 | /** | |
| 43 | * This method returns all current NotificationContentTypes in the system. | |
| 44 | * @return Collection | |
| 45 | */ | |
| 46 | public Collection<NotificationContentType> getAllCurrentContentTypes(); | |
| 47 | ||
| 48 | /** | |
| 49 | * This method returns all versions of all NotificationContentTypes in the system. | |
| 50 | * @return Collection | |
| 51 | */ | |
| 52 | public Collection<NotificationContentType> getAllContentTypes(); | |
| 53 | } |