Cisco Systems, Inc.

com.pcube.apps.engage.policy
Class SubNotificationArray

java.lang.Object
  extended by com.pcube.apps.engage.policy.SubNotificationArray
All Implemented Interfaces:
Formattable, java.io.Serializable
Direct Known Subclasses:
SubscriberRedirectionArray

Deprecated.

public class SubNotificationArray
extends java.lang.Object
implements Formattable, java.io.Serializable

An ArrayList of subscriber notifications. The notifications array enssures that each notification has a unique id. The id is also the index of the notification in the SLI tuneable. The array enforces an existance of a deafult notification.

Author:
rafis
See Also:
Serialized Form

Field Summary
static int NETWORK_ATTACK_NOTIFICATION_ID
          Deprecated.  
 
Constructor Summary
SubNotificationArray()
          Deprecated.  
SubNotificationArray(java.lang.String str)
          Deprecated.  
 
Method Summary
 void add(SubNotification notification, boolean assignId)
          Deprecated. add notification to array.
 void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
          Deprecated. add a votable change listener: veto notification deletion
 void convertOldPqbToNewPqb(SubscriberRedirectionArray conditionalRedirectNotificationsArr, Policy policy)
          Deprecated.  
 SubNotification findById(int notificationId)
          Deprecated. finds a subscriber notification by Id
 void fromStream(java.io.BufferedReader in, Formatter f)
          Deprecated. Method fromStream
 SubNotification getAt(int index)
          Deprecated.  
 int[] getAvialableIds()
          Deprecated.  
 int getDefaultNotificationId()
          Deprecated.  
 boolean isDefaultNotification(SubNotification notif)
          Deprecated.  
 boolean isFull()
          Deprecated.  
 boolean isNetworkAttackNotification(SubNotification notif)
          Deprecated.  
 java.util.ListIterator listIterator()
          Deprecated.  
 void remove(SubNotification notification)
          Deprecated. remove notification
 void removeById(int notificationId)
          Deprecated. remove notification by notification id
 void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
          Deprecated. remove a votable change listener: veto notification deletion
 int size()
          Deprecated.  
 void toStream(java.io.PrintStream out, Formatter f)
          Deprecated. Method toStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NETWORK_ATTACK_NOTIFICATION_ID

public static final int NETWORK_ATTACK_NOTIFICATION_ID
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

SubNotificationArray

public SubNotificationArray(java.lang.String str)
Deprecated. 

SubNotificationArray

public SubNotificationArray()
Deprecated. 
Method Detail

add

public void add(SubNotification notification,
                boolean assignId)
         throws com.pcube.apps.engage.foundations.UniquenessViolationException,
                com.pcube.apps.engage.foundations.FullCollectionException
Deprecated. 
add notification to array.

Parameters:
notification -
assignId - - true to set a unique id
Throws:
com.pcube.apps.engage.foundations.UniquenessViolationException
com.pcube.apps.engage.foundations.FullCollectionException

addVetoableChangeListener

public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Deprecated. 
add a votable change listener: veto notification deletion

Parameters:
listener -

findById

public SubNotification findById(int notificationId)
Deprecated. 
finds a subscriber notification by Id

Parameters:
notificationId - notification id
Returns:
null if notification not found

fromStream

public void fromStream(java.io.BufferedReader in,
                       Formatter f)
                throws ImportExportException
Deprecated. 
Description copied from interface: Formattable
Method fromStream

Specified by:
fromStream in interface Formattable
Throws:
ImportExportException
See Also:
Formattable.fromStream(java.io.BufferedReader, com.pcube.apps.engage.common.Formatter)

getAt

public SubNotification getAt(int index)
Deprecated. 
Parameters:
index -
Returns:

getAvialableIds

public int[] getAvialableIds()
Deprecated. 

getDefaultNotificationId

public int getDefaultNotificationId()
Deprecated. 
Returns:
default notification id

isFull

public boolean isFull()
Deprecated. 
Returns:
true if array is full hence no notification can be added.

listIterator

public java.util.ListIterator listIterator()
Deprecated. 

remove

public void remove(SubNotification notification)
            throws java.beans.PropertyVetoException
Deprecated. 
remove notification

Parameters:
notification -
Throws:
java.beans.PropertyVetoException

removeById

public void removeById(int notificationId)
                throws java.beans.PropertyVetoException
Deprecated. 
remove notification by notification id

Parameters:
notificationId -
Throws:
java.beans.PropertyVetoException

removeVetoableChangeListener

public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Deprecated. 
remove a votable change listener: veto notification deletion

Parameters:
listener -

size

public int size()
Deprecated. 

toStream

public void toStream(java.io.PrintStream out,
                     Formatter f)
Deprecated. 
Description copied from interface: Formattable
Method toStream

Specified by:
toStream in interface Formattable
See Also:
Formattable.toStream(java.io.PrintStream, com.pcube.apps.engage.common.Formatter)

isNetworkAttackNotification

public boolean isNetworkAttackNotification(SubNotification notif)
Deprecated. 

isDefaultNotification

public boolean isDefaultNotification(SubNotification notif)
Deprecated. 

convertOldPqbToNewPqb

public void convertOldPqbToNewPqb(SubscriberRedirectionArray conditionalRedirectNotificationsArr,
                                  Policy policy)
Deprecated. 

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.