© 2001 BEA Systems, Inc.

com.beasys.commerce.axiom.document
Interface DocumentManager

All Superinterfaces:
BusinessSmartComponent, ContentManager, java.io.Serializable, Session

public interface DocumentManager
extends ContentManager

A ContentManager specific to Documents.

This has the ContentManager.getContent(com.beasys.commerce.foundation.expression.Search, boolean) methods, plus a method for retrieving a document's bytes.

See Also:
DocumentManagerHome, DocumentManagerImpl

Method Summary
 byte[] getContentBlock(DocumentPk key, long start, long length)
          Retrieve the content bytes for the specified document.
 
Methods inherited from interface com.beasys.commerce.axiom.content.ContentManager
getAllSchemas, getContent, getContent, getSchema
 

Method Detail

getContentBlock

public byte[] getContentBlock(DocumentPk key,
                              long start,
                              long length)
                       throws java.rmi.RemoteException
Retrieve the content bytes for the specified document.

This may delegate to a Document EJB.

Parameters:
key - the document primary key.
start - the start index (0 for beginning).
length - the number of bytes to get.
Returns:
the bytes.
Throws:
java.rmi.RemoteException - thrown on error.

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved