com.ibm.mm.sdk.common
Interface dkDatastoreExt
-
public interface dkDatastoreExtDatastore extension interface for link management operations.This interface extends
dkExtensionto 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddLink(DKLink link)Adds a link (relationship) between two data objects.voidremoveLink(DKLink link)Removes a link (relationship) between two data objects.
-
-
-
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 failsjava.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 failsjava.lang.Exception- if an unexpected error occurs
-
-