Return to Jive Software

Skip navigation
Currently Being Moderated

How to clear specific document from DocumentCache

VERSION 2  Click to view document history
Created on: Nov 20, 2009 12:36 AM by dongfang.zhang@landesk.com - Last Modified:  Nov 20, 2009 1:28 AM by dongfang.zhang@landesk.com

    Today,   After I updated the workflowid of  a document, I didn't get the workflowid of the document because after update, the doucment I got from

documentManager is cached, not searched from the database. In this situation, how to get the latest document information? Before get the doucment

from the documentManagement, remove the doucment cache form the documentCache.

   Here is the Java Code.

DbDocumentManager documentManager = (DbDocumentManager) JiveApplication.getContext().getDocumentManager();
documentManager.getDocumentCache().remove(caseLink.getDocID());

 

   DocumentManager is an interface and class DocumentManagerProxy implements it.

   ExtendedDocumentManager is an interface and extends DocumentManager. The DbDocumentManager implements ExtendedDocumentManager interface.

 

About Cache, please refer to http://www.jivesoftware.com/jivespace/docs/DOC-4060

Average User Rating
(0 ratings)

Bookmarked By (0)

More Like This

  • Retrieving data ...