org.kuali.rice.ken.service.impl
Class NotificationAuthorizationServiceImpl

java.lang.Object
  extended by org.kuali.rice.ken.service.impl.NotificationAuthorizationServiceImpl
All Implemented Interfaces:
NotificationAuthorizationService

public class NotificationAuthorizationServiceImpl
extends Object
implements NotificationAuthorizationService

NotificationAuthorizationService implementation - this is the default out-of-the-box implementation of the service.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
NotificationAuthorizationServiceImpl(GenericDao businessObjectDao)
          Constructs a NotificationAuthorizationServiceImpl class instance.
 
Method Summary
 boolean isProducerAuthorizedToSendNotificationForChannel(NotificationProducerBo producer, NotificationChannelBo channel)
          This service method validates that the specified producer has the permissions to send a notification on for a specific NotificationChannel.
 boolean isUserAdministrator(String userId)
          Implements by calling the is user member of service in KEW's workgroup service, looking for a specific membership in the "NotificationAdmin" workgroup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationAuthorizationServiceImpl

public NotificationAuthorizationServiceImpl(GenericDao businessObjectDao)
Constructs a NotificationAuthorizationServiceImpl class instance.

Parameters:
businessObjectDao -
Method Detail

isProducerAuthorizedToSendNotificationForChannel

public boolean isProducerAuthorizedToSendNotificationForChannel(NotificationProducerBo producer,
                                                                NotificationChannelBo channel)
Description copied from interface: NotificationAuthorizationService
This service method validates that the specified producer has the permissions to send a notification on for a specific NotificationChannel.

Specified by:
isProducerAuthorizedToSendNotificationForChannel in interface NotificationAuthorizationService
Returns:
boolean - true if authorized, false if not
See Also:
NotificationAuthorizationService.isProducerAuthorizedToSendNotificationForChannel(org.kuali.rice.ken.bo.NotificationProducerBo, org.kuali.rice.ken.bo.NotificationChannelBo)

isUserAdministrator

public boolean isUserAdministrator(String userId)
Implements by calling the is user member of service in KEW's workgroup service, looking for a specific membership in the "NotificationAdmin" workgroup.

Specified by:
isUserAdministrator in interface NotificationAuthorizationService
Returns:
boolean - true if authorized, false if not
See Also:
NotificationAuthorizationService.isUserAdministrator(java.lang.String)


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.