BEA Systems, Inc.

examples.advisor
Class ContentSelectorExample

java.lang.Object
  |
  +--examples.advisor.ContentSelectorExample

public class ContentSelectorExample
extends java.lang.Object

Uses the Advisor to run a contentSelector rule.


Constructor Summary
ContentSelectorExample()
           
 
Method Summary
 Content[] executeContentSelector(javax.servlet.jsp.PageContext pageContext, java.lang.String ruleset, java.lang.String rule, java.lang.String contenthome, java.lang.String sortby, java.lang.String query, int max)
          Runs a content selector rule
static javax.naming.Context getInitialContext()
          Gets an initial context for the current user, password and url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentSelectorExample

public ContentSelectorExample()
Method Detail

executeContentSelector

public Content[] executeContentSelector(javax.servlet.jsp.PageContext pageContext,
                                        java.lang.String ruleset,
                                        java.lang.String rule,
                                        java.lang.String contenthome,
                                        java.lang.String sortby,
                                        java.lang.String query,
                                        int max)
                                 throws javax.servlet.jsp.JspException
Runs a content selector rule

getInitialContext

public static javax.naming.Context getInitialContext()
                                              throws java.lang.Exception
Gets an initial context for the current user, password and url.
Returns:
Context
Throws:
java.lang.Exception - if there is an error in getting the Context

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved