com.ibm.mm.sdk.common

Interface dkDatastoreExt



  • public interface dkDatastoreExt
    Datastore extension interface for link management operations.

    This interface extends dkExtension to provide link management capabilities for datastores. It defines operations for creating and removing relationships (links) between data objects in the content repository.

    Link Operations:

    • addLink: Creates a relationship between two data objects
    • removeLink: Removes an existing relationship

    Common Link Types:

    • Folder-to-Document (filing/containment)
    • Document-to-Document (custom relationships)
    • Folder-to-Folder (hierarchical structure)

    Usage Example:

     dkDatastoreExt datastoreExt = ...;
     DKLink link = new DKLink(sourceObject, targetObject);
     datastoreExt.addLink(link);  // Create relationship
     datastoreExt.removeLink(link);  // Remove relationship
     
    See Also:
    dkExtension, DKLink, DKDatastoreExtICM
    • Method Detail

      • addLink

        void addLink(DKLink link)
              throws DKException,
                     java.lang.Exception
        Adds a link (relationship) between two data objects.

        Creates a relationship between the source and target objects specified in the link. The type of relationship depends on the object types involved (e.g., filing a document into a folder).

        Parameters:
        link - the link defining the relationship to create
        Throws:
        DKException - if the link operation fails
        java.lang.Exception - if an unexpected error occurs
      • removeLink

        void removeLink(DKLink link)
                 throws DKException,
                        java.lang.Exception
        Removes a link (relationship) between two data objects.

        Removes an existing relationship between the source and target objects specified in the link. The relationship must exist before it can be removed.

        Parameters:
        link - the link defining the relationship to remove
        Throws:
        DKException - if the link operation fails
        java.lang.Exception - if an unexpected error occurs
Copyright © 2024 IBM Corporation

Copyright © 2024 IBM Corporation. All rights reserved.