info.magnolia.module.delta
Interface Task

All Known Implementing Classes:
AbstractConditionalRepositoryTask, AbstractModuleVersionHandler.ModuleVersionToLatestTask, AbstractModuleVersionHandler.ModuleVersionUpdateTask, AbstractNodeBuilderTask, AbstractRepositoryTask, AbstractTask, AddFilterBypassTask, AddGroupToGroupTask, AddMailTemplateTask, AddMainMenuItemTask, AddMimeMappingTask, AddNewDefaultConfig, AddPermissionTask, AddRoleToGroupTask, AddRoleToUserTask, AddSubMenuItemTask, AddSystemUserToGroupTask, AddURIPermissionsToAllRoles, AddURIPermissionTask, AddUserToGroupTask, AddUserToGroupTask, AddUserToRoleTask, AllChildrenNodesOperation, AllModulesNodeOperation, ArrayDelegateTask, BackupTask, BootstrapConditionally, BootstrapResourcesTask, BootstrapSingleModuleResource, BootstrapSingleResource, BootstrapSingleResourceAndOrderBefore, ChangeNodeTypesInUserWorkspace, ChangeNodeTypeTask, CheckAndModifyPropertyValueTask, CheckAndUpdateDefaultWorkflowDefinition, CheckAndUpdateExistingFilters, CheckAndUpdateSecureURIs, CheckAndUpdateUnsecureURIs, CheckMagnoliaDevelopProperty, CheckNodesForMixVersionable, CheckOrCreatePropertyTask, ChildrenExistsDelegateTask, ConditionalDelegateTask, ContentDeletionTasks, CopyNodeTask, CopyOrReplaceNodePropertiesTask, CreateNodePathTask, CreateNodeTask, DefaultCompressibleContentTypesCondition, DeprecateDialogPathAllModules, FilterOrderingTask, FixTemplatePathTask, I18nMenuPoint, InstallWorkflowDefinitionTask, IntroduceParagraphRenderers, IPConfigRulesUpdate, IsAuthorInstanceDelegateTask, IsInstallSamplesTask, IsModuleInstalledOrRegistered, LoginAuthTypePropertyMovedToFilter, LoginFormPropertyMovedToFilter, MigrateFilterConfiguration, ModuleBootstrapTask, ModuleConfigNodeBuilderTask, ModuleDependencyBootstrapTask, ModuleFilesExtraction, ModuleNodeBuilderTask, MoveAndRenamePropertyTask, MoveMagnoliaUsersToRealmFolder, MoveNodeContentTask, MoveNodeTask, NestPropertiesAllModulesNodeTask, NewPropertyTask, NodeBuilderTask, NodeCheckDelegateTask, NodeExistsDelegateTask, OrderNodeAfterTask, OrderNodeBeforeTask, PartialBootstrapTask, PropertiesImportTask, PropertyExistsDelegateTask, PropertyValueDelegateTask, PropertyValuesTask, QueryTask, ReconfigureCommands, RegisterMgnlDeletedType, RegisterModuleServletsTask, RegisterServletTask, RegisterWorkspaceForCacheFlushingTask, RemoveMetadataFromExpressionsWorkspace, RemoveModuleDescriptorDetailsFromRepo, RemoveNodeTask, RemoveNodeWoChildren, RemovePermissionTask, RemovePropertyTask, RenamedRenderersToTemplateRenderers, RenamePropertyAllModulesNodeTask, ReplaceIfExistsTask, ReplaceWrongDialogNodeTypeTask, SamplesBootstrapTask, SetDefaultPublicURI, SetDefaultWorkflowForActivationFlowCommands, SetPropertyTask, SetupModuleRepositoriesTask, UpdateActivationConfigTask, UpdatedDefaultPublicURIWarning, UpdateGroups, UpdateI18nConfiguration, UpdateRoles, UpdateURI2RepositoryMappings, UpdateURIMappings, UpdateUserManagers, UpdateUserManagersWithLockTimePeriod, UpdateUserPermissions, UpdateUsers, WarnIgnoredModuleFilters, WarnTask, WebappBootstrap

public interface Task

A Task represents an atomic operation to be performed when installing, updating or uninstalling a module, as part of a Delta. TODO : add mandatoryness ?

Version:
$Revision: $ ($Author: $)
Author:
gjoseph
See Also:
Delta

Method Summary
 void execute(InstallContext installContext)
          A good-citizen task should execute itself responsibly: it should know what to do in case of problems: for instance, fixable or irrelevant issues should usually just be logged used the InstallContext methods, when the user can fix them later on.
 java.lang.String getDescription()
          Description what will happen during the execution.
 java.lang.String getName()
          Description of what has changed.
 

Method Detail

getName

java.lang.String getName()
Description of what has changed. Example: "New ACL configuration"


getDescription

java.lang.String getDescription()
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)


execute

void execute(InstallContext installContext)
             throws TaskExecutionException
A good-citizen task should execute itself responsibly: it should know what to do in case of problems: for instance, fixable or irrelevant issues should usually just be logged used the InstallContext methods, when the user can fix them later on. The task could also potentially do backups of nodes it needs to modify extensively, so the user could refer to the backups in case of problem. In the event of an unrecoverable issue, the Task could also throw a TaskExecutionException, knowing that will cancel the whole module's installation, update and startup. If a TaskExecutionException must be thrown, keep in mind that the exception message will still be shown to the end user, so try to keep them human readable.

Throws:
TaskExecutionException


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