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(NotificationProducer producer, NotificationChannel 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(NotificationProducer producer,
                                                                NotificationChannel 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.NotificationProducer, org.kuali.rice.ken.bo.NotificationChannel)

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 © 2004-2011 The Kuali Foundation. All Rights Reserved.