BEA Systems, Inc.

com.beasys.commerce.axiom.content
Interface ContentManager

All Known Subinterfaces:
DocumentManager

public interface ContentManager
extends Session

A front-end session bean for dealing with Content.

A ContentManager will delagate to a Content bean and a Schema bean, configured in the ContentManager EJB environment.

See Also:
ContentManagerHome, ContentManagerImpl

Method Summary
 java.util.Enumeration getAllSchemas()
          Return all the content Schema objects this ContentManager knows about.
 java.util.Enumeration getContent(Search params)
          Get an Enumeration of Content objects that match the seach parameters.
 java.util.Enumeration getContent(Search params, boolean readOnly)
          Get an Enumeration of Content object that match the seach parameters.
 Schema getSchema(java.lang.String scope)
          Get the content schema with the given name.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getContent

public java.util.Enumeration getContent(Search params,
                                        boolean readOnly)
                                 throws java.rmi.RemoteException
Get an Enumeration of Content object that match the seach parameters.

Depending upon the implemenation, this may simply delagate to a ContentHome.

In general, setting readOnly to true will help with performance when read-only access is required. However, the implementation may choose to ignore this flag. Therefore, when setting readOnly to true, do not attempt to call EJB methods (getHandle(), remove()) on the resulting Content object.

Parameters:
params - the search paramters.
readOnly - true to return read-only version of the Content objects, false to return the live EJBs.
Throws:
java.rmi.RemoteException - thrown on an error.

getContent

public java.util.Enumeration getContent(Search params)
                                 throws java.rmi.RemoteException
Get an Enumeration of Content objects that match the seach parameters.

This will use the implementations default readOnly flag, so assume it will be true.

Depending upon the implemenation, this may simply delagate to a ContentHome.

Throws:
java.rmi.RemoteException - thrown on an error.
See Also:
getContent(com.beasys.commerce.foundation.expression.Search, boolean)

getSchema

public Schema getSchema(java.lang.String scope)
                 throws java.rmi.RemoteException
Get the content schema with the given name.
Throws:
java.rmi.RemoteException - thrown on an error.

getAllSchemas

public java.util.Enumeration getAllSchemas()
                                    throws java.rmi.RemoteException
Return all the content Schema objects this ContentManager knows about.
Throws:
java.rmi.RemoteException - thrown on an error.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved