© 2002 BEA Systems, Inc.


com.bea.campaign.rules
Class AddAdToPlaceholderActionDef

java.lang.Object
  |
  +--com.bea.campaign.action.ActionDef
        |
        +--com.bea.campaign.rules.AddAdToPlaceholderActionDef

public class AddAdToPlaceholderActionDef
extends ActionDef

An action definition specific to the AddAdToPlaceholderAction.

See Also:
AddAdToPlaceholderAction, Serialized Form

Field Summary
static int HIGH
          The "High" weight.
static int HIGHEST
          The "Highest" weight.
static int LOW
          The "Low" weight.
static int LOWEST
          The "Lowest" weight.
static int MEDIUM
          The "Medium" weight (same as NORMAL).
static int NORMAL
          The "Normal" weight.
 
Constructor Summary
AddAdToPlaceholderActionDef(java.util.Collection placeholders, java.lang.String weight, ContentQueryNode contentQuery)
          Constructor.
AddAdToPlaceholderActionDef(java.util.Collection placeholders, java.lang.String weight, ContentQueryNode contentQuery, java.lang.String ttlStr, TimeInstant expireDate)
          Constructor.
AddAdToPlaceholderActionDef(java.util.Collection placeholders, java.lang.String weight, ContentQueryNode contentQuery, java.lang.String ttlStr, TimeInstant expireDate, java.lang.String clearingPolicy)
          Constructor.
AddAdToPlaceholderActionDef(java.lang.String[] placeholders, java.lang.String weight, ContentQueryNode contentQuery)
          Constructor.
AddAdToPlaceholderActionDef(java.lang.String[] placeholders, java.lang.String weight, ContentQueryNode contentQuery, java.lang.String ttlStr, TimeInstant expireDate)
          Constructor.
AddAdToPlaceholderActionDef(java.lang.String[] placeholders, java.lang.String weight, ContentQueryNode contentQuery, java.lang.String ttlStr, TimeInstant expireDate, java.lang.String clearingPolicy)
          Master constructor.
 
Method Summary
static int getWeight(java.lang.String weight)
          Convert the "Highest"..."Lowest" weight string to a 5..1 number.
 
Methods inherited from class com.bea.campaign.action.ActionDef
createAction, getActionParams, getActionService, getActionType, setActionParams, setActionType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIGHEST

public static final int HIGHEST
The "Highest" weight.

HIGH

public static final int HIGH
The "High" weight.

NORMAL

public static final int NORMAL
The "Normal" weight.

MEDIUM

public static final int MEDIUM
The "Medium" weight (same as NORMAL).

LOW

public static final int LOW
The "Low" weight.

LOWEST

public static final int LOWEST
The "Lowest" weight.
Constructor Detail

AddAdToPlaceholderActionDef

public AddAdToPlaceholderActionDef(java.util.Collection placeholders,
                                   java.lang.String weight,
                                   ContentQueryNode contentQuery)
Constructor.

Parameters:
placeholders - the list of placeholder names (Strings).
weight - the ad query weight (Higest, High, Normal, Low, Lowest).
contentQuery - the content query node.

AddAdToPlaceholderActionDef

public AddAdToPlaceholderActionDef(java.lang.String[] placeholders,
                                   java.lang.String weight,
                                   ContentQueryNode contentQuery)
Constructor.

Parameters:
placeholders - the array of placeholder names (Strings).
weight - the ad query weight (Higest, High, Normal, Low, Lowest).
contentQuery - the content query node.

AddAdToPlaceholderActionDef

public AddAdToPlaceholderActionDef(java.lang.String[] placeholders,
                                   java.lang.String weight,
                                   ContentQueryNode contentQuery,
                                   java.lang.String ttlStr,
                                   TimeInstant expireDate)
Constructor.

Parameters:
placeholders - the array of placeholder names (Strings).
weight - the ad query weight (Higest, High, Normal, Low, Lowest).
contentQuery - the content query node.
ttlStr - the time-to-live for the ad query (in "[days]:[hours]:[minutes]" format, null for none).
expireDate - the absoluate expiration date for the ad query (null for none).

AddAdToPlaceholderActionDef

public AddAdToPlaceholderActionDef(java.util.Collection placeholders,
                                   java.lang.String weight,
                                   ContentQueryNode contentQuery,
                                   java.lang.String ttlStr,
                                   TimeInstant expireDate)
Constructor.

Parameters:
placeholders - the collection of placeholder names (Strings).
weight - the ad query weight (Higest, High, Normal, Low, Lowest).
contentQuery - the content query node.
ttlStr - the time-to-live for the ad query (in "[days]:[hours]:[minutes]" format, null for none).
expireDate - the absoluate expiration date for the ad query (null for none).

AddAdToPlaceholderActionDef

public AddAdToPlaceholderActionDef(java.lang.String[] placeholders,
                                   java.lang.String weight,
                                   ContentQueryNode contentQuery,
                                   java.lang.String ttlStr,
                                   TimeInstant expireDate,
                                   java.lang.String clearingPolicy)
Master constructor.

Parameters:
placeholders - the array of placeholder names (Strings).
weight - the ad query weight (Higest, High, Normal, Low, Lowest).
contentQuery - the content query node.
ttlStr - the time-to-live for the ad query (in "[days]:[hours]:[minutes]" format, null for none).
expireDate - the absoluate expiration date for the ad query (null for none).
clearingPolicy - the clearing policy (either "campaign", "all", or anything else for none).

AddAdToPlaceholderActionDef

public AddAdToPlaceholderActionDef(java.util.Collection placeholders,
                                   java.lang.String weight,
                                   ContentQueryNode contentQuery,
                                   java.lang.String ttlStr,
                                   TimeInstant expireDate,
                                   java.lang.String clearingPolicy)
Constructor.

Parameters:
placeholders - the collection of placeholder names (Strings).
weight - the ad query weight (Higest, High, Normal, Low, Lowest).
contentQuery - the content query node.
ttlStr - the time-to-live for the ad query (in "[days]:[hours]:[minutes]" format, null for none).
expireDate - the absoluate expiration date for the ad query (null for none).
clearingPolicy - the clearing policy (either "campaign", "all", or anything else for none).
Method Detail

getWeight

public static int getWeight(java.lang.String weight)
Convert the "Highest"..."Lowest" weight string to a 5..1 number.

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved