|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The remote bean interface for the AdBucketService. The AdBucketService implements the ContentBucket interface and provides ad content to the PlaceholderService. There are two "buckets" of ad that may be searched. Associated with each user is an AdBucket. If the ad isn't found in the users AdBucket then a global AdBucket is searched. When multiple ads are legal, the AdConflictResolver is called to select the "best" ad to be displayed.
The AdBucketService provides methods to add ads to user AdBuckets. In addition, there is a cleanup method which will remove all of the ads associated with a container.
Preview manages the life time of a query preview and allows all possible content matching the query to be rendered and returned to some type of preview object.
Inner classes inherited from class com.bea.p13n.placeholder.ContentBucket |
ContentBucket.PreviewInfo |
Method Summary | |
void |
cleanupAdBucket(java.lang.String containerUID)
Remove the information about a container from both the user and global ad buckets. |
AdInfo |
getAdEventInfo(long adBucketId)
Get the AdInfo required to post an event for the specified bucket id. |
java.lang.String |
getContent(java.lang.String placeholderName,
boolean mixGlobals,
java.lang.String userId,
java.lang.String servletBase,
Request request,
int height,
int width)
Return the content for the requested ad |
java.util.Collection |
getGlobalQueries(java.lang.String placeholderName)
Get the list of AdInfos that represent the global queries for the specified placeholder. |
java.util.Collection |
previewContent(java.lang.String servletBase,
java.lang.String query,
boolean renderContent)
Return a collection of PreviewInfo structures which match all of the content for the query. |
java.util.Collection |
previewContent(java.lang.String userId,
java.lang.String servletBase,
java.lang.String query)
Deprecated. Use previewContent(String, String, boolean) instead. |
void |
removeGlobalQueries(java.lang.String placeholderName,
boolean removeAll)
Remove queries from the add bucket. |
void |
setGlobalQuery(java.lang.String placeholderName,
java.lang.String query,
int weight)
Set a global query for the placeholder. |
boolean |
userAddAd(AdInfo adInfo,
boolean remove)
Add the adInfo to the user's AdBucket |
int |
userClearAds(java.lang.String userId,
java.lang.String placeholderName,
java.lang.String containerUID,
java.lang.String containerType)
Clear user ads in a bucket. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public java.lang.String getContent(java.lang.String placeholderName, boolean mixGlobals, java.lang.String userId, java.lang.String servletBase, Request request, int height, int width) throws java.rmi.RemoteException, ContentException
placeholderName
- The name of the placeholdermixGlobals
- Mix globals with bucket ads?userId
- The user idservletBase
- The Web App base for the click thru servletrequest
- The HTTP requestheight
- The desired heightwidth
- The desired widthpublic java.util.Collection previewContent(java.lang.String servletBase, java.lang.String query, boolean renderContent) throws java.rmi.RemoteException, ContentException
servletBase
- The Web App base for the click thru servletquery
- The content query to be previewedrenderContent
- true to include the rendering content in the
preview, false to not.public java.util.Collection previewContent(java.lang.String userId, java.lang.String servletBase, java.lang.String query) throws java.rmi.RemoteException, ContentException
userId
- the user name.servletBase
- The Web App base for the click thru servletquery
- The content query to be previewedpublic void setGlobalQuery(java.lang.String placeholderName, java.lang.String query, int weight) throws java.rmi.RemoteException, ContentException
placeholderName
- the name of the placeholder setting the global
queryquery
- The query expression of the query.weight
- The weight associated with the querypublic void removeGlobalQueries(java.lang.String placeholderName, boolean removeAll) throws java.rmi.RemoteException, ContentException
placeholderName
- the name of the placeholderremoveAll
- if true remove all entries for the placeholder,
otherwise simply remove the global entries.public java.util.Collection getGlobalQueries(java.lang.String placeholderName) throws java.rmi.RemoteException, ContentException
public boolean userAddAd(AdInfo adInfo, boolean remove) throws java.rmi.RemoteException, ContentException
adInfo
- the ad related informationremove
- if the AdInfo already exists, true to remove it, false to
update it.public int userClearAds(java.lang.String userId, java.lang.String placeholderName, java.lang.String containerUID, java.lang.String containerType) throws java.rmi.RemoteException, ContentException
userId
- the userId (null for current, only admin users can clear
other user's buckets).placeholderName
- the name of the placeholder to clear (null for
all placeholders).containerUID
- the uid of the container to clear (null for all
containers).containerType
- the type of the container to clear (null for all
container types).public AdInfo getAdEventInfo(long adBucketId) throws java.rmi.RemoteException, ContentException
The AdInfo returned will only have a bucketId, placeholderName, containerUID, and contextUID.
public void cleanupAdBucket(java.lang.String containerUID) throws java.rmi.RemoteException, ContentException
containerUID
- The name of the container
that we are cleaning up
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |