Package org.kuali.rice.ken.service.impl
Class NotificationContentTypeServiceImpl
java.lang.Object
org.kuali.rice.ken.service.impl.NotificationContentTypeServiceImpl
- All Implemented Interfaces:
NotificationContentTypeService
public class NotificationContentTypeServiceImpl
extends Object
implements NotificationContentTypeService
NotificationContentTypeService implementation - uses the dataObjectService to get at the underlying data in the stock DBMS.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intReturns the highest version found for the given name or negative one if the name is not found.This method returns all versions of all NotificationContentTypes in the system.This method returns all current NotificationContentTypes in the system.This method retrieves a NotificationContentType by name.protected Collection<NotificationBo>Get notifications based on content type.voidsaveNotificationContentType(NotificationContentTypeBo contentType) This method saves a NotificationContentType object instance to the DB, creating a new, current, version if one already exists.voidsetDataObjectService(DataObjectService dataObjectService) Sets the data object service
-
Constructor Details
-
NotificationContentTypeServiceImpl
- Parameters:
dataObjectService- Service to persist data to and from the datasource.
-
-
Method Details
-
getNotificationContentType
Description copied from interface:NotificationContentTypeServiceThis method retrieves a NotificationContentType by name.- Specified by:
getNotificationContentTypein interfaceNotificationContentTypeService- Parameters:
name- The name of the content type- Returns:
- NotificationContentType
-
findHighestContentTypeVersion
Returns the highest version found for the given name or negative one if the name is not found.- Parameters:
name- the name to query for- Returns:
- the highest version number found or negative one if the name is not found.
-
saveNotificationContentType
Description copied from interface:NotificationContentTypeServiceThis method saves a NotificationContentType object instance to the DB, creating a new, current, version if one already exists. Note that this means that this API cannot be used to modify the data of an existing content type record.- Specified by:
saveNotificationContentTypein interfaceNotificationContentTypeService- Parameters:
contentType- The NotificationContentType instance to save.- See Also:
-
getNotificationsOfContentType
Get notifications based on content type.- Parameters:
ct- Notification content type- Returns:
- a collection of
NotificationBofor the given content type
-
getAllCurrentContentTypes
Description copied from interface:NotificationContentTypeServiceThis method returns all current NotificationContentTypes in the system.- Specified by:
getAllCurrentContentTypesin interfaceNotificationContentTypeService- Returns:
- Collection
- See Also:
-
getAllContentTypes
Description copied from interface:NotificationContentTypeServiceThis method returns all versions of all NotificationContentTypes in the system.- Specified by:
getAllContentTypesin interfaceNotificationContentTypeService- Returns:
- Collection
- See Also:
-
setDataObjectService
Sets the data object service- Parameters:
dataObjectService-DataObjectService
-