com.ibm.mm.sdk.common

Class DKDDO

    • Constructor Detail

      • DKDDO

        public DKDDO()
      • DKDDO

        public DKDDO(com.filenet.api.core.Document document,
                     DKDatastoreICM dkDatastoreICM)
      • DKDDO

        public DKDDO(com.filenet.api.core.Document document,
                     DKDatastoreICM dkDatastoreICM,
                     java.lang.String semanticType)
      • DKDDO

        public DKDDO(com.filenet.api.core.Folder folder,
                     DKDatastoreICM dkDatastoreICM)
      • DKDDO

        public DKDDO(com.filenet.api.core.Folder folder,
                     DKDatastoreICM dkDatastoreICM,
                     java.lang.String semanticType)
    • Method Detail

      • retrieve

        public void retrieve(int option)
                      throws DKException,
                             java.lang.Exception
        Retrieve (refresh) the document from the object store with options. This overloaded method accepts an integer option parameter but ignores it, internally calling the parameterless retrieve() method.
        Parameters:
        option - retrieve option (ignored in this implementation)
        Throws:
        DKException - if the document cannot be retrieved
        java.lang.Exception - if an unexpected error occurs
      • retrieve

        public void retrieve(DKNVPair[] options)
                      throws DKException,
                             java.lang.Exception
        Retrieve (refresh) the document from the object store with options. This overloaded method accepts an array of DKNVPair options but ignores them, internally calling the parameterless retrieve() method.
        Parameters:
        options - retrieve options (ignored in this implementation)
        Throws:
        DKException - if the document cannot be retrieved
        java.lang.Exception - if an unexpected error occurs
      • retrieve

        public void retrieve()
                      throws DKException
        Retrieve (refresh) the document or folder from the object store. This method fetches the latest version of the object from FileNet P8, refreshing all properties to their current values in the repository. Supports both documents (DK_CM_DOCUMENT) and folders (DK_CM_FOLDER).
        Throws:
        DKException - if the object cannot be retrieved due to validation errors, FileNet API errors, or unexpected runtime errors
      • update

        public void update(int option)
                    throws DKException,
                           java.lang.Exception
        Update (save) the document to the object store with options. This overloaded method accepts an integer option parameter but ignores it, internally calling the parameterless update() method.
        Parameters:
        option - update option (ignored in this implementation)
        Throws:
        DKException - if the document cannot be updated
        java.lang.Exception - if an unexpected error occurs
      • update

        public void update(DKNVPair[] options)
                    throws DKException,
                           java.lang.Exception
        Update (save) the document to the object store with options. This overloaded method accepts an array of DKNVPair options but ignores them, internally calling the parameterless update() method.
        Parameters:
        options - update options (ignored in this implementation)
        Throws:
        DKException - if the document cannot be updated
        java.lang.Exception - if an unexpected error occurs
      • update

        public void update()
                    throws DKException
        Update (save) the document or folder to the object store. This method persists any property changes made to the object back to FileNet P8, saving all modified properties and refreshing the object to reflect the current state. Supports both documents (DK_CM_DOCUMENT) and folders (DK_CM_FOLDER).
        Throws:
        DKException - if the object cannot be updated due to validation errors, FileNet API errors, or unexpected runtime errors
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • addElement

        public void addElement(DKDDO ddoDocument)
                        throws DKUsageError
        Add a document DKDDO as an element to this folder DKDDO. This method files the document into the folder using the FileNet P8 API.
        Parameters:
        ddoDocument - The document DKDDO to add to this folder
        Throws:
        DKUsageError - if validation fails or filing operation fails
      • del

        public void del(int option)
                 throws DKException,
                        java.lang.Exception
        Throws:
        DKException
        java.lang.Exception
      • toXML

        public void toXML(DKNVPair options,
                          java.lang.String basePath,
                          int flags)
                   throws DKException,
                          java.lang.Exception
        Export this DKDDO to XML format based on the object type (Document or Folder). This method generates FileNet P8-style XML with complete metadata including: - Object Store information - Class name and object ID - Filing information (for documents) - Version information (for documents) - System properties - Custom/business properties - Content metadata (for documents) - Folder identity and path (for folders) The XML format is designed to be compatible with FileNet P8 import/export operations. The actual XML generation is delegated to the FileNet layer (CM8ToFileNetAdapter to FileNetP8Client) to maintain proper separation of concerns.
        Parameters:
        options - DKNVPair containing export options (currently unused but required for CM8 compatibility)
        basePath - The file path where the XML should be written
        flags - Export flags (currently unused but required for CM8 compatibility)
        Throws:
        DKException - if the export fails due to validation errors or I/O issues
        java.lang.Exception - if an unexpected error occurs during XML generation
Copyright © 2024 IBM Corporation

Copyright © 2024 IBM Corporation. All rights reserved.