List of usage examples for com.liferay.portal.kernel.backgroundtask BackgroundTaskStatus clearAttributes
public void clearAttributes()
From source file:com.liferay.exportimport.internal.background.task.BaseStagingBackgroundTaskExecutor.java
License:Open Source License
protected void clearBackgroundTaskStatus(BackgroundTask backgroundTask) { BackgroundTaskStatus backgroundTaskStatus = BackgroundTaskStatusRegistryUtil .getBackgroundTaskStatus(backgroundTask.getBackgroundTaskId()); backgroundTaskStatus.clearAttributes(); }
From source file:com.liferay.exportimport.internal.background.task.DefaultExportImportBackgroundTaskStatusMessageTranslator.java
License:Open Source License
protected void clearBackgroundTaskStatus(BackgroundTaskStatus backgroundTaskStatus) { backgroundTaskStatus.clearAttributes(); backgroundTaskStatus.setAttribute("allModelAdditionCountersTotal", 0L); backgroundTaskStatus.setAttribute("allPortletAdditionCounter", 0L); backgroundTaskStatus.setAttribute("allPortletModelAdditionCounters", new HashMap<String, LongWrapper>()); backgroundTaskStatus.setAttribute("currentModelAdditionCountersTotal", 0L); backgroundTaskStatus.setAttribute("currentPortletAdditionCounter", 0L); backgroundTaskStatus.setAttribute("currentPortletModelAdditionCounters", new HashMap<String, LongWrapper>()); }