public class RepositoryAuditTrailUtils extends Object
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().| Modifier and Type | Method and Description |
|---|---|
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) |
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
IOExceptionClassNotFoundExceptionpublic static String serialize(Map map) throws IOException
IOExceptionCopyright © 2016 Eclipse Stardust. All Rights Reserved.