How we can make content server re create renditions for an object using DFC or DQL?

Options
simran411991
edited March 23, 2017 in Documentum #1

I need this solution as we are archiving files and then restoring back when a user wants to restore.but during restore we want to generate renditions again as if file was never archived.

Tagged:

Comments

  • Prabhu__Nadarajan
    edited March 23, 2017 #2
    Options

    DFC :

    Interface IDfSysObject

    addRendition

    void addRendition(String fileName, String formatName) throws DfException
    Adds a new rendition to the object. This operation is not committed until a save or checkin is performed. 

    The following code example demonstrates how to add a Word Perfect rendition to the sysobject: 


    IDfSysObject sysObj = (IDfSysObject)session.getObjectByQualification("dm_document where r_object_id='0900d5bb8001f900'");

    sysObj.addRendition("chap_1.wp7", "wp7");

    sysObj.save();


    Parameters:
    fileName - specifies the file that contains the content.
    formatName - specifies the content's file format.
    Throws:
    <a href="" title="class in com.documentum.fc.common">DfException</a> - if a server error occurs

    Refer : DFC API for more information.

    - Prabhu