|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
com.bea.campaign.AdCountGoal
public class AdCountGoal
A goal based upon ad counts.
| Field Summary | |
|---|---|
protected Collection |
adPathsThe list of ad ids. |
static short |
ANDConstant for AND boolean logic. |
static short |
CLICK_THRUConstant for click-thru counts. |
protected short |
countTypeThe impression or click-thru count type. |
static short |
GLOBALConstant for global counts. |
protected long |
goalCountThe goal's count. |
static short |
IMPRESSIONConstant for impression counts. |
static short |
LOCALConstant for campaign-local counts. |
protected short |
logicThe boolean logic. |
static short |
ORConstant for OR boolean logic. |
protected short |
typeThe local or global count type. |
| Constructor Summary | |
|---|---|
AdCountGoal() |
|
| Method Summary | |
|---|---|
void |
addAdId(String id)Deprecated Use addAdPath(path) instead. |
void |
addAdPath(String path)Add an ad path. |
Collection |
getAdIds()Deprecated Use getAdPaths() instead. |
Collection |
getAdPaths()Get the ad paths. |
short |
getCountType()Get the count type. |
long |
getGoalCount()Get the goal's count. |
short |
getLogic()Return the boolean logic of the goal |
short |
getType()Get the campaign count type. |
boolean |
hasBeenMet(CampaignService service, Campaign campaign)Determine if this goal has been met. |
void |
init(Element e)Initialize this goal from an XML element. |
void |
printXML(Writer writer)Print out this goal as an XML element. |
void |
setCountType(short t)Set the campaign count type. |
void |
setCountType(String t)Set the campaign count type. |
void |
setGoalCount(long count)Set the goal's count. |
void |
setLogic(short l)Set the boolean logic. |
void |
setLogic(String l)Set the boolean logic. |
void |
setType(short t)Set the campaign count type. |
void |
setType(String t)Set the campaign count type. |
String |
toString()Get a string representation of this. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final short AND
public static final short OR
public static final short IMPRESSION
public static final short CLICK_THRU
public static final short LOCAL
public static final short GLOBAL
protected short logic
protected short type
protected short countType
protected long goalCount
protected Collection adPaths
| Constructor Detail |
|---|
public AdCountGoal()
| Method Detail |
|---|
public short getLogic()
public void setLogic(short l)
l - AND or OR.public void setLogic(String l)
l - "and" or "or".public short getType()
public void setType(short t)
t - LOCAL or GLOBAL.public void setType(String t)
t - LOCAL or GLOBAL.public short getCountType()
public void setCountType(short t)
t - IMPRESSION or CLICK_THRU.public void setCountType(String t)
t - IMPRESSION or CLICK_THRU.public long getGoalCount()
public void setGoalCount(long count)
public Collection getAdIds()
public void addAdId(String id)
public Collection getAdPaths()
public void addAdPath(String path)
public boolean hasBeenMet(CampaignService service,
Campaign campaign)
hasBeenMet in interface Goalservice - the CampaignService to use.campaign - the Campaign to check under.
public void init(Element e)
throws IllegalArgumentException
Consult the campaign.xsd XML Schema file for the structure of the Ad Count Goal XML.
init in interface Goale - the element.IllegalArgumentException - thrown on invalid XML.public void printXML(Writer writer)
printXML in interface Goalwriter - the output writer.public String toString()
toString in class Object
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2010, Oracle. All rights reserved.