|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A ContentBucket is an interface which the PlaceholderService uses to obtain content for the PlaceholderTag. A placeholder is bound to an EJB. The EJB must implement the ContentBucket interace.
| Inner Class Summary | |
static class |
ContentBucket.PreviewInfo
Struct class that captures the information from the preview |
| Method Summary | |
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 specific placeholder and user. |
java.util.Collection |
previewContent(java.lang.String userId,
java.lang.String query)
Return a collection of PreviewInfo structures which match all of the content for the query. |
void |
removeGlobalQueries(java.lang.String placeholderName,
boolean allQueries)
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. |
| 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 specific placeholder requesting
the contentmixGlobals - Flag indicating if globals should be mixeduserinfo - An Object which represents the userservletBase - the Web App root for the Click thru servletrequest - the HTTP requestheight - A requested height for the contentwidth - A requested width for the contentContent - thrown when there was a failure to get the content
public java.util.Collection previewContent(java.lang.String userId,
java.lang.String query)
throws java.rmi.RemoteException,
ContentException
userId - The userId for the previewquery - The content query to be previewed
public 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 content
public void removeGlobalQueries(java.lang.String placeholderName,
boolean allQueries)
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.
|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||