com.dotmarketing.portlets.contentlet.action
Class ImportAuditUtil
java.lang.Object
com.dotmarketing.portlets.contentlet.action.ImportAuditUtil
public class ImportAuditUtil
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATUS_PENDING
public static final int STATUS_PENDING
- See Also:
- Constant Field Values
STATUS_COMPLETED
public static final int STATUS_COMPLETED
- See Also:
- Constant Field Values
STATUS_USERSTOPPED
public static final int STATUS_USERSTOPPED
- See Also:
- Constant Field Values
cancelledImports
public static org.apache.commons.collections.map.LRUMap cancelledImports
ImportAuditUtil
public ImportAuditUtil()
voidValidateAuditTableOnStartup
public static void voidValidateAuditTableOnStartup()
- Should only be used when the system is starting to clean imports
that were running when the system restarted itself.
isImportfinished
public static java.lang.Boolean isImportfinished(java.lang.Long Id)
cancelImport
public static void cancelImport(long importId)
loadImportResults
public static java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> loadImportResults(java.lang.Long Id)
loadAuditResults
public static ImportAuditUtil.ImportAuditResults loadAuditResults(java.lang.String userId)
updateAuditRecord
public static void updateAuditRecord(java.lang.String lastInode,
int total,
long id,
java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> importResults)
- Will update audit table with passed in id
- Parameters:
lastInode - total - id -
createAuditRecord
public static long createAuditRecord(java.lang.String userId,
java.lang.String filename)
- Will create an audit record returning you its ID
- Parameters:
userId - filename -
- Returns:
setAuditRecordCompleted
public static void setAuditRecordCompleted(long id)
Copyright © 2013 dotCMS Inc. All Rights Reserved.