Cisco Systems, Inc.

com.pcube.apps.engage.policy
Class SpamDetectionSettings

java.lang.Object
  extended by com.pcube.apps.engage.policy.SpamDetectionSettings
All Implemented Interfaces:
Formattable, java.io.Serializable, java.lang.Cloneable

Deprecated.

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

This is the old SPAM model we only keep it for backwards compatibility if old PQB is parsed, then we convert the details to fit the new model in case one will try to directly call methods from here. The set methods will actually set the new API - all packages get will return answers from the default package

Author:
sneimark
See Also:
Serialized Form

Field Summary
static byte NO_NOTIFICATION
          Deprecated.  
static int SPAM_MITIGATION_BLOCK_ACTION
          Deprecated.  
static int SPAM_MITIGATION_BLOCK_AND_NOTIFY_ACTION
          Deprecated.  
static int SPAM_MITIGATION_NO_ACTION
          Deprecated.  
static int SPAM_MITIGATION_NOTIFY_ACTION
          Deprecated.  
 
Method Summary
 java.lang.Object clone()
          Deprecated.  
 void convertCommonSpamSettingsFromOldDbtoNewDb(com.pcube.apps.engage.policy.antispam.CommonAntiSpamSettings commonAntiSpamSettings)
          Deprecated. Convert from old pqb to new pqb common settings
 void fromStream(java.io.BufferedReader in, Formatter f)
          Deprecated. we got here since we are dealing with old pqb, get the values and parse them to the new SPAM model
 long getSpamDetectionIntervalInSec()
          Deprecated. use AntiSpamSettingsDetection.getSpamDetectionIntervalInSec()instead} will return the answer based on the default package
 long getSpamDetectionIntervalInSecOld()
          Deprecated. use AntiSpamSettingsDetection.getSpamDetectionIntervalInSec()instead}
 byte getSpamDetectionNotification()
          Deprecated. use AntiSpamSettingsAction.getSpamNotifySubscriberAction()instead} will return the answer based on the default package
 byte getSpamDetectionNotificationOld()
          Deprecated. use AntiSpamSettingsAction.getSpamNotifySubscriberAction()instead}
 long getSpamDetectionSessions()
          Deprecated. use AntiSpamSettingsDetection.getSpamDetectionSessions()instead} will get back the value of the default package
 long getSpamDetectionSessionsOld()
          Deprecated. use AntiSpamSettingsDetection.getSpamDetectionSessions()instead}
 long getSpamMitigationAction()
          Deprecated. use AntiSpamSettingsAction.isSpamBlockFlowAction()instead} AntiSpamSettingsAction#getSpamNotifySubscriberAction()(int)instead} AntiSpamSettingsAction#getSpamForwardToVasServerAction()(int)instead} AntiSpamSettingsAction#isSpamSendRdrAction()(boolean))instead} return answer based on default package
 long getSpamMitigationActionOld()
          Deprecated. use AntiSpamSettingsAction.isSpamBlockFlowAction()instead} AntiSpamSettingsAction#getSpamNotifySubscriberAction()(int)instead} AntiSpamSettingsAction#getSpamForwardToVasServerAction()(int)instead} AntiSpamSettingsAction#isSpamSendRdrAction()(boolean))instead}
 int getSpamServiceIndex()
          Deprecated. use CommonAntiSpamSettings.getServiceToMonitorSpamIndex()instead}
 int getSpamServiceIndexOld()
          Deprecated. use CommonAntiSpamSettings.getServiceToMonitorSpamIndex()instead}
 boolean isEnableSpamDetection()
          Deprecated. use CommonAntiSpamSettings.isSpamDetectionEnabled()instead}
 boolean isEnableSpamDetectionOld()
          Deprecated. use CommonAntiSpamSettings.isSpamDetectionEnabled()instead}
 void resetSpamService()
          Deprecated.  
 void resetToDefault()
          Deprecated.  
 void setEnableSpamDetection(boolean enableSpamDetection)
          Deprecated. use CommonAntiSpamSettings.setSpamDetectionEnabled(boolean)instead}
 void setSpamDetectionIntervalInSec(long spamDetectionIntervalInSec)
          Deprecated. use AntiSpamSettingsDetection.setSpamDetectionIntervalInSec(long)instead} will set the details to all packages
 void setSpamDetectionNotification(byte spamDetectionNotification)
          Deprecated. use AntiSpamSettingsAction#setSpamNotifySubscriberAction()instead} will set all packages
 void setSpamDetectionSessions(long spamDetectionSessions)
          Deprecated. use AntiSpamSettingsDetection.setSpamDetectionSessions(long)instead} this will set all packages
 void setSpamMitigationAction(int action)
          Deprecated. use AntiSpamSettingsAction.setSpamBlockFlowAction(boolean)instead} AntiSpamSettingsAction.setSpamNotifySubscriberAction(int)instead} AntiSpamSettingsAction.setSpamForwardToVasServerAction(int)instead} AntiSpamSettingsAction#setSpamSendRdrAction(boolean))instead} will set the value to all packages
 void setSpamMitigationBlockAction()
          Deprecated. use AntiSpamSettingsAction.setSpamBlockFlowAction(boolean)instead} AntiSpamSettingsAction.setSpamNotifySubscriberAction(int)instead} AntiSpamSettingsAction.setSpamForwardToVasServerAction(int)instead} AntiSpamSettingsAction#setSpamSendRdrAction(boolean))instead}
 void setSpamMitigationBlockAndNotifyAction()
          Deprecated. use AntiSpamSettingsAction.setSpamBlockFlowAction(boolean)instead} AntiSpamSettingsAction.setSpamNotifySubscriberAction(int)instead} AntiSpamSettingsAction.setSpamForwardToVasServerAction(int)instead} AntiSpamSettingsAction#setSpamSendRdrAction(boolean))instead}
 void setSpamMitigationNoAction()
          Deprecated. use AntiSpamSettingsAction.setSpamBlockFlowAction(boolean)instead} AntiSpamSettingsAction.setSpamNotifySubscriberAction(int)instead} AntiSpamSettingsAction.setSpamForwardToVasServerAction(int)instead} AntiSpamSettingsAction#setSpamSendRdrAction(boolean))instead}
 void setSpamMitigationNotifyAction()
          Deprecated. use AntiSpamSettingsAction.setSpamBlockFlowAction(boolean)instead} AntiSpamSettingsAction.setSpamNotifySubscriberAction(int)instead} AntiSpamSettingsAction.setSpamForwardToVasServerAction(int)instead} AntiSpamSettingsAction#setSpamSendRdrAction(boolean))instead}
 void setSpamServiceIndex(int spamServiceIndex)
          Deprecated. use CommonAntiSpamSettings.setServiceToMonitorSpamIndex(int)instead}
 void toStream(java.io.PrintStream out, Formatter f)
          Deprecated.  
 void updateSpamActionSettingsPerPackageBasedOnOldDB(Package pkg)
          Deprecated. Convert from old pqb to new pqb type all actions
 void updateSpamDetectionSettingsPerPackageBasedOnOldDB(Package pkg)
          Deprecated. Convert from old pqb to new pqb type all detection settings
 void updateSpamSettingsPerPackageBasedOnOldPQB(Package pkg)
          Deprecated. Convert from old pqb to new pqb type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPAM_MITIGATION_NO_ACTION

