|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.stardust.engine.core.spi.dms.RepositoryAuditTrailUtils
public class RepositoryAuditTrailUtils
This utility allows to store, retrieve and delete Document and Folder
beans as ClobDataBean in the AuditTrail using a json format. The entries are
stored uniquely by Resource.getId(), Document.getRevisionId() and
Resource.getId().
| Method Summary | |
|---|---|
static Map |
deserialize(String stringValue)
|
static void |
removeDocument(String documentId)
Deletes the entry from the AuditTrail if it exists. |
static void |
removeFolder(String folderId)
Deletes the entry from the AuditTrail if it exists. |
static void |
removeImportDocumentMetaData(List<String> resourceIds)
|
static Document |
retrieveDocument(String documentId)
Fetches the document from the AuditTrail. |
static Folder |
retrieveFolder(String folderId)
Fetches the folder from the AuditTrail. |
static String |
serialize(Map map)
|
static void |
storeDocument(Document document)
Stores a document in the AuditTrail by Resource.getId() and
Document.getRevisionId() if a revesionId exists and is not
RepositoryConstants.VERSION_UNVERSIONED. |
static void |
storeFolder(Folder folder)
Stores a folder in the AuditTrail by Resource.getId() |
static void |
storeImportDocument(Document document)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void storeDocument(Document document)
Resource.getId() and
Document.getRevisionId() if a revesionId exists and is not
RepositoryConstants.VERSION_UNVERSIONED.
document - The document to persist in the AuditTrail.public static void storeImportDocument(Document document)
public static void removeImportDocumentMetaData(List<String> resourceIds)
public static Document retrieveDocument(String documentId)
documentId - The document Resource.getId() or Document.getRevisionId()
to look up the document for.
Document from the AuditTrail.public static void removeDocument(String documentId)
documentId - The document Resource.getId() or Document.getRevisionId()
to delete the AuditTrail entry for.public static void storeFolder(Folder folder)
Resource.getId()
folder - The folder to persist in the AuditTrail.public static Folder retrieveFolder(String folderId)
folderId - The folder Resource.getId() to look up the folder for.
Folder from the AuditTrail.public static void removeFolder(String folderId)
folderId - The folder Resource.getId() to delete the AuditTrail entry for.
public static Map deserialize(String stringValue)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundException
public static String serialize(Map map)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||