public interface UtilityNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes 
  to  Utility  objects. This session is intended for consumers 
  needing to synchronize their state with this service without the use of 
  polling. Notifications are cancelled when this session is closed. 
 Notifications are triggered with changes to the  Utility  
  object itself. Adding and removing entries result in notifications 
  available from the notification session for meters. 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | canRegisterForUtilityNotifications()Tests if this user can register for   Utility notifications. | 
| void | registerForChangedUtilities()Registers for notification of updated utilities. | 
| void | registerForChangedUtility(Id utilityId)Registers for notification of an updated utility. | 
| void | registerForDeletedUtilities()Registers for notification of deleted utilities. | 
| void | registerForDeletedUtility(Id utilityId)Registers for notification of a deleted utility. | 
| void | registerForDeletedUtilityAncestors(Id utilityId)Registers for notification of an updated hierarchy structure that 
  removes an ancestor of the specified utility. | 
| void | registerForDeletedUtilityDescendants(Id utilityId)Registers for notification of an updated hierarchy structure that 
  removes a descendant of the specified utility. | 
| void | registerForNewUtilities()Register for notifications of new utilities. | 
| void | registerForNewUtilityAncestors(Id utilityId)Registers for notification of an updated hierarchy structure that 
  introduces a new ancestor of the specified utility. | 
| void | registerForNewUtilityDescendants(Id utilityId)Registers for notification of an updated hierarchy structure that 
  introduces a new descendant of the specified utility. | 
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canRegisterForUtilityNotifications()
 Utility  
  notifications. A return of true does not guarantee successful 
  authorization. A return of false indicates that it is known all 
  methods in this session will result in a  PERMISSION_DENIED. 
   This is intended as a hint to an application that may opt not 
  to offer notification operations. false  if notification methods are not 
          authorized,  true  otherwisemandatory - This method must be implemented. void registerForNewUtilities()
                             throws OperationFailedException,
                                    PermissionDeniedException
 
  UtilityReceiver.newUtility()  is invoked when a new  
  Utility  is created.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewUtilityAncestors(Id utilityId) throws OperationFailedException, PermissionDeniedException
 
  UtilityReceiver.newAncestorUtility()  is invoked when the 
  specified utility node gets a new ancestor.utilityId - the  Id  of the  Utility  
          node to monitorNullArgumentException -  utilityId  is 
           null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewUtilityDescendants(Id utilityId) throws OperationFailedException, PermissionDeniedException
 
  UtilityReceiver.newDescendantUtility()  is invoked when the 
  specified utility node gets a new descendant.utilityId - the  Id  of the  Utility  
          node to monitorNullArgumentException -  utilityId  is 
           null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedUtilities()
                                 throws OperationFailedException,
                                        PermissionDeniedException
 
  UtilityReceiver.changedUtility()  is invoked when a utility is 
  changed.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedUtility(Id utilityId) throws OperationFailedException, PermissionDeniedException
 
  UtilityReceiver.changedUtility()  is invoked when the specified 
  utility is changed.utilityId - the  Id  of the  Utility  
          to monitorNullArgumentException -  utilityId  is 
           null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedUtilities()
                                 throws OperationFailedException,
                                        PermissionDeniedException
 
  UtilityReceiver.deletedUtility()  is invoked when a utility is 
  deleted.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedUtility(Id utilityId) throws OperationFailedException, PermissionDeniedException
 
  UtilityReceiver.deletedUtility()  is invoked when the specified 
  utility is deleted.utilityId - the  Id  of the  Utility  
          to monitorNullArgumentException -  utilityId  is 
           null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedUtilityAncestors(Id utilityId) throws OperationFailedException, PermissionDeniedException
 
  UtilityReceiver.deletedAncestor()  is invoked when the 
  specified utility node loses an ancestor.utilityId - the  Id  of the  Utility  
          node to monitorNullArgumentException -  utilityId  is 
           null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedUtilityDescendants(Id utilityId) throws OperationFailedException, PermissionDeniedException
 
  UtilityReceiver.deletedDescendant()  is invoked when the 
  specified utility node loses a descendant.utilityId - the  Id  of the  Utility  
          node to monitorNullArgumentException -  utilityId  is 
           null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.