|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The remote bean interface for the AdService.
This will return the actual content for ads. All ad query strings and expression should be full-realized and contain only literal values (no property references).
Nested Class Summary | |
static class |
AdService.AdCounts
Class that is generated by getAdCounts. |
Method Summary | |
void |
cleanupAdService(String containerUID)
Cleanup the AdService removing all records specified by the passed in ContainerUID. |
String |
getAdContent(Expression expr,
long identifier,
String containerUID,
String contextUID,
String placeholder,
String userId,
String servletBase,
Request request,
int height,
int width)
Get the XHTML ad content for a content object and record an impression. |
String |
getAdContent(String query,
long identifier,
String containerUID,
String contextUID,
String placeholder,
String userId,
String servletBase,
Request request,
int height,
int width)
Deprecated. Use getAdContenxt(Expression, ...) instead |
Collection |
getAdCounts(Collection contentPaths,
String containerUID)
return of collection of ad counts |
Node[] |
getContent(Expression expr)
Deprecated. Use getContent(Expression, Request) instead. |
Node[] |
getContent(Expression expr,
Request request)
Return an array of content which match the ad query expression |
Node[] |
getContent(String adQuery)
Deprecated. Use getContent(Expression, Request) instead. |
Collection |
getContentIds(Expression expr)
Deprecated. Use getContentPaths(Expression, Request) instead. |
Collection |
getContentIds(String adQuery)
Deprecated. Use getContentPaths(Expression, Request) instead. |
Collection |
getContentPaths(Expression expr)
Deprecated. Use getContentPaths(Expression, Request) instead. |
Collection |
getContentPaths(Expression expr,
Request request)
Return a collection of content paths which match the ad query expression. |
void |
recordClickThru(String contentPath,
String containerUID,
String contextUID,
String placeholder,
String userId,
Request request)
Update the click thru count for an ad |
void |
recordDisplay(Node c,
String containerUID,
String contextUID,
String placeholder,
String userId,
Request request)
Update the display count for an ad. |
String |
renderContent(Node c,
long identifier,
String servletBase,
int height,
int width,
int options)
Return the rendered XHTML for the content object. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Method Detail |
public void cleanupAdService(String containerUID) throws RemoteException, ContentException
containerUID
- containerUID identifying the records to be removed
RemoteException
ContentException
public String getAdContent(Expression expr, long identifier, String containerUID, String contextUID, String placeholder, String userId, String servletBase, Request request, int height, int width) throws AdContentException, RemoteException
expr
- the content management query expressionidentifier
- 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 requestheight
- the suggested content heightwidth
- the suggested content width
AdContent
- if there is a problem getting the content
AdContentException
RemoteException
public String getAdContent(String query, long identifier, String containerUID, String contextUID, String placeholder, String userId, String servletBase, Request request, int height, int width) throws AdContentException, RemoteException
identifier
- 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 requestheight
- the suggested content heightwidth
- the suggested content width
AdContent
- if there is a problem getting the content
AdContentException
RemoteException
getAdContent(com.bea.p13n.expression.Expression, long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.bea.p13n.http.Request, int, int)
public Collection getAdCounts(Collection contentPaths, String containerUID) throws RemoteException, SQLException
contentPaths
- the content pathcontainerUID
- the UID of the container
RemoteException
SQLException
public Node[] getContent(Expression expr) throws RemoteException, AdContentException
AdContentException
- when the ad content cannot be found.
RemoteException
getContent(com.bea.p13n.expression.Expression, com.bea.p13n.http.Request)
public Node[] getContent(Expression expr, Request request) throws RemoteException, AdContentException
request
- the copy of the http request (null if not available).
AdContentException
- when the ad content cannot be found.
RemoteException
public Node[] getContent(String adQuery) throws RemoteException, AdContentException
adQuery
- The content query string
AdContentException
- when the ad content cannot be found.
RemoteException
getContent(com.bea.p13n.expression.Expression, com.bea.p13n.http.Request)
public Collection getContentIds(Expression expr) throws RemoteException, AdContentException
expr
- The content query expression
AdContentException
- when the ad content cannot be found.
RemoteException
getContentPaths(com.bea.p13n.expression.Expression, com.bea.p13n.http.Request)
public Collection getContentIds(String adQuery) throws RemoteException, AdContentException
adQuery
- The content query string
AdContentException
- when the ad content cannot be found.
RemoteException
getContentPaths(com.bea.p13n.expression.Expression, com.bea.p13n.http.Request)
public Collection getContentPaths(Expression expr) throws RemoteException, AdContentException
expr
- The content query expression
AdContentException
- when the ad content cannot be found.
RemoteException
getContentPaths(com.bea.p13n.expression.Expression, com.bea.p13n.http.Request)
public Collection getContentPaths(Expression expr, Request request) throws RemoteException, AdContentException
expr
- The content query expressionrequest
- the copy of the http request (null if not available).
AdContentException
- when the ad content cannot be found.
RemoteException
public void recordClickThru(String contentPath, String containerUID, String contextUID, String placeholder, String userId, Request request) throws RemoteException, SQLException
contentPath
- The content object pathcontainerUID
- the UID of the containercontextUID
- the UID of the contextplaceholder
- the name of the placeholderuserId
- the user Idrequest
- the HTTP request
RemoteException
SQLException
public void recordDisplay(Node c, String containerUID, String contextUID, String placeholder, String userId, Request request) throws RemoteException, SQLException
c
- The content objectcontainerUID
- the UID of the containercontextUID
- the UID of the contextplaceholder
- the name of the placeholderuserId
- the user Idrequest
- the HTTP request
RemoteException
SQLException
public String renderContent(Node c, long identifier, String servletBase, int height, int width, int options) throws AdContentException, RemoteException
c
- The content element to renderidentifier
- A long that is used to access the database recordservletBase
- The Web App root for the click thru servletheight
- The suggested heightwidth
- The suggested widthoptions
- The options for the rendering
AdContentException
RemoteException
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |