|
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
com.pcube.apps.engage.policy.SubscriberRedirection
public class SubscriberRedirection
| Field Summary | |
|---|---|
static int |
ACTIVATION_FREQUENCY_ALWAYS
|
static int |
ACTIVATION_FREQUENCY_ONCE
|
static int |
ACTIVATION_FREQUENCY_ONCE_IN_A_DAY
|
static int |
ACTIVATION_FREQUENCY_ONCE_IN_A_MONTH
|
static int |
ACTIVATION_FREQUENCY_ONCE_IN_A_WEEK
|
static int |
ACTIVATION_FREQUENCY_PERIODICALLY_EVENTS
|
static int |
ACTIVATION_FREQUENCY_PERIODICALLY_KBYTES
|
static int |
ACTIVATION_FREQUENCY_PERIODICALLY_SECONDS
|
static int |
ACTIVATION_FREQUENCY_UNTIL_SUBSCRIBER_BROWSES_TO
|
static int |
DEFAULT_REDIRECT_SET_VALUE
|
static int |
MAX_NUMBER_ALLOWED_URL
|
static int |
NOTIFICATION_ACTIVATION_TRIGGER_ANY
|
static int |
NOTIFICATION_ACTIVATION_TRIGGER_BROWSE_TO_NEW_SITE
|
static int |
NOTIFICATION_ACTIVATION_TRIGGER_SUBSCRIBER_CLICKS
|
static int |
NOTIFICATION_TYPE_CONDITIONAL_REDIRECT
|
static int |
NOTIFICATION_TYPE_NOTIFICATION
|
| Fields inherited from class com.pcube.apps.engage.policy.SubNotification |
|---|
DEST_URL_MAX_LENGTH, DEST_URL_VALUE, DISMISSAL_METHOD_DEAC, DISMISSAL_METHOD_DEST, DISMISSAL_METHOD_DISS, DISMISSAL_URL_VALUE, DISS_URL_MAX_LENGTH |
| Constructor Summary | |
|---|---|
SubscriberRedirection(Policy newPolicy)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
chopHttpPrefixIfExist(java.lang.String httpUrl)
|
com.pcube.apps.engage.policy.urlpattern.PrefixSuffixLUT |
createWhiteListLUT(boolean addNotificationRedirectURL)
return the whole LUT, adding the dismissal and redirect urls is optional |
static java.lang.String |
extractHost(java.lang.String httpUrl)
extract host from httpUrl |
static java.lang.String |
extractPath(java.lang.String httpUrl)
extract path from httpUrl |
static com.pcube.apps.engage.policy.urlpattern.UrlPattern |
findNotificationHttpRedirectURL(Policy myPolicy,
int index)
find notification HTTP redirect URL based on redirect index |
void |
fromStream(java.io.BufferedReader in,
Formatter f)
Method fromStream |
boolean |
getAcrossLoginValue()
|
int |
getActivationFrequency()
|
int |
getActivationTrigger()
get flow type |
java.net.URL |
getDestinationURL()
Deprecated. use { getRedirectSetIndex()
instead} |
int |
getDismissalMethod()
Deprecated. use { getActivationFrequency()
instead} |
com.pcube.apps.engage.policy.urlpattern.UrlPattern |
getDismissalUrl()
|
com.pcube.apps.engage.policy.urlpattern.UrlPattern |
getDismissalURL()
Deprecated. use { getDismissalUrl()instead} |
boolean |
getEnableRateLimit()
|
int |
getIndex()
notification's id |
int |
getPeriodicallyValue()
|
int |
getRateLimitValue()
|
int |
getRedirectProfileType()
get notification type - conditional redirect or notification |
int |
getRedirectSetIndex()
get redirect set index |
java.util.ArrayList |
getUrlWhiteList()
Deprecated. use getWhiteUrlList()instead} |
java.util.ArrayList<com.pcube.apps.engage.policy.urlpattern.UrlPattern> |
getWhiteUrlList()
get the white URL list |
static boolean |
isPeriodicallyActivationFrequency(int newActivationFrequency)
|
static boolean |
isPeriodicallyActivationFrequency(Policy myPolicy,
int index)
|
void |
setAcrossLoginValue(boolean newAcrossLoginValue)
|
void |
setActivationFrequency(java.util.HashMap<Package,java.util.HashMap<java.lang.Integer,java.lang.Integer>> package2countAssignedPeriodicConRedirect,
int howToActiveMethod)
this method should be called while updating the list in background and only after update the policy list accordingly (GUI dialog for instance) |
void |
setActivationFrequency(int howToActiveMethod)
each time while set activation frequency, validate periodic condition redirect counter |
void |
setActivationTrigger(int flowType)
set flow type NOTIFICATION_FLOW_TYPE_CLICK_STREAM = 2 NOTIFICATION_FLOW_TYPE_CROSS_SITE = 1 NOTIFICATION_FLOW_TYPE_ALWAYS = 0 |
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 newDismissalUrl)
|
void |
setDismissalURL(com.pcube.apps.engage.policy.urlpattern.UrlPattern newDissUrl)
Deprecated. use { SubscriberRedirection#setDismissalUrl()instead} |
void |
setEnableRateLimit(boolean enableRateLimit)
|
void |
setIndex(int index)
notification's id |
void |
setPeriodicallyValue(int newPeriodicallyValue)
|
void |
setRateLimitValue(int newRateLimitValue)
|
void |
setRedirectProfileType(int newNotificationType)
set notification type - conditional redirect or notification NOTIFICATION_TYPE_CONDITIONAL_REDIRECT = 0; NOTIFICATION_TYPE_NOTIFICATION = 1; |
void |
setRedirectSetIndex(int newRedirectSetIndex)
set redirect set index |
void |
setUrlWhiteList(java.util.ArrayList urlPatterns)
Deprecated. use SubscriberRedirection#setWhiteUrlList()instead. |
void |
setWhiteUrlList(java.util.ArrayList<com.pcube.apps.engage.policy.urlpattern.UrlPattern> newWhiteUrlList)
Set the white URLs list |
void |
toStream(java.io.PrintStream out,
Formatter f)
Method toStream |
java.lang.String |
toString()
Automatically generated method: toString |
| Methods inherited from class com.pcube.apps.engage.policy.SubNotification |
|---|
convertOldNotifToNewNotif, createDefault, createNetworkAttackNotification, createWhiteListLUT, getId, isTailAppended, setId, setTailAppended |
| 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 NOTIFICATION_TYPE_CONDITIONAL_REDIRECT
public static final int NOTIFICATION_TYPE_NOTIFICATION
public static final int NOTIFICATION_ACTIVATION_TRIGGER_SUBSCRIBER_CLICKS
public static final int NOTIFICATION_ACTIVATION_TRIGGER_BROWSE_TO_NEW_SITE
public static final int NOTIFICATION_ACTIVATION_TRIGGER_ANY
public static final int ACTIVATION_FREQUENCY_UNTIL_SUBSCRIBER_BROWSES_TO
public static final int ACTIVATION_FREQUENCY_ALWAYS
public static final int ACTIVATION_FREQUENCY_ONCE
public static final int ACTIVATION_FREQUENCY_PERIODICALLY_SECONDS
public static final int ACTIVATION_FREQUENCY_PERIODICALLY_EVENTS
public static final int ACTIVATION_FREQUENCY_PERIODICALLY_KBYTES
public static final int ACTIVATION_FREQUENCY_ONCE_IN_A_DAY
public static final int ACTIVATION_FREQUENCY_ONCE_IN_A_WEEK
public static final int ACTIVATION_FREQUENCY_ONCE_IN_A_MONTH
public static final int DEFAULT_REDIRECT_SET_VALUE
public static final int MAX_NUMBER_ALLOWED_URL
| Constructor Detail |
|---|
public SubscriberRedirection(Policy newPolicy)
| Method Detail |
|---|
public static java.lang.String chopHttpPrefixIfExist(java.lang.String httpUrl)
public static java.lang.String extractHost(java.lang.String httpUrl)
public static java.lang.String extractPath(java.lang.String httpUrl)
public static com.pcube.apps.engage.policy.urlpattern.UrlPattern findNotificationHttpRedirectURL(Policy myPolicy,
int index)
public com.pcube.apps.engage.policy.urlpattern.PrefixSuffixLUT createWhiteListLUT(boolean addNotificationRedirectURL)
addNotificationRedirectURL - true to add dismissal and destination URLs to LUT
public void fromStream(java.io.BufferedReader in,
Formatter f)
throws ImportExportException
Formattable
fromStream in interface FormattablefromStream in class SubNotificationImportExportExceptionFormattable.fromStream(java.io.BufferedReader,
com.pcube.apps.engage.common.Formatter)public int getActivationFrequency()
public int getActivationTrigger()
public java.net.URL getDestinationURL()
getRedirectSetIndex()
instead}
getDestinationURL in class SubNotificationpublic int getDismissalMethod()
getActivationFrequency()
instead}
getDismissalMethod in class SubNotificationpublic com.pcube.apps.engage.policy.urlpattern.UrlPattern getDismissalUrl()
public com.pcube.apps.engage.policy.urlpattern.UrlPattern getDismissalURL()
getDismissalUrl()instead}
getDismissalURL in class SubNotificationpublic int getIndex()
public int getPeriodicallyValue()
public int getRateLimitValue()
public boolean getEnableRateLimit()
public boolean getAcrossLoginValue()
public int getRedirectProfileType()
public int getRedirectSetIndex()
public java.util.ArrayList getUrlWhiteList()
getWhiteUrlList()instead}
getUrlWhiteList in class SubNotificationpublic java.util.ArrayList<com.pcube.apps.engage.policy.urlpattern.UrlPattern> getWhiteUrlList()
public void setActivationFrequency(int howToActiveMethod)
howToActiveMethod -
public void setActivationFrequency(java.util.HashMap<Package,java.util.HashMap<java.lang.Integer,java.lang.Integer>> package2countAssignedPeriodicConRedirect,
int howToActiveMethod)
package2countAssignedPeriodicConRedirect - howToActiveMethod - public void setActivationTrigger(int flowType)
flowType -
public void setDestinationURL(java.lang.String newDestination)
throws java.net.MalformedURLException
SubscriberRedirection#setRedirectSetIndex()
instead}
setDestinationURL in class SubNotificationjava.net.MalformedURLException - *
public void setDestinationURL(java.net.URL newDestination)
throws java.net.MalformedURLException
SubscriberRedirection#setRedirectSetIndex()
instead}
setDestinationURL in class SubNotificationjava.net.MalformedURLException - *public void setDismissalMethod(int dismissalMethod)
SubscriberRedirection#setHowToActiveMethod()
instead}
setDismissalMethod in class SubNotificationdismissalMethod - The dismissalMethod to set.public void setDismissalUrl(com.pcube.apps.engage.policy.urlpattern.UrlPattern newDismissalUrl)
public void setDismissalURL(com.pcube.apps.engage.policy.urlpattern.UrlPattern newDissUrl)
SubscriberRedirection#setDismissalUrl()instead}
setDismissalURL in class SubNotificationnewDissUrl - The dismissalUrl to set.
public void setIndex(int index)
throws java.beans.PropertyVetoException
java.beans.PropertyVetoExceptionpublic void setPeriodicallyValue(int newPeriodicallyValue)
public void setRateLimitValue(int newRateLimitValue)
public void setEnableRateLimit(boolean enableRateLimit)
public void setAcrossLoginValue(boolean newAcrossLoginValue)
public void setRedirectProfileType(int newNotificationType)
newNotificationType - public void setRedirectSetIndex(int newRedirectSetIndex)
newRedirectSetIndex - public void setUrlWhiteList(java.util.ArrayList urlPatterns)
SubscriberRedirection#setWhiteUrlList()instead.
setUrlWhiteList in class SubNotificationurlPatterns - list of UrlPatternpublic void setWhiteUrlList(java.util.ArrayList<com.pcube.apps.engage.policy.urlpattern.UrlPattern> newWhiteUrlList)
newWhiteUrlList -
public void toStream(java.io.PrintStream out,
Formatter f)
Formattable
toStream in interface FormattabletoStream in class SubNotificationFormattable.toStream(java.io.PrintStream,
com.pcube.apps.engage.common.Formatter)public static boolean isPeriodicallyActivationFrequency(int newActivationFrequency)
public static boolean isPeriodicallyActivationFrequency(Policy myPolicy,
int index)
public java.lang.String toString()
toString in class SubNotificationObject.toString()
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||