Oracle® Content Services Web Services Java API Reference
10g Release 1 (10.1.1)

B19047-01


oracle.ifs.fdk
Interface ArchiveManager


public interface ArchiveManager

Archive Manager interface for handling archive related operations

Performs the following operations 1. Obtain archive from a domain id. 2 Empty Archive 3. Purge items that beyond their cut-off period 4. Delete a document from archive


Method Summary
 void emptyArchive(long archiveId)
          Empties a given Archive
 void requestRestoreFromArchive(long domainId, NamedValue[] options)
          Submits a request to all content adminsitrators to restore some documents from the archive of a given domainID.
 Item restoreFromArchive(long archiveId, long sourceId, NamedValue[] options)
          Restores a document/folder specified by sourceId into the location specified by DESTFOLDER option from the Archive
 void setArchiveConfiguration(long archiveId, NamedValue[] attributes)
          Sets the Archive configuration.

 

Method Detail

emptyArchive

public void emptyArchive(long archiveId)
                  throws FdkException
Empties a given Archive
Parameters:
archiveId - The Id of archive to be emptied
Throws:
FdkException - If the operation fails

requestRestoreFromArchive

public void requestRestoreFromArchive(long domainId,
                                      NamedValue[] options)
                               throws FdkException
Submits a request to all content adminsitrators to restore some documents from the archive of a given domainID.
Parameters:
domainId - The DomainID
options - Filters for specifying the documents. Valid Attributes:
  • notation: {Attribute name, Attribute type}
  • {Attributes.NAME, String}
  • {Attributes.TYPE, String}
  • {Options.DELETED_DATE, Date}
  • {Attributes.CREATED_BY, Long}
  • {Options.DELETED_BY, Long}
  • {Options.ORIGINAL_LOCATION, String}
  • {Options.RESTORE_LOCATION, String}
  • {Options.REQUEST_JUSTIFICATION, String}
Throws:
FdkException - If the operation fails

restoreFromArchive

public Item restoreFromArchive(long archiveId,
                               long sourceId,
                               NamedValue[] options)
                        throws FdkException
Restores a document/folder specified by sourceId into the location specified by DESTFOLDER option from the Archive
Parameters:
archiveId - The Archive
sourceId - The document to be restored
options - The attributes specified for restore,such as destination folder
  • notation: {Attribute name, Attribute type}
  • {Attributes.NAME, String}
  • {Options.DESTFOLDER, Long}
  • {Options.OVERWRITE, Boolean}
  • {Options.UNIQUENAME, Boolean}
  • {Options.NEWVERSION, Boolean}
  • {Options.RESPECT_NULL_RESOURCE_LOCKS, Boolean}
Returns:
The restored item
Throws:
FdkException - If the operation fails

setArchiveConfiguration

public void setArchiveConfiguration(long archiveId,
                                    NamedValue[] attributes)
                             throws FdkException
Sets the Archive configuration.
Parameters:
archiveId - the Archive for which to set the configuration
attributes - the Archive configuration options to set; must include one or more of the following Attributes:
  • notation: {Attribute name, Attribute type}
  • {Attributes.ARCHIVE_ENABLED, Boolean}
  • {Attributes.ARCHIVE_AUTO_EMPTY_ENABLED, Boolean}
  • {Attributes.ARCHIVE_MIN_HOLDING_PERIOD, Long}
Throws:
FdkException - if the operation fails.

Oracle® Content Services Web Services Java API Reference
10g Release 1 (10.1.1)

B19047-01


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