public static int SPAM_MITIGATION_NO_ACTION
Deprecated. 

SPAM_MITIGATION_BLOCK_ACTION

public static int SPAM_MITIGATION_BLOCK_ACTION
Deprecated. 

SPAM_MITIGATION_NOTIFY_ACTION

public static int SPAM_MITIGATION_NOTIFY_ACTION
Deprecated. 

SPAM_MITIGATION_BLOCK_AND_NOTIFY_ACTION

public static int SPAM_MITIGATION_BLOCK_AND_NOTIFY_ACTION
Deprecated. 

NO_NOTIFICATION

public static final byte NO_NOTIFICATION
Deprecated. 
See Also:
Constant Field Values
Method Detail

toStream

public void toStream(java.io.PrintStream out,
                     Formatter f)
Deprecated. 

Description copied from interface: Formattable
Method toStream

Specified by:
toStream in interface Formattable

clone

public java.lang.Object clone()
Deprecated. 
Overrides:
clone in class java.lang.Object

fromStream

public void fromStream(java.io.BufferedReader in,
                       Formatter f)
                throws ImportExportException
Deprecated. 
we got here since we are dealing with old pqb, get the values and parse them to the new SPAM model

Specified by:
fromStream in interface Formattable
Throws:
ImportExportException

isEnableSpamDetection

public boolean isEnableSpamDetection()
Deprecated. use CommonAntiSpamSettings.isSpamDetectionEnabled()instead}

*

Returns:

isEnableSpamDetectionOld

public boolean isEnableSpamDetectionOld()
Deprecated. use CommonAntiSpamSettings.isSpamDetectionEnabled()instead}

*

Returns:

setEnableSpamDetection

public void setEnableSpamDetection(boolean enableSpamDetection)
Deprecated. use CommonAntiSpamSettings.setSpamDetectionEnabled(boolean)instead}

Parameters:
enableSpamDetection -

getSpamDetectionIntervalInSec

public long getSpamDetectionIntervalInSec()
Deprecated. use AntiSpamSettingsDetection.getSpamDetectionIntervalInSec()instead} will return the answer based on the default package

Returns:

getSpamDetectionIntervalInSecOld

public long getSpamDetectionIntervalInSecOld()
Deprecated. use AntiSpamSettingsDetection.getSpamDetectionIntervalInSec()instead}

Returns:

setSpamDetectionIntervalInSec

public void setSpamDetectionIntervalInSec(long spamDetectionIntervalInSec)
Deprecated. use AntiSpamSettingsDetection.setSpamDetectionIntervalInSec(long)instead} will set the details to all packages

Parameters:
spamDetectionIntervalInSec -

getSpamDetectionNotification

public byte getSpamDetectionNotification()
Deprecated. use AntiSpamSettingsAction.getSpamNotifySubscriberAction()instead} will return the answer based on the default package

Returns:

getSpamDetectionNotificationOld

public byte getSpamDetectionNotificationOld()
Deprecated. use AntiSpamSettingsAction.getSpamNotifySubscriberAction()instead}

Returns:

setSpamDetectionNotification

public void setSpamDetectionNotification(byte spamDetectionNotification)
Deprecated. use AntiSpamSettingsAction#setSpamNotifySubscriberAction()instead} will set all packages

Parameters:
spamDetectionNotification -

getSpamDetectionSessions

public long getSpamDetectionSessions()
Deprecated. use AntiSpamSettingsDetection.getSpamDetectionSessions()instead} will get back the value of the default package


getSpamDetectionSessionsOld

public long getSpamDetectionSessionsOld()
Deprecated. use AntiSpamSettingsDetection.getSpamDetectionSessions()instead}


setSpamDetectionSessions

public void setSpamDetectionSessions(long spamDetectionSessions)
Deprecated. use AntiSpamSettingsDetection.setSpamDetectionSessions(long)instead} this will set all packages

Parameters:
spamDetectionSessions -

getSpamMitigationAction

public long getSpamMitigationAction()
Deprecated. use AntiSpamSettingsAction.isSpamBlockFlowAction()instead} AntiSpamSettingsAction#getSpamNotifySubscriberAction()(int)instead} AntiSpamSettingsAction#getSpamForwardToVasServerAction()(int)instead} AntiSpamSettingsAction#isSpamSendRdrAction()(boolean))instead} return answer based on default package

Returns:

getSpamMitigationActionOld

public long getSpamMitigationActionOld()
Deprecated. use AntiSpamSettingsAction.isSpamBlockFlowAction()instead} AntiSpamSettingsAction#getSpamNotifySubscriberAction()(int)instead} AntiSpamSettingsAction#getSpamForwardToVasServerAction()(int)instead} AntiSpamSettingsAction#isSpamSendRdrAction()(boolean))instead}

Returns:

setSpamMitigationAction

public void setSpamMitigationAction(int action)
Deprecated. use AntiSpamSettingsAction.setSpamBlockFlowAction(boolean)instead} AntiSpamSettingsAction.setSpamNotifySubscriberAction(int)instead} AntiSpamSettingsAction.setSpamForwardToVasServerAction(int)instead} AntiSpamSettingsAction#setSpamSendRdrAction(boolean))instead} will set the value to all packages


setSpamMitigationNoAction

public void setSpamMitigationNoAction()
Deprecated. use AntiSpamSettingsAction.setSpamBlockFlowAction(boolean)instead} AntiSpamSettingsAction.setSpamNotifySubscriberAction(int)instead} AntiSpamSettingsAction.setSpamForwardToVasServerAction(int)instead} AntiSpamSettingsAction#setSpamSendRdrAction(boolean))instead}


setSpamMitigationBlockAction

public void setSpamMitigationBlockAction()
Deprecated. use AntiSpamSettingsAction.setSpamBlockFlowAction(boolean)instead} AntiSpamSettingsAction.setSpamNotifySubscriberAction(int)instead} AntiSpamSettingsAction.setSpamForwardToVasServerAction(int)instead} AntiSpamSettingsAction#setSpamSendRdrAction(boolean))instead}


setSpamMitigationNotifyAction

public void setSpamMitigationNotifyAction()
Deprecated. use AntiSpamSettingsAction.setSpamBlockFlowAction(boolean)instead} AntiSpamSettingsAction.setSpamNotifySubscriberAction(int)instead} AntiSpamSettingsAction.setSpamForwardToVasServerAction(int)instead} AntiSpamSettingsAction#setSpamSendRdrAction(boolean))instead}


setSpamMitigationBlockAndNotifyAction

public void setSpamMitigationBlockAndNotifyAction()
Deprecated. use AntiSpamSettingsAction.setSpamBlockFlowAction(boolean)instead} AntiSpamSettingsAction.setSpamNotifySubscriberAction(int)instead} AntiSpamSettingsAction.setSpamForwardToVasServerAction(int)instead} AntiSpamSettingsAction#setSpamSendRdrAction(boolean))instead}


getSpamServiceIndex

public int getSpamServiceIndex()
Deprecated. use CommonAntiSpamSettings.getServiceToMonitorSpamIndex()instead}

Returns:

getSpamServiceIndexOld

public int getSpamServiceIndexOld()
Deprecated. use CommonAntiSpamSettings.getServiceToMonitorSpamIndex()instead}

Returns:

setSpamServiceIndex

public void setSpamServiceIndex(int spamServiceIndex)
Deprecated. use CommonAntiSpamSettings.setServiceToMonitorSpamIndex(int)instead}


resetToDefault

public void resetToDefault()
Deprecated. 

resetSpamService

public void resetSpamService()
Deprecated. 

updateSpamSettingsPerPackageBasedOnOldPQB

public void updateSpamSettingsPerPackageBasedOnOldPQB(Package pkg)
Deprecated. 
Convert from old pqb to new pqb type

Parameters:
pkg -

updateSpamActionSettingsPerPackageBasedOnOldDB

public void updateSpamActionSettingsPerPackageBasedOnOldDB(Package pkg)
Deprecated. 
Convert from old pqb to new pqb type all actions

Parameters:
pkg -

updateSpamDetectionSettingsPerPackageBasedOnOldDB

public void updateSpamDetectionSettingsPerPackageBasedOnOldDB(Package pkg)
Deprecated. 
Convert from old pqb to new pqb type all detection settings

Parameters:
pkg -

convertCommonSpamSettingsFromOldDbtoNewDb

public void convertCommonSpamSettingsFromOldDbtoNewDb(com.pcube.apps.engage.policy.antispam.CommonAntiSpamSettings commonAntiSpamSettings)
Deprecated. 
Convert from old pqb to new pqb common settings

Parameters:
commonAntiSpamSettings -

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.