Cisco Systems, Inc.

com.pcube.apps.engage.policy
Class SubNotification

java.lang.Object
  extended by com.pcube.apps.engage.foundations.NamedObjectBase
      extended by com.pcube.apps.engage.policy.SubNotification
All Implemented Interfaces:
Formattable, com.pcube.apps.framework.commons.NamedObject, java.io.Serializable
Direct Known Subclasses:
SubscriberRedirection

Deprecated.

public class SubNotification
extends com.pcube.apps.engage.foundations.NamedObjectBase
implements Formattable, java.io.Serializable

Subscriber Notification: User can enable subscriber notification activation when quota breach occures. A susbcriber notification has the following attributes: - id - name - redirect (destination) url - append notification parameter: a boolean - dismissal method: one of three options. - dismissal url - white url list You are not suppose to work directly on objects of this class. The objects will be converted to new interface when adding them to the array you get from the policy class, and will not get converted again. in order to work propertly first get the object from the array and only then continue working on it.

Author:
rafis
See Also:
Serialized Form

Field Summary
static int DEST_URL_MAX_LENGTH
          Deprecated. Comment for DEST_URL_MAX_LENGTH
static int DEST_URL_VALUE
          Deprecated. Comment for DEST_URL_VALUE
static int DISMISSAL_METHOD_DEAC
          Deprecated. Comment for DISMISSAL_METHOD_DEAC
static int DISMISSAL_METHOD_DEST
          Deprecated. Comment for DISMISSAL_METHOD_DEST
static int DISMISSAL_METHOD_DISS
          Deprecated. Comment for DISMISSAL_METHOD_DISS
static int DISMISSAL_URL_VALUE
          Deprecated. Comment for DISMISSAL_URL_VALUE
static int DISS_URL_MAX_LENGTH
          Deprecated. Comment for DISS_URL_MAX_LENGTH
static int MAX_NUMBER_ALLOWED_URL
          Deprecated. Comment for MAX_NUMBER_ALLOWED_URL
static int WHITE_URL_VALUE
          Deprecated. Comment for WHITE_URL_VALUE
 
Constructor Summary
SubNotification()
          Deprecated. use {SubscriberRedirection#conditionalRedirectNotifications()instead}
 
Method Summary
 void convertOldNotifToNewNotif(Policy policy, SubscriberRedirection conNot)
          Deprecated. Takes old type notification and convert it to new conditional redirect type notification
static SubNotification createDefault()
          Deprecated.  
static SubNotification createNetworkAttackNotification()
          Deprecated.  
 com.pcube.apps.engage.policy.urlpattern.PrefixSuffixLUT createWhiteListLUT()
          Deprecated. return the whole LUT including the dismissal and redirect urls
 void fromStream(java.io.BufferedReader in, Formatter f)
          Deprecated. Method fromStream
 java.net.URL getDestinationURL()
          Deprecated. use {SubscriberRedirection.getRedirectSetIndex()instead}
 int getDismissalMethod()
          Deprecated. use {SubscriberRedirection.getActivationFrequency()instead}
 com.pcube.apps.engage.policy.urlpattern.UrlPattern getDismissalURL()
          Deprecated. use {SubscriberRedirection.getDismissalUrl()instead}
 int getId()
          Deprecated.  
 java.util.ArrayList getUrlWhiteList()
          Deprecated. use SubscriberRedirection.getWhiteUrlList()instead}
 boolean isTailAppended()
          Deprecated.  
 void setDestinationURL(java.lang.String newDestination)
          Deprecated. use {SubscriberRedirection#setRedirectSetIndex()instead}
 void setDestinationURL(java.net.URL newDestination)
          Deprecated. use {SubscriberRedirection#setRedirectSetIndex()instead}
 void setDismissalMethod(int dismissalMethod)
          Deprecated. use {SubscriberRedirection#setHowToActiveMethod()instead}
 void setDismissalURL(com.pcube.apps.engage.policy.urlpattern.UrlPattern newDissUrl)
          Deprecated. use {SubscriberRedirection#setDismissalUrl()instead}
 void setId(int id)
          Deprecated.  
 void setTailAppended(boolean appendPars)
          Deprecated.  
 void setUrlWhiteList(java.util.ArrayList urlPatterns)
          Deprecated. use SubscriberRedirection#setWhiteUrlList()instead.
 void toStream(java.io.PrintStream out, Formatter f)
          Deprecated. Method toStream
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class com.pcube.apps.engage.foundations.NamedObjectBase
addPropertyChangedListener, addVetoableChangeListener, getName, removePropertyChangedListener, removeVetoableChangeListener, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEST_URL_MAX_LENGTH

public static final int DEST_URL_MAX_LENGTH
Deprecated. 
Comment for DEST_URL_MAX_LENGTH

See Also:
Constant Field Values

DEST_URL_VALUE

public static final int DEST_URL_VALUE
Deprecated. 
Comment for DEST_URL_VALUE

See Also:
Constant Field Values

DISMISSAL_METHOD_DEAC

public static final int DISMISSAL_METHOD_DEAC
Deprecated. 
Comment for DISMISSAL_METHOD_DEAC

See Also:
Constant Field Values

DISMISSAL_METHOD_DEST

public static final int DISMISSAL_METHOD_DEST
Deprecated. 
Comment for DISMISSAL_METHOD_DEST

See Also:
Constant Field Values

DISMISSAL_METHOD_DISS

public static final int DISMISSAL_METHOD_DISS
Deprecated. 
Comment for DISMISSAL_METHOD_DISS

See Also:
Constant Field Values

DISMISSAL_URL_VALUE

public static final int DISMISSAL_URL_VALUE
Deprecated. 
Comment for DISMISSAL_URL_VALUE

See Also:
Constant Field Values

DISS_URL_MAX_LENGTH

public static final int DISS_URL_MAX_LENGTH
Deprecated. 
Comment for DISS_URL_MAX_LENGTH

See Also:
Constant Field Values

MAX_NUMBER_ALLOWED_URL

public static final int MAX_NUMBER_ALLOWED_URL
Deprecated. 
Comment for MAX_NUMBER_ALLOWED_URL

See Also:
Constant Field Values

WHITE_URL_VALUE

public static final int WHITE_URL_VALUE
Deprecated. 
Comment for WHITE_URL_VALUE

See Also:
Constant Field Values
Constructor Detail

SubNotification

public SubNotification()
Deprecated. use {SubscriberRedirection#conditionalRedirectNotifications()instead}

*

Method Detail

createDefault

public static SubNotification createDefault()
Deprecated. 
Returns:

createNetworkAttackNotification

public static SubNotification createNetworkAttackNotification()
Deprecated. 

createWhiteListLUT

public com.pcube.apps.engage.policy.urlpattern.PrefixSuffixLUT createWhiteListLUT()
                                                                           throws DuplicateItemException
Deprecated. 
return the whole LUT including the dismissal and redirect urls

Returns:
allowed URL LUT
Throws:
DuplicateItemException

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)

getDestinationURL

public java.net.URL getDestinationURL()
Deprecated. use {SubscriberRedirection.getRedirectSetIndex()instead}

Returns:
the destination url. *

getDismissalMethod

public int getDismissalMethod()
Deprecated. use {SubscriberRedirection.getActivationFrequency()instead}

Returns:
Returns the dismissalMethod. *

getDismissalURL

public com.pcube.apps.engage.policy.urlpattern.UrlPattern getDismissalURL()
Deprecated. use {SubscriberRedirection.getDismissalUrl()instead}

Returns:
Returns the dismissalUrl.

getId

public int getId()
Deprecated. 
Returns:

getUrlWhiteList

public java.util.ArrayList getUrlWhiteList()
Deprecated. use SubscriberRedirection.getWhiteUrlList()instead}

return the list of allowed urls: screens the redirect and dismissal urls. NOTE: this method does not do any validation of list contents. Exception may occur when creating LUT that may corrupt the pqb

Returns:
Returns the whiteUrlList.

isTailAppended

public boolean isTailAppended()
Deprecated. 

Returns:
Returns the appendPars.

setDestinationURL

public void setDestinationURL(java.lang.String newDestination)
                       throws java.net.MalformedURLException
Deprecated. use {SubscriberRedirection#setRedirectSetIndex()instead}

Parameters:
newDestination -
Throws:
java.net.MalformedURLException - *

setDestinationURL

public void setDestinationURL(java.net.URL newDestination)
                       throws java.net.MalformedURLException
Deprecated. use {SubscriberRedirection#setRedirectSetIndex()instead}

Parameters:
newDestination -
Throws:
java.net.MalformedURLException - *

setDismissalMethod

public void setDismissalMethod(int dismissalMethod)
Deprecated. use {SubscriberRedirection#setHowToActiveMethod()instead}

Parameters:
dismissalMethod - The dismissalMethod to set. *

setDismissalURL

public void setDismissalURL(com.pcube.apps.engage.policy.urlpattern.UrlPattern newDissUrl)
Deprecated. use {SubscriberRedirection#setDismissalUrl()instead}

Parameters:
newDissUrl - The dismissalUrl to set. *

setId

public void setId(int id)
           throws java.beans.PropertyVetoException
Deprecated. 
Parameters:
id - notification's id
Throws:
java.beans.PropertyVetoException

setTailAppended

public void setTailAppended(boolean appendPars)
Deprecated. 

Parameters:
appendPars - The appendPars to set.

setUrlWhiteList

public void setUrlWhiteList(java.util.ArrayList urlPatterns)
Deprecated. use SubscriberRedirection#setWhiteUrlList()instead.

clears the current LUT contents and puts the contents of the specified list.

Parameters:
urlPatterns - list of UrlPattern

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)

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

convertOldNotifToNewNotif

public void convertOldNotifToNewNotif(Policy policy,
                                      SubscriberRedirection conNot)
Deprecated. 
Takes old type notification and convert it to new conditional redirect type notification

Parameters:
policy -
conNot -

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.