|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pcube.apps.engage.foundations.NamedObjectBase
com.pcube.apps.engage.policy.SubNotification
public class SubNotification
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.
| 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 |
|---|
public static final int DEST_URL_MAX_LENGTH
DEST_URL_MAX_LENGTH
public static final int DEST_URL_VALUE
DEST_URL_VALUE
public static final int DISMISSAL_METHOD_DEAC
DISMISSAL_METHOD_DEAC
public static final int DISMISSAL_METHOD_DEST
DISMISSAL_METHOD_DEST
public static final int DISMISSAL_METHOD_DISS
DISMISSAL_METHOD_DISS
public static final int DISMISSAL_URL_VALUE
DISMISSAL_URL_VALUE
public static final int DISS_URL_MAX_LENGTH
DISS_URL_MAX_LENGTH
public static final int MAX_NUMBER_ALLOWED_URL
MAX_NUMBER_ALLOWED_URL
public static final int WHITE_URL_VALUE
WHITE_URL_VALUE
| Constructor Detail |
|---|
public SubNotification()
SubscriberRedirection#conditionalRedirectNotifications()instead}
| Method Detail |
|---|
public static SubNotification createDefault()
public static SubNotification createNetworkAttackNotification()
public com.pcube.apps.engage.policy.urlpattern.PrefixSuffixLUT createWhiteListLUT()
throws DuplicateItemException
DuplicateItemException
public void fromStream(java.io.BufferedReader in,
Formatter f)
throws ImportExportException
Formattable
fromStream in interface FormattableImportExportExceptionFormattable.fromStream(java.io.BufferedReader,
com.pcube.apps.engage.common.Formatter)public java.net.URL getDestinationURL()
SubscriberRedirection.getRedirectSetIndex()instead}
public int getDismissalMethod()
SubscriberRedirection.getActivationFrequency()instead}
public com.pcube.apps.engage.policy.urlpattern.UrlPattern getDismissalURL()
SubscriberRedirection.getDismissalUrl()instead}
public int getId()
public java.util.ArrayList getUrlWhiteList()
SubscriberRedirection.getWhiteUrlList()instead}
public boolean isTailAppended()
public void setDestinationURL(java.lang.String newDestination)
throws java.net.MalformedURLException
SubscriberRedirection#setRedirectSetIndex()instead}
newDestination -
java.net.MalformedURLException - *
public void setDestinationURL(java.net.URL newDestination)
throws java.net.MalformedURLException
SubscriberRedirection#setRedirectSetIndex()instead}
newDestination -
java.net.MalformedURLException - *public void setDismissalMethod(int dismissalMethod)
SubscriberRedirection#setHowToActiveMethod()instead}
dismissalMethod - The dismissalMethod to set. *public void setDismissalURL(com.pcube.apps.engage.policy.urlpattern.UrlPattern newDissUrl)
SubscriberRedirection#setDismissalUrl()instead}
newDissUrl - The dismissalUrl to set. *
public void setId(int id)
throws java.beans.PropertyVetoException
id - notification's id
java.beans.PropertyVetoExceptionpublic void setTailAppended(boolean appendPars)
appendPars - The appendPars to set.public void setUrlWhiteList(java.util.ArrayList urlPatterns)
SubscriberRedirection#setWhiteUrlList()instead.
urlPatterns - list of UrlPattern
public void toStream(java.io.PrintStream out,
Formatter f)
Formattable
toStream in interface FormattableFormattable.toStream(java.io.PrintStream,
com.pcube.apps.engage.common.Formatter)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
public void convertOldNotifToNewNotif(Policy policy,
SubscriberRedirection conNot)
policy - conNot -
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||