info.magnolia.module.delta
Class AbstractTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
All Implemented Interfaces:
Task
Direct Known Subclasses:
AbstractRepositoryTask, AddMainMenuItemTask, AddNewDefaultConfig, AddPermissionTask, AddRoleToUserTask, AddUserToGroupTask, BootstrapResourcesTask, CheckAndUpdateDefaultWorkflowDefinition, CheckMagnoliaDevelopProperty, CheckNodesForMixVersionable, ConditionalDelegateTask, InstallWorkflowDefinitionTask, ModuleFilesExtraction, PartialBootstrapTask, PropertyValuesTask, RegisterMgnlDeletedType, RegisterServletTask, RegisterWorkspaceForCacheFlushingTask, SetDefaultPublicURI, SetupModuleRepositoriesTask, WarnTask, WebappBootstrap

public abstract class AbstractTask
extends java.lang.Object
implements Task

Abstract implementation of the Task interface which handles the mandatory properties name and description.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Field Summary
protected  org.slf4j.Logger log
          Logger that can be reused in subclasses.
 
Constructor Summary
AbstractTask(java.lang.String taskName, java.lang.String taskDescription)
           
 
Method Summary
 java.lang.String getDescription()
          Description what will happen during the execution.
 java.lang.String getName()
          Description of what has changed.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface info.magnolia.module.delta.Task
execute
 

Field Detail

log

protected org.slf4j.Logger log
Logger that can be reused in subclasses.

Constructor Detail

AbstractTask

public AbstractTask(java.lang.String taskName,
                    java.lang.String taskDescription)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Task
Description of what has changed. Example: "New ACL configuration"

Specified by:
getName in interface Task

getDescription

public java.lang.String getDescription()
Description copied from interface: Task
Description what will happen during the execution. Example: "Bootstraps the new configuration for the ACL dialogs." A good-citizen task description should be written in the third person, be understandable and respect capitalization and punctuation rules. (start with capital letter, end with a dot)

Specified by:
getDescription in interface Task

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.