Skip navigation links

Oracle Content Database Web Services Java API Reference for Oracle WebCenter Suite
10g (10.1.3.2)

B32189-01


oracle.ifs.fdk
Class ExtendedFileContentManager

All Superinterfaces:
FileContentManager

public interface class ExtendedFileContentManager
extends FileContentManager

Extends the FileContentManager with functionality available only to in-process clients.


Method Summary
 void createDocument(long folderId, java.lang.String name, java.io.InputStream content, NamedValue[] attributes)
          Deprecated.  
 int read(long docId, long offset, byte[] buffer, int length)
          Reads bytes from the content of a DOCUMENT into an array.
 void updateContent(long id, java.io.InputStream content, NamedValue[] attributes)
          Deprecated. To be removed once DAV no longer uses it.

 

Methods inherited from interface oracle.ifs.fdk.FileContentManager
getContent

 

Method Detail

createDocument

void createDocument(long folderId,
                    java.lang.String name,
                    java.io.InputStream content,
                    NamedValue[] attributes)
                    throws FdkException
Deprecated. 
Description copied from interface: ExtendedFileContentManager
Creates a new DOCUMENT in the given Folder.

Note that if a DOCUMENT with the same name already exists in the FOLDER, a new version may be created depending on the versioning configuration of the FOLDER.

Parameters:
folderId - the ID of the folder in which to create the DOCUMENT.
name - the name of the new DOCUMENT.
content - the InputStream with the new DOCUMENT's content.
attributes - additional attributes to be set for the new DOCUMENT, or null. Valid attributes are:
  • Attributes.DOCUMENT_CHARACTER_SET
  • Attributes.DOCUMENT_LANGUAGE
Throws:
FdkException - if the operation fails.

updateContent

void updateContent(long id,
                   java.io.InputStream content,
                   NamedValue[] attributes)
                   throws FdkException
Deprecated. To be removed once DAV no longer uses it.
Description copied from interface: ExtendedFileContentManager
Updates an existing Item's content.

Supported Items: DOCUMENT, DOCUMENT_DEFINITION

Parameters:
id - the ID of the Item to update.
content - the InputStream with the updated content.
attributes - additional attributes to update, or null. Valid attributes are:
  • Attributes.DOCUMENT_CHARACTER_SET
  • Attributes.DOCUMENT_LANGUAGE
Throws:
FdkException - if the operation fails.

read

int read(long docId,
         long offset,
         byte[] buffer,
         int length)
         throws FdkException
Description copied from interface: ExtendedFileContentManager
Reads bytes from the content of a DOCUMENT into an array.
Parameters:
docId - the ID of the DOCUMENT.
offset - the start offset of the data.
buffer - the buffer into which the data is read.
length - the maximum number of bytes read.
Returns:
the number of bytes actually read.
Throws:
FdkException - if the operation fails.

Skip navigation links

Oracle Content Database Web Services Java API Reference for Oracle WebCenter Suite
10g (10.1.3.2)

B32189-01


Copyright © 2002, 2006, Oracle. All rights reserved.