|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.p13n.ad.AdHelper
A set of static methods which perform provide utilities services to the ad package.
Constructor Summary | |
AdHelper()
|
Method Summary | |
static java.lang.String |
getAdContent(java.lang.String adQuery,
long identifier,
java.lang.String containerUID,
java.lang.String contextUID,
java.lang.String placeholder,
java.lang.String userId,
java.lang.String servletBase,
Request request,
AdService as,
int height,
int width)
Return the content for an ad Query as an XHTML string. |
static AdService |
getAdService()
Deprecated. Use <ejb-ref> instead. |
static AdService |
getAdService(java.lang.String name)
Get an AdService instance from the specified JNDI name. |
static Content |
getContent(AdService as,
java.lang.String contentId)
return the Content object for the passed content id. |
static AdEventTracker |
getEventTracker()
Return the ad event tracker to use. |
static int |
getNextRandom(int max)
Return a random number between [0,max)Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value max (exclusive). |
static AdContentProvider |
getRendering()
Return the global ad renderer to use. |
static void |
raiseClickThruEvent(java.lang.String userId,
javax.servlet.http.HttpServletRequest request,
java.lang.String containerUID,
java.lang.String contextUID,
java.lang.String placeholder,
java.lang.String contId)
Raise a click thru event with the AdEventTracker |
static void |
raiseDisplayEvent(java.lang.String userId,
javax.servlet.http.HttpServletRequest request,
java.lang.String containerUID,
java.lang.String contextUID,
java.lang.String placeholder,
java.lang.String contId)
Raise an display event with the AdEventTracker. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AdHelper()
Method Detail |
public static java.lang.String getAdContent(java.lang.String adQuery, long identifier, java.lang.String containerUID, java.lang.String contextUID, java.lang.String placeholder, java.lang.String userId, java.lang.String servletBase, Request request, AdService as, int height, int width) throws AdContentException, javax.ejb.CreateException
adQuery
- the content management queryindentifier
- a indentifier for the content bucket the query
is fromcontainerUID
- the UID of the containercontextUID
- the UID of the contextplaceholder
- the name of the placeholderuserId
- the user IdservletBase
- the Web App root for the click thru servletrequest
- the HTTP requestas
- the AdService EJBheight
- the suggested content heightwidth
- the suggested content widthgetRendering()
public static Content getContent(AdService as, java.lang.String contentId)
as
- the AdService EJBcontentId
- the identifier of the content being requestedpublic static AdService getAdService() throws javax.naming.NamingException, javax.ejb.CreateException
public static AdService getAdService(java.lang.String name) throws javax.naming.NamingException, javax.ejb.CreateException
public static AdContentProvider getRendering()
This will access the AdServiceMBean
for
the class name of the AdContentProvider to use.
public static AdEventTracker getEventTracker()
This will access the AdServiceMBean
for
the class name of the AdEventTracker to use.
public static void raiseDisplayEvent(java.lang.String userId, javax.servlet.http.HttpServletRequest request, java.lang.String containerUID, java.lang.String contextUID, java.lang.String placeholder, java.lang.String contId)
userId
- the user Idrequest
- the HTTP requestcontainerUID
- the UID for the containercontextUID
- the UID for the contextplaceholder
- the name of the placeholdercontId
- the content identifiergetEventTracker()
public static void raiseClickThruEvent(java.lang.String userId, javax.servlet.http.HttpServletRequest request, java.lang.String containerUID, java.lang.String contextUID, java.lang.String placeholder, java.lang.String contId)
userId
- the user Idrequest
- the HTTP requestcontainerUID
- the UID for the containercontextUID
- the UID for the contextplaceholder
- the name of the placeholdercontId
- the content identifiergetEventTracker()
public static int getNextRandom(int max)
max
- the max number to return
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |