Example usage for com.liferay.portal.kernel.backgroundtask BackgroundTaskStatus clearAttributes

List of usage examples for com.liferay.portal.kernel.backgroundtask BackgroundTaskStatus clearAttributes

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.backgroundtask BackgroundTaskStatus clearAttributes.

Prototype

public void clearAttributes() 

Source Link

Usage

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>());
}