public class NotificationContentTypeServiceImpl extends Object implements NotificationContentTypeService
| Constructor and Description |
|---|
NotificationContentTypeServiceImpl(DataObjectService dataObjectService)
Constructs a NotificationContentTypeServiceImpl.java.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
findHighestContentTypeVersion(String name)
Returns the highest version found for the given name or negative one if the name is not found.
|
Collection<NotificationContentTypeBo> |
getAllContentTypes()
This method returns all versions of all NotificationContentTypes in the system.
|
Collection<NotificationContentTypeBo> |
getAllCurrentContentTypes()
This method returns all current NotificationContentTypes in the system.
|
NotificationContentTypeBo |
getNotificationContentType(String name)
This method retrieves a NotificationContentType by name.
|
protected Collection<NotificationBo> |
getNotificationsOfContentType(NotificationContentTypeBo ct)
Get notifications based on content type.
|
void |
saveNotificationContentType(NotificationContentTypeBo contentType)
This method saves a NotificationContentType object instance to the DB, creating a new, current,
version if one already exists.
|
void |
setDataObjectService(DataObjectService dataObjectService)
Sets the data object service
|
public NotificationContentTypeServiceImpl(DataObjectService dataObjectService)
dataObjectService - Service to persist data to and from the datasource.public NotificationContentTypeBo getNotificationContentType(String name)
NotificationContentTypeServicegetNotificationContentType in interface NotificationContentTypeServicename - The name of the content typeNotificationContentTypeService.getNotificationContentType(java.lang.String)protected int findHighestContentTypeVersion(String name)
name - the name to query forpublic void saveNotificationContentType(NotificationContentTypeBo contentType)
NotificationContentTypeServicesaveNotificationContentType in interface NotificationContentTypeServicecontentType - The NotificationContentType instance to save.NotificationContentTypeService.saveNotificationContentType(org.kuali.rice.ken.bo.NotificationContentTypeBo)protected Collection<NotificationBo> getNotificationsOfContentType(NotificationContentTypeBo ct)
ct - Notification content typeNotificationBo for the given content typepublic Collection<NotificationContentTypeBo> getAllCurrentContentTypes()
NotificationContentTypeServicegetAllCurrentContentTypes in interface NotificationContentTypeServiceNotificationContentTypeService.getAllCurrentContentTypes()public Collection<NotificationContentTypeBo> getAllContentTypes()
NotificationContentTypeServicegetAllContentTypes in interface NotificationContentTypeServiceNotificationContentTypeService.getAllContentTypes()public void setDataObjectService(DataObjectService dataObjectService)
dataObjectService - DataObjectServiceCopyright © 2005–2017 The Kuali Foundation. All rights reserved.