Remove old license headers
authorMathieu Baudier <mbaudier@argeo.org>
Wed, 15 Jul 2020 08:58:18 +0000 (10:58 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Wed, 15 Jul 2020 08:58:18 +0000 (10:58 +0200)
485 files changed:
legacy/argeo-commons/org.argeo.cms.ui.workbench.rap/src/org/argeo/cms/ui/workbench/rap/AnonymousEntryPoint.java
legacy/argeo-commons/org.argeo.cms.ui.workbench.rap/src/org/argeo/cms/ui/workbench/rap/RapActionBarAdvisor.java
legacy/argeo-commons/org.argeo.cms.ui.workbench.rap/src/org/argeo/cms/ui/workbench/rap/RapWindowAdvisor.java
legacy/argeo-commons/org.argeo.cms.ui.workbench.rap/src/org/argeo/cms/ui/workbench/rap/RapWorkbenchAdvisor.java
legacy/argeo-commons/org.argeo.cms.ui.workbench.rap/src/org/argeo/cms/ui/workbench/rap/SecureRapActivator.java
legacy/argeo-commons/org.argeo.cms.ui.workbench.rap/src/org/argeo/cms/ui/workbench/rap/commands/OpenHome.java
legacy/argeo-commons/org.argeo.cms.ui.workbench.rap/src/org/argeo/cms/ui/workbench/rap/commands/UserMenu.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/spring/AbstractSystemExecution.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/spring/AuthenticatedApplicationContextInitialization.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/JcrBrowserPerspective.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/MaintenancePerspective.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/OsgiExplorerPerspective.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/SecurityAdminPerspective.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/UserHomePerspective.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/WorkbenchUiPlugin.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/commands/OpenChangePasswordDialog.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/commands/OpenEditor.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/commands/OpenHomePerspective.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/WorkbenchConstants.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/commands/AddFolderNode.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/commands/AddPrivileges.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/commands/AddRemoteRepository.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/commands/ConfigurableNodeDump.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/commands/CreateWorkspace.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/commands/DeleteNodes.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/commands/DumpNode.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/commands/EditNode.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/commands/GetNodeSize.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/commands/Refresh.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/commands/RemovePrivileges.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/commands/RemoveRemoteRepository.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/commands/RenameNode.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/commands/SortChildNodes.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/commands/UploadFiles.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/AbstractJcrQueryEditor.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/AddPrivilegeWizard.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/ChildNodesPage.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/ChooseNameDialog.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/GenericNodeEditorInput.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/GenericNodePage.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/GenericPropertyPage.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/JcrQueryEditorInput.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/NodeEditorInput.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/NodePrivilegesPage.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/NodeVersionHistoryPage.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/StringNodeEditorInput.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/SecurityAdminImages.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/commands/DeleteGroups.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/commands/DeleteUsers.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/commands/ForceRefresh.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/commands/NewGroup.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/commands/NewUser.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/commands/SaveArgeoUser.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/commands/UserBatchUpdate.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/commands/UserTransactionHandler.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/parts/ArgeoUserEditorInput.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/parts/GroupMainPage.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/parts/GroupsView.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/parts/UserEditor.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/parts/UserEditorInput.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/parts/UserMainPage.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/useradmin/parts/UsersView.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/jcr/DefaultNodeEditor.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/jcr/GenericJcrQueryEditor.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/jcr/JcrBrowserView.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/jcr/NodeFsBrowserView.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/osgi/BundlesView.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/osgi/CmsSessionsView.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/osgi/ModulesView.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/osgi/MultiplePackagesView.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/osgi/OsgiExplorerImages.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/useradmin/AdminLogView.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/useradmin/LogContentProvider.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/useradmin/LogView.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/useradmin/UserProfile.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/util/CommandUtils.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/util/RolesSourceProvider.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/eclipse/spring/ApplicationContextTracker.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/eclipse/spring/SpringCommandHandler.java
legacy/argeo-commons/org.argeo.cms.ui.workbench/src/org/argeo/eclipse/spring/SpringExtensionFactory.java
org.argeo.slc.api/src/org/argeo/slc/BasicNameVersion.java
org.argeo.slc.api/src/org/argeo/slc/Condition.java
org.argeo.slc.api/src/org/argeo/slc/DefaultNameVersion.java
org.argeo.slc.api/src/org/argeo/slc/NameVersion.java
org.argeo.slc.api/src/org/argeo/slc/SlcException.java
org.argeo.slc.api/src/org/argeo/slc/SlcNames.java
org.argeo.slc.api/src/org/argeo/slc/SlcTypes.java
org.argeo.slc.api/src/org/argeo/slc/StreamReadable.java
org.argeo.slc.api/src/org/argeo/slc/UnsupportedException.java
org.argeo.slc.api/src/org/argeo/slc/attachment/Attachment.java
org.argeo.slc.api/src/org/argeo/slc/attachment/AttachmentsEnabled.java
org.argeo.slc.api/src/org/argeo/slc/attachment/AttachmentsStorage.java
org.argeo.slc.api/src/org/argeo/slc/build/Distribution.java
org.argeo.slc.api/src/org/argeo/slc/build/ModularDistribution.java
org.argeo.slc.api/src/org/argeo/slc/deploy/DeployEnvironment.java
org.argeo.slc.api/src/org/argeo/slc/deploy/DeployedSystem.java
org.argeo.slc.api/src/org/argeo/slc/deploy/DeployedSystemManager.java
org.argeo.slc.api/src/org/argeo/slc/deploy/Deployment.java
org.argeo.slc.api/src/org/argeo/slc/deploy/DeploymentData.java
org.argeo.slc.api/src/org/argeo/slc/deploy/DynamicRuntime.java
org.argeo.slc.api/src/org/argeo/slc/deploy/InstalledExecutables.java
org.argeo.slc.api/src/org/argeo/slc/deploy/ModularDeployedSystem.java
org.argeo.slc.api/src/org/argeo/slc/deploy/Module.java
org.argeo.slc.api/src/org/argeo/slc/deploy/ModuleDescriptor.java
org.argeo.slc.api/src/org/argeo/slc/deploy/ModulesManager.java
org.argeo.slc.api/src/org/argeo/slc/deploy/TargetData.java
org.argeo.slc.api/src/org/argeo/slc/deploy/VersioningDriver.java
org.argeo.slc.api/src/org/argeo/slc/execution/AbstractExecutionValue.java
org.argeo.slc.api/src/org/argeo/slc/execution/AbstractSpecAttribute.java
org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionContext.java
org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionFlow.java
org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionFlowDescriptor.java
org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionFlowDescriptorConverter.java
org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionModule.java
org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionModuleDescriptor.java
org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionModulesListener.java
org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionModulesManager.java
org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionProcess.java
org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionResources.java
org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionSpec.java
org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionSpecAttribute.java
org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionStack.java
org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionStackLevel.java
org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionStep.java
org.argeo.slc.api/src/org/argeo/slc/execution/RealizedFlow.java
org.argeo.slc.api/src/org/argeo/slc/execution/RefSpecAttribute.java
org.argeo.slc.api/src/org/argeo/slc/execution/RefValue.java
org.argeo.slc.api/src/org/argeo/slc/execution/RefValueChoice.java
org.argeo.slc.api/src/org/argeo/slc/execution/SlcAgent.java
org.argeo.slc.api/src/org/argeo/slc/primitive/PrimitiveAccessor.java
org.argeo.slc.api/src/org/argeo/slc/primitive/PrimitiveSpecAttribute.java
org.argeo.slc.api/src/org/argeo/slc/primitive/PrimitiveUtils.java
org.argeo.slc.api/src/org/argeo/slc/primitive/PrimitiveValue.java
org.argeo.slc.api/src/org/argeo/slc/test/ExecutableTestRun.java
org.argeo.slc.api/src/org/argeo/slc/test/IncompatibleTestDataException.java
org.argeo.slc.api/src/org/argeo/slc/test/TestData.java
org.argeo.slc.api/src/org/argeo/slc/test/TestDataProvider.java
org.argeo.slc.api/src/org/argeo/slc/test/TestDefinition.java
org.argeo.slc.api/src/org/argeo/slc/test/TestResult.java
org.argeo.slc.api/src/org/argeo/slc/test/TestResultListener.java
org.argeo.slc.api/src/org/argeo/slc/test/TestResultPart.java
org.argeo.slc.api/src/org/argeo/slc/test/TestRun.java
org.argeo.slc.api/src/org/argeo/slc/test/TestRunAware.java
org.argeo.slc.api/src/org/argeo/slc/test/TestStatus.java
org.argeo.slc.api/src/org/argeo/slc/test/WritableTestRun.java
org.argeo.slc.api/src/org/argeo/slc/test/context/ContextAware.java
org.argeo.slc.api/src/org/argeo/slc/test/context/ParentContextAware.java
org.argeo.slc.client.rap/src/org/argeo/slc/client/rap/SlcSecureRap.java
org.argeo.slc.client.rap/src/org/argeo/slc/client/ui/specific/OpenJcrFile.java
org.argeo.slc.client.rcp/src/org/argeo/slc/client/rcp/SlcRcpPlugin.java
org.argeo.slc.client.rcp/src/org/argeo/slc/client/rcp/SlcSecureClientApplication.java
org.argeo.slc.client.rcp/src/org/argeo/slc/client/rcp/SlcSecureWorkbenchAdvisor.java
org.argeo.slc.client.rcp/src/org/argeo/slc/client/rcp/SlcSecureWorkbenchWindowAdvisor.java
org.argeo.slc.client.rcp/src/org/argeo/slc/client/ui/specific/OpenJcrFile.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/AnonymousDistributionPerspective.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/DistConstants.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/DistImages.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/DistPlugin.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/DistributionPerspective.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/BndProcess.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/CopyLocalJavaWorkspace.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/CopyWorkspace.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/CreateLocalJavaWorkspace.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/CreateWorkspace.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/DeleteArtifacts.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/DeleteWorkspace.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/DisplayRepoInformation.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/ManageWorkspaceAuth.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/MergeWorkspaces.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/NormalizeDistribution.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/NormalizeWorkspace.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/OpenGenerateBinariesWizard.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/OpenModuleEditor.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/OpenWorkspaceEditor.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/PublishWorkspace.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/RefreshArtifactBrowser.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/RefreshDistributionsView.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/RegisterRepository.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/RunInOsgi.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/ShowSizeColumn.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/UnregisterRemoteRepo.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/controllers/ArtifactLabelProvider.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/controllers/ArtifactsTreeContentProvider.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/editors/ArtifactVersionEditor.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/editors/BundleDependencyPage.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/editors/BundleDetailPage.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/editors/BundleRawPage.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/editors/DistWkspBrowserPage.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/editors/DistWkspEditorInput.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/editors/DistWkspSearchPage.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/editors/DistWorkspaceEditor.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/editors/ModularDistVersionDetailPage.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/editors/ModularDistVersionEditor.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/editors/ModularDistVersionOverviewPage.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/editors/ModuleEditorInput.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/editors/RunInOsgiPage.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/editors/WkspCategoryBaseListPage.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/utils/ArtifactsTableConfigurer.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/utils/CommandHelpers.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/utils/DistNodeViewerComparator.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/utils/DistUiHelpers.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/utils/HyperlinkAdapter.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/views/AbstractQueryArtifactsView.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/views/AnonymousDistributionsView.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/views/ArtifactsBrowser.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/views/DistributionsView.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/views/HelpView.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/views/QueryArtifactsForm.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/views/QueryArtifactsText.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/views/QueryBundlesForm.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/wizards/ChangeRightsWizard.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/wizards/ChooseRightsPage.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/wizards/FetchWizard.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/wizards/GenerateBinariesWizard.java
org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/wizards/RegisterRepoWizard.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/ClientUiPlugin.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/SlcExecutionPerspective.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/SlcImages.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/SlcUiConstants.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/commands/AddResultFolder.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/commands/DeleteItems.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/commands/RefreshJcrResultTreeView.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/commands/RenameResultFolder.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/commands/RenameResultNode.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/commands/RunSlcFlow.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/commands/UpdateModule.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/controllers/ProcessController.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/decorators/ResultFailedDecorator.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/editors/ProcessBuilderPage.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/editors/ProcessEditor.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/editors/ProcessEditorInput.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/editors/ProcessEditorInputFactory.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/editors/ProcessLogPage.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/model/ParentNodeFolder.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/model/ResultFolder.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/model/ResultParent.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/model/ResultParentUtils.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/model/SingleResultNode.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/model/VirtualFolder.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/providers/ResultTreeContentProvider.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/providers/ResultTreeLabelProvider.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/views/JcrExecutionModulesView.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/views/JcrProcessListView.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/views/JcrResultListView.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/views/JcrResultTreeView.java
org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/wizards/ConfirmOverwriteWizard.java
org.argeo.slc.e4/src/org/argeo/slc/e4/SlcImages.java
org.argeo.slc.e4/src/org/argeo/slc/e4/parts/JcrExecutionModulesView.java
org.argeo.slc.factory/src/org/argeo/slc/rpmfactory/RpmFactory.java
org.argeo.slc.factory/src/org/argeo/slc/rpmfactory/RpmProxyService.java
org.argeo.slc.factory/src/org/argeo/slc/rpmfactory/core/BuildInMock.java
org.argeo.slc.factory/src/org/argeo/slc/rpmfactory/core/RpmFactoryImpl.java
org.argeo.slc.factory/src/org/argeo/slc/rpmfactory/core/RpmProxyServiceImpl.java
org.argeo.slc.factory/src/org/argeo/slc/rpmfactory/core/RpmSpecFile.java
org.argeo.slc.jcr/src/org/argeo/slc/jcr/JcrMetadataWriter.java
org.argeo.slc.jcr/src/org/argeo/slc/jcr/JcrTestResult.java
org.argeo.slc.jcr/src/org/argeo/slc/jcr/SlcJcrConstants.java
org.argeo.slc.jcr/src/org/argeo/slc/jcr/SlcJcrResultUtils.java
org.argeo.slc.jcr/src/org/argeo/slc/jcr/SlcJcrUtils.java
org.argeo.slc.jcr/src/org/argeo/slc/jcr/execution/JcrAgent.java
org.argeo.slc.jcr/src/org/argeo/slc/jcr/execution/JcrExecutionModulesListener.java
org.argeo.slc.jcr/src/org/argeo/slc/jcr/execution/JcrExecutionProcess.java
org.argeo.slc.launcher/src/org/argeo/slc/cli/SlcMain.java
org.argeo.slc.repo/ext/test/org/argeo/slc/repo/internal/AetherUtilsTest.java
org.argeo.slc.repo/src/org/argeo/slc/repo/ArtifactIndexer.java
org.argeo.slc.repo/src/org/argeo/slc/repo/JarFileIndexer.java
org.argeo.slc.repo/src/org/argeo/slc/repo/MavenProxyService.java
org.argeo.slc.repo/src/org/argeo/slc/repo/NodeIndexer.java
org.argeo.slc.repo/src/org/argeo/slc/repo/PdeSourcesIndexer.java
org.argeo.slc.repo/src/org/argeo/slc/repo/RepoConstants.java
org.argeo.slc.repo/src/org/argeo/slc/repo/RepoSync.java
org.argeo.slc.repo/src/org/argeo/slc/repo/RepoUtils.java
org.argeo.slc.repo/src/org/argeo/slc/repo/core/WorkspaceIndexer.java
org.argeo.slc.repo/src/org/argeo/slc/repo/maven/AetherUtils.java
org.argeo.slc.repo/src/org/argeo/slc/repo/maven/ArtifactIdComparator.java
org.argeo.slc.repo/src/org/argeo/slc/repo/maven/ConvertPoms_01_03.java
org.argeo.slc.repo/src/org/argeo/slc/repo/maven/GenerateBinaries.java
org.argeo.slc.repo/src/org/argeo/slc/repo/maven/IndexDistribution.java
org.argeo.slc.repo/src/org/argeo/slc/repo/maven/MavenConventionsUtils.java
org.argeo.slc.repo/src/org/argeo/slc/repo/maven/MavenProxyServiceImpl.java
org.argeo.slc.repo/src/org/argeo/slc/repo/maven/Migration_01_03.java
org.argeo.slc.repo/src/org/argeo/slc/repo/osgi/ImportBundlesZip.java
org.argeo.slc.repo/src/org/argeo/slc/repo/osgi/NormalizeGroup.java
org.argeo.slc.repo/src/org/argeo/slc/repo/osgi/ObrWrapper.java
org.argeo.slc.repo/src/org/argeo/slc/repo/osgi/OsgiProfile.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/AbstractExecutionModulesManager.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/DefaultAgent.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/DefaultExecutionFlow.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/DefaultExecutionSpec.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/DefaultExecutionStack.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/ExecutionThread.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/InstantiationManager.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/ProcessThread.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/ProcessThreadGroup.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/tasks/CloseTestResult.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/tasks/Echo.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/tasks/If.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/tasks/JvmProcess.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/tasks/SystemCall.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/tasks/SystemCallOutputListener.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/test/BasicTestData.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/test/BasicTestDefinition.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/test/ContextUtils.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/test/SimpleResultPart.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/test/SimpleTestResult.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/test/SimpleTestRun.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/test/SlcTestUtils.java
org.argeo.slc.runtime/src/org/argeo/slc/runtime/test/TestDataUtils.java
org.argeo.slc.spring/ext/test/org/argeo/slc/core/deploy/DefaultResourceSetTest.java
org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/AbstractExecutionFlowTestCase.java
org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/BasicExecutionFlowTest.java
org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/ExceptionIfInitCalledTwice.java
org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/FileExecutionResourcesSpringTest.java
org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/FileExecutionResourcesTest.java
org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/ParameterRefTest.java
org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/tasks/SystemCallTest.java
org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/xml/FlowNamespaceTest.java
org.argeo.slc.spring/ext/test/org/argeo/slc/core/test/context/AbstractInternalSpringTestCase.java
org.argeo.slc.spring/ext/test/org/argeo/slc/core/test/context/ContextTest.java
org.argeo.slc.spring/src/org/argeo/slc/ant/AntFlowGenerator.java
org.argeo.slc.spring/src/org/argeo/slc/ant/AntRun.java
org.argeo.slc.spring/src/org/argeo/slc/core/attachment/AttachmentUploader.java
org.argeo.slc.spring/src/org/argeo/slc/core/attachment/FileAttachmentsStorage.java
org.argeo.slc.spring/src/org/argeo/slc/core/attachment/SimpleAttachment.java
org.argeo.slc.spring/src/org/argeo/slc/core/build/ResourceDistribution.java
org.argeo.slc.spring/src/org/argeo/slc/core/build/VersionDistributionId.java
org.argeo.slc.spring/src/org/argeo/slc/core/build/VersionedResourceDistribution.java
org.argeo.slc.spring/src/org/argeo/slc/core/deploy/DefaultResourceSet.java
org.argeo.slc.spring/src/org/argeo/slc/core/deploy/DigestCheck.java
org.argeo.slc.spring/src/org/argeo/slc/core/deploy/LocalFilesDeployment.java
org.argeo.slc.spring/src/org/argeo/slc/core/deploy/MultiResourceSet.java
org.argeo.slc.spring/src/org/argeo/slc/core/deploy/ResourceSet.java
org.argeo.slc.spring/src/org/argeo/slc/core/deploy/SimpleExecutables.java
org.argeo.slc.spring/src/org/argeo/slc/core/deploy/VersionedDirSync.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/AbstractExecutionFlowGenerator.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/AbstractSpringExecutionModule.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/DefaultAgent.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/DefaultExecutionFlow.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/DefaultExecutionFlowDescriptorConverter.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/DefaultExecutionSpec.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/ExecutionAspect.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/ExecutionParameterPostProcessor.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/ExecutionResources.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/ExecutionResourcesFactoryBean.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/ExecutionScope.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/FileExecutionResources.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/MapExecutionContext.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/OsFileFactoryBean.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/ParameterRef.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/SedFilteredResource.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/doc/ConsoleContextDescriber.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/doc/ContextDescriber.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/generator/CompositeRunnableFactory.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/generator/DefaultRunnableDataNode.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/generator/ExecutionFlowGenerator.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/generator/ExecutionFlowGeneratorSource.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/generator/RunnableCall.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/generator/RunnableCallFlow.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/generator/RunnableCallFlowDescriptor.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/generator/RunnableDataNode.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/generator/RunnableFactory.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/tasks/CloseTestResult.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/tasks/Echo.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/tasks/If.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/tasks/JvmProcess.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/tasks/MergedLists.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/tasks/MethodCall.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/tasks/OverrideContextAware.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/tasks/SystemCall.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/tasks/SystemCallOutputListener.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/tasks/UploadAttachments.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/xml/AsFlowDecorator.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/xml/ExecutionScopeDecorator.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/xml/FlowBeanDefinitionParser.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/xml/FlowNamespaceHandler.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/xml/NamespaceUtils.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/xml/ParamDecorator.java
org.argeo.slc.spring/src/org/argeo/slc/core/execution/xml/SpecBeanDefinitionParser.java
org.argeo.slc.spring/src/org/argeo/slc/core/test/context/DefaultContextTestData.java
org.argeo.slc.spring/src/org/argeo/slc/core/test/context/SimpleContextAware.java
org.argeo.slc.spring/src/org/argeo/slc/core/test/context/SimpleParentContextAware.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/BundleRegister.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/BundlesManager.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/FileSystemBundleRegister.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/MultipleServiceExporterPostProcessor.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/OsgiBundle.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/OsgiExecutionModule.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/OsgiExecutionModulesManager.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/OsgiExecutionResources.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/OsgiRuntime.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/build/AbstractOsgiModularDistribution.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/build/BundleModularDistribution.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/build/EclipseUpdateSite.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/build/EclipseUpdateSiteCategory.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/build/EclipseUpdateSiteFeature.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/build/OsgiRuntimeModularDistribution.java
org.argeo.slc.spring/src/org/argeo/slc/osgi/deploy/OsgiResourceSet.java
org.argeo.slc.spring/src/org/argeo/slc/spring/AbstractSystemExecution.java
org.argeo.slc.spring/src/org/argeo/slc/spring/AuthenticatedApplicationContextInitialization.java
org.argeo.slc.spring/src/org/argeo/slc/spring/auth/AbstractSystemExecution.java
org.argeo.slc.spring/src/org/argeo/slc/spring/auth/AuthenticatedApplicationContextInitialization.java
org.argeo.slc.spring/src/org/argeo/slc/spring/unit/AbstractExecutionFlowTestcase.java
org.argeo.slc.spring/src/org/argeo/slc/spring/unit/AbstractOsgiRuntimeTestCase.java
org.argeo.slc.spring/src/org/argeo/slc/spring/unit/AbstractSpringTestCase.java
org.argeo.slc.spring/src/org/argeo/slc/spring/unit/ExecutionFlowDescriptorTestUtils.java
org.argeo.slc.spring/src/org/argeo/slc/spring/unit/UnitUtils.java
org.argeo.slc.support.maven/src/org/argeo/slc/maven/CustomCli.java
org.argeo.slc.support.maven/src/org/argeo/slc/maven/DependencyFileLoader.java
org.argeo.slc.support.maven/src/org/argeo/slc/maven/ManualWagonProvider.java
org.argeo.slc.support.maven/src/org/argeo/slc/maven/MavenCall.java
org.argeo.slc.support.maven/src/org/argeo/slc/maven/MavenDeployEnvironment.java
org.argeo.slc.support.maven/src/org/argeo/slc/maven/MavenFile.java
org.argeo.slc.support.maven/src/org/argeo/slc/maven/MavenManager.java
org.argeo.slc.support.maven/src/org/argeo/slc/maven/MavenToUrl.java
org.argeo.slc.support.maven/src/org/argeo/slc/maven/RemoteRepo.java
org.argeo.slc.support/ext/test/org/argeo/slc/diff/LineTokenizerTest.java
org.argeo.slc.support/src/org/argeo/slc/diff/DataInterpreter.java
org.argeo.slc.support/src/org/argeo/slc/diff/Diff.java
org.argeo.slc.support/src/org/argeo/slc/diff/DiffIssue.java
org.argeo.slc.support/src/org/argeo/slc/diff/DiffIssueKey.java
org.argeo.slc.support/src/org/argeo/slc/diff/DiffKey.java
org.argeo.slc.support/src/org/argeo/slc/diff/DiffMissing.java
org.argeo.slc.support/src/org/argeo/slc/diff/DiffMissingXml.java
org.argeo.slc.support/src/org/argeo/slc/diff/DiffNotMatched.java
org.argeo.slc.support/src/org/argeo/slc/diff/DiffPosition.java
org.argeo.slc.support/src/org/argeo/slc/diff/DiffResult.java
org.argeo.slc.support/src/org/argeo/slc/diff/KeyColumnsDiff.java
org.argeo.slc.support/src/org/argeo/slc/diff/LineTokenizer.java
org.argeo.slc.support/src/org/argeo/slc/diff/RelatedFile.java
org.argeo.slc.support/src/org/argeo/slc/diff/TableDiffPosition.java
org.argeo.slc.support/src/org/argeo/slc/diff/Tolerance.java
org.argeo.slc.support/src/org/argeo/slc/diff/ToleranceDiff.java
org.argeo.slc.support/src/org/argeo/slc/diff/XPathDiffPosition.java
org.argeo.slc.support/src/org/argeo/slc/jsch/AbstractJschTask.java
org.argeo.slc.support/src/org/argeo/slc/jsch/CallbackHandlerUserInfo.java
org.argeo.slc.support/src/org/argeo/slc/jsch/JschContextSession.java
org.argeo.slc.support/src/org/argeo/slc/jsch/JschExecutor.java
org.argeo.slc.support/src/org/argeo/slc/jsch/JschMultiTasks.java
org.argeo.slc.support/src/org/argeo/slc/jsch/RemoteExec.java
org.argeo.slc.support/src/org/argeo/slc/jsch/ScpFrom.java
org.argeo.slc.support/src/org/argeo/slc/jsch/ScpTo.java
org.argeo.slc.support/src/org/argeo/slc/jsch/SimpleUserInfo.java
org.argeo.slc.support/src/org/argeo/slc/jsch/SshFilesDeployment.java
org.argeo.slc.support/src/org/argeo/slc/jsch/SshShell.java
org.argeo.slc.support/src/org/argeo/slc/jsch/SshTarget.java
org.argeo.slc.support/src/org/argeo/slc/jsch/SwingUserInfo.java
org.argeo.slc.support/src/org/argeo/slc/lib/jcr/JcrRepositoryBackup.java
org.argeo.slc.support/src/org/argeo/slc/lib/linux/DefaultRedhatDeploymentData.java
org.argeo.slc.support/src/org/argeo/slc/lib/linux/DefaultRpmDistribution.java
org.argeo.slc.support/src/org/argeo/slc/lib/linux/RedhatDeploymentData.java
org.argeo.slc.support/src/org/argeo/slc/lib/linux/RedhatHostManager.java
org.argeo.slc.support/src/org/argeo/slc/lib/linux/RpmDistribution.java
org.argeo.slc.support/src/org/argeo/slc/lib/linux/ScriptCall.java
org.argeo.slc.support/src/org/argeo/slc/lib/linux/SimpleLinuxHost.java
org.argeo.slc.support/src/org/argeo/slc/lib/linux/rpmfactory/BuildInMock.java
org.argeo.slc.support/src/org/argeo/slc/lib/linux/rpmfactory/CreateSrpm.java
org.argeo.slc.support/src/org/argeo/slc/lib/linux/rpmfactory/ImportSrpm.java
org.argeo.slc.support/src/org/argeo/slc/lib/linux/rpmfactory/RpmBuildEnvironment.java
org.argeo.slc.support/src/org/argeo/slc/lib/linux/rpmfactory/RpmSpecFile.java
org.argeo.slc.support/src/org/argeo/slc/lib/vbox/VBoxMachine.java
org.argeo.slc.support/src/org/argeo/slc/lib/vbox/VBoxManager.java
org.argeo.slc.support/src/org/argeo/slc/lib/vbox/VBoxNat.java
org.argeo.slc.support/src/org/argeo/slc/lib/vbox/VBoxPortMapping.java
org.argeo.slc.support/src/org/argeo/slc/log4j/SlcExecutionAppender.java
org.argeo.slc.support/src/org/argeo/slc/mail/SendMail.java
org.argeo.slc.support/src/org/argeo/slc/support/deploy/HttpdApplicationDeployment.java
org.argeo.slc.support/src/org/argeo/slc/support/deploy/HttpdApplicationTargetData.java
org.argeo.slc.support/src/org/argeo/slc/support/deploy/HttpdServer.java
org.argeo.slc.support/src/org/argeo/slc/support/deploy/HttpdServerDeployment.java
org.argeo.slc.support/src/org/argeo/slc/support/deploy/HttpdServerDeploymentData.java
org.argeo.slc.support/src/org/argeo/slc/support/deploy/HttpdServerManager.java
org.argeo.slc.support/src/org/argeo/slc/support/deploy/HttpdServerTargetData.java
org.argeo.slc.support/src/org/argeo/slc/support/deploy/SimpleHttpdApplication.java
org.argeo.slc.support/src/org/argeo/slc/support/deploy/WebApplication.java
org.argeo.slc.support/src/org/argeo/slc/support/deploy/WebServer.java
org.argeo.slc.support/src/org/argeo/slc/support/deploy/db/DbModel.java
org.argeo.slc.support/src/org/argeo/slc/support/deploy/db/JdbcAware.java
org.argeo.slc.support/src/org/argeo/slc/support/deploy/db/SimpleJdbcDatabase.java
org.argeo.slc.support/src/org/argeo/slc/vfs/VfsResource.java
org.argeo.slc.support/src/org/argeo/slc/vfs/VfsResourceFactory.java
org.argeo.slc.support/src/org/argeo/slc/vfs/VfsResourceSet.java
pom.xml
rcp/org.argeo.eclipse.ui.rcp/src/org/argeo/eclipse/ui/specific/DefaultNLS.java
rcp/org.argeo.eclipse.ui.rcp/src/org/argeo/eclipse/ui/specific/EclipseUiSpecificUtils.java
rcp/org.argeo.eclipse.ui.rcp/src/org/argeo/eclipse/ui/specific/OpenFile.java

index 7c2d572219fec36a967ef7b1b26a1007854e1321..586c1ee181c1fa2edbcdf5faa3ad8ee35c3dd25b 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.rap;
 
 import java.security.PrivilegedAction;
index c18a9a78ed81fd065b82e71a62c9b073ace5b444..a5acfe5280638cbd06ff28cef1771a5511e2cc6e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.rap;
 
 import org.argeo.cms.auth.CurrentUser;
index 60bad090cf49fd98157b57500b758b369c1c3418..58f274312af50b1dcfe084235ed357fc87207920 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.rap;
 
 import org.eclipse.swt.SWT;
index b650dbbf54d4fa3fc10c663d06c487d458050a9d..6abaaffb73e0d2b63fe3c6c027113069d193e85e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.rap;
 
 import org.eclipse.ui.IPerspectiveDescriptor;
index 74068c241143d1ec9d6ade02d6ed23daa77e4daf..309b7affcebefb2453a1fae7c483b83152937c51 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.rap;
 
 import org.osgi.framework.BundleActivator;
index 86e01036da9d530f073e5086f9c8e5c1e9c794b5..d5a36ede52f693bc7f3922f3c8a5fb485f86ceab 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.rap.commands;
 
 import org.argeo.cms.ui.workbench.UserHomePerspective;
index 4934e5620a9e8d777d48f219a7306b5a86f8bcdd..038eea3e7420c57045be5b7926bb9af87454870e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.rap.commands;
 
 import org.eclipse.core.commands.AbstractHandler;
index 082a2879331479d4b30601ea0adb66a69da86ddd..3c3220099556f12ee54456d8e36c743d29292f1a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.spring;
 
 import javax.security.auth.Subject;
index e1af58274f505493a2f800565c1e93219dfebdee..510732cfce34a8ac110fca2cfc4deb6f3e0ee753 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.spring;
 
 import java.security.AccessController;
index 53a916a1518e843cb0a825d2821f5770da7680bb..fcd4c523835e2940d00d02163aee4614a761ed10 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench;
 
 import org.argeo.cms.ui.workbench.jcr.JcrBrowserView;
index 9bfcbad18d1564aa0db6c6614c8eb2ec61bd07db..b5cf76b15db9ee72cd8999a7976a66aff63e66e6 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench;
 
 import org.argeo.cms.ui.workbench.useradmin.AdminLogView;
index 5534a61266a31c6ade3aacef722bc0e6dcb54043..28838e3a6734c50e4c2a1ce896425d17cf16ac6b 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench;
 
 import org.eclipse.ui.IPageLayout;
index 04b54ee808979a6c29aba4b529d052fcc3722f99..b2e04261b5e4513a8db6c4da570bfac621d1899c 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench;
 
 import org.argeo.cms.ui.workbench.internal.useradmin.parts.GroupsView;
index e5e98170a660e6ac066efc3561588e0b1dd0e2c4..26f0dfe21dd5ee356966f100b4259924d634e25d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench;
 
 import org.argeo.cms.ui.workbench.jcr.NodeFsBrowserView;
index 9d5275ac8bfc4144e37b10a71f7b713935fa86b8..614a44e0783fd9f9b7dba319b3d44a41e62edc1d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench;
 
 import java.io.IOException;
index 6913a9aa1e896679ceed6847049d6a40ae1a8bed..31e7f469d889092dcf9b750270dadc02a8e518a1 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.commands;
 
 import static org.argeo.cms.CmsMsg.changePassword;
index ecf84c351c1cce531cf4297e0acfa06453273296..a8be3af390e8d26f166129d92fbb64166480af04 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.commands;
 
 import javax.jcr.Node;
index 0e1983234c00f28c9a1899667f63cbd56e29a80b..0a84d3c6cc96f9d2e6b9ddd701a0a337a2dadada 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.commands;
 
 import org.argeo.cms.ui.workbench.UserHomePerspective;
index 8cfb0e8f7a7711e788a3b16db2b9ed7e7c9b414b..02cd7244b4cd57920fccec5b64c1990442250b56 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal;
 
 /** Constants used across the application. */
index f17fde91d6b56847dfba3597193a24dc5a0cee70..60a26844650596a6d7735098828339b8be9a8dd0 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.commands;
 
 import javax.jcr.Node;
index fafd76b72432d0ea34253d89113611ac3e537c13..103fefd3410b11ad6a3f49085a85d9cf0fc25487 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.commands;
 
 import javax.jcr.Node;
index 1446369edd49088c812f1df9037f31092f25356e..d309a7778a3203005e7a85b1e78d44dfae19379c 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.commands;
 
 import java.net.URI;
index 60f4244333c8e140456cdbd68c5cfe30877a1585..d89aa5047057538ca614db9f5d5533441550576f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.commands;
 
 import java.io.File;
index 2d6949cd53a21ac0ca9798e2acfa7806b044b0c2..f12b85e886cd29d1b1b55ae197bc1b8e78ad08e1 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.commands;
 
 import java.util.Arrays;
index a0c67709132253dc258dd6f921cf371d89a32eba..fa0f528c1285f6193542de79f7052e1bd2874d85 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.commands;
 
 import java.util.Iterator;
index 2dbb25932dd623f0d5246a6c06ba9bd6093324ed..636fdd270b2db7cd72427018402b1c47ae76cb29 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.commands;
 
 import static org.argeo.eclipse.ui.util.SingleSourcingConstants.FILE_SCHEME;
index 67f82380b5034d7ef654dbb100c5ce855e8de7ff..560b6befa8a44250c0c6da92a11fa222f8cb4d2e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.commands;
 
 import java.util.HashMap;
index 38d68136fbde497acabff50407359aa3984aea76..d31674afa044d8f077e37378984cb5007f5c07a0 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.commands;
 
 import java.util.ArrayList;
index 1924b63a793dfedcc8bff6097f8a9c9531634e2a..157e39a460282dfae757a3001919faf22cee72dc 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.commands;
 
 import java.util.Iterator;
index cd2618d5f176bb4c60e76f0ae0a398a60cb030ef..bd845fc81b44c05fec62926b1ccc163ea45d4302 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.commands;
 
 import java.security.Principal;
index c1be6ceeadd28a88d462c7ecdb83186e6c1a71ab..156878b43dfa7fdc62f3c56b7c030180dd0e3b3c 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.commands;
 
 import org.argeo.cms.ui.jcr.model.RemoteRepositoryElem;
index 7f4b554181c459300d0e2197d0aab44eb772b041..5bae6546c087c1e325d6224e9cacb42e8e7b661e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.commands;
 
 import java.util.Iterator;
index 4b3d6f30803a18eeddaa92f5956ffd87df321765..ad93147294e2fd3d663e23e3bc9822e43021d35c 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.commands;
 
 import org.argeo.cms.ui.workbench.WorkbenchUiPlugin;
index 42d4b301bb8f94ab5ecabf7adae475d221f3dfbf..dcc0d0ebcfdeaf6d2417cda7e1c7bd64cc460e99 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.commands;
 
 import java.io.InputStream;
index 3839a81c6c068ea9b46fa8e61302566048aff259..7f97d580692f8882e60231a885bfd47a195546d4 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.parts;
 
 import java.util.ArrayList;
index 25d9ad7876c19d666389504431e555b9e6f01a06..110f816ebecb2b6f9abd27b531ca70b5f91ae1b2 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.parts;
 
 import java.util.Collections;
index eb8629278eed8cd30d467d9b58026ae10f779edf..b11554c008c76b4f462b71d17dd5d85fd9bcb1e6 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.parts;
 
 import javax.jcr.Node;
index 080ea9485f9cd60bf7d73b2f1e6870f226f1e847..229aa56ba8520a2228e17edf78a4e7efe7837bc5 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.parts;
 
 import org.eclipse.jface.dialogs.IMessageProvider;
index 43866945c0c7a4c56a1dadda8587b1f304d2f62b..37c36110b19dfcbec3fbbc3bfedaa94eaf1d8b5d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.parts;
 
 import javax.jcr.Node;
index 2f2ec899a37d3e7dfbcd0fa57069fadcd4c7c440..36765595101504e494b346f4fb511064b6227284 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.parts;
 
 import java.text.DateFormat;
index 50f89625a1ff6a10e3142607e9ec467fd74d13bd..4cfef6cb1c84880cd9e612ddcf5f7f257f6df8b6 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.parts;
 
 import java.util.ArrayList;
index 11256fe75ebcf94e065644aedcc802b17ae2e974..2cd5bccea2cb4e1f1d274ec330c84c0908776d64 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.parts;
 
 import javax.jcr.query.Query;
index d51aeb3f27c1417c312e2ab85a5dc8169c47e4ad..a0a5cbb1f3e2b6ec98e3f0ecc200b131d49bf12e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.parts;
 
 import org.eclipse.jface.resource.ImageDescriptor;
index 5aee1f351c66bc4c4062d443841fd4b81ed69902..db0d7e99f36f808fc1012f3864c69bf49debbb13 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.parts;
 
 import java.util.ArrayList;
index 166ece9d82977098c74c319962e2d1b21d7cfc64..fa90a424fa51ad24717df26dd38d89d4b7158ee6 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.parts;
 
 import java.text.DateFormat;
index 6aae94c2815dfbe9386ba3a63ddd033d323a8a36..af084346e16e4b56f7c28bb95a0b2de7d33d4eaa 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.jcr.parts;
 
 import org.eclipse.jface.resource.ImageDescriptor;
index 816dead6e59fa8d7c1c0701626a97ac017d525dd..f9b1797e0f07d0557ee74eaec63abdee14a7c733 100644 (file)
@@ -1,29 +1,3 @@
-/*
- * Argeo Connect - Data management and communications
- * Copyright (C) 2012 Argeo GmbH
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>
- *
- * Additional permission under GNU GPL version 3 section 7
- *
- * If you modify this Program, or any covered work, by linking or combining it
- * with software covered by the terms of the Eclipse Public License, the
- * licensors of this Program grant you additional permission to convey the
- * resulting work. Corresponding Source for a non-source form of such a
- * combination shall include the source code for the parts of such software
- * which are used as well as that of the covered work.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin;
 
 import static org.argeo.cms.ui.workbench.WorkbenchUiPlugin.getImageDescriptor;
index c3018829df5e6637267c2885cf8b36b8f7c8f6e7..486a82d5705c4c62d4471cadaa6b1ca3e36ed3a1 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin.commands;
 
 import java.util.ArrayList;
index 0b7462061d9faef85cc3cbc4954dafa7559a3df5..5b7c80c6666560a21f1f7130a01bb426be702b8a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin.commands;
 
 import java.util.ArrayList;
index 86a2eedefe8d4505cfd092c9b75bd48ee81a746b..234cb0b7225fe0d52d9958f46b95876961b0b20d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin.commands;
 
 import org.argeo.cms.ui.workbench.internal.useradmin.parts.GroupsView;
index 51a14fcbd32ad5d3d13202159d48b7e748091e95..a7782b765aad629222a4158ae04add81ac73d4d9 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin.commands;
 
 import java.util.Dictionary;
index 5bb9676e397600220d6b215064aa51fa8309dd56..bccfff1392812479dad1befcdae3eb608001515f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin.commands;
 
 import java.util.Dictionary;
index ef1ddbdbd24fd55abec12003475803203dc31449..168dc6ade9f8aa826d577461bc3bc77ced8327b8 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin.commands;
 
 import org.argeo.cms.ui.workbench.WorkbenchUiPlugin;
index 7d29e8f5a59ad145bbc01760de1194d1db7b8419..c23b386ae7f5d9cca11e393e8259c5c4f14d1cd3 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin.commands;
 
 import org.argeo.cms.ui.workbench.internal.useradmin.UserAdminWrapper;
index 69fd0711a3fd3a8f063eb7e22b3fb9dd8982ffcb..6e72912b3697f188e0c18015bb40a8e9f93ca5b5 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin.commands;
 
 import javax.transaction.Status;
index 71089f690f33ea72a4f0a170516faa228b05ff32..c70ef9c6869e567d4ab6729ea1291c3bb0463a5f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin.parts;
 
 import org.eclipse.jface.resource.ImageDescriptor;
index 8976956ffd0ad09eef22447a3af9ed1ff37367d6..f9869753603eee81f90db3bfc3e06d5a5108e173 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin.parts;
 
 import static org.argeo.api.NodeInstance.WORKGROUP;
index aec02b4f8d4374f3cb309e40d0660a8729f2db84..46c891f52287a4d947a88b88f9b52da97b55dc55 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin.parts;
 
 import java.util.ArrayList;
index 02da6258eb45d09d4bfacd5ae94eed2cdce826d8..3acd1850aa1977b2476f4dc7ff1aa2af70a0d396 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin.parts;
 
 import java.util.ArrayList;
index 1e7ee4b10a3b13487b21c8525d911de7cb083fd8..840a6eb7712638c59d19e5aacaefe90b8d0b2b1a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin.parts;
 
 import org.eclipse.jface.resource.ImageDescriptor;
index c37896539ea843496ecc08a39c2c6c97dbb762ef..772a5540856bfe3c077fc53bc6f3728a5f6e5e97 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin.parts;
 
 import static org.argeo.cms.auth.UserAdminUtils.getProperty;
index 73c8e856384303b410b026d37239a77252c34f33..b09d59eedce8c188ee57e6b020c7f6bef963fefd 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.internal.useradmin.parts;
 
 import java.util.ArrayList;
index e502dd462bdba50953283f674a976b7448aaac8f..2b856ed623c511ffbd222908ff0b777832cb99b7 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.jcr;
 
 import java.util.ArrayList;
index 7c7f2b97baf4d5d738f5e1b9e134e26bb6de3be7..cfbc1f8cc6a7939af8408b08a44470d8e5328bf0 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.jcr;
 
 import org.argeo.cms.ui.workbench.WorkbenchUiPlugin;
index f58d62afd3f12aaa588042d45ad80cc5421371a5..c7c221d919c9d5b7ab7b02c06ae9941afd96c1b0 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.jcr;
 
 import java.util.List;
index cba228f2d27f748a56aa92f8669e363cbadcb066..eec7b5152170e332d9dfff7fa4bae4c9b31bf2db 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.jcr;
 
 import java.net.URI;
index 4032e785ca9ec5eae0d642fa4c1a1a31300517cc..ade7ca49d1e50fe90f6bfc343b0e8335b441d2d1 100644 (file)
@@ -1,21 +1,6 @@
 //package org.argeo.eclipse.ui.workbench.osgi;
 //public class BundlesView {}
 
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.osgi;
 
 import org.argeo.cms.ui.workbench.WorkbenchUiPlugin;
index 44b554ed1b2128a44fc39ddea628676597dd6bbb..e5cd8414e9a63ea7a89033261a418bcbfc039f27 100644 (file)
@@ -1,21 +1,6 @@
 //package org.argeo.eclipse.ui.workbench.osgi;
 //public class BundlesView {}
 
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.osgi;
 
 import java.util.ArrayList;
index 235261a581148bfcf2a52d5cc627bb886db5878d..6d97f1dfa5f9aed6c436e78306475000073e763a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.osgi;
 
 import java.util.ArrayList;
index a7f9a5335bd73ebb1cc18b172735e4c9b7cde276..97ed5352a8fb6c805d6f1d14574198a6205158f5 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.osgi;
 
 import java.util.ArrayList;
index 1233e11e6e1f23d62db73125d292636599004f97..c822471e71439192f8b9f26acc0e0143f7d23d74 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.osgi;
 
 import org.argeo.cms.ui.workbench.WorkbenchUiPlugin;
index 742066a9ac8adeffd37f5384446143e385bca29d..cdc0e8b58ebe06d6864240fd9dd8d5b2d0f74609 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.useradmin;
 
 import java.util.ArrayList;
index 5e4c3045106addfe3bb3b2fa082dd1869e7ea2d4..b65313cc7b94ab8174547e280ae40a083241e969 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.useradmin;
 
 import java.text.DateFormat;
index 3639520f5543f1cd50b17f6d74750c2e1793ed4b..b95de6a2aad138b2b9ae3e151acabfacaaf4a3b0 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.useradmin;
 
 import java.util.ArrayList;
index c86e9a08e50d36a61e2f8be44da2f851fc97e6c0..7fb451d270bffaa936a3614540ec57a14ac2a6c0 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.useradmin;
 
 import java.util.TreeSet;
index b05ba07467264d143060ebf997e319982274d156..8b84439282f10a2753bcd72068b73f066be27918 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.util;
 
 import java.util.ArrayList;
index f71c13d6cb94d264e783cbc2abbfa710a48094c0..c286eb7eed7afbbe3cda23d66f5824eff834a94d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.cms.ui.workbench.util;
 
 import java.util.HashMap;
index 1d3df4304fdf1a698b21523f86256dfce63ca310..81e8d9edf4ee20c93c1bffa88776b3268a5c4254 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.eclipse.spring;\r
 \r
 import static java.text.MessageFormat.format;\r
@@ -28,12 +13,7 @@ import org.osgi.framework.InvalidSyntaxException;
 import org.osgi.util.tracker.ServiceTracker;\r
 import org.springframework.context.ApplicationContext;\r
 \r
-/**\r
- * Tracks Spring application context published as services.\r
- * \r
- * @author Heiko Seeberger\r
- * @author Mathieu Baudier\r
- */\r
+/** Tracks Spring application context published as services. */\r
 class ApplicationContextTracker {\r
        private final static Log log = LogFactory\r
                        .getLog(ApplicationContextTracker.class);\r
index 698b937413b7355bd25612019e8f8c6ee6589f0e..0fb40b0cf3381fef6c3b0adcdf5e75d8a25b9aae 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.eclipse.spring;
 
 import org.apache.commons.logging.Log;
index ab1e8caf652ffe47831a0180cd73ce69cfc7f7d6..6b9c7857d7c630ea99ac568b6db53bb71633de5a 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.eclipse.spring;\r
 \r
 import org.argeo.eclipse.ui.EclipseUiException;\r
@@ -44,9 +29,6 @@ import org.springframework.context.ApplicationContext;
  * original code from: <a href=\r
  * "http://martinlippert.blogspot.com/2008/10/new-version-of-spring-extension-factory.html"\r
  * >Blog entry</a>\r
- * \r
- * @author Martin Lippert\r
- * @author mbaudier\r
  */\r
 public class SpringExtensionFactory implements IExecutableExtensionFactory,\r
                IExecutableExtension {\r
index 9d8e71af0a90bf11914307462f2c7993860479f2..61ed5eb12081abf238d4604edb2475ecaef8f863 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc;
 
 import java.io.Serializable;
index f5199ce4fe914902a2be4189734d0d216fd1046d..f476961f094f7cb64c908ed16c3f94731aa85909 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc;
 
 /** Binary check on an arbitrary object. */
index bd64198f0de88e38f8a3c1c22b07611536584614..61cc66e2a141eaf505031a4a843212335821ce4e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc;
 
 
index 0086cbb16908ea296f9ac1a2a7d083f82cbef167..19060490a7efa84e01cb57da14c6916f4d9bc911 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc;
 
 /**
index 408bd06df5d13d4ad94a6d6e522e11c9c5929121..d2e5e2b0b5d2652b9044f9b5ce98ce7592678856 100644 (file)
@@ -1,32 +1,17 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc;\r
-\r
-/** Basis for all SLC exceptions. This is an unchecked exception. */\r
-public class SlcException extends RuntimeException {\r
-       private static final long serialVersionUID = 6373738619304106445L;\r
-\r
-       /** Constructor. */\r
-       public SlcException(String message) {\r
-               super(message);\r
-       }\r
-\r
-       /** Constructor. */\r
-       public SlcException(String message, Throwable e) {\r
-               super(message, e);\r
-       }\r
-\r
-}\r
+package org.argeo.slc;
+
+/** Basis for all SLC exceptions. This is an unchecked exception. */
+public class SlcException extends RuntimeException {
+       private static final long serialVersionUID = 6373738619304106445L;
+
+       /** Constructor. */
+       public SlcException(String message) {
+               super(message);
+       }
+
+       /** Constructor. */
+       public SlcException(String message, Throwable e) {
+               super(message, e);
+       }
+
+}
index 7e3205919471f708e1af54ebb24f79efcddf33a8..557d4792d9156a1fe40bdab87f9926710b98bc31 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc;
 
 /** JCR names used by SLC */
index d807aad8f3c35c40f7e32338a27c23313c4f057e..e0b86e6a6327e1d75f1bad718646b7339d8a76c2 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc;
 
 /** JCR node types used by SLC */
index 302a226e9ff4dc8b7ff80fdd8d649aab1849e5b2..f1bef22fd2064dcaeebf4ba7f9607f11fc2ab8b9 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc;
 
 import java.io.InputStream;
index fe63322090329a19c6c41ad7330a946f0fa70d0e..aa050e30d0ccf29c45467c4227714cd91b5a175a 100644 (file)
@@ -1,69 +1,54 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc;\r
-\r
-/** Exception for unsupported features or actions. */\r
-public class UnsupportedException extends SlcException {\r
-       static final long serialVersionUID = 1l;\r
-\r
-       /** Action not supported. */\r
-       public UnsupportedException() {\r
-               this("Action not supported");\r
-       }\r
-\r
-       /** Constructor with a message. */\r
-       public UnsupportedException(String message) {\r
-               super(message);\r
-       }\r
-\r
-       /**\r
-        * Constructor generating a message.\r
-        * \r
-        * @param nature\r
-        *            the nature of the unsupported object\r
-        * @param obj\r
-        *            the object itself (its class name will be used in message)\r
-        */\r
-       public UnsupportedException(String nature, Object obj) {\r
-               super("Unsupported " + nature + ": "\r
-                               + (obj != null ? obj.getClass() : "[object is null]"));\r
-       }\r
-\r
-       /**\r
-        * Constructor generating a message.\r
-        * \r
-        * @param nature\r
-        *            the nature of the unsupported object\r
-        * @param clss\r
-        *            the class itself (will be used in message)\r
-        */\r
-       public UnsupportedException(String nature, Class<?> clss) {\r
-               super("Unsupported " + nature + ": " + clss);\r
-       }\r
-\r
-       /**\r
-        * Constructor generating a message.\r
-        * \r
-        * @param nature\r
-        *            the nature of the unsupported object\r
-        * @param value\r
-        *            the problematic value itself\r
-        */\r
-       public UnsupportedException(String nature, String value) {\r
-               super("Unsupported " + nature + ": " + value);\r
-       }\r
-\r
-}\r
+package org.argeo.slc;
+
+/** Exception for unsupported features or actions. */
+public class UnsupportedException extends SlcException {
+       static final long serialVersionUID = 1l;
+
+       /** Action not supported. */
+       public UnsupportedException() {
+               this("Action not supported");
+       }
+
+       /** Constructor with a message. */
+       public UnsupportedException(String message) {
+               super(message);
+       }
+
+       /**
+        * Constructor generating a message.
+        * 
+        * @param nature
+        *            the nature of the unsupported object
+        * @param obj
+        *            the object itself (its class name will be used in message)
+        */
+       public UnsupportedException(String nature, Object obj) {
+               super("Unsupported " + nature + ": "
+                               + (obj != null ? obj.getClass() : "[object is null]"));
+       }
+
+       /**
+        * Constructor generating a message.
+        * 
+        * @param nature
+        *            the nature of the unsupported object
+        * @param clss
+        *            the class itself (will be used in message)
+        */
+       public UnsupportedException(String nature, Class<?> clss) {
+               super("Unsupported " + nature + ": " + clss);
+       }
+
+       /**
+        * Constructor generating a message.
+        * 
+        * @param nature
+        *            the nature of the unsupported object
+        * @param value
+        *            the problematic value itself
+        */
+       public UnsupportedException(String nature, String value) {
+               super("Unsupported " + nature + ": " + value);
+       }
+
+}
index 9ad961355fa6676100fe25fc2f63d216afa37625..65732511eb157aac8dd2044bc9bbbe3a429a782e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.attachment;
 
 public interface Attachment {
index 53c8cdf4bb682aedd5d3c64ed1d4bce3812d0a72..0b44e5b9ef68306db3157186f1048765a4dccb8b 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.attachment;
 
 public interface AttachmentsEnabled {
index 94a845c7b9167b5ecb85c46cddf258d6324a78f6..48cd0e6508a08a66b5d3df540d4140851fa8d575 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.attachment;
 
 import java.io.InputStream;
index 9e233e223aa777ed6b0009c119303de0f9fb9c6a..b438a8f9a28d62aed698de37b992e65f822174c7 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.slc.build;\r
 \r
 /** A packaged software component */\r
index 0b917aa49d8ba1ebb4b08deb9aa98c23d612a071..3c7f625c173826ef804c1a186307d0942e8834b1 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.build;
 
 import org.argeo.slc.ModuleSet;
index 2dce868d196535186c4881d27ceb80fc28e9a73c..dd47369292acf8e21cfa043ff95c5c414937818f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.deploy;
 
 import java.io.File;
index 89c1708c592f5d24fbd75e72c390fb015156c946..be28154fe1db2701ffdf239b363417f24eb88615 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.slc.deploy;\r
 \r
 import org.argeo.slc.build.Distribution;\r
index 092ac55485f95a1e43e69053ceaa84980f02eab7..411bcb6b92062648424d9eaf125c79dda8d58c9b 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.deploy;
 
 public interface DeployedSystemManager<T extends DeployedSystem> {
index 99f4e10377f17cc9b65ed105ba357852ec79e6bc..74be42ab0e8a4d44f2e5bf39fabe5ad403099b68 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.slc.deploy;\r
 \r
 import org.argeo.slc.build.Distribution;\r
index e5b0f40443fdcf42d657e6faba9bc9ffb6cc3052..18e63f829febcd423bcf2eb045d9ab6f358edf34 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.slc.deploy;\r
 \r
 public interface DeploymentData {\r
index 231d52af99ef6dadeab7fcb401b720b6ffd6e254..ed29ce2800603037b987b17feffd1639c6fdf387 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.deploy;
 
 import org.argeo.slc.NameVersion;
index 0f9601c19093d82926cc7aa6c26b9af617199358..2d65a716c75b66ec9048585d6c3a8bf3946ece19 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.deploy;
 
 public interface InstalledExecutables extends DeployedSystem {
index 6805eec003664e4a44016e18b090478a7fe39524..18fd4fe6d8958436a54e30335b4f7391e50fdfe9 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.deploy;
 
 import java.util.List;
index 2a0bd4d231abd3dc9010ecbada3fe6ff6c238a78..10973c99910900f6172c371c0707fd7e19f6e574 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.deploy;
 
 import org.argeo.slc.NameVersion;
index d6f878399d00ec49e09d11ecb383711c39679fc1..f1d66428313cdb9230a090c2b8134aae97563a90 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.deploy;
 
 import java.io.Serializable;
index d7ec9453f7804883f36835f965369b956a5a76d9..1288592d60dacc7af49fe2c307293543f5821d7f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.deploy;
 
 import java.util.List;
index 8472e7e3bf25e6692b448cf68459b716443bc062..f1c7e7d130c1e5b3aca43a0c79df6ecb5b7d566c 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.slc.deploy;\r
 \r
 public interface TargetData {\r
index 52659b7d5c1d12e1952529218abc805c75ce5732..dba57970c17bcdb170c8191c0062d50e70ff9743 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.slc.deploy;\r
 \r
 import java.io.File;\r
index 23ab55ebe832f7bd5708056775692dccc7ebf83c..7f6362601c84ce011d85a242679ba89f7c0a2b9b 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import java.io.Serializable;
index 5b1438ad21842e6ebca177b38bcf6b2fc9180560..d720db61e437762da968bb18137a089d8c7d6f85 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import java.io.Serializable;
index 9a88f52cdf1f836c85082fd6b8ce305ebe6258f5..46c448f41291fe6ad4468f1bc55b37fcc66bcd46 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.slc.execution;\r
 \r
 /** Variables or references attached to an execution (typically thread bounded).*/\r
index 5ebcdf07de20f2d91ed3e205af79be5df144fef4..7dd3a74af51f57fe910936f05b74e8fb80a3fd5d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import java.util.Iterator;
index e3eea046f5147c110b5c5c159080745c1aec518d..d38bb85246a1f94e7386084c030312f6f4364304 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import java.io.Serializable;
index f43e14de3c70677e8a73143268252524a18dedda..13ff638763336de0ea87d052947e0bdc16e0eae1 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import java.util.Map;
index 79d788b34ca4aad2c018cb8fa8de124833f0c695..11021f60e3db054d87c9a84d7b571532fb20a9ba 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 @Deprecated
index 4de0268228c8d1cc6305186dba92effb076613ab..cad6efb819515b5417719c88b08fe79130931f99 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import java.util.ArrayList;
index 52b52a649a7a064fbe16c942bd46fd5d554ec402..aa0b16df48efe40ef81a78bbac72723094f79561 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import org.argeo.slc.deploy.ModuleDescriptor;
index 06681747a8e2e3be3d4cfb39f0939236a7ffad72..1cedd12a2de138cebe26f060a8b2db4f4152151c 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import java.util.List;
index 550c16484e5fdf5249edb69352b3e0e478c0e9c5..d894e1c2365d0c89f4f1e154342f6d5b90799f98 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import java.util.List;
index ea93d05893ae8c9d78c08bfae966fa9a4e0110f7..9ddbca9887ff415dc90fa8732da6d205eb3b6d5b 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import java.io.File;
index 49d7c795fe34f4dfb0f1f546a6ca2ac7c82cf0f1..0037b6d67a9309108a6b2b5d2a2e061b5b974690 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import java.util.Map;
index a430e5bb09b4f31cbea5a6c84ea410467c61d012..39f87d9a16ec8e9cf66c2fe6cb8eea93e7e8636a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 /**
index 64cc3a8c50d59e1709eb50a7b37c37c83f716940..0a15e33b5534393d266938dac4ce8f8219b1d247 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 /** Deal with nested level of executions using different variables. */
index 7729d591a9cc80176dead59f49b6c5d5edb5c3e7..790404b58dda4c7298547b6e40b74f3a4c08859f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import java.util.Map;
index 628a3b69dc6f1049253824729d2eeeb92504b4ef..47c69180dae3a7181afef49169f4bf6fa953a1c2 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.slc.execution;\r
 \r
 import java.io.Serializable;\r
index ebd72c7e7b9d42a86ceecd9f0f5e0ab0eea416ff..c1290a9584f62d83b9b51b72aa06d2ac55e2b101 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import java.io.Serializable;
index ccfebaf03d51a9c576ca0f92b9a4a67e2d02845f..b9bded0317388d097c7e691ba091984383fcb992 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import java.util.List;
index b66f2c4745c04e6d9ba5fb522ad0f8f37e47ccaf..02be2a6ba7cf9c51620c9f59fe30ace8cce4fc75 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 /** Reference value to be used by an execution */
index 83c880a8ee213eec3ea041d3bc68431396dd89c8..c4c403e6e3a47dbce6dd31aa469a0b3fa4bdc9b2 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import java.io.Serializable;
index c96d4a8840d622f46ec6e9e8ba551e95d7d7f0eb..039724f509274d1a60c006ced371ce6b825ff84f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.execution;
 
 import java.net.URI;
index ce71429d78317f3bfd607069726c825ce242e59a..b3f87ba1a1dfb79766c8bbadf9222393bb4c5ce6 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.primitive;
 
 /** Abstraction of access to primitive values */
index eb9ff2ad81929febe427ad2a3e7fcb347e5cdee6..cc3ee672281ce0ddde2dbb5051695570d57512df 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.primitive;
 
 import org.argeo.slc.SlcException;
index d7284cf8d0ee91999b0ee83335af19c56b8fd425..679e808e9df8d0de07cc30778e4a5338354500d2 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.primitive;
 
 /** Converts to and from primitive types. */
index b3ade50d97e02348f0c4dedbe0b56a98592a1ad4..0c2bf23fec81a5aeab4bc6e7a71ec077f27b32d4 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.primitive;
 
 import org.argeo.slc.execution.AbstractExecutionValue;
index a70b592d9f2e8985f066508043869fd14d368daa..f18196a498138b7dac9048e4a7e5e00d1acdc894 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.slc.test;\r
 \r
 \r
index 4cc6ddde13a5041778accb695288b30917664630..de5d900af9c24ae1789feeff7252a799e251fc7d 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.slc.test;\r
 \r
 import org.argeo.slc.SlcException;\r
index 1b3f466872418935e964f79be604bcc3f571b678..47973adeec8ce365ed538e3b7f2fa6e8eb5110a8 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.slc.test;\r
 \r
 /**\r
index 711c17730da67bc04b8a79c79717f3825d9ca4d9..754a3df00a2805dca28641e7eec2d08731d20048 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.slc.test;\r
 \r
 public interface TestDataProvider {\r
index 5fea1dc98491e9642bd17146471571a02b33157f..c7bfeac71ee82011f46991825f01b21cf6063691 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.slc.test;\r
 \r
 /**\r
index d3ef62bb83841dbfb45f93b8d22bbe690f61c342..767b28613291262703096d78d11fce8c494f3296 100644 (file)
@@ -1,42 +1,27 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.test;\r
-\r
-import java.util.Date;\r
-import java.util.Map;\r
-\r
-/** The result of a test */\r
-public interface TestResult extends TestStatus, TestRunAware {\r
-       public String getUuid();\r
-\r
-       /** Adds a part of the result. */\r
-       public void addResultPart(TestResultPart part);\r
-\r
-       /**\r
-        * Marks that the collection of test results is completed and free the\r
-        * related resources (also closing listeners).\r
-        */\r
-       public void close();\r
-\r
-       /**\r
-        * The date when this test result was closed. Can be null, which means the\r
-        * result is not closed.\r
-        */\r
-       public Date getCloseDate();\r
-\r
-       /** Additional arbitrary meta data */\r
-       public Map<String, String> getAttributes();\r
-}\r
+package org.argeo.slc.test;
+
+import java.util.Date;
+import java.util.Map;
+
+/** The result of a test */
+public interface TestResult extends TestStatus, TestRunAware {
+       public String getUuid();
+
+       /** Adds a part of the result. */
+       public void addResultPart(TestResultPart part);
+
+       /**
+        * Marks that the collection of test results is completed and free the
+        * related resources (also closing listeners).
+        */
+       public void close();
+
+       /**
+        * The date when this test result was closed. Can be null, which means the
+        * result is not closed.
+        */
+       public Date getCloseDate();
+
+       /** Additional arbitrary meta data */
+       public Map<String, String> getAttributes();
+}
index 788e1b8ad9371bc70ecb50b26259debd0133d5c7..c2ad8ed66ac46e01ed78c1bdc3e44c730f7dc25b 100644 (file)
@@ -1,25 +1,10 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.test;\r
-\r
-/** Listener to the operations on a test result. */\r
-public interface TestResultListener<T extends TestResult> {\r
-       /** Notified when a part was added to a test result. */\r
-       public void resultPartAdded(T testResult, TestResultPart testResultPart);\r
-\r
-       /** Stops listening and release the related resources. */\r
-       public void close(T testResult);\r
-}\r
+package org.argeo.slc.test;
+
+/** Listener to the operations on a test result. */
+public interface TestResultListener<T extends TestResult> {
+       /** Notified when a part was added to a test result. */
+       public void resultPartAdded(T testResult, TestResultPart testResultPart);
+
+       /** Stops listening and release the related resources. */
+       public void close(T testResult);
+}
index aeac4ad6352fdacbcb2569178a7f767c291297c1..ec984f9ccd75a4a9815be3a821ec977ce152d93d 100644 (file)
@@ -1,32 +1,17 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.test;\r
-\r
-/**\r
- * Part of a test result.\r
- * \r
- * @see TestResult\r
- */\r
-public interface TestResultPart {\r
-       /** The status, as defined in {@link TestStatus}. */\r
-       public Integer getStatus();\r
-\r
-       /** The related message. */\r
-       public String getMessage();\r
-\r
-       /** The underlying <code>Exception</code>. Can be null. */\r
-       public String getExceptionMessage();\r
-}\r
+package org.argeo.slc.test;
+
+/**
+ * Part of a test result.
+ * 
+ * @see TestResult
+ */
+public interface TestResultPart {
+       /** The status, as defined in {@link TestStatus}. */
+       public Integer getStatus();
+
+       /** The related message. */
+       public String getMessage();
+
+       /** The underlying <code>Exception</code>. Can be null. */
+       public String getExceptionMessage();
+}
index 0935a5511f905c07c70af8cadfb9fbca50b80ee8..a3e8aeb5a01910ca9eb75fa30082addc00d18012 100644 (file)
@@ -1,36 +1,21 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.test;\r
-\r
-import org.argeo.slc.deploy.DeployedSystem;\r
-\r
-/** The actual run of a test */\r
-public interface TestRun {\r
-       /** Gets UUID */\r
-       public String getUuid();\r
-\r
-       /** Gets the related test definition. */\r
-       public <T extends TestDefinition> T getTestDefinition();\r
-\r
-       /** Gets the related test data */\r
-       public <T extends TestData> T getTestData();\r
-\r
-       /** Gets the related deployed system. */\r
-       public <T extends DeployedSystem> T getDeployedSystem();\r
-\r
-       /** Gets the related result where to record results. */\r
-       public <T extends TestResult> T getTestResult();\r
-}\r
+package org.argeo.slc.test;
+
+import org.argeo.slc.deploy.DeployedSystem;
+
+/** The actual run of a test */
+public interface TestRun {
+       /** Gets UUID */
+       public String getUuid();
+
+       /** Gets the related test definition. */
+       public <T extends TestDefinition> T getTestDefinition();
+
+       /** Gets the related test data */
+       public <T extends TestData> T getTestData();
+
+       /** Gets the related deployed system. */
+       public <T extends DeployedSystem> T getDeployedSystem();
+
+       /** Gets the related result where to record results. */
+       public <T extends TestResult> T getTestResult();
+}
index 3330cc8470ce7ff77a6a8facac5abdf7c6e6edc0..54585597be4808cf4354b83088bb0051a1dc7b2c 100644 (file)
@@ -1,23 +1,8 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.test;\r
-\r
-/** Allows a test run to notify other objects. */\r
-public interface TestRunAware {\r
-       /** Notifies the current test run. */\r
-       public void notifyTestRun(TestRun testRun);\r
-\r
-}\r
+package org.argeo.slc.test;
+
+/** Allows a test run to notify other objects. */
+public interface TestRunAware {
+       /** Notifies the current test run. */
+       public void notifyTestRun(TestRun testRun);
+
+}
index e7ebecfa8973ca852c986ef8b0f92f00e89b16f1..a5e10d365aa244ea7354edd825da9d435d458ee7 100644 (file)
@@ -1,46 +1,31 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.test;\r
-\r
-/**\r
- * Simple statuses. Ordering of the flags can be relied upon in aggregation: if\r
- * one element is failed, the aggregation is failed. Is one element is in ERROR,\r
- * the aggregation is in ERROR.\r
- * <p>\r
- * <ul>\r
- * <li>{@link #PASSED}: the test succeeded</li>\r
- * <li>{@link #FAILED}: the test could run, but did not reach the expected\r
- * result</li>\r
- * <li>{@link #ERROR}: an error during the test run prevented to get a\r
- * significant information on the tested system.</li>\r
- * </ul>\r
- * </p>\r
- */\r
-public interface TestStatus {\r
-       /** The flag for a passed test: 0 */\r
-       public final static Integer PASSED = 0;\r
-       /** The flag for a failed test: 1 */\r
-       public final static Integer FAILED = 1;\r
-       /**\r
-        * The flag for a test which could not properly run because of an error\r
-        * (there is no feedback on the behavior of the tested component): 2\r
-        */\r
-       public final static Integer ERROR = 2;\r
-       public final static String STATUSSTR_PASSED = "PASSED";\r
-       public final static String STATUSSTR_FAILED = "FAILED";\r
-       public final static String STATUSSTR_ERROR = "ERROR";\r
-\r
-}\r
+package org.argeo.slc.test;
+
+/**
+ * Simple statuses. Ordering of the flags can be relied upon in aggregation: if
+ * one element is failed, the aggregation is failed. Is one element is in ERROR,
+ * the aggregation is in ERROR.
+ * <p>
+ * <ul>
+ * <li>{@link #PASSED}: the test succeeded</li>
+ * <li>{@link #FAILED}: the test could run, but did not reach the expected
+ * result</li>
+ * <li>{@link #ERROR}: an error during the test run prevented to get a
+ * significant information on the tested system.</li>
+ * </ul>
+ * </p>
+ */
+public interface TestStatus {
+       /** The flag for a passed test: 0 */
+       public final static Integer PASSED = 0;
+       /** The flag for a failed test: 1 */
+       public final static Integer FAILED = 1;
+       /**
+        * The flag for a test which could not properly run because of an error
+        * (there is no feedback on the behavior of the tested component): 2
+        */
+       public final static Integer ERROR = 2;
+       public final static String STATUSSTR_PASSED = "PASSED";
+       public final static String STATUSSTR_FAILED = "FAILED";
+       public final static String STATUSSTR_ERROR = "ERROR";
+
+}
index e113950258213c5ff88af6628502a026cacb2cc1..1a2ab237ad4e7fe8542fe8a9cfd59586eafa6c36 100644 (file)
@@ -1,29 +1,14 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.test;\r
-\r
-import org.argeo.slc.deploy.DeployedSystem;\r
-\r
-/** Test run whose various components can be externally set. */\r
-public interface WritableTestRun extends ExecutableTestRun {\r
-       public void setDeployedSystem(DeployedSystem deployedSystem);\r
-\r
-       public void setTestData(TestData testData);\r
-\r
-       public void setTestDefinition(TestDefinition testDefinition);\r
-\r
-       public void setTestResult(TestResult testResult);\r
-}\r
+package org.argeo.slc.test;
+
+import org.argeo.slc.deploy.DeployedSystem;
+
+/** Test run whose various components can be externally set. */
+public interface WritableTestRun extends ExecutableTestRun {
+       public void setDeployedSystem(DeployedSystem deployedSystem);
+
+       public void setTestData(TestData testData);
+
+       public void setTestDefinition(TestDefinition testDefinition);
+
+       public void setTestResult(TestResult testResult);
+}
index cd9897e117d915299678ee376c863050556f4b53..d2cd86f742a3f5071d63757e209e49c857fcd191 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.slc.test.context;\r
 \r
 import java.util.Map;\r
index 0da990d314a5665f46897a213fbdd05d93157533..b4044f7cac0b63790910d4e1fc0bf8fe7a64c128 100644 (file)
@@ -1,18 +1,3 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
 package org.argeo.slc.test.context;\r
 \r
 import java.util.Collection;\r
index b9f12d66579e76373a4015e6da10b979bdc108cf..ddd7753061b3f7a7e940fe5b2dfde5526bb177b3 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.rap;
 
 import org.argeo.cms.ui.workbench.rap.RapWindowAdvisor;
index 79450b0425f226bdd5a193b6a638cbcf7ce1de23..8876a15eb9ec94d7a1ba035d121bc99c4d69836e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.specific;
 
 import java.net.URL;
index 816e7c020f90eceb3e346a76bde5f152bff8f764..d61b315ca52a35f5cb7c9faa180f9d40096e971e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.rcp;
 
 import org.eclipse.jface.resource.ImageDescriptor;
index 22466fbf6288babb16f81ccd97829aa1ac339630..ddd310e58ba226bed5ee231650a6dd074cde2360 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.rcp;
 
 import org.argeo.cms.ui.workbench.rcp.SecureRcp;
index e24188054b617274312654da5c3719e824fbdd26..04d142764081f6dec384d31ed2642e45e0f596a5 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.rcp;
 
 import org.argeo.cms.ui.workbench.rcp.SecureWorkbenchAdvisor;
index f3506de353ed4044d3fd7cf78d943eafe6296c8e..44e8a8a718ed85ef47796d2dfb8742277dead8b1 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.rcp;
 
 import org.argeo.cms.ui.workbench.rcp.SecureWorkbenchWindowAdvisor;
index 5c73a60bde3179081a397801a7368dda62f25651..495fed52246e71f482213ba193a21cf51487b08f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.specific;
 
 import java.awt.Desktop;
index b12a55120375fd73b1ff7c40a2a74cef4179d665..e2418a84c2dc02bd5459f845c20c273ead0508b1 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist;
 
 import org.argeo.slc.client.ui.dist.views.AnonymousDistributionsView;
index bcbceddbf582b7fb834624b1708e881feaf13b48..10e5f6adf5e7edd9f1f911201dd46adc7ddaaa01 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist;
 
 import org.argeo.slc.SlcNames;
index 097f7350b541bfec2832d879ea8bab7e8ab9b322..9f5cba127b1da222b9c59fbd94424350db646601 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist;
 
 import org.eclipse.swt.graphics.Image;
index b1e5b3b6c47ee7f95a164e032b247f8942144589..b85fcba09135b5b755fb3736853322e988bb7173 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist;
 
 import org.eclipse.jface.resource.ImageDescriptor;
index 78e0a8e72fb0d6b74cdd183600b7ce84e5a06923..cedc2eb20f7bec1c9213d819db912cafaf189e3a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist;
 
 import org.argeo.slc.client.ui.dist.views.DistributionsView;
index 99936dcb31e2b8e9ddcaa6623e1d071a11fb3bd6..2573496c82bcee34504d1de3a8c44d642bfbc4c5 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import java.io.File;
index 7d37c1fddcf3a835ef75c6e8b8255d7d811fcb4c..7d26f905544974820d2a1f909d949e467b7f7fa2 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import javax.jcr.Node;
index 01e3c9856f4980e73d23785ccd2acaa456ab0858..4abdfab2d0d4f80ee9de58e2c8b010149dd09f1d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import javax.jcr.Credentials;
index 955691f8d109c0a9d3dafb1a7b7ed2eb6e073569..dd15ecf107d9eb5962ce181b652767b0a655adb8 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import org.apache.commons.logging.Log;
index 3f70f6d28c634b85d9ac548d556086235fb1b62b..9934c86893b2c308be95c54d4bfe0fc4cb725988 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import javax.jcr.Credentials;
index 18c0473ecdfbe220907b537a0b0c788bd6a9e792..4caf2b5263263c84ee5363dfff4bd383e5add8f8 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import java.util.Iterator;
index 9f09a37a9d1b7b57add6eb0a43b2afddb7d3b45f..4707fc0e6cca47d76f89184e723587cf1f997018 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import javax.jcr.Credentials;
index aa496c81f9927cf115fbdfb4df741cefe61b1bfc..38e43671b469f01cca68e1a5e6d5da7fc22adfe3 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import javax.jcr.Repository;
index 9e499b53fc0e2586f7b7cb38267cad947f9b89dd..24e43cbed3c7d3aa5ee74a4e4f822d32b393a9cf 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import javax.jcr.Repository;
index 1eb03f16ce07fc18ae9a616388cee3642ae30033..70c3d7a1283ed23e2b1a206794881aac7161ae10 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import javax.jcr.Credentials;
index de46d58a23630ec60b934ec1788eda740a11df39..e35b9bc2366b652ecc136d53d1d15c2819d73679 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import javax.jcr.Binary;
index 37e5b7a3dadfe872ef4445d06c6f0349ad01b9c7..e5ed4d4e109aca40be811f0c11340e4f55eafe8a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import javax.jcr.Credentials;
index 00ed51ff03fe21c53257757acc578fa87f426d1c..c1b6c12db24f1f9b10115e7d42eb475540e56077 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import org.argeo.slc.client.ui.dist.DistPlugin;
index 6abbb32fdf17c13eee983df2ba625ee6ddee2e93..bf07e49521331eff6e86dc4ab69762c84dd7a10a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import javax.jcr.Node;
index 1c7c4baee3de329b5d91490dc94a1f56b2611739..cf25b83daeeb43372659e37fa834cca7d940fc3f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import javax.jcr.Node;
index 91aaf9a6b873d1a553d109c1dee95d968d6b0e35..9c868cde6772cb267dc9919535031feb290c4d3b 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import javax.jcr.Credentials;
index 0b4c0622651478ef923b832103a29cc2686c6feb..f9d9f186e66e20611faeaca329cc53a596e9dfed 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import org.argeo.slc.client.ui.dist.views.ArtifactsBrowser;
index 82028992bf72bc0e9f32295212b05ef795356509..e03ab485cb8b3be347c0da8cf673ec56af2feefb 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import org.argeo.slc.client.ui.dist.DistPlugin;
index 0c734b68f11db82c1cbdbfee804b4acc00888033..f09fd17634d845fd47f3248839354e5db1ca69e7 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import javax.jcr.Repository;
index 1b9022fd7520e2e12ef661bbe16cbea4be9195aa..fc336f6fbc3d675ace54a473e160891c8a953cc8 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import java.io.File;
index 61504de8f3434f9b498d424ef0cbe8b0ccbb5c13..3486dbfc13fc5dca2c6c8f78d2e895531b494e6c 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import org.argeo.slc.client.ui.dist.DistPlugin;
index 6cf34c13821c03c8a3395bdda693fdd2c2ebe30a..460c0aa0086d0ecbad0e771f2872a9c85b975336 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.commands;
 
 import javax.jcr.Node;
index 7e0b491158e6ead1bb38df76c4967c73b6996e59..197921e8934d4aba9084c179732153538e564b9e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.controllers;
 
 import java.text.DateFormat;
index 00274c00385db2c844eaa99da3af5b44d3f6a3bb..5559b44687e4e2da9f4f495c67b1910ec09c06d2 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.controllers;
 
 import java.util.ArrayList;
index 4ae23b1ede1917f3ea24e9702120e717b0a1aef7..4853fe2e15ae7481d065facdc5fd90af23c1117d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.editors;
 
 import javax.jcr.Node;
index 3fd0fecdf2e12331eb3ad9292b0c8a3c6c5a9cc2..938710d979168a335a246d926a4ae95aef5bb0bc 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.editors;
 
 import java.util.List;
index 466358bc00b85d51364ecda4f00b5f56ddd706f0..c300af1baa12ef5e8d945d59b711ffa37081b43b 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.editors;
 
 import java.net.URL;
index c201f4e3bd319bdc28328803bc809cca72601cd5..0ac7e4e27e88f8968dc7c6588a3ef4569cabf87a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.editors;
 
 import java.util.ArrayList;
index 2919841bb45dfff7a17b32f6c4c328282eda621f..e377b53c8d58c934bcc7826d760ea5e0bf2c146e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.editors;
 
 import java.util.ArrayList;
index d4b322d4576de5263b9ee8a51c891d86c7dd8598..5929706e9c790129053ab7c954b22500f425be6b 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.editors;
 
 import org.argeo.slc.SlcException;
index caba3c941952f145e4fd10c46190b48744364f43..1a959a511b8ca9e804a754581837a4cfcadbaa67 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.editors;
 
 import java.util.ArrayList;
index f2efbde8ad918abb32066a2aa376121a43c0a7f6..3f8f98d9bd298a1039206cb3d7370d3dc628977a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.editors;
 
 import javax.jcr.Node;
index e2b8e79406f6fbedb10277cfb2b79bf95fc1de73..0b9f9a3c4f1a57bd5938a796e49892d709b1e2b8 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.editors;
 
 import javax.jcr.Node;
index 5a298622c60df17455d98e4f76918317a5fea834..cdb15ea7586b779732e1805e11020c20b17e13d0 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.editors;
 
 import javax.jcr.RepositoryException;
index 0bd922fa28414e6b3ee2fa2e6e3f718bd405259a..d3ab885ac6785ae3b591aa23c5715cc2dc63e89e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.editors;
 
 import java.net.URL;
index eddfdd02c933f6065b76838f7764a8c46daa3c73..52d7a200a55c233ef785361c85bd41228949f6eb 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.editors;
 
 import org.argeo.jcr.JcrUtils;
index 04f706e98a3febf689057390b5b9dc157effe6be..5e11e77b6e88083fa2dac08e61547640f4b135b2 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.editors;
 
 import javax.jcr.Node;
index e92db49dc485880c0b4e4c6bb3801996f4de4f5c..a482e9d3fd6bb9849724eb3d8036c173eaa81c87 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.editors;
 
 import java.util.ArrayList;
index a3579422261d307e03740829d7d747418a8bc8a5..dcdfc930dd5650ce5712046de5cfe23233a2cd5c 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.utils;
 
 import java.text.DateFormat;
index fcc0f5e9f554288e98e75c89ad4beae44f3bae33..e1134c63334f9c978aa8e7cc4c441ae0b3c74f30 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.utils;
 
 import java.util.ArrayList;
index 2f0e3a03b023228fd007514a68bd973be61c0cfb..14119969f7a2c4d5372968921b2a30a4f18115a1 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.utils;
 
 import java.math.BigDecimal;
index 5a5e4b331a5c6d8042abd8cc767860d5484c840b..b53fe019687e4c3c7f168ff77c7d8d7503c3d471 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.utils;
 
 import java.text.DateFormat;
index 1dd2be19a36304e4ecaa83ddc137fb8392d85c0b..13d71f86f9ef9d7890a988badca70ef55f83f3dc 100644 (file)
@@ -1,29 +1,3 @@
-/*
- * Argeo Connect - Data management and communications
- * Copyright (C) 2012 Argeo GmbH
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>
- *
- * Additional permission under GNU GPL version 3 section 7
- *
- * If you modify this Program, or any covered work, by linking or combining it
- * with software covered by the terms of the Eclipse Public License, the
- * licensors of this Program grant you additional permission to convey the
- * resulting work. Corresponding Source for a non-source form of such a
- * combination shall include the source code for the parts of such software
- * which are used as well as that of the covered work.
- */
 package org.argeo.slc.client.ui.dist.utils;
 
 import org.eclipse.ui.forms.events.HyperlinkEvent;
@@ -40,4 +14,4 @@ public abstract class HyperlinkAdapter implements IHyperlinkListener {
 
        /** Must be overriden **/
        public abstract void linkActivated(HyperlinkEvent e);
-}
\ No newline at end of file
+}
index 2a8ff798e5675eb8a80d1868b6a18aa22450db55..e6552ebc1d69c5f0a65e858a158f3043567a792f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.views;
 
 import java.util.ArrayList;
index b4100cdd7d87659ed204d27ab0f9384063dde96c..b511c4e932f5eaf13e28f321ff58791b5a3bdc6a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.views;
 
 import org.argeo.cms.ArgeoNames;
index 323159d4331d4b4712f47d325c8ead14a0100157..9eef4771083d7edbf409a849cfbf80a33ff610b5 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.views;
 
 import java.text.DateFormat;
index 1c52cf775cc19ec137a30247227ba21b50023e69..ffebf6a7f051b79cfbe3258517340baa640caec1 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.views;
 
 import java.util.HashMap;
index 5ec066cc8917c074197e432a58971b513a956860..105f36dd8babca0cf21fd9f36b7e62d03945970d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.views;
 
 import org.argeo.slc.client.ui.dist.DistPlugin;
index 791fbc70a136cc9ff8319320a6ad17cbcce388f7..9ce41d4778420d7948e1c752d18497aa2b59696b 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.views;
 
 import org.argeo.slc.SlcException;
index 35333e4d24a1183ab02734731de2e5f0de7ef583..3b0be1064baeb28d395f6f0e08275b6ece416078 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.views;
 
 import org.argeo.slc.SlcNames;
index baeeddc2cca72523984dd2ef2f8c27c8c987a8e2..c4980d53fe552095576dba1a6a8011a26cda2ad2 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.views;
 
 import org.argeo.slc.SlcException;
index a3e70b9c3483192f8fb0b3306de85252d0aa5e2f..9dce9a002950804a1e2b182137276cc7fc6673ed 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.wizards;
 
 import javax.jcr.RepositoryException;
index 1a66e8fafe29ac0de2fae184dba4debf23084c6c..fcd409753d8423f82dc7af1485a39ceaa28a4c41 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.wizards;
 
 import javax.jcr.security.Privilege;
index de7d65c06ebd81dbc81602c99620d4933fd15577..888478dd20c4d09f90ec6bc362126b942b1e4313 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.wizards;
 
 import java.util.ArrayList;
index 5b4ea21c248ec5e18ced2adbbe186c7280553cff..1f353e00ef8aa7ce986d98ec7dae933c0577b282 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.wizards;
 
 import java.util.ArrayList;
index a0f289a139373d6b2f6f970213b98e7404bee2cc..3cebd6862d936a1164c89e9b39187cd8265345ca 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.dist.wizards;
 
 import java.net.URI;
index 05e57e9f1eae92f03fe31993263c3923a2268fa3..abf62a0cf667ba7f1fa8e7f3cc3a69ecc4721e43 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui;
 
 import javax.jcr.Node;
index 47a352131b96f3722d5d26e7667783f2471d5c04..7e9cc5220a958be7c8a2a9f04d589988324f6ebe 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui;
 
 import org.eclipse.ui.IFolderLayout;
index d881f0ec8c9e0b54ee1862700b054eacc91f2e71..c93ec9b7e02ddaac86490160d1b4c2c98cc33ec7 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui;
 
 import static org.argeo.slc.client.ui.ClientUiPlugin.getImageDescriptor;
index 6aa176bfe06b461675d9762c5efff709d602672d..27d05d626b24d98528868ca7be8ee14773588a9f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui;
 
 /** SLC UI common constants */
index 749836da2f6d90fa8d03c91f6847476cbb8267fa..5cc8b6520a85ae6c59cfc1b899505706440e72a4 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.commands;
 
 import javax.jcr.Node;
index 68865282546426501c1a03c2f2a0afa5c06aad24..74016671d74a5b853eca5258432a48d4d831fbc9 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.client.ui.commands;\r
-\r
-import java.util.HashMap;\r
-import java.util.Iterator;\r
-import java.util.Map;\r
-\r
-import javax.jcr.Node;\r
-import javax.jcr.RepositoryException;\r
-import javax.jcr.Session;\r
-\r
-import org.argeo.slc.SlcException;\r
-import org.argeo.slc.client.ui.ClientUiPlugin;\r
-import org.argeo.slc.client.ui.model.ResultFolder;\r
-import org.argeo.slc.client.ui.model.ResultParent;\r
-import org.argeo.slc.client.ui.model.ResultParentUtils;\r
-import org.argeo.slc.client.ui.model.SingleResultNode;\r
-import org.eclipse.core.commands.AbstractHandler;\r
-import org.eclipse.core.commands.ExecutionEvent;\r
-import org.eclipse.core.commands.ExecutionException;\r
-import org.eclipse.core.runtime.IProgressMonitor;\r
-import org.eclipse.core.runtime.IStatus;\r
-import org.eclipse.core.runtime.Status;\r
-import org.eclipse.core.runtime.jobs.Job;\r
-import org.eclipse.jface.dialogs.MessageDialog;\r
-import org.eclipse.jface.resource.ImageDescriptor;\r
-import org.eclipse.jface.viewers.ISelection;\r
-import org.eclipse.jface.viewers.IStructuredSelection;\r
-import org.eclipse.ui.handlers.HandlerUtil;\r
-\r
-/** Deletes one or many results */\r
-public class DeleteItems extends AbstractHandler {\r
-       public final static String ID = ClientUiPlugin.ID + ".deleteItems";\r
-       public final static ImageDescriptor DEFAULT_IMG_DESCRIPTOR = ClientUiPlugin\r
-                       .getImageDescriptor("icons/removeAll.png");\r
-       public final static String DEFAULT_LABEL = "Delete selected item(s)";\r
-\r
-       public Object execute(final ExecutionEvent event) throws ExecutionException {\r
-               final ISelection selection = HandlerUtil\r
-                               .getActiveWorkbenchWindow(event).getActivePage().getSelection();\r
-\r
-               // confirmation\r
-               StringBuilder buf = new StringBuilder("");\r
-               Iterator<?> lst = ((IStructuredSelection) selection).iterator();\r
-               while (lst.hasNext()) {\r
-                       Object obj = lst.next();\r
-                       if (obj instanceof ResultParent) {\r
-                               ResultParent rp = ((ResultParent) obj);\r
-                               buf.append(rp.getName()).append(", ");\r
-                       }\r
-               }\r
-\r
-               String msg = "Nothing to delete";\r
-               // remove last separator\r
-               if (buf.lastIndexOf(", ") > -1) {\r
-                       msg = "Do you want to delete following objects (and their children): "\r
-                                       + buf.substring(0, buf.lastIndexOf(", ")) + "?";\r
-               }\r
-               Boolean ok = MessageDialog.openConfirm(\r
-                               HandlerUtil.getActiveShell(event), "Confirm deletion", msg);\r
-\r
-               if (!ok)\r
-                       return null;\r
-\r
-               Job job = new Job("Delete results") {\r
-                       @Override\r
-                       protected IStatus run(IProgressMonitor monitor) {\r
-                               if (selection != null\r
-                                               && selection instanceof IStructuredSelection) {\r
-                                       Map<String, Node> nodes = new HashMap<String, Node>();\r
-                                       Iterator<?> it = ((IStructuredSelection) selection)\r
-                                                       .iterator();\r
-                                       Object obj = null;\r
-                                       try {\r
-\r
-                                               while (it.hasNext()) {\r
-                                                       obj = it.next();\r
-                                                       if (obj instanceof ResultFolder) {\r
-                                                               Node node = ((ResultFolder) obj).getNode();\r
-                                                               nodes.put(node.getPath(), node);\r
-                                                       } else if (obj instanceof SingleResultNode) {\r
-                                                               Node node = ((SingleResultNode) obj).getNode();\r
-                                                               nodes.put(node.getPath(), node);\r
-                                                       }\r
-                                               }\r
-                                               if (!nodes.isEmpty()) {\r
-                                                       Session session = null;\r
-                                                       monitor.beginTask("Delete results", nodes.size());\r
-                                                       for (String path : nodes.keySet()) {\r
-                                                               if (session == null)\r
-                                                                       session = nodes.get(path).getSession();\r
-\r
-                                                               // check if the item has not already been\r
-                                                               // deleted while deleting one of its ancestor\r
-                                                               if (session.itemExists(path)) {\r
-                                                                       Node parent = nodes.get(path).getParent();\r
-                                                                       nodes.get(path).remove();\r
-                                                                       ResultParentUtils.updatePassedStatus(\r
-                                                                                       parent, true);\r
-                                                               }\r
-                                                               monitor.worked(1);\r
-                                                       }\r
-                                                       session.save();\r
-                                               }\r
-\r
-                                       } catch (RepositoryException e) {\r
-                                               throw new SlcException(\r
-                                                               "Unexpected error while deleteting node(s)", e);\r
-                                       }\r
-                                       monitor.done();\r
-                               }\r
-                               return Status.OK_STATUS;\r
-                       }\r
-\r
-               };\r
-               job.setUser(true);\r
-               job.schedule();\r
-               return null;\r
-       }\r
-}
\ No newline at end of file
+package org.argeo.slc.client.ui.commands;
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+
+import javax.jcr.Node;
+import javax.jcr.RepositoryException;
+import javax.jcr.Session;
+
+import org.argeo.slc.SlcException;
+import org.argeo.slc.client.ui.ClientUiPlugin;
+import org.argeo.slc.client.ui.model.ResultFolder;
+import org.argeo.slc.client.ui.model.ResultParent;
+import org.argeo.slc.client.ui.model.ResultParentUtils;
+import org.argeo.slc.client.ui.model.SingleResultNode;
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.ui.handlers.HandlerUtil;
+
+/** Deletes one or many results */
+public class DeleteItems extends AbstractHandler {
+       public final static String ID = ClientUiPlugin.ID + ".deleteItems";
+       public final static ImageDescriptor DEFAULT_IMG_DESCRIPTOR = ClientUiPlugin
+                       .getImageDescriptor("icons/removeAll.png");
+       public final static String DEFAULT_LABEL = "Delete selected item(s)";
+
+       public Object execute(final ExecutionEvent event) throws ExecutionException {
+               final ISelection selection = HandlerUtil
+                               .getActiveWorkbenchWindow(event).getActivePage().getSelection();
+
+               // confirmation
+               StringBuilder buf = new StringBuilder("");
+               Iterator<?> lst = ((IStructuredSelection) selection).iterator();
+               while (lst.hasNext()) {
+                       Object obj = lst.next();
+                       if (obj instanceof ResultParent) {
+                               ResultParent rp = ((ResultParent) obj);
+                               buf.append(rp.getName()).append(", ");
+                       }
+               }
+
+               String msg = "Nothing to delete";
+               // remove last separator
+               if (buf.lastIndexOf(", ") > -1) {
+                       msg = "Do you want to delete following objects (and their children): "
+                                       + buf.substring(0, buf.lastIndexOf(", ")) + "?";
+               }
+               Boolean ok = MessageDialog.openConfirm(
+                               HandlerUtil.getActiveShell(event), "Confirm deletion", msg);
+
+               if (!ok)
+                       return null;
+
+               Job job = new Job("Delete results") {
+                       @Override
+                       protected IStatus run(IProgressMonitor monitor) {
+                               if (selection != null
+                                               && selection instanceof IStructuredSelection) {
+                                       Map<String, Node> nodes = new HashMap<String, Node>();
+                                       Iterator<?> it = ((IStructuredSelection) selection)
+                                                       .iterator();
+                                       Object obj = null;
+                                       try {
+
+                                               while (it.hasNext()) {
+                                                       obj = it.next();
+                                                       if (obj instanceof ResultFolder) {
+                                                               Node node = ((ResultFolder) obj).getNode();
+                                                               nodes.put(node.getPath(), node);
+                                                       } else if (obj instanceof SingleResultNode) {
+                                                               Node node = ((SingleResultNode) obj).getNode();
+                                                               nodes.put(node.getPath(), node);
+                                                       }
+                                               }
+                                               if (!nodes.isEmpty()) {
+                                                       Session session = null;
+                                                       monitor.beginTask("Delete results", nodes.size());
+                                                       for (String path : nodes.keySet()) {
+                                                               if (session == null)
+                                                                       session = nodes.get(path).getSession();
+
+                                                               // check if the item has not already been
+                                                               // deleted while deleting one of its ancestor
+                                                               if (session.itemExists(path)) {
+                                                                       Node parent = nodes.get(path).getParent();
+                                                                       nodes.get(path).remove();
+                                                                       ResultParentUtils.updatePassedStatus(
+                                                                                       parent, true);
+                                                               }
+                                                               monitor.worked(1);
+                                                       }
+                                                       session.save();
+                                               }
+
+                                       } catch (RepositoryException e) {
+                                               throw new SlcException(
+                                                               "Unexpected error while deleteting node(s)", e);
+                                       }
+                                       monitor.done();
+                               }
+                               return Status.OK_STATUS;
+                       }
+
+               };
+               job.setUser(true);
+               job.schedule();
+               return null;
+       }
+}
index b7600b9e1770cab75f00c6a7803d6670b9b7aa86..fdfa85290198294ce310a974f1650f3ab30349f7 100644 (file)
@@ -1,69 +1,54 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.client.ui.commands;\r
-\r
-import java.util.Iterator;\r
-\r
-import org.argeo.slc.client.ui.ClientUiPlugin;\r
-import org.argeo.slc.client.ui.model.ResultParent;\r
-import org.argeo.slc.client.ui.views.JcrResultTreeView;\r
-import org.eclipse.core.commands.AbstractHandler;\r
-import org.eclipse.core.commands.ExecutionEvent;\r
-import org.eclipse.core.commands.ExecutionException;\r
-import org.eclipse.jface.resource.ImageDescriptor;\r
-import org.eclipse.jface.viewers.IStructuredSelection;\r
-import org.eclipse.ui.handlers.HandlerUtil;\r
-\r
-/**\r
- * Force refresh the ResultTreeView. This command is only intended to be called\r
- * by either the toolbar menu of the view or by the popup menu. Refresh due to\r
- * data changes must be triggered by Observers\r
- */\r
-public class RefreshJcrResultTreeView extends AbstractHandler {\r
-       public final static String ID = ClientUiPlugin.ID\r
-                       + ".refreshJcrResultTreeView";\r
-       public final static String PARAM_REFRESH_TYPE = ClientUiPlugin.ID\r
-                       + ".param.refreshType";\r
-       public final static String PARAM_REFRESH_TYPE_FULL = "fullRefresh";\r
-       public final static ImageDescriptor DEFAULT_IMG_DESCRIPTOR = ClientUiPlugin\r
-       .getImageDescriptor("icons/refresh.png");\r
-       public final static String DEFAULT_LABEL = "Refresh selected";\r
-\r
-       public Object execute(final ExecutionEvent event) throws ExecutionException {\r
-               String refreshType = event.getParameter(PARAM_REFRESH_TYPE);\r
-               JcrResultTreeView view = (JcrResultTreeView) HandlerUtil\r
-                               .getActiveWorkbenchWindow(event).getActivePage()\r
-                               .getActivePart();\r
-\r
-               // force full refresh without preserving selection from the tool bar\r
-               if (PARAM_REFRESH_TYPE_FULL.equals(refreshType))\r
-                       view.refresh(null);\r
-               else {\r
-                       IStructuredSelection selection = (IStructuredSelection) HandlerUtil\r
-                                       .getActiveWorkbenchWindow(event).getActivePage()\r
-                                       .getSelection();\r
-                       @SuppressWarnings("rawtypes")\r
-                       Iterator it = selection.iterator();\r
-                       while (it.hasNext()) {\r
-                               Object obj = it.next();\r
-                               if (obj instanceof ResultParent) {\r
-                                       view.refresh((ResultParent) obj);\r
-                               }\r
-                       }\r
-               }\r
-               return null;\r
-       }\r
-}\r
+package org.argeo.slc.client.ui.commands;
+
+import java.util.Iterator;
+
+import org.argeo.slc.client.ui.ClientUiPlugin;
+import org.argeo.slc.client.ui.model.ResultParent;
+import org.argeo.slc.client.ui.views.JcrResultTreeView;
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.ui.handlers.HandlerUtil;
+
+/**
+ * Force refresh the ResultTreeView. This command is only intended to be called
+ * by either the toolbar menu of the view or by the popup menu. Refresh due to
+ * data changes must be triggered by Observers
+ */
+public class RefreshJcrResultTreeView extends AbstractHandler {
+       public final static String ID = ClientUiPlugin.ID
+                       + ".refreshJcrResultTreeView";
+       public final static String PARAM_REFRESH_TYPE = ClientUiPlugin.ID
+                       + ".param.refreshType";
+       public final static String PARAM_REFRESH_TYPE_FULL = "fullRefresh";
+       public final static ImageDescriptor DEFAULT_IMG_DESCRIPTOR = ClientUiPlugin
+       .getImageDescriptor("icons/refresh.png");
+       public final static String DEFAULT_LABEL = "Refresh selected";
+
+       public Object execute(final ExecutionEvent event) throws ExecutionException {
+               String refreshType = event.getParameter(PARAM_REFRESH_TYPE);
+               JcrResultTreeView view = (JcrResultTreeView) HandlerUtil
+                               .getActiveWorkbenchWindow(event).getActivePage()
+                               .getActivePart();
+
+               // force full refresh without preserving selection from the tool bar
+               if (PARAM_REFRESH_TYPE_FULL.equals(refreshType))
+                       view.refresh(null);
+               else {
+                       IStructuredSelection selection = (IStructuredSelection) HandlerUtil
+                                       .getActiveWorkbenchWindow(event).getActivePage()
+                                       .getSelection();
+                       @SuppressWarnings("rawtypes")
+                       Iterator it = selection.iterator();
+                       while (it.hasNext()) {
+                               Object obj = it.next();
+                               if (obj instanceof ResultParent) {
+                                       view.refresh((ResultParent) obj);
+                               }
+                       }
+               }
+               return null;
+       }
+}
index 2bdb20db4a5dfdafd5cbc0e4d517bbc67493ea11..bbab7d7126b2c0b03242e393cb8cc5ae2eea1016 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.commands;
 
 import javax.jcr.Node;
index bdc7871f7dfaa67403c8402981cad416a4bc459e..d9717cc7c634974e189e3870345481fe35218874 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.commands;
 
 import javax.jcr.Node;
index 18ac39b1c4fe5c644e11618c76498c948c2e13a1..5e70dfb1164480a4a4515c17ea48d130cb14e9e0 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.commands;
 
 import java.util.HashMap;
index 4def5f4e0ed764ca09f14734fcc35441fe4bc5c0..7cf8509b797724adff575f7c7f6bb3dd6c2bed4b 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.client.ui.commands;\r
-\r
-import java.util.HashMap;\r
-import java.util.Iterator;\r
-import java.util.Map;\r
-\r
-import javax.jcr.Node;\r
-\r
-import org.apache.commons.logging.Log;\r
-import org.apache.commons.logging.LogFactory;\r
-import org.argeo.slc.BasicNameVersion;\r
-import org.argeo.slc.NameVersion;\r
-import org.argeo.slc.SlcException;\r
-import org.argeo.slc.SlcNames;\r
-import org.argeo.slc.SlcTypes;\r
-import org.argeo.slc.deploy.ModulesManager;\r
-import org.eclipse.core.commands.AbstractHandler;\r
-import org.eclipse.core.commands.ExecutionEvent;\r
-import org.eclipse.core.commands.ExecutionException;\r
-import org.eclipse.core.runtime.IProgressMonitor;\r
-import org.eclipse.core.runtime.IStatus;\r
-import org.eclipse.core.runtime.Status;\r
-import org.eclipse.core.runtime.jobs.Job;\r
-import org.eclipse.jface.viewers.ISelection;\r
-import org.eclipse.jface.viewers.IStructuredSelection;\r
-import org.eclipse.ui.handlers.HandlerUtil;\r
-\r
-/** Deletes one or many results */\r
-public class UpdateModule extends AbstractHandler {\r
-       private final static Log log = LogFactory.getLog(UpdateModule.class);\r
-\r
-       private ModulesManager modulesManager;\r
-\r
-       public Object execute(ExecutionEvent event) throws ExecutionException {\r
-               final ISelection selection = HandlerUtil\r
-                               .getActiveWorkbenchWindow(event).getActivePage().getSelection();\r
-               if (selection != null && selection instanceof IStructuredSelection) {\r
-                       UpdateJob job = new UpdateJob(selection);\r
-                       job.setUser(true);\r
-                       job.schedule();\r
-               }\r
-               return null;\r
-       }\r
-\r
-       private class UpdateJob extends Job {\r
-               private final IStructuredSelection selection;\r
-\r
-               public UpdateJob(ISelection selection) {\r
-                       super("Update modules");\r
-                       this.selection = ((IStructuredSelection) selection);\r
-               }\r
-\r
-               @Override\r
-               protected IStatus run(IProgressMonitor monitor) {\r
-                       Iterator<?> it = selection.iterator();\r
-                       Object obj = null;\r
-                       try {\r
-                               Map<String, Node> nodes = new HashMap<String, Node>();\r
-                               nodes: while (it.hasNext()) {\r
-                                       obj = it.next();\r
-                                       if (obj instanceof Node) {\r
-                                               Node node = (Node) obj;\r
-                                               Node executionModuleNode = null;\r
-                                               while (executionModuleNode == null) {\r
-                                                       if (node.isNodeType(SlcTypes.SLC_EXECUTION_MODULE)) {\r
-                                                               executionModuleNode = node;\r
-                                                       }\r
-                                                       node = node.getParent();\r
-                                                       if (node.getPath().equals("/"))// root\r
-                                                               continue nodes;\r
-                                               }\r
-\r
-                                               if (!nodes.containsKey(executionModuleNode.getPath()))\r
-                                                       nodes.put(executionModuleNode.getPath(),\r
-                                                                       executionModuleNode);\r
-                                       }\r
-                               }\r
-\r
-                               monitor.beginTask("Update modules", nodes.size());\r
-                               for (Node executionModuleNode : nodes.values()) {\r
-                                       monitor.subTask("Update " + executionModuleNode.getName());\r
-                                       NameVersion nameVersion = new BasicNameVersion(\r
-                                                       executionModuleNode.getProperty(SlcNames.SLC_NAME)\r
-                                                                       .getString(), executionModuleNode\r
-                                                                       .getProperty(SlcNames.SLC_VERSION)\r
-                                                                       .getString());\r
-                                       modulesManager.upgrade(nameVersion);\r
-                                       monitor.worked(1);\r
-                                       log.info("Module " + nameVersion + " updated");\r
-                                       if (monitor.isCanceled())\r
-                                               return Status.CANCEL_STATUS;\r
-                               }\r
-                               return Status.OK_STATUS;\r
-                       } catch (Exception e) {\r
-                               throw new SlcException("Cannot update module " + obj, e);\r
-                               // return Status.CANCEL_STATUS;\r
-                       }\r
-               }\r
-\r
-               @Override\r
-               protected void canceling() {\r
-                       getThread().interrupt();\r
-                       super.canceling();\r
-               }\r
-\r
-       }\r
-\r
-       public void setModulesManager(ModulesManager modulesManager) {\r
-               this.modulesManager = modulesManager;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.client.ui.commands;
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+
+import javax.jcr.Node;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.argeo.slc.BasicNameVersion;
+import org.argeo.slc.NameVersion;
+import org.argeo.slc.SlcException;
+import org.argeo.slc.SlcNames;
+import org.argeo.slc.SlcTypes;
+import org.argeo.slc.deploy.ModulesManager;
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.ui.handlers.HandlerUtil;
+
+/** Deletes one or many results */
+public class UpdateModule extends AbstractHandler {
+       private final static Log log = LogFactory.getLog(UpdateModule.class);
+
+       private ModulesManager modulesManager;
+
+       public Object execute(ExecutionEvent event) throws ExecutionException {
+               final ISelection selection = HandlerUtil
+                               .getActiveWorkbenchWindow(event).getActivePage().getSelection();
+               if (selection != null && selection instanceof IStructuredSelection) {
+                       UpdateJob job = new UpdateJob(selection);
+                       job.setUser(true);
+                       job.schedule();
+               }
+               return null;
+       }
+
+       private class UpdateJob extends Job {
+               private final IStructuredSelection selection;
+
+               public UpdateJob(ISelection selection) {
+                       super("Update modules");
+                       this.selection = ((IStructuredSelection) selection);
+               }
+
+               @Override
+               protected IStatus run(IProgressMonitor monitor) {
+                       Iterator<?> it = selection.iterator();
+                       Object obj = null;
+                       try {
+                               Map<String, Node> nodes = new HashMap<String, Node>();
+                               nodes: while (it.hasNext()) {
+                                       obj = it.next();
+                                       if (obj instanceof Node) {
+                                               Node node = (Node) obj;
+                                               Node executionModuleNode = null;
+                                               while (executionModuleNode == null) {
+                                                       if (node.isNodeType(SlcTypes.SLC_EXECUTION_MODULE)) {
+                                                               executionModuleNode = node;
+                                                       }
+                                                       node = node.getParent();
+                                                       if (node.getPath().equals("/"))// root
+                                                               continue nodes;
+                                               }
+
+                                               if (!nodes.containsKey(executionModuleNode.getPath()))
+                                                       nodes.put(executionModuleNode.getPath(),
+                                                                       executionModuleNode);
+                                       }
+                               }
+
+                               monitor.beginTask("Update modules", nodes.size());
+                               for (Node executionModuleNode : nodes.values()) {
+                                       monitor.subTask("Update " + executionModuleNode.getName());
+                                       NameVersion nameVersion = new BasicNameVersion(
+                                                       executionModuleNode.getProperty(SlcNames.SLC_NAME)
+                                                                       .getString(), executionModuleNode
+                                                                       .getProperty(SlcNames.SLC_VERSION)
+                                                                       .getString());
+                                       modulesManager.upgrade(nameVersion);
+                                       monitor.worked(1);
+                                       log.info("Module " + nameVersion + " updated");
+                                       if (monitor.isCanceled())
+                                               return Status.CANCEL_STATUS;
+                               }
+                               return Status.OK_STATUS;
+                       } catch (Exception e) {
+                               throw new SlcException("Cannot update module " + obj, e);
+                               // return Status.CANCEL_STATUS;
+                       }
+               }
+
+               @Override
+               protected void canceling() {
+                       getThread().interrupt();
+                       super.canceling();
+               }
+
+       }
+
+       public void setModulesManager(ModulesManager modulesManager) {
+               this.modulesManager = modulesManager;
+       }
+
+}
index 8b66bd89a49d9fb74803f09a4e08a3e183228cce..4a660adb00fcf5e1a145f16e4379cd7afb4d6d34 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.controllers;
 
 import javax.jcr.Node;
index 95e728e82a0b995d2c804b7b417eddaef7868703..9d91cc5449aa84416a888207819987c024d96299 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.decorators;
 
 import java.text.DateFormat;
index b83b8d82076e36526492d01e10a59534793f3a06..7c3d53228b68d0dbe7cb38b04ade03f3650fd9e9 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.editors;
 
 import java.util.ArrayList;
index d2bb45a5d2517df47d564b3c0f45cf5cb5368098..38db84a3cd544375712c17dba347fa504785ad44 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.editors;
 
 import java.util.HashMap;
index ed702c13d985087afef8c1251c5a195bfd142e24..f93af3feda22903121c0a3ce6ae603f408908c74 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.editors;
 
 import java.util.ArrayList;
index 2e2bd28decffb9c44735a3b92e9afc11e4e61781..b5a5d70818e53ef2c8a79cec795e51b3dddef99e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.editors;
 
 import org.argeo.slc.client.ui.ClientUiPlugin;
index bca80f54a1c338c369588c99ff884fbeedef4b73..57eff2e95eab5e3dfb458d7158e8a7425397f68f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.editors;
 
 import java.text.DateFormat;
index b3f6d7dc7e1c2c71ec9f015dc0e21b4e57fd8c25..c6ffcd8d92da043cb10f235c6485b7436e839b58 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.model;
 
 import javax.jcr.Node;
index 57fc627ac05c69ffa2c827a69a9e26d1da66b673..25d0259e6ef901c1cd12e523474b2c83bc2b4904 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.model;
 
 import javax.jcr.Node;
index a616cc4ff7c085a153f2f90bd30c3af66ded049d..8ea91f2a745a530c60281d417711184d3c4cb9d2 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.model;
 
 import org.argeo.eclipse.ui.TreeParent;
index 268d746c16a39987ca71a9ad7bf6f2277c23f482..98fd19443ee19099e9287c07530a22428a1b8f26 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.model;
 
 import java.util.ArrayList;
index d95e0f46adb3e78a16b8a026cbe18ff9941dd669..ff14fcfb277a6101ed08230723c839daab5a831a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.model;
 
 import javax.jcr.Node;
index d6b7a3b5d46b9e59a495cc82f0c84e4a40c6ec07..558fe0d732924dcecb4e78fda788d4eee0f8c7c8 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.model;
 
 import java.util.List;
index f0d2f1483ff1cd92d0446f4957ee59f193d1637a..c2594ec139ecc4e735d7358ff8bde9401a619d83 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.providers;
 
 import org.argeo.eclipse.ui.TreeParent;
index e3570c2a980ba83b219d4e1b61bd3304f46d60ed..3c418d63cd56625fedf37554ee1d4efcb1ae6cff 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.providers;
 
 import javax.jcr.Node;
index 2e0a5cf424e5453c626cae5e774125f5a7009aeb..6ddc1974c6d86ff718cf67780602ae6c1f36c25d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.views;
 
 import java.util.ArrayList;
index 06b99aed6c31cab99fe80de4234a68db33c6a36a..7a921441f6a101623b2e6545ba2c4fd3b24bd21b 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.views;
 
 import java.text.DateFormat;
index 2843c26cdcf9f263252143d002fe64d6ff2d2011..41a1d52d04c0a87638dcb7ae5df3ed31bebd05f5 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.views;
 
 import java.text.DateFormat;
index 7db05ee1155af24ef48e88c7c197dfd26311618f..824dcfd727a0e50a554b60542082eac171636d61 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.client.ui.views;\r
-\r
-import java.text.DateFormat;\r
-import java.text.SimpleDateFormat;\r
-import java.util.ArrayList;\r
-import java.util.Calendar;\r
-import java.util.Iterator;\r
-import java.util.List;\r
-\r
-import javax.jcr.Node;\r
-import javax.jcr.NodeIterator;\r
-import javax.jcr.Property;\r
-import javax.jcr.Repository;\r
-import javax.jcr.RepositoryException;\r
-import javax.jcr.Session;\r
-import javax.jcr.nodetype.NodeType;\r
-import javax.jcr.observation.Event;\r
-import javax.jcr.observation.EventListener;\r
-import javax.jcr.observation.ObservationManager;\r
-\r
-import org.argeo.api.NodeConstants;\r
-import org.argeo.cms.ui.workbench.util.CommandUtils;\r
-import org.argeo.eclipse.ui.jcr.AsyncUiEventListener;\r
-import org.argeo.jcr.JcrUtils;\r
-import org.argeo.slc.SlcException;\r
-import org.argeo.slc.SlcNames;\r
-import org.argeo.slc.SlcTypes;\r
-import org.argeo.slc.client.ui.ClientUiPlugin;\r
-import org.argeo.slc.client.ui.SlcUiConstants;\r
-import org.argeo.slc.client.ui.commands.AddResultFolder;\r
-import org.argeo.slc.client.ui.commands.DeleteItems;\r
-import org.argeo.slc.client.ui.commands.RefreshJcrResultTreeView;\r
-import org.argeo.slc.client.ui.commands.RenameResultFolder;\r
-import org.argeo.slc.client.ui.commands.RenameResultNode;\r
-import org.argeo.slc.client.ui.editors.ProcessEditor;\r
-import org.argeo.slc.client.ui.editors.ProcessEditorInput;\r
-import org.argeo.slc.client.ui.model.ParentNodeFolder;\r
-import org.argeo.slc.client.ui.model.ResultFolder;\r
-import org.argeo.slc.client.ui.model.ResultItemsComparator;\r
-import org.argeo.slc.client.ui.model.ResultItemsComparer;\r
-import org.argeo.slc.client.ui.model.ResultParent;\r
-import org.argeo.slc.client.ui.model.ResultParentUtils;\r
-import org.argeo.slc.client.ui.model.SingleResultNode;\r
-import org.argeo.slc.client.ui.model.VirtualFolder;\r
-import org.argeo.slc.client.ui.providers.ResultTreeContentProvider;\r
-import org.argeo.slc.client.ui.providers.ResultTreeLabelProvider;\r
-import org.argeo.slc.jcr.SlcJcrResultUtils;\r
-import org.eclipse.jface.action.IMenuListener;\r
-import org.eclipse.jface.action.IMenuManager;\r
-import org.eclipse.jface.action.MenuManager;\r
-import org.eclipse.jface.dialogs.MessageDialog;\r
-import org.eclipse.jface.viewers.ColumnLabelProvider;\r
-import org.eclipse.jface.viewers.DecoratingLabelProvider;\r
-import org.eclipse.jface.viewers.DoubleClickEvent;\r
-import org.eclipse.jface.viewers.IDoubleClickListener;\r
-import org.eclipse.jface.viewers.ILabelDecorator;\r
-import org.eclipse.jface.viewers.ISelectionChangedListener;\r
-import org.eclipse.jface.viewers.IStructuredContentProvider;\r
-import org.eclipse.jface.viewers.IStructuredSelection;\r
-import org.eclipse.jface.viewers.SelectionChangedEvent;\r
-import org.eclipse.jface.viewers.TableViewer;\r
-import org.eclipse.jface.viewers.TableViewerColumn;\r
-import org.eclipse.jface.viewers.TreePath;\r
-import org.eclipse.jface.viewers.TreeViewer;\r
-import org.eclipse.jface.viewers.Viewer;\r
-import org.eclipse.jface.viewers.ViewerDropAdapter;\r
-import org.eclipse.swt.SWT;\r
-import org.eclipse.swt.custom.SashForm;\r
-import org.eclipse.swt.dnd.DND;\r
-import org.eclipse.swt.dnd.DragSourceEvent;\r
-import org.eclipse.swt.dnd.DragSourceListener;\r
-import org.eclipse.swt.dnd.TextTransfer;\r
-import org.eclipse.swt.dnd.Transfer;\r
-import org.eclipse.swt.dnd.TransferData;\r
-import org.eclipse.swt.layout.FillLayout;\r
-import org.eclipse.swt.layout.GridData;\r
-import org.eclipse.swt.layout.GridLayout;\r
-import org.eclipse.swt.widgets.Composite;\r
-import org.eclipse.swt.widgets.Display;\r
-import org.eclipse.swt.widgets.Menu;\r
-import org.eclipse.ui.ISharedImages;\r
-import org.eclipse.ui.IWorkbenchPage;\r
-import org.eclipse.ui.IWorkbenchWindow;\r
-import org.eclipse.ui.PlatformUI;\r
-import org.eclipse.ui.part.ViewPart;\r
-\r
-/** SLC generic JCR Result tree view. */\r
-public class JcrResultTreeView extends ViewPart {\r
-       public final static String ID = ClientUiPlugin.ID + ".jcrResultTreeView";\r
-\r
-       private final static DateFormat dateFormat = new SimpleDateFormat(\r
-                       SlcUiConstants.DEFAULT_DISPLAY_DATE_TIME_FORMAT);\r
-\r
-       // private final static Log log =\r
-       // LogFactory.getLog(JcrResultTreeView.class);\r
-\r
-       /* DEPENDENCY INJECTION */\r
-       private Repository repository;\r
-       private Session session;\r
-\r
-       // This page widgets\r
-       private TreeViewer resultTreeViewer;\r
-       private TableViewer propertiesViewer;\r
-\r
-       private EventListener myResultsObserver = null;\r
-       private EventListener allResultsObserver = null;\r
-\r
-       // under My Results\r
-       private final static String[] observedNodeTypesUnderMyResult = {\r
-                       SlcTypes.SLC_TEST_RESULT, SlcTypes.SLC_RESULT_FOLDER,\r
-                       SlcTypes.SLC_MY_RESULT_ROOT_FOLDER };\r
-\r
-       private final static String[] observedNodeTypesUnderAllResults = {\r
-                       SlcTypes.SLC_TEST_RESULT, NodeType.NT_UNSTRUCTURED };\r
-\r
-       private boolean isResultFolder = false;\r
-\r
-       /**\r
-        * To be overridden to adapt size of form and result frames.\r
-        */\r
-       protected int[] getWeights() {\r
-               return new int[] { 70, 30 };\r
-       }\r
-\r
-       @Override\r
-       public void createPartControl(Composite parent) {\r
-               try {\r
-                       session = repository.login(NodeConstants.HOME_WORKSPACE);\r
-               } catch (RepositoryException e1) {\r
-                       throw new SlcException("Cannot log in to repository");\r
-               }\r
-\r
-               parent.setLayout(new FillLayout());\r
-               // Main layout\r
-               SashForm sashForm = new SashForm(parent, SWT.VERTICAL);\r
-               sashForm.setSashWidth(4);\r
-               sashForm.setLayout(new FillLayout());\r
-\r
-               // Create the tree on top of the view\r
-               Composite top = new Composite(sashForm, SWT.NONE);\r
-               GridLayout gl = new GridLayout(1, false);\r
-               top.setLayout(gl);\r
-               resultTreeViewer = createResultsTreeViewer(top);\r
-\r
-               // Create the property viewer on the bottom\r
-               Composite bottom = new Composite(sashForm, SWT.NONE);\r
-               bottom.setLayout(new GridLayout(1, false));\r
-               propertiesViewer = createPropertiesViewer(bottom);\r
-\r
-               sashForm.setWeights(getWeights());\r
-\r
-               setOrderedInput(resultTreeViewer);\r
-\r
-               // Initialize observer\r
-               try {\r
-                       ObservationManager observationManager = session.getWorkspace()\r
-                                       .getObservationManager();\r
-                       myResultsObserver = new MyResultsObserver(resultTreeViewer\r
-                                       .getTree().getDisplay());\r
-                       allResultsObserver = new AllResultsObserver(resultTreeViewer\r
-                                       .getTree().getDisplay());\r
-\r
-                       // observe tree changes under MyResults\r
-                       observationManager.addEventListener(myResultsObserver,\r
-                                       Event.NODE_ADDED | Event.NODE_REMOVED,\r
-                                       SlcJcrResultUtils.getMyResultsBasePath(session), true,\r
-                                       null, observedNodeTypesUnderMyResult, false);\r
-                       // observe tree changes under All results\r
-                       observationManager.addEventListener(allResultsObserver,\r
-                                       Event.NODE_ADDED | Event.NODE_REMOVED,\r
-                                       SlcJcrResultUtils.getSlcResultsBasePath(session), true,\r
-                                       null, observedNodeTypesUnderAllResults, false);\r
-               } catch (RepositoryException e) {\r
-                       throw new SlcException("Cannot register listeners", e);\r
-               }\r
-       }\r
-\r
-       /**\r
-        * Override default behaviour so that default defined order remains\r
-        * unchanged on first level of the tree\r
-        */\r
-       private void setOrderedInput(TreeViewer viewer) {\r
-               // Add specific ordering\r
-               viewer.setInput(null);\r
-               viewer.setComparator(null);\r
-               viewer.setInput(initializeResultTree());\r
-               viewer.setComparator(new ResultItemsComparator());\r
-       }\r
-\r
-       // The main tree viewer\r
-       protected TreeViewer createResultsTreeViewer(Composite parent) {\r
-               int style = SWT.BORDER | SWT.MULTI;\r
-\r
-               TreeViewer viewer = new TreeViewer(parent, style);\r
-               viewer.getTree().setLayoutData(\r
-                               new GridData(SWT.FILL, SWT.FILL, true, true));\r
-\r
-               viewer.setContentProvider(new ResultTreeContentProvider());\r
-\r
-               // Add label provider with label decorator\r
-               ResultTreeLabelProvider rtLblProvider = new ResultTreeLabelProvider();\r
-               ILabelDecorator decorator = ClientUiPlugin.getDefault().getWorkbench()\r
-                               .getDecoratorManager().getLabelDecorator();\r
-               viewer.setLabelProvider(new DecoratingLabelProvider(rtLblProvider,\r
-                               decorator));\r
-               viewer.addDoubleClickListener(new ViewDoubleClickListener());\r
-\r
-               // Override default behaviour to insure that 2 distincts results that\r
-               // have the same name will be correctly and distincly returned by\r
-               // corresponding TreeViewer.getSelection() method.\r
-               viewer.setComparer(new ResultItemsComparer());\r
-\r
-               // viewer.setLabelProvider(rtLblProvider);\r
-               getSite().setSelectionProvider(viewer);\r
-\r
-               // add drag & drop support\r
-               int operations = DND.DROP_COPY | DND.DROP_MOVE;\r
-               Transfer[] tt = new Transfer[] { TextTransfer.getInstance() };\r
-               viewer.addDragSupport(operations, tt, new ViewDragListener());\r
-               viewer.addDropSupport(operations, tt, new ViewDropListener(viewer));\r
-\r
-               // add context menu\r
-               MenuManager menuManager = new MenuManager();\r
-               Menu menu = menuManager.createContextMenu(viewer.getTree());\r
-               menuManager.addMenuListener(new IMenuListener() {\r
-                       public void menuAboutToShow(IMenuManager manager) {\r
-                               contextMenuAboutToShow(manager);\r
-                       }\r
-               });\r
-               viewer.getTree().setMenu(menu);\r
-               menuManager.setRemoveAllWhenShown(true);\r
-\r
-               getSite().registerContextMenu(menuManager, viewer);\r
-\r
-               // add change listener to display TestResult information in the property\r
-               // viewer\r
-               viewer.addSelectionChangedListener(new MySelectionChangedListener());\r
-               return viewer;\r
-       }\r
-\r
-       // Detailed property viewer\r
-       protected TableViewer createPropertiesViewer(Composite parent) {\r
-               propertiesViewer = new TableViewer(parent);\r
-               propertiesViewer.getTable().setLayoutData(\r
-                               new GridData(SWT.FILL, SWT.FILL, true, true));\r
-               propertiesViewer.getTable().setHeaderVisible(true);\r
-               propertiesViewer.setContentProvider(new PropertiesContentProvider());\r
-               TableViewerColumn col = new TableViewerColumn(propertiesViewer,\r
-                               SWT.NONE);\r
-               col.getColumn().setText("Name");\r
-               col.getColumn().setWidth(100);\r
-               col.setLabelProvider(new ColumnLabelProvider() {\r
-                       public String getText(Object element) {\r
-                               try {\r
-                                       String name = ((Property) element).getName();\r
-                                       String value = null;\r
-                                       if (SlcNames.SLC_TEST_CASE.equals(name))\r
-                                               value = "Test case";\r
-                                       else if (SlcNames.SLC_COMPLETED.equals(name))\r
-                                               value = "Completed on";\r
-                                       else if (SlcNames.SLC_SUCCESS.equals(name))\r
-                                               value = "Status";\r
-                                       else if (SlcNames.SLC_MESSAGE.equals(name))\r
-                                               value = "Message";\r
-                                       else if (SlcNames.SLC_ERROR_MESSAGE.equals(name))\r
-                                               value = "Error";\r
-                                       return value;\r
-                               } catch (RepositoryException e) {\r
-                                       throw new SlcException(\r
-                                                       "Unexpected exception in label provider", e);\r
-                               }\r
-                       }\r
-               });\r
-               col = new TableViewerColumn(propertiesViewer, SWT.NONE);\r
-               col.getColumn().setText("Value");\r
-               col.getColumn().setWidth(200);\r
-               col.setLabelProvider(new ColumnLabelProvider() {\r
-                       public String getText(Object element) {\r
-                               try {\r
-                                       Property property = (Property) element;\r
-                                       String name = property.getName();\r
-                                       String value = null;\r
-\r
-                                       if (SlcNames.SLC_TEST_CASE.equals(name)\r
-                                                       || SlcNames.SLC_ERROR_MESSAGE.equals(name)\r
-                                                       || SlcNames.SLC_MESSAGE.equals(name))\r
-                                               value = property.getValue().getString();\r
-                                       else if (SlcNames.SLC_COMPLETED.equals(name)) {\r
-                                               Calendar date = property.getValue().getDate();\r
-                                               value = dateFormat.format(date.getTime());\r
-                                       } else if (SlcNames.SLC_SUCCESS.equals(name)) {\r
-                                               if (property.getValue().getBoolean())\r
-                                                       value = "PASSED";\r
-                                               else {\r
-                                                       if (property.getParent().hasProperty(\r
-                                                                       SlcNames.SLC_ERROR_MESSAGE))\r
-                                                               value = "ERROR";\r
-                                                       else\r
-                                                               value = "FAILED";\r
-                                               }\r
-                                       }\r
-                                       return value;\r
-                               } catch (RepositoryException e) {\r
-                                       throw new SlcException(\r
-                                                       "Unexpected exception in label provider", e);\r
-                               }\r
-                       }\r
-               });\r
-               propertiesViewer.setInput(getViewSite());\r
-               return propertiesViewer;\r
-       }\r
-\r
-       /**\r
-        * Override to provide specific behaviour. Typically to enable the display\r
-        * of a result file.\r
-        * \r
-        * @param evt\r
-        */\r
-       protected void processDoubleClick(DoubleClickEvent evt) {\r
-               Object obj = ((IStructuredSelection) evt.getSelection())\r
-                               .getFirstElement();\r
-               try {\r
-                       if (obj instanceof SingleResultNode) {\r
-                               SingleResultNode srNode = (SingleResultNode) obj;\r
-                               Node node = srNode.getNode();\r
-                               // FIXME: open a default result editor\r
-                               if (node.isNodeType(SlcTypes.SLC_PROCESS)) {\r
-                                       IWorkbenchPage activePage = PlatformUI.getWorkbench()\r
-                                                       .getActiveWorkbenchWindow().getActivePage();\r
-                                       activePage.openEditor(\r
-                                                       new ProcessEditorInput(node.getPath()),\r
-                                                       ProcessEditor.ID);\r
-                               }\r
-                       }\r
-               } catch (Exception e) {\r
-                       throw new SlcException("Cannot open " + obj, e);\r
-               }\r
-       }\r
-\r
-       @Override\r
-       public void setFocus() {\r
-       }\r
-\r
-       /**\r
-        * refreshes the passed resultParent and its corresponding subtree. It\r
-        * refreshes the whole viewer if null is passed.\r
-        * \r
-        * @param ResultParent\r
-        * \r
-        */\r
-       public void refresh(ResultParent resultParent) {\r
-               if (resultParent == null) {\r
-                       if (!resultTreeViewer.getTree().isDisposed()) {\r
-                               TreePath[] tps = resultTreeViewer.getExpandedTreePaths();\r
-                               setOrderedInput(resultTreeViewer);\r
-                               resultTreeViewer.setExpandedTreePaths(tps);\r
-                       } else\r
-                               setOrderedInput(resultTreeViewer);\r
-               } else {\r
-                       if (resultParent instanceof ParentNodeFolder) {\r
-                               ParentNodeFolder currFolder = (ParentNodeFolder) resultParent;\r
-                               jcrRefresh(currFolder.getNode());\r
-                               currFolder.forceFullRefresh();\r
-                       }\r
-                       // FIXME: specific refresh does not work\r
-                       // resultTreeViewer.refresh(resultParent, true);\r
-                       refresh(null);\r
-               }\r
-       }\r
-\r
-       /**\r
-        * refreshes the passed node and its corresponding subtree.\r
-        * \r
-        * @param node\r
-        *            cannot be null\r
-        * \r
-        */\r
-       public boolean jcrRefresh(Node node) {\r
-               // if (log.isDebugEnabled())\r
-               // log.debug(" JCR refreshing " + node + "...");\r
-               // Thread.dumpStack();\r
-               boolean isPassed = true;\r
-               try {\r
-                       if (node.isNodeType(SlcTypes.SLC_TEST_RESULT)) {\r
-                               isPassed = node.getNode(SlcNames.SLC_AGGREGATED_STATUS)\r
-                                               .getProperty(SlcNames.SLC_SUCCESS).getBoolean();\r
-                       } else if (node.isNodeType(SlcTypes.SLC_RESULT_FOLDER)) {\r
-                               NodeIterator ni = node.getNodes();\r
-                               while (ni.hasNext()) {\r
-                                       Node currChild = ni.nextNode();\r
-                                       isPassed = isPassed & jcrRefresh(currChild);\r
-                               }\r
-                               if (isPassed != node.getNode(SlcNames.SLC_AGGREGATED_STATUS)\r
-                                               .getProperty(SlcNames.SLC_SUCCESS).getBoolean()) {\r
-                                       node.getNode(SlcNames.SLC_AGGREGATED_STATUS).setProperty(\r
-                                                       SlcNames.SLC_SUCCESS, isPassed);\r
-                                       node.getSession().save();\r
-                                       return isPassed;\r
-                               }\r
-                       } else\r
-                               ; // do nothing\r
-               } catch (RepositoryException e) {\r
-                       throw new SlcException("Cannot register listeners", e);\r
-               }\r
-               return isPassed;\r
-       }\r
-\r
-       private ResultParent[] initializeResultTree() {\r
-               try {\r
-                       // Force initialization of the tree structure if needed\r
-                       SlcJcrResultUtils.getSlcResultsParentNode(session);\r
-                       SlcJcrResultUtils.getMyResultParentNode(session);\r
-                       // Remove yesterday and last 7 days virtual folders\r
-                       // ResultParent[] roots = new ResultParent[5];\r
-                       ResultParent[] roots = new ResultParent[3];\r
-\r
-                       // My results\r
-                       roots[0] = new ParentNodeFolder(null,\r
-                                       SlcJcrResultUtils.getMyResultParentNode(session),\r
-                                       SlcUiConstants.DEFAULT_MY_RESULTS_FOLDER_LABEL);\r
-\r
-                       // today\r
-                       Calendar cal = Calendar.getInstance();\r
-                       String relPath = JcrUtils.dateAsPath(cal);\r
-                       List<String> datePathes = new ArrayList<String>();\r
-                       datePathes.add(relPath);\r
-                       roots[1] = new VirtualFolder(null,\r
-                                       ResultParentUtils.getResultsForDates(session, datePathes),\r
-                                       "Today");\r
-\r
-                       // // Yesterday\r
-                       // cal = Calendar.getInstance();\r
-                       // cal.add(Calendar.DAY_OF_YEAR, -1);\r
-                       // relPath = JcrUtils.dateAsPath(cal);\r
-                       // datePathes = new ArrayList<String>();\r
-                       // datePathes.add(relPath);\r
-                       // roots[2] = new VirtualFolder(null,\r
-                       // ResultParentUtils.getResultsForDates(session, datePathes),\r
-                       // "Yesterday");\r
-                       // // Last 7 days\r
-                       //\r
-                       // cal = Calendar.getInstance();\r
-                       // datePathes = new ArrayList<String>();\r
-                       //\r
-                       // for (int i = 0; i < 7; i++) {\r
-                       // cal.add(Calendar.DAY_OF_YEAR, -i);\r
-                       // relPath = JcrUtils.dateAsPath(cal);\r
-                       // datePathes.add(relPath);\r
-                       // }\r
-                       // roots[3] = new VirtualFolder(null,\r
-                       // ResultParentUtils.getResultsForDates(session, datePathes),\r
-                       // "Last 7 days");\r
-\r
-                       // All results\r
-                       Node otherResultsPar = session.getNode(SlcJcrResultUtils\r
-                                       .getSlcResultsBasePath(session));\r
-                       // roots[4] = new ParentNodeFolder(null, otherResultsPar,\r
-                       // "All results");\r
-                       roots[2] = new ParentNodeFolder(null, otherResultsPar,\r
-                                       "All results");\r
-                       return roots;\r
-               } catch (RepositoryException re) {\r
-                       throw new SlcException(\r
-                                       "Unexpected error while initializing ResultTree.", re);\r
-               }\r
-       }\r
-\r
-       // Manage context menu\r
-       /**\r
-        * Defines the commands that will pop up in the context menu.\r
-        **/\r
-       protected void contextMenuAboutToShow(IMenuManager menuManager) {\r
-               IWorkbenchWindow window = ClientUiPlugin.getDefault().getWorkbench()\r
-                               .getActiveWorkbenchWindow();\r
-\r
-               IStructuredSelection selection = (IStructuredSelection) resultTreeViewer\r
-                               .getSelection();\r
-               boolean canAddSubfolder = false;\r
-               boolean canRenamefolder = false;\r
-               boolean isSingleResultNode = false;\r
-               boolean isUnderMyResult = false;\r
-               boolean validMultipleDelete = false;\r
-               try {\r
-\r
-                       // Building conditions\r
-                       if (selection.size() == 1) {\r
-                               Object obj = selection.getFirstElement();\r
-                               if (obj instanceof SingleResultNode)\r
-                                       isSingleResultNode = true;\r
-                               else if (obj instanceof ParentNodeFolder) {\r
-                                       Node cNode = ((ParentNodeFolder) obj).getNode();\r
-                                       if (cNode.isNodeType(SlcTypes.SLC_RESULT_FOLDER)) {\r
-                                               canAddSubfolder = true;\r
-                                               canRenamefolder = true;\r
-                                               isUnderMyResult = true;\r
-                                       } else if (cNode\r
-                                                       .isNodeType(SlcTypes.SLC_MY_RESULT_ROOT_FOLDER)) {\r
-                                               canAddSubfolder = true;\r
-                                       }\r
-                               }\r
-                       } else {\r
-                               @SuppressWarnings("rawtypes")\r
-                               Iterator it = selection.iterator();\r
-                               multicheck: while (it.hasNext()) {\r
-                                       validMultipleDelete = true;\r
-                                       Object obj = it.next();\r
-                                       if (obj instanceof SingleResultNode)\r
-                                               continue multicheck;\r
-                                       else if (obj instanceof ParentNodeFolder) {\r
-                                               Node cNode = ((ParentNodeFolder) obj).getNode();\r
-                                               if (cNode.isNodeType(SlcTypes.SLC_RESULT_FOLDER))\r
-                                                       continue multicheck;\r
-                                               else {\r
-                                                       validMultipleDelete = false;\r
-                                                       break multicheck;\r
-                                               }\r
-                                       } else {\r
-                                               validMultipleDelete = false;\r
-                                               break multicheck;\r
-                                       }\r
-                               }\r
-                       }\r
-               } catch (RepositoryException re) {\r
-                       throw new SlcException(\r
-                                       "unexpected error while building condition for context menu",\r
-                                       re);\r
-               }\r
-\r
-               // Effective Refresh\r
-               CommandUtils.refreshCommand(menuManager, window,\r
-                               RefreshJcrResultTreeView.ID,\r
-                               RefreshJcrResultTreeView.DEFAULT_LABEL,\r
-                               RefreshJcrResultTreeView.DEFAULT_IMG_DESCRIPTOR, true);\r
-\r
-               CommandUtils.refreshCommand(menuManager, window, DeleteItems.ID,\r
-                               DeleteItems.DEFAULT_LABEL, DeleteItems.DEFAULT_IMG_DESCRIPTOR,\r
-                               isUnderMyResult || isSingleResultNode || validMultipleDelete);\r
-\r
-               CommandUtils.refreshCommand(menuManager, window, AddResultFolder.ID,\r
-                               AddResultFolder.DEFAULT_LABEL,\r
-                               ClientUiPlugin.getDefault().getWorkbench().getSharedImages()\r
-                                               .getImageDescriptor(ISharedImages.IMG_OBJ_ADD),\r
-                               canAddSubfolder);\r
-\r
-               CommandUtils.refreshCommand(menuManager, window, RenameResultFolder.ID,\r
-                               RenameResultFolder.DEFAULT_LABEL,\r
-                               RenameResultFolder.DEFAULT_IMG_DESCRIPTOR, canRenamefolder);\r
-\r
-               // Command removed for the time being.\r
-               CommandUtils.refreshCommand(menuManager, window, RenameResultNode.ID,\r
-                               RenameResultNode.DEFAULT_LABEL,\r
-                               RenameResultNode.DEFAULT_IMG_DESCRIPTOR, false);\r
-\r
-               // Test to be removed\r
-               // If you use this pattern, do not forget to call\r
-               // menuManager.setRemoveAllWhenShown(true);\r
-               // when creating the menuManager\r
-\r
-               // menuManager.add(new Action("Test") {\r
-               // public void run() {\r
-               // log.debug("do something");\r
-               // }\r
-               // });\r
-       }\r
-\r
-       /* INNER CLASSES */\r
-       class ViewDragListener implements DragSourceListener {\r
-\r
-               public void dragStart(DragSourceEvent event) {\r
-                       // Check if the drag action should start.\r
-                       IStructuredSelection selection = (IStructuredSelection) resultTreeViewer\r
-                                       .getSelection();\r
-                       boolean doIt = false;\r
-\r
-                       // FIXME clean this code.\r
-                       try {\r
-                               if (selection.size() == 1) {\r
-                                       Object obj = selection.getFirstElement();\r
-                                       if (obj instanceof ResultFolder) {\r
-                                               Node tNode = ((ResultFolder) obj).getNode();\r
-                                               if (tNode.getPrimaryNodeType().isNodeType(\r
-                                                               SlcTypes.SLC_RESULT_FOLDER)) {\r
-                                                       doIt = true;\r
-                                                       isResultFolder = true;\r
-                                               }\r
-                                       } else\r
-                                               isResultFolder = false;\r
-                               } else\r
-                                       isResultFolder = false;\r
-\r
-                               if (!isResultFolder) {\r
-                                       @SuppressWarnings("rawtypes")\r
-                                       Iterator it = selection.iterator();\r
-                                       while (it.hasNext()) {\r
-                                               Object obj = it.next();\r
-                                               if (obj instanceof SingleResultNode) {\r
-                                                       Node tNode = ((SingleResultNode) obj).getNode();\r
-                                                       if (tNode.getPrimaryNodeType().isNodeType(\r
-                                                                       SlcTypes.SLC_TEST_RESULT)) {\r
-                                                               doIt = true;\r
-                                                       }\r
-                                               }\r
-                                       }\r
-                               }\r
-\r
-                       } catch (RepositoryException re) {\r
-                               throw new SlcException(\r
-                                               "unexpected error while validating drag source", re);\r
-                       }\r
-                       event.doit = doIt;\r
-               }\r
-\r
-               public void dragSetData(DragSourceEvent event) {\r
-                       IStructuredSelection selection = (IStructuredSelection) resultTreeViewer\r
-                                       .getSelection();\r
-\r
-                       try {\r
-                               // specific case of a result folder\r
-                               if (isResultFolder) {\r
-                                       Object obj = selection.getFirstElement();\r
-                                       event.data = ((ResultFolder) obj).getNode().getIdentifier();\r
-                               } else {\r
-                                       @SuppressWarnings("rawtypes")\r
-                                       Iterator it = selection.iterator();\r
-                                       StringBuilder nodes = new StringBuilder();\r
-                                       while (it.hasNext()) {\r
-                                               Object obj = it.next();\r
-                                               if (obj instanceof SingleResultNode) {\r
-                                                       Node tNode = ((SingleResultNode) obj).getNode();\r
-                                                       if (tNode.getPrimaryNodeType().isNodeType(\r
-                                                                       SlcTypes.SLC_TEST_RESULT)) {\r
-                                                               nodes.append(tNode.getIdentifier()).append(";");\r
-                                                       }\r
-                                               }\r
-                                       }\r
-                                       event.data = nodes.toString();\r
-                               }\r
-                       } catch (RepositoryException re) {\r
-                               throw new SlcException("unexpected error while setting data",\r
-                                               re);\r
-                       }\r
-               }\r
-\r
-               public void dragFinished(DragSourceEvent event) {\r
-                       // refresh is done via observer\r
-               }\r
-       }\r
-\r
-       // Implementation of the Drop Listener\r
-       protected class ViewDropListener extends ViewerDropAdapter {\r
-               private Node targetParentNode = null;\r
-\r
-               public ViewDropListener(Viewer viewer) {\r
-                       super(viewer);\r
-               }\r
-\r
-               @Override\r
-               public boolean validateDrop(Object target, int operation,\r
-                               TransferData transferType) {\r
-                       boolean validDrop = false;\r
-                       try {\r
-                               // We can only drop under myResults\r
-                               Node tpNode = null;\r
-                               if (target instanceof SingleResultNode) {\r
-                                       Node currNode = ((SingleResultNode) target).getNode();\r
-                                       String pPath = currNode.getParent().getPath();\r
-                                       if (pPath.startsWith(SlcJcrResultUtils\r
-                                                       .getMyResultsBasePath(session)))\r
-                                               tpNode = currNode.getParent();\r
-                               } else if (target instanceof ResultFolder) {\r
-                                       tpNode = ((ResultFolder) target).getNode();\r
-                               } else if (target instanceof ParentNodeFolder) {\r
-                                       Node node = ((ParentNodeFolder) target).getNode();\r
-                                       if (node.isNodeType(SlcTypes.SLC_MY_RESULT_ROOT_FOLDER))\r
-                                               tpNode = ((ParentNodeFolder) target).getNode();\r
-                               }\r
-\r
-                               if (tpNode != null) {\r
-                                       targetParentNode = tpNode;\r
-                                       validDrop = true;\r
-                               }\r
-                       } catch (RepositoryException re) {\r
-                               throw new SlcException(\r
-                                               "unexpected error while validating drop target", re);\r
-                       }\r
-                       return validDrop;\r
-               }\r
-\r
-               @Override\r
-               public boolean performDrop(Object data) {\r
-                       // clear selection to prevent unwanted scrolling of the UI\r
-                       resultTreeViewer.setSelection(null);\r
-                       try {\r
-                               if (isResultFolder) {\r
-                                       // Sanity check : we cannot move a folder to one of its sub\r
-                                       // folder or neither move an object in the same parent\r
-                                       // folder\r
-                                       Node source = session.getNodeByIdentifier((String) data);\r
-                                       if (targetParentNode.getPath().startsWith(source.getPath())\r
-                                                       || source.getParent().getPath()\r
-                                                                       .equals(targetParentNode.getPath()))\r
-                                               return false;\r
-\r
-                                       // Move\r
-                                       String sourcePath = source.getPath();\r
-                                       String destPath = targetParentNode.getPath() + "/"\r
-                                                       + source.getName();\r
-                                       session.move(sourcePath, destPath);\r
-                                       // Update passed status of the parent source Node\r
-                                       ResultParentUtils.updatePassedStatus(\r
-                                                       session.getNode(JcrUtils.parentPath(sourcePath)),\r
-                                                       true);\r
-                                       // Node target = session.getNode(destPath);\r
-                                       session.save();\r
-                                       return true;\r
-                               }\r
-\r
-                               String[] datas = ((String) data).split(";");\r
-                               nodesToCopy: for (String id : datas) {\r
-\r
-                                       Node source = session.getNodeByIdentifier(id);\r
-                                       String name;\r
-                                       if (source.hasProperty(Property.JCR_TITLE))\r
-                                               name = source.getProperty(Property.JCR_TITLE)\r
-                                                               .getString();\r
-                                       else if (source.hasProperty(SlcNames.SLC_TEST_CASE))\r
-                                               name = source.getProperty(SlcNames.SLC_TEST_CASE)\r
-                                                               .getString();\r
-                                       else\r
-                                               name = source.getName();\r
-\r
-                                       // Check if another copy of the same test instance already\r
-                                       // exists at target\r
-                                       NodeIterator ni = targetParentNode.getNodes();\r
-                                       String slcUid = source.getProperty(SlcNames.SLC_UUID)\r
-                                                       .getString();\r
-                                       while (ni.hasNext()) {\r
-                                               Node curr = ni.nextNode();\r
-                                               if (curr.hasProperty(SlcNames.SLC_UUID)\r
-                                                               && slcUid.equals(curr.getProperty(\r
-                                                                               SlcNames.SLC_UUID).getString())) {\r
-                                                       MessageDialog\r
-                                                                       .openWarning(\r
-                                                                                       PlatformUI.getWorkbench()\r
-                                                                                                       .getDisplay()\r
-                                                                                                       .getActiveShell(),\r
-                                                                                       "Duplicated instance.",\r
-                                                                                       "An instance of the same test case ("\r
-                                                                                                       + name\r
-                                                                                                       + ") exists at destination.\n "\r
-                                                                                                       + "This item will not be neither copied nor moved.");\r
-                                                       continue nodesToCopy;\r
-\r
-                                               }\r
-                                       }\r
-\r
-                                       Node target;\r
-                                       boolean passedStatus = false;\r
-                                       if (source.hasNode(SlcNames.SLC_AGGREGATED_STATUS))\r
-                                               passedStatus = source\r
-                                                               .getNode(SlcNames.SLC_AGGREGATED_STATUS)\r
-                                                               .getProperty(SlcNames.SLC_SUCCESS).getBoolean();\r
-\r
-                                       boolean isActionUnderMyResult = source.getPath()\r
-                                                       .startsWith(\r
-                                                                       SlcJcrResultUtils\r
-                                                                                       .getMyResultsBasePath(session));\r
-\r
-                                       if (!isActionUnderMyResult) {// Copy\r
-                                               target = targetParentNode.addNode(source.getName(),\r
-                                                               source.getPrimaryNodeType().getName());\r
-                                               JcrUtils.copy(source, target);\r
-                                       } else {// move\r
-                                               String sourcePath = source.getPath();\r
-                                               String destPath = targetParentNode.getPath() + "/"\r
-                                                               + name;\r
-                                               session.move(sourcePath, destPath);\r
-                                               // Update passed status of the parent source Node\r
-                                               ResultParentUtils\r
-                                                               .updatePassedStatus(session.getNode(JcrUtils\r
-                                                                               .parentPath(sourcePath)), true);\r
-                                               target = session.getNode(destPath);\r
-\r
-                                       }\r
-                                       if (!target.isNodeType(NodeType.MIX_TITLE))\r
-                                               target.addMixin(NodeType.MIX_TITLE);\r
-                                       target.setProperty(Property.JCR_TITLE, name);\r
-                                       ResultParentUtils.updatePassedStatus(target.getParent(),\r
-                                                       passedStatus);\r
-                                       session.save();\r
-                               }\r
-                       } catch (RepositoryException re) {\r
-                               throw new SlcException(\r
-                                               "unexpected error while copying dropped node", re);\r
-\r
-                       }\r
-                       return true;\r
-               }\r
-       }\r
-\r
-       class MyResultsObserver extends AsyncUiEventListener {\r
-\r
-               public MyResultsObserver(Display display) {\r
-                       super(display);\r
-               }\r
-\r
-               @Override\r
-               protected Boolean willProcessInUiThread(List<Event> events)\r
-                               throws RepositoryException {\r
-                       // unfiltered for the time being\r
-                       return true;\r
-               }\r
-\r
-               protected void onEventInUiThread(List<Event> events)\r
-                               throws RepositoryException {\r
-                       List<Node> nodesToRefresh = new ArrayList<Node>();\r
-\r
-                       for (Event event : events) {\r
-                               String parPath = JcrUtils.parentPath(event.getPath());\r
-                               if (session.nodeExists(parPath)) {\r
-                                       Node node = session.getNode(parPath);\r
-                                       if (!nodesToRefresh.contains(node)) {\r
-                                               nodesToRefresh.add(node);\r
-                                       }\r
-                               }\r
-                       }\r
-\r
-                       // Update check nodes\r
-                       for (Node node : nodesToRefresh)\r
-                               jcrRefresh(node);\r
-                       refresh(null);\r
-               }\r
-       }\r
-\r
-       class AllResultsObserver extends AsyncUiEventListener {\r
-\r
-               public AllResultsObserver(Display display) {\r
-                       super(display);\r
-               }\r
-\r
-               @Override\r
-               protected Boolean willProcessInUiThread(List<Event> events)\r
-                               throws RepositoryException {\r
-                       // unfiltered for the time being\r
-                       return true;\r
-               }\r
-\r
-               protected void onEventInUiThread(List<Event> events)\r
-                               throws RepositoryException {\r
-                       refresh(null);\r
-                       // if (lastSelectedSourceElementParent != null)\r
-                       // refresh(lastSelectedSourceElementParent);\r
-               }\r
-       }\r
-\r
-       class PropertiesContentProvider implements IStructuredContentProvider {\r
-\r
-               public void dispose() {\r
-               }\r
-\r
-               public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {\r
-               }\r
-\r
-               public Object[] getElements(Object inputElement) {\r
-                       try {\r
-                               if (inputElement instanceof Node) {\r
-                                       Node node = (Node) inputElement;\r
-                                       if (node.isNodeType(SlcTypes.SLC_TEST_RESULT)) {\r
-                                               List<Property> props = new ArrayList<Property>();\r
-                                               if (node.hasProperty(SlcNames.SLC_TEST_CASE))\r
-                                                       props.add(node.getProperty(SlcNames.SLC_TEST_CASE));\r
-                                               if (node.hasProperty(SlcNames.SLC_COMPLETED))\r
-                                                       props.add(node.getProperty(SlcNames.SLC_COMPLETED));\r
-                                               if (node.hasNode(SlcNames.SLC_AGGREGATED_STATUS)) {\r
-                                                       Node status = node\r
-                                                                       .getNode(SlcNames.SLC_AGGREGATED_STATUS);\r
-                                                       props.add(status.getProperty(SlcNames.SLC_SUCCESS));\r
-                                                       if (status.hasProperty(SlcNames.SLC_MESSAGE))\r
-                                                               props.add(status\r
-                                                                               .getProperty(SlcNames.SLC_MESSAGE));\r
-                                                       if (status.hasProperty(SlcNames.SLC_ERROR_MESSAGE))\r
-                                                               props.add(status\r
-                                                                               .getProperty(SlcNames.SLC_ERROR_MESSAGE));\r
-                                               }\r
-                                               return props.toArray();\r
-                                       }\r
-                               }\r
-                               return new Object[] {};\r
-\r
-                       } catch (RepositoryException e) {\r
-                               throw new SlcException("Cannot get element for "\r
-                                               + inputElement, e);\r
-                       }\r
-               }\r
-       }\r
-\r
-       class MySelectionChangedListener implements ISelectionChangedListener {\r
-\r
-               public void selectionChanged(SelectionChangedEvent event) {\r
-                       if (!event.getSelection().isEmpty()) {\r
-                               IStructuredSelection sel = (IStructuredSelection) event\r
-                                               .getSelection();\r
-                               ResultParent firstItem = (ResultParent) sel.getFirstElement();\r
-                               if (firstItem instanceof SingleResultNode)\r
-                                       propertiesViewer.setInput(((SingleResultNode) firstItem)\r
-                                                       .getNode());\r
-                               else\r
-                                       propertiesViewer.setInput(null);\r
-                               // update cache for Drag & drop\r
-                               // lastSelectedTargetElement = firstItem;\r
-                               // lastSelectedSourceElement = firstItem;\r
-                               // lastSelectedSourceElementParent = (ResultParent) firstItem\r
-                               // .getParent();\r
-                               // String pPath = "";\r
-                               // try {\r
-                               //\r
-                               // if (firstItem instanceof ParentNodeFolder)\r
-                               // pPath = ((ParentNodeFolder) firstItem).getNode()\r
-                               // .getPath();\r
-                               // else if (firstItem instanceof SingleResultNode)\r
-                               // pPath = ((SingleResultNode) firstItem).getNode()\r
-                               // .getPath();\r
-                               // } catch (RepositoryException e) {\r
-                               // throw new SlcException(\r
-                               // "Unexpected error while checking parent UI tree", e);\r
-                               // }\r
-                               // if ((pPath.startsWith(SlcJcrResultUtils\r
-                               // .getMyResultsBasePath(session))))\r
-                               // isActionUnderMyResult = true;\r
-                               // else\r
-                               // isActionUnderMyResult = false;\r
-                       }\r
-               }\r
-       }\r
-\r
-       class ViewDoubleClickListener implements IDoubleClickListener {\r
-               public void doubleClick(DoubleClickEvent evt) {\r
-                       processDoubleClick(evt);\r
-               }\r
-\r
-       }\r
-\r
-       /* DEPENDENCY INJECTION */\r
-       public void dispose() {\r
-               // JcrUtils.unregisterQuietly(session.getWorkspace(), resultsObserver);\r
-               JcrUtils.logoutQuietly(session);\r
-               super.dispose();\r
-       }\r
-\r
-       public void setRepository(Repository repository) {\r
-               this.repository = repository;\r
-       }\r
-}
\ No newline at end of file
+package org.argeo.slc.client.ui.views;
+
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.jcr.Node;
+import javax.jcr.NodeIterator;
+import javax.jcr.Property;
+import javax.jcr.Repository;
+import javax.jcr.RepositoryException;
+import javax.jcr.Session;
+import javax.jcr.nodetype.NodeType;
+import javax.jcr.observation.Event;
+import javax.jcr.observation.EventListener;
+import javax.jcr.observation.ObservationManager;
+
+import org.argeo.api.NodeConstants;
+import org.argeo.cms.ui.workbench.util.CommandUtils;
+import org.argeo.eclipse.ui.jcr.AsyncUiEventListener;
+import org.argeo.jcr.JcrUtils;
+import org.argeo.slc.SlcException;
+import org.argeo.slc.SlcNames;
+import org.argeo.slc.SlcTypes;
+import org.argeo.slc.client.ui.ClientUiPlugin;
+import org.argeo.slc.client.ui.SlcUiConstants;
+import org.argeo.slc.client.ui.commands.AddResultFolder;
+import org.argeo.slc.client.ui.commands.DeleteItems;
+import org.argeo.slc.client.ui.commands.RefreshJcrResultTreeView;
+import org.argeo.slc.client.ui.commands.RenameResultFolder;
+import org.argeo.slc.client.ui.commands.RenameResultNode;
+import org.argeo.slc.client.ui.editors.ProcessEditor;
+import org.argeo.slc.client.ui.editors.ProcessEditorInput;
+import org.argeo.slc.client.ui.model.ParentNodeFolder;
+import org.argeo.slc.client.ui.model.ResultFolder;
+import org.argeo.slc.client.ui.model.ResultItemsComparator;
+import org.argeo.slc.client.ui.model.ResultItemsComparer;
+import org.argeo.slc.client.ui.model.ResultParent;
+import org.argeo.slc.client.ui.model.ResultParentUtils;
+import org.argeo.slc.client.ui.model.SingleResultNode;
+import org.argeo.slc.client.ui.model.VirtualFolder;
+import org.argeo.slc.client.ui.providers.ResultTreeContentProvider;
+import org.argeo.slc.client.ui.providers.ResultTreeLabelProvider;
+import org.argeo.slc.jcr.SlcJcrResultUtils;
+import org.eclipse.jface.action.IMenuListener;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.viewers.ColumnLabelProvider;
+import org.eclipse.jface.viewers.DecoratingLabelProvider;
+import org.eclipse.jface.viewers.DoubleClickEvent;
+import org.eclipse.jface.viewers.IDoubleClickListener;
+import org.eclipse.jface.viewers.ILabelDecorator;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.IStructuredContentProvider;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.jface.viewers.TableViewerColumn;
+import org.eclipse.jface.viewers.TreePath;
+import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.jface.viewers.ViewerDropAdapter;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.SashForm;
+import org.eclipse.swt.dnd.DND;
+import org.eclipse.swt.dnd.DragSourceEvent;
+import org.eclipse.swt.dnd.DragSourceListener;
+import org.eclipse.swt.dnd.TextTransfer;
+import org.eclipse.swt.dnd.Transfer;
+import org.eclipse.swt.dnd.TransferData;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Menu;
+import org.eclipse.ui.ISharedImages;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.part.ViewPart;
+
+/** SLC generic JCR Result tree view. */
+public class JcrResultTreeView extends ViewPart {
+       public final static String ID = ClientUiPlugin.ID + ".jcrResultTreeView";
+
+       private final static DateFormat dateFormat = new SimpleDateFormat(
+                       SlcUiConstants.DEFAULT_DISPLAY_DATE_TIME_FORMAT);
+
+       // private final static Log log =
+       // LogFactory.getLog(JcrResultTreeView.class);
+
+       /* DEPENDENCY INJECTION */
+       private Repository repository;
+       private Session session;
+
+       // This page widgets
+       private TreeViewer resultTreeViewer;
+       private TableViewer propertiesViewer;
+
+       private EventListener myResultsObserver = null;
+       private EventListener allResultsObserver = null;
+
+       // under My Results
+       private final static String[] observedNodeTypesUnderMyResult = {
+                       SlcTypes.SLC_TEST_RESULT, SlcTypes.SLC_RESULT_FOLDER,
+                       SlcTypes.SLC_MY_RESULT_ROOT_FOLDER };
+
+       private final static String[] observedNodeTypesUnderAllResults = {
+                       SlcTypes.SLC_TEST_RESULT, NodeType.NT_UNSTRUCTURED };
+
+       private boolean isResultFolder = false;
+
+       /**
+        * To be overridden to adapt size of form and result frames.
+        */
+       protected int[] getWeights() {
+               return new int[] { 70, 30 };
+       }
+
+       @Override
+       public void createPartControl(Composite parent) {
+               try {
+                       session = repository.login(NodeConstants.HOME_WORKSPACE);
+               } catch (RepositoryException e1) {
+                       throw new SlcException("Cannot log in to repository");
+               }
+
+               parent.setLayout(new FillLayout());
+               // Main layout
+               SashForm sashForm = new SashForm(parent, SWT.VERTICAL);
+               sashForm.setSashWidth(4);
+               sashForm.setLayout(new FillLayout());
+
+               // Create the tree on top of the view
+               Composite top = new Composite(sashForm, SWT.NONE);
+               GridLayout gl = new GridLayout(1, false);
+               top.setLayout(gl);
+               resultTreeViewer = createResultsTreeViewer(top);
+
+               // Create the property viewer on the bottom
+               Composite bottom = new Composite(sashForm, SWT.NONE);
+               bottom.setLayout(new GridLayout(1, false));
+               propertiesViewer = createPropertiesViewer(bottom);
+
+               sashForm.setWeights(getWeights());
+
+               setOrderedInput(resultTreeViewer);
+
+               // Initialize observer
+               try {
+                       ObservationManager observationManager = session.getWorkspace()
+                                       .getObservationManager();
+                       myResultsObserver = new MyResultsObserver(resultTreeViewer
+                                       .getTree().getDisplay());
+                       allResultsObserver = new AllResultsObserver(resultTreeViewer
+                                       .getTree().getDisplay());
+
+                       // observe tree changes under MyResults
+                       observationManager.addEventListener(myResultsObserver,
+                                       Event.NODE_ADDED | Event.NODE_REMOVED,
+                                       SlcJcrResultUtils.getMyResultsBasePath(session), true,
+                                       null, observedNodeTypesUnderMyResult, false);
+                       // observe tree changes under All results
+                       observationManager.addEventListener(allResultsObserver,
+                                       Event.NODE_ADDED | Event.NODE_REMOVED,
+                                       SlcJcrResultUtils.getSlcResultsBasePath(session), true,
+                                       null, observedNodeTypesUnderAllResults, false);
+               } catch (RepositoryException e) {
+                       throw new SlcException("Cannot register listeners", e);
+               }
+       }
+
+       /**
+        * Override default behaviour so that default defined order remains
+        * unchanged on first level of the tree
+        */
+       private void setOrderedInput(TreeViewer viewer) {
+               // Add specific ordering
+               viewer.setInput(null);
+               viewer.setComparator(null);
+               viewer.setInput(initializeResultTree());
+               viewer.setComparator(new ResultItemsComparator());
+       }
+
+       // The main tree viewer
+       protected TreeViewer createResultsTreeViewer(Composite parent) {
+               int style = SWT.BORDER | SWT.MULTI;
+
+               TreeViewer viewer = new TreeViewer(parent, style);
+               viewer.getTree().setLayoutData(
+                               new GridData(SWT.FILL, SWT.FILL, true, true));
+
+               viewer.setContentProvider(new ResultTreeContentProvider());
+
+               // Add label provider with label decorator
+               ResultTreeLabelProvider rtLblProvider = new ResultTreeLabelProvider();
+               ILabelDecorator decorator = ClientUiPlugin.getDefault().getWorkbench()
+                               .getDecoratorManager().getLabelDecorator();
+               viewer.setLabelProvider(new DecoratingLabelProvider(rtLblProvider,
+                               decorator));
+               viewer.addDoubleClickListener(new ViewDoubleClickListener());
+
+               // Override default behaviour to insure that 2 distincts results that
+               // have the same name will be correctly and distincly returned by
+               // corresponding TreeViewer.getSelection() method.
+               viewer.setComparer(new ResultItemsComparer());
+
+               // viewer.setLabelProvider(rtLblProvider);
+               getSite().setSelectionProvider(viewer);
+
+               // add drag & drop support
+               int operations = DND.DROP_COPY | DND.DROP_MOVE;
+               Transfer[] tt = new Transfer[] { TextTransfer.getInstance() };
+               viewer.addDragSupport(operations, tt, new ViewDragListener());
+               viewer.addDropSupport(operations, tt, new ViewDropListener(viewer));
+
+               // add context menu
+               MenuManager menuManager = new MenuManager();
+               Menu menu = menuManager.createContextMenu(viewer.getTree());
+               menuManager.addMenuListener(new IMenuListener() {
+                       public void menuAboutToShow(IMenuManager manager) {
+                               contextMenuAboutToShow(manager);
+                       }
+               });
+               viewer.getTree().setMenu(menu);
+               menuManager.setRemoveAllWhenShown(true);
+
+               getSite().registerContextMenu(menuManager, viewer);
+
+               // add change listener to display TestResult information in the property
+               // viewer
+               viewer.addSelectionChangedListener(new MySelectionChangedListener());
+               return viewer;
+       }
+
+       // Detailed property viewer
+       protected TableViewer createPropertiesViewer(Composite parent) {
+               propertiesViewer = new TableViewer(parent);
+               propertiesViewer.getTable().setLayoutData(
+                               new GridData(SWT.FILL, SWT.FILL, true, true));
+               propertiesViewer.getTable().setHeaderVisible(true);
+               propertiesViewer.setContentProvider(new PropertiesContentProvider());
+               TableViewerColumn col = new TableViewerColumn(propertiesViewer,
+                               SWT.NONE);
+               col.getColumn().setText("Name");
+               col.getColumn().setWidth(100);
+               col.setLabelProvider(new ColumnLabelProvider() {
+                       public String getText(Object element) {
+                               try {
+                                       String name = ((Property) element).getName();
+                                       String value = null;
+                                       if (SlcNames.SLC_TEST_CASE.equals(name))
+                                               value = "Test case";
+                                       else if (SlcNames.SLC_COMPLETED.equals(name))
+                                               value = "Completed on";
+                                       else if (SlcNames.SLC_SUCCESS.equals(name))
+                                               value = "Status";
+                                       else if (SlcNames.SLC_MESSAGE.equals(name))
+                                               value = "Message";
+                                       else if (SlcNames.SLC_ERROR_MESSAGE.equals(name))
+                                               value = "Error";
+                                       return value;
+                               } catch (RepositoryException e) {
+                                       throw new SlcException(
+                                                       "Unexpected exception in label provider", e);
+                               }
+                       }
+               });
+               col = new TableViewerColumn(propertiesViewer, SWT.NONE);
+               col.getColumn().setText("Value");
+               col.getColumn().setWidth(200);
+               col.setLabelProvider(new ColumnLabelProvider() {
+                       public String getText(Object element) {
+                               try {
+                                       Property property = (Property) element;
+                                       String name = property.getName();
+                                       String value = null;
+
+                                       if (SlcNames.SLC_TEST_CASE.equals(name)
+                                                       || SlcNames.SLC_ERROR_MESSAGE.equals(name)
+                                                       || SlcNames.SLC_MESSAGE.equals(name))
+                                               value = property.getValue().getString();
+                                       else if (SlcNames.SLC_COMPLETED.equals(name)) {
+                                               Calendar date = property.getValue().getDate();
+                                               value = dateFormat.format(date.getTime());
+                                       } else if (SlcNames.SLC_SUCCESS.equals(name)) {
+                                               if (property.getValue().getBoolean())
+                                                       value = "PASSED";
+                                               else {
+                                                       if (property.getParent().hasProperty(
+                                                                       SlcNames.SLC_ERROR_MESSAGE))
+                                                               value = "ERROR";
+                                                       else
+                                                               value = "FAILED";
+                                               }
+                                       }
+                                       return value;
+                               } catch (RepositoryException e) {
+                                       throw new SlcException(
+                                                       "Unexpected exception in label provider", e);
+                               }
+                       }
+               });
+               propertiesViewer.setInput(getViewSite());
+               return propertiesViewer;
+       }
+
+       /**
+        * Override to provide specific behaviour. Typically to enable the display
+        * of a result file.
+        * 
+        * @param evt
+        */
+       protected void processDoubleClick(DoubleClickEvent evt) {
+               Object obj = ((IStructuredSelection) evt.getSelection())
+                               .getFirstElement();
+               try {
+                       if (obj instanceof SingleResultNode) {
+                               SingleResultNode srNode = (SingleResultNode) obj;
+                               Node node = srNode.getNode();
+                               // FIXME: open a default result editor
+                               if (node.isNodeType(SlcTypes.SLC_PROCESS)) {
+                                       IWorkbenchPage activePage = PlatformUI.getWorkbench()
+                                                       .getActiveWorkbenchWindow().getActivePage();
+                                       activePage.openEditor(
+                                                       new ProcessEditorInput(node.getPath()),
+                                                       ProcessEditor.ID);
+                               }
+                       }
+               } catch (Exception e) {
+                       throw new SlcException("Cannot open " + obj, e);
+               }
+       }
+
+       @Override
+       public void setFocus() {
+       }
+
+       /**
+        * refreshes the passed resultParent and its corresponding subtree. It
+        * refreshes the whole viewer if null is passed.
+        * 
+        * @param ResultParent
+        * 
+        */
+       public void refresh(ResultParent resultParent) {
+               if (resultParent == null) {
+                       if (!resultTreeViewer.getTree().isDisposed()) {
+                               TreePath[] tps = resultTreeViewer.getExpandedTreePaths();
+                               setOrderedInput(resultTreeViewer);
+                               resultTreeViewer.setExpandedTreePaths(tps);
+                       } else
+                               setOrderedInput(resultTreeViewer);
+               } else {
+                       if (resultParent instanceof ParentNodeFolder) {
+                               ParentNodeFolder currFolder = (ParentNodeFolder) resultParent;
+                               jcrRefresh(currFolder.getNode());
+                               currFolder.forceFullRefresh();
+                       }
+                       // FIXME: specific refresh does not work
+                       // resultTreeViewer.refresh(resultParent, true);
+                       refresh(null);
+               }
+       }
+
+       /**
+        * refreshes the passed node and its corresponding subtree.
+        * 
+        * @param node
+        *            cannot be null
+        * 
+        */
+       public boolean jcrRefresh(Node node) {
+               // if (log.isDebugEnabled())
+               // log.debug(" JCR refreshing " + node + "...");
+               // Thread.dumpStack();
+               boolean isPassed = true;
+               try {
+                       if (node.isNodeType(SlcTypes.SLC_TEST_RESULT)) {
+                               isPassed = node.getNode(SlcNames.SLC_AGGREGATED_STATUS)
+                                               .getProperty(SlcNames.SLC_SUCCESS).getBoolean();
+                       } else if (node.isNodeType(SlcTypes.SLC_RESULT_FOLDER)) {
+                               NodeIterator ni = node.getNodes();
+                               while (ni.hasNext()) {
+                                       Node currChild = ni.nextNode();
+                                       isPassed = isPassed & jcrRefresh(currChild);
+                               }
+                               if (isPassed != node.getNode(SlcNames.SLC_AGGREGATED_STATUS)
+                                               .getProperty(SlcNames.SLC_SUCCESS).getBoolean()) {
+                                       node.getNode(SlcNames.SLC_AGGREGATED_STATUS).setProperty(
+                                                       SlcNames.SLC_SUCCESS, isPassed);
+                                       node.getSession().save();
+                                       return isPassed;
+                               }
+                       } else
+                               ; // do nothing
+               } catch (RepositoryException e) {
+                       throw new SlcException("Cannot register listeners", e);
+               }
+               return isPassed;
+       }
+
+       private ResultParent[] initializeResultTree() {
+               try {
+                       // Force initialization of the tree structure if needed
+                       SlcJcrResultUtils.getSlcResultsParentNode(session);
+                       SlcJcrResultUtils.getMyResultParentNode(session);
+                       // Remove yesterday and last 7 days virtual folders
+                       // ResultParent[] roots = new ResultParent[5];
+                       ResultParent[] roots = new ResultParent[3];
+
+                       // My results
+                       roots[0] = new ParentNodeFolder(null,
+                                       SlcJcrResultUtils.getMyResultParentNode(session),
+                                       SlcUiConstants.DEFAULT_MY_RESULTS_FOLDER_LABEL);
+
+                       // today
+                       Calendar cal = Calendar.getInstance();
+                       String relPath = JcrUtils.dateAsPath(cal);
+                       List<String> datePathes = new ArrayList<String>();
+                       datePathes.add(relPath);
+                       roots[1] = new VirtualFolder(null,
+                                       ResultParentUtils.getResultsForDates(session, datePathes),
+                                       "Today");
+
+                       // // Yesterday
+                       // cal = Calendar.getInstance();
+                       // cal.add(Calendar.DAY_OF_YEAR, -1);
+                       // relPath = JcrUtils.dateAsPath(cal);
+                       // datePathes = new ArrayList<String>();
+                       // datePathes.add(relPath);
+                       // roots[2] = new VirtualFolder(null,
+                       // ResultParentUtils.getResultsForDates(session, datePathes),
+                       // "Yesterday");
+                       // // Last 7 days
+                       //
+                       // cal = Calendar.getInstance();
+                       // datePathes = new ArrayList<String>();
+                       //
+                       // for (int i = 0; i < 7; i++) {
+                       // cal.add(Calendar.DAY_OF_YEAR, -i);
+                       // relPath = JcrUtils.dateAsPath(cal);
+                       // datePathes.add(relPath);
+                       // }
+                       // roots[3] = new VirtualFolder(null,
+                       // ResultParentUtils.getResultsForDates(session, datePathes),
+                       // "Last 7 days");
+
+                       // All results
+                       Node otherResultsPar = session.getNode(SlcJcrResultUtils
+                                       .getSlcResultsBasePath(session));
+                       // roots[4] = new ParentNodeFolder(null, otherResultsPar,
+                       // "All results");
+                       roots[2] = new ParentNodeFolder(null, otherResultsPar,
+                                       "All results");
+                       return roots;
+               } catch (RepositoryException re) {
+                       throw new SlcException(
+                                       "Unexpected error while initializing ResultTree.", re);
+               }
+       }
+
+       // Manage context menu
+       /**
+        * Defines the commands that will pop up in the context menu.
+        **/
+       protected void contextMenuAboutToShow(IMenuManager menuManager) {
+               IWorkbenchWindow window = ClientUiPlugin.getDefault().getWorkbench()
+                               .getActiveWorkbenchWindow();
+
+               IStructuredSelection selection = (IStructuredSelection) resultTreeViewer
+                               .getSelection();
+               boolean canAddSubfolder = false;
+               boolean canRenamefolder = false;
+               boolean isSingleResultNode = false;
+               boolean isUnderMyResult = false;
+               boolean validMultipleDelete = false;
+               try {
+
+                       // Building conditions
+                       if (selection.size() == 1) {
+                               Object obj = selection.getFirstElement();
+                               if (obj instanceof SingleResultNode)
+                                       isSingleResultNode = true;
+                               else if (obj instanceof ParentNodeFolder) {
+                                       Node cNode = ((ParentNodeFolder) obj).getNode();
+                                       if (cNode.isNodeType(SlcTypes.SLC_RESULT_FOLDER)) {
+                                               canAddSubfolder = true;
+                                               canRenamefolder = true;
+                                               isUnderMyResult = true;
+                                       } else if (cNode
+                                                       .isNodeType(SlcTypes.SLC_MY_RESULT_ROOT_FOLDER)) {
+                                               canAddSubfolder = true;
+                                       }
+                               }
+                       } else {
+                               @SuppressWarnings("rawtypes")
+                               Iterator it = selection.iterator();
+                               multicheck: while (it.hasNext()) {
+                                       validMultipleDelete = true;
+                                       Object obj = it.next();
+                                       if (obj instanceof SingleResultNode)
+                                               continue multicheck;
+                                       else if (obj instanceof ParentNodeFolder) {
+                                               Node cNode = ((ParentNodeFolder) obj).getNode();
+                                               if (cNode.isNodeType(SlcTypes.SLC_RESULT_FOLDER))
+                                                       continue multicheck;
+                                               else {
+                                                       validMultipleDelete = false;
+                                                       break multicheck;
+                                               }
+                                       } else {
+                                               validMultipleDelete = false;
+                                               break multicheck;
+                                       }
+                               }
+                       }
+               } catch (RepositoryException re) {
+                       throw new SlcException(
+                                       "unexpected error while building condition for context menu",
+                                       re);
+               }
+
+               // Effective Refresh
+               CommandUtils.refreshCommand(menuManager, window,
+                               RefreshJcrResultTreeView.ID,
+                               RefreshJcrResultTreeView.DEFAULT_LABEL,
+                               RefreshJcrResultTreeView.DEFAULT_IMG_DESCRIPTOR, true);
+
+               CommandUtils.refreshCommand(menuManager, window, DeleteItems.ID,
+                               DeleteItems.DEFAULT_LABEL, DeleteItems.DEFAULT_IMG_DESCRIPTOR,
+                               isUnderMyResult || isSingleResultNode || validMultipleDelete);
+
+               CommandUtils.refreshCommand(menuManager, window, AddResultFolder.ID,
+                               AddResultFolder.DEFAULT_LABEL,
+                               ClientUiPlugin.getDefault().getWorkbench().getSharedImages()
+                                               .getImageDescriptor(ISharedImages.IMG_OBJ_ADD),
+                               canAddSubfolder);
+
+               CommandUtils.refreshCommand(menuManager, window, RenameResultFolder.ID,
+                               RenameResultFolder.DEFAULT_LABEL,
+                               RenameResultFolder.DEFAULT_IMG_DESCRIPTOR, canRenamefolder);
+
+               // Command removed for the time being.
+               CommandUtils.refreshCommand(menuManager, window, RenameResultNode.ID,
+                               RenameResultNode.DEFAULT_LABEL,
+                               RenameResultNode.DEFAULT_IMG_DESCRIPTOR, false);
+
+               // Test to be removed
+               // If you use this pattern, do not forget to call
+               // menuManager.setRemoveAllWhenShown(true);
+               // when creating the menuManager
+
+               // menuManager.add(new Action("Test") {
+               // public void run() {
+               // log.debug("do something");
+               // }
+               // });
+       }
+
+       /* INNER CLASSES */
+       class ViewDragListener implements DragSourceListener {
+
+               public void dragStart(DragSourceEvent event) {
+                       // Check if the drag action should start.
+                       IStructuredSelection selection = (IStructuredSelection) resultTreeViewer
+                                       .getSelection();
+                       boolean doIt = false;
+
+                       // FIXME clean this code.
+                       try {
+                               if (selection.size() == 1) {
+                                       Object obj = selection.getFirstElement();
+                                       if (obj instanceof ResultFolder) {
+                                               Node tNode = ((ResultFolder) obj).getNode();
+                                               if (tNode.getPrimaryNodeType().isNodeType(
+                                                               SlcTypes.SLC_RESULT_FOLDER)) {
+                                                       doIt = true;
+                                                       isResultFolder = true;
+                                               }
+                                       } else
+                                               isResultFolder = false;
+                               } else
+                                       isResultFolder = false;
+
+                               if (!isResultFolder) {
+                                       @SuppressWarnings("rawtypes")
+                                       Iterator it = selection.iterator();
+                                       while (it.hasNext()) {
+                                               Object obj = it.next();
+                                               if (obj instanceof SingleResultNode) {
+                                                       Node tNode = ((SingleResultNode) obj).getNode();
+                                                       if (tNode.getPrimaryNodeType().isNodeType(
+                                                                       SlcTypes.SLC_TEST_RESULT)) {
+                                                               doIt = true;
+                                                       }
+                                               }
+                                       }
+                               }
+
+                       } catch (RepositoryException re) {
+                               throw new SlcException(
+                                               "unexpected error while validating drag source", re);
+                       }
+                       event.doit = doIt;
+               }
+
+               public void dragSetData(DragSourceEvent event) {
+                       IStructuredSelection selection = (IStructuredSelection) resultTreeViewer
+                                       .getSelection();
+
+                       try {
+                               // specific case of a result folder
+                               if (isResultFolder) {
+                                       Object obj = selection.getFirstElement();
+                                       event.data = ((ResultFolder) obj).getNode().getIdentifier();
+                               } else {
+                                       @SuppressWarnings("rawtypes")
+                                       Iterator it = selection.iterator();
+                                       StringBuilder nodes = new StringBuilder();
+                                       while (it.hasNext()) {
+                                               Object obj = it.next();
+                                               if (obj instanceof SingleResultNode) {
+                                                       Node tNode = ((SingleResultNode) obj).getNode();
+                                                       if (tNode.getPrimaryNodeType().isNodeType(
+                                                                       SlcTypes.SLC_TEST_RESULT)) {
+                                                               nodes.append(tNode.getIdentifier()).append(";");
+                                                       }
+                                               }
+                                       }
+                                       event.data = nodes.toString();
+                               }
+                       } catch (RepositoryException re) {
+                               throw new SlcException("unexpected error while setting data",
+                                               re);
+                       }
+               }
+
+               public void dragFinished(DragSourceEvent event) {
+                       // refresh is done via observer
+               }
+       }
+
+       // Implementation of the Drop Listener
+       protected class ViewDropListener extends ViewerDropAdapter {
+               private Node targetParentNode = null;
+
+               public ViewDropListener(Viewer viewer) {
+                       super(viewer);
+               }
+
+               @Override
+               public boolean validateDrop(Object target, int operation,
+                               TransferData transferType) {
+                       boolean validDrop = false;
+                       try {
+                               // We can only drop under myResults
+                               Node tpNode = null;
+                               if (target instanceof SingleResultNode) {
+                                       Node currNode = ((SingleResultNode) target).getNode();
+                                       String pPath = currNode.getParent().getPath();
+                                       if (pPath.startsWith(SlcJcrResultUtils
+                                                       .getMyResultsBasePath(session)))
+                                               tpNode = currNode.getParent();
+                               } else if (target instanceof ResultFolder) {
+                                       tpNode = ((ResultFolder) target).getNode();
+                               } else if (target instanceof ParentNodeFolder) {
+                                       Node node = ((ParentNodeFolder) target).getNode();
+                                       if (node.isNodeType(SlcTypes.SLC_MY_RESULT_ROOT_FOLDER))
+                                               tpNode = ((ParentNodeFolder) target).getNode();
+                               }
+
+                               if (tpNode != null) {
+                                       targetParentNode = tpNode;
+                                       validDrop = true;
+                               }
+                       } catch (RepositoryException re) {
+                               throw new SlcException(
+                                               "unexpected error while validating drop target", re);
+                       }
+                       return validDrop;
+               }
+
+               @Override
+               public boolean performDrop(Object data) {
+                       // clear selection to prevent unwanted scrolling of the UI
+                       resultTreeViewer.setSelection(null);
+                       try {
+                               if (isResultFolder) {
+                                       // Sanity check : we cannot move a folder to one of its sub
+                                       // folder or neither move an object in the same parent
+                                       // folder
+                                       Node source = session.getNodeByIdentifier((String) data);
+                                       if (targetParentNode.getPath().startsWith(source.getPath())
+                                                       || source.getParent().getPath()
+                                                                       .equals(targetParentNode.getPath()))
+                                               return false;
+
+                                       // Move
+                                       String sourcePath = source.getPath();
+                                       String destPath = targetParentNode.getPath() + "/"
+                                                       + source.getName();
+                                       session.move(sourcePath, destPath);
+                                       // Update passed status of the parent source Node
+                                       ResultParentUtils.updatePassedStatus(
+                                                       session.getNode(JcrUtils.parentPath(sourcePath)),
+                                                       true);
+                                       // Node target = session.getNode(destPath);
+                                       session.save();
+                                       return true;
+                               }
+
+                               String[] datas = ((String) data).split(";");
+                               nodesToCopy: for (String id : datas) {
+
+                                       Node source = session.getNodeByIdentifier(id);
+                                       String name;
+                                       if (source.hasProperty(Property.JCR_TITLE))
+                                               name = source.getProperty(Property.JCR_TITLE)
+                                                               .getString();
+                                       else if (source.hasProperty(SlcNames.SLC_TEST_CASE))
+                                               name = source.getProperty(SlcNames.SLC_TEST_CASE)
+                                                               .getString();
+                                       else
+                                               name = source.getName();
+
+                                       // Check if another copy of the same test instance already
+                                       // exists at target
+                                       NodeIterator ni = targetParentNode.getNodes();
+                                       String slcUid = source.getProperty(SlcNames.SLC_UUID)
+                                                       .getString();
+                                       while (ni.hasNext()) {
+                                               Node curr = ni.nextNode();
+                                               if (curr.hasProperty(SlcNames.SLC_UUID)
+                                                               && slcUid.equals(curr.getProperty(
+                                                                               SlcNames.SLC_UUID).getString())) {
+                                                       MessageDialog
+                                                                       .openWarning(
+                                                                                       PlatformUI.getWorkbench()
+                                                                                                       .getDisplay()
+                                                                                                       .getActiveShell(),
+                                                                                       "Duplicated instance.",
+                                                                                       "An instance of the same test case ("
+                                                                                                       + name
+                                                                                                       + ") exists at destination.\n "
+                                                                                                       + "This item will not be neither copied nor moved.");
+                                                       continue nodesToCopy;
+
+                                               }
+                                       }
+
+                                       Node target;
+                                       boolean passedStatus = false;
+                                       if (source.hasNode(SlcNames.SLC_AGGREGATED_STATUS))
+                                               passedStatus = source
+                                                               .getNode(SlcNames.SLC_AGGREGATED_STATUS)
+                                                               .getProperty(SlcNames.SLC_SUCCESS).getBoolean();
+
+                                       boolean isActionUnderMyResult = source.getPath()
+                                                       .startsWith(
+                                                                       SlcJcrResultUtils
+                                                                                       .getMyResultsBasePath(session));
+
+                                       if (!isActionUnderMyResult) {// Copy
+                                               target = targetParentNode.addNode(source.getName(),
+                                                               source.getPrimaryNodeType().getName());
+                                               JcrUtils.copy(source, target);
+                                       } else {// move
+                                               String sourcePath = source.getPath();
+                                               String destPath = targetParentNode.getPath() + "/"
+                                                               + name;
+                                               session.move(sourcePath, destPath);
+                                               // Update passed status of the parent source Node
+                                               ResultParentUtils
+                                                               .updatePassedStatus(session.getNode(JcrUtils
+                                                                               .parentPath(sourcePath)), true);
+                                               target = session.getNode(destPath);
+
+                                       }
+                                       if (!target.isNodeType(NodeType.MIX_TITLE))
+                                               target.addMixin(NodeType.MIX_TITLE);
+                                       target.setProperty(Property.JCR_TITLE, name);
+                                       ResultParentUtils.updatePassedStatus(target.getParent(),
+                                                       passedStatus);
+                                       session.save();
+                               }
+                       } catch (RepositoryException re) {
+                               throw new SlcException(
+                                               "unexpected error while copying dropped node", re);
+
+                       }
+                       return true;
+               }
+       }
+
+       class MyResultsObserver extends AsyncUiEventListener {
+
+               public MyResultsObserver(Display display) {
+                       super(display);
+               }
+
+               @Override
+               protected Boolean willProcessInUiThread(List<Event> events)
+                               throws RepositoryException {
+                       // unfiltered for the time being
+                       return true;
+               }
+
+               protected void onEventInUiThread(List<Event> events)
+                               throws RepositoryException {
+                       List<Node> nodesToRefresh = new ArrayList<Node>();
+
+                       for (Event event : events) {
+                               String parPath = JcrUtils.parentPath(event.getPath());
+                               if (session.nodeExists(parPath)) {
+                                       Node node = session.getNode(parPath);
+                                       if (!nodesToRefresh.contains(node)) {
+                                               nodesToRefresh.add(node);
+                                       }
+                               }
+                       }
+
+                       // Update check nodes
+                       for (Node node : nodesToRefresh)
+                               jcrRefresh(node);
+                       refresh(null);
+               }
+       }
+
+       class AllResultsObserver extends AsyncUiEventListener {
+
+               public AllResultsObserver(Display display) {
+                       super(display);
+               }
+
+               @Override
+               protected Boolean willProcessInUiThread(List<Event> events)
+                               throws RepositoryException {
+                       // unfiltered for the time being
+                       return true;
+               }
+
+               protected void onEventInUiThread(List<Event> events)
+                               throws RepositoryException {
+                       refresh(null);
+                       // if (lastSelectedSourceElementParent != null)
+                       // refresh(lastSelectedSourceElementParent);
+               }
+       }
+
+       class PropertiesContentProvider implements IStructuredContentProvider {
+
+               public void dispose() {
+               }
+
+               public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
+               }
+
+               public Object[] getElements(Object inputElement) {
+                       try {
+                               if (inputElement instanceof Node) {
+                                       Node node = (Node) inputElement;
+                                       if (node.isNodeType(SlcTypes.SLC_TEST_RESULT)) {
+                                               List<Property> props = new ArrayList<Property>();
+                                               if (node.hasProperty(SlcNames.SLC_TEST_CASE))
+                                                       props.add(node.getProperty(SlcNames.SLC_TEST_CASE));
+                                               if (node.hasProperty(SlcNames.SLC_COMPLETED))
+                                                       props.add(node.getProperty(SlcNames.SLC_COMPLETED));
+                                               if (node.hasNode(SlcNames.SLC_AGGREGATED_STATUS)) {
+                                                       Node status = node
+                                                                       .getNode(SlcNames.SLC_AGGREGATED_STATUS);
+                                                       props.add(status.getProperty(SlcNames.SLC_SUCCESS));
+                                                       if (status.hasProperty(SlcNames.SLC_MESSAGE))
+                                                               props.add(status
+                                                                               .getProperty(SlcNames.SLC_MESSAGE));
+                                                       if (status.hasProperty(SlcNames.SLC_ERROR_MESSAGE))
+                                                               props.add(status
+                                                                               .getProperty(SlcNames.SLC_ERROR_MESSAGE));
+                                               }
+                                               return props.toArray();
+                                       }
+                               }
+                               return new Object[] {};
+
+                       } catch (RepositoryException e) {
+                               throw new SlcException("Cannot get element for "
+                                               + inputElement, e);
+                       }
+               }
+       }
+
+       class MySelectionChangedListener implements ISelectionChangedListener {
+
+               public void selectionChanged(SelectionChangedEvent event) {
+                       if (!event.getSelection().isEmpty()) {
+                               IStructuredSelection sel = (IStructuredSelection) event
+                                               .getSelection();
+                               ResultParent firstItem = (ResultParent) sel.getFirstElement();
+                               if (firstItem instanceof SingleResultNode)
+                                       propertiesViewer.setInput(((SingleResultNode) firstItem)
+                                                       .getNode());
+                               else
+                                       propertiesViewer.setInput(null);
+                               // update cache for Drag & drop
+                               // lastSelectedTargetElement = firstItem;
+                               // lastSelectedSourceElement = firstItem;
+                               // lastSelectedSourceElementParent = (ResultParent) firstItem
+                               // .getParent();
+                               // String pPath = "";
+                               // try {
+                               //
+                               // if (firstItem instanceof ParentNodeFolder)
+                               // pPath = ((ParentNodeFolder) firstItem).getNode()
+                               // .getPath();
+                               // else if (firstItem instanceof SingleResultNode)
+                               // pPath = ((SingleResultNode) firstItem).getNode()
+                               // .getPath();
+                               // } catch (RepositoryException e) {
+                               // throw new SlcException(
+                               // "Unexpected error while checking parent UI tree", e);
+                               // }
+                               // if ((pPath.startsWith(SlcJcrResultUtils
+                               // .getMyResultsBasePath(session))))
+                               // isActionUnderMyResult = true;
+                               // else
+                               // isActionUnderMyResult = false;
+                       }
+               }
+       }
+
+       class ViewDoubleClickListener implements IDoubleClickListener {
+               public void doubleClick(DoubleClickEvent evt) {
+                       processDoubleClick(evt);
+               }
+
+       }
+
+       /* DEPENDENCY INJECTION */
+       public void dispose() {
+               // JcrUtils.unregisterQuietly(session.getWorkspace(), resultsObserver);
+               JcrUtils.logoutQuietly(session);
+               super.dispose();
+       }
+
+       public void setRepository(Repository repository) {
+               this.repository = repository;
+       }
+}
index 3fa15f9bfb10d32770269c7fd86d6a51a9cc35ae..d766219643d244b9dc73f776b56a9a376997428f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.client.ui.wizards;
 
 import javax.jcr.Node;
index 0ede8597f40c9b78d2c9eb88e46af2300c48b1fd..a201bb1ab3399e40e5921e7ff7bcc04b277cbf3f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.e4;
 
 
index b08b8a4709c261d48ced91eba32d503d805583a7..fa4b8f66324499de03573580649cc942b14c8d96 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.e4.parts;
 
 import java.util.Arrays;
index aee2956930daf6151881490fa55002af687acafe..0223a20994b05047fba3a6a9abd1fd0ca024d4d0 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.rpmfactory;
 
 import java.io.File;
index 8f86253b691a6a3dcc54bd58634fe81c03e7d472..40002a8de6211271157fd1ae2014802b6767e168 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.rpmfactory;
 
 import org.argeo.jcr.proxy.ResourceProxy;
index 18ea0c183b49766836c3424b350e16eea035627f..a69e39fdea225746faae671c242c440600ed9013 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.rpmfactory.core;
 
 import java.io.File;
index b009551d2921a78af9c6c20f8305e2258cccd442..5e1a6278392571a5ef9de6906e50c6f59f57071e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.rpmfactory.core;
 
 import java.io.File;
index 7f7eb120284d32d1583c9cae05f480645f0ad0fd..d067dfaa19eddd285e71cb0d424fd6be1dea9e6d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.rpmfactory.core;
 
 import java.util.HashSet;
index 8b5994f3207936545993f5ecdf4396c686fb3061..c9132f93fa85cddd1eb11dc9045ce46498511889 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.rpmfactory.core;
 
 import java.io.IOException;
index c4922d3253e7242fa2957ea84aaa4a42f7bb3f2d..e2d1b10fedb05db4cb20ab08fb97b642474bd3cb 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jcr;
 
 import java.util.HashMap;
index 3f94b8bcd74893b889fdc4bdb814fc10158bcf28..e2d0607ae2e66a3148c4ace15863d822a8b6a77f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jcr;
 
 import java.util.Date;
index 3190c85b9d91c1e1c28c2e63badc1dad44c4a95e..19e64306783b8f804daf4533a5e81e0517c31511 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jcr;
 
 import org.argeo.slc.SlcNames;
index 0aea1fc60fbac155c64bc6cb2bf3bb64c4e23e9e..c7717dbc3463f7554bb0006546452212b18dc9d4 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jcr;
 
 import javax.jcr.Node;
index 4094060bd0bc7d462794f234e7c5513243976a6b..c91a94c1b22f67d253e9e0d6ee1b3151e7187ade 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jcr;
 
 import java.util.Calendar;
index c75863adeec6d1b71cf57eacd9f49d7d2a3de0b3..7f776d1b164759d9b444add8f61165003b8292a3 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jcr.execution;
 
 import java.net.InetAddress;
index 022dd872156b9b7d105a1e153ac17ea1df545c58..2804b2215a9377389a5d2cf7234253e734f64bf9 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jcr.execution;
 
 import java.util.Arrays;
index 137d28c77b0645d7639ac44fe716aa940c2d9160..9d00459615cc3c1bd44a7f434e72be6e350735e6 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jcr.execution;
 
 import java.util.ArrayList;
index a4bf3cd6554ede5788c69838a82c9c2b933c26ee..8717b503055cc8549ea2911d9efdf5c00762bb3f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.cli;
 
 import java.io.File;
index 61824e4ed6f727848d3665b3f7925f800a58ffaa..21563fe50c39acff33aaba9f5d858c8f98e0619f 100644 (file)
@@ -1,19 +1,4 @@
 package org.argeo.slc.repo.internal;
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 
 
 import junit.framework.TestCase;
index a3c1b5d4d3b6903f88b626570f0c9a574e255c75..037a7be67ae9c8031abc2e2d1537d1b624fce5ad 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo;
 
 import javax.jcr.Node;
index 89f7120e407b4beca0a670f94db27a8572a4a517..95fa918b1575c8a926af46dda30b1ff445135a33 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo;
 
 import java.io.ByteArrayInputStream;
index 8df4a5383370704dbcdcd8c68d7e1650ceba75c0..81261fe21579c3f56f56fafeb92008b0087c7dc8 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo;
 
 import org.argeo.jcr.proxy.ResourceProxy;
index 77798abd9e27205f69b405cee5f1c617c4466513..374ad8505d5308959bf7bc21f2a5d40cc7e68190 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo;
 
 import javax.jcr.Node;
index b6f87e0e24901c2acc3ae1ef84a805d20d6f9b08..0ce3ba9200cc904572e2dbc2cca9540e3bba57ac 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo;
 
 import javax.jcr.Binary;
index f2d26eea675c3e93d5974d7a363d2feec787ab9d..572ac9e7f2bf08a54dddf26d4bfdf790eab7a462 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo;
 
 /** SLC repository constants */
index d524a2cc3bd1e0d9c321f1e059fd4946fb94252d..2eb532e7652f6bad58afa4ff8fa9a488b0d6b31f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo;
 
 import java.io.InputStream;
index d9787ef514af70247ae07dc01cbb2dda7531a2e4..a6dc5d94f2706cb5af1eb32a935f9249a6dfb534 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo;
 
 import java.io.ByteArrayOutputStream;
index e5622aad3a940d67d434abcf46e7a24944f8084b..d0233c39dfefd9dda761890b381152a7767a0fa3 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo.core;
 
 import java.util.List;
index fcc9b05b17552ceda1f844552c25e8e41306d84f..e9360f9f2f05c920b8aa0ac46533bf6b89e82b21 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo.maven;
 
 import java.util.regex.Pattern;
index 98d2d1d4620e4e1b1b9fa73401d01a4588e9d97c..7aef78db5cd54488f4fd9b0ab5c6c963cbe8dfd3 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo.maven;
 
 import java.util.Comparator;
index f051715130ce2925c19220c2298d11b7cf8c932c..d46375e1dfad1e9214d3128d22872084e446edb3 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo.maven;
 
 import java.io.File;
index 83335e9a5eef80982abd477cffeb91fb2a7a98da..3ccc164c76886fef61dc6f292415b8b1bd052ddf 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo.maven;
 
 import java.util.ArrayList;
index 9f97dff50d47a6ecb58faad8e5dd7e042b769b0e..1d013f57d923ad297aa9a57c62a76b5a47def23f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo.maven;
 
 import java.io.File;
index c25e3fb7f232f594e2ce01b7680c2ca8fe271c6a..9487e4d8d7d95ef06fbc206c68fc8e25b4954b3d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo.maven;
 
 import java.io.File;
index 789f4c215eeb10a4cc755553ea48156a5fcc9a17..9a88534a04e7c6307318c93fd81ae3183c1f6195 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo.maven;
 
 import java.util.ArrayList;
index 065e22ef64378e839201b0be4be4678615d84b49..a7f7d169dc11474b4551bf55f4e58269e859924b 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo.maven;
 
 import java.io.IOException;
index fbc44b3e0e0fae545acf7449a43d69f5f2ab8d9b..0518bbf1ae0a13e307d91f058fcfe4d462b14814 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo.osgi;
 
 import java.io.ByteArrayInputStream;
index 1d250379970540ba02a5c4a7b8409fc6e1c31ba9..7a25c4bffc0bdbbc94f816d12f7a4ad1f75a2222 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo.osgi;
 
 import java.util.ArrayList;
index d44593bc6ac762c99a8d18e88d18675cbe1295fc..4ace647cb8693e65f5280fbe7693db598a21a40d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo.osgi;
 
 public class ObrWrapper {
index 50f87be16b5f5441da9c4b2b9843a170fd02ea00..b15ed5d29947b4e50a8c6df8b455cc847b985be1 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.repo.osgi;
 
 import java.io.InputStream;
index 3b9da2a767c859a46dce131e90f6895210e8aea1..a31f18c25eeb70cca754d439bb9ab69cbbc2addb 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.runtime;
 
 import java.util.Map;
index d9037fa4b8ad01c43d926ecc8e8bbd2dd037ef0f..6fc255a017b65bdf8318ee4c829ab1d71cbb9045 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.runtime;
 
 import java.io.UnsupportedEncodingException;
index 289f660e1093d04f8acdb1cdb918a45a74e0d915..f99ce9d7148d1a865f88409620857ec13820d9a8 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.runtime;
 
 import java.util.ArrayList;
index 6fc001caa69e3dacf2dcaca35516a3968969cfa0..16790a4dcd5fd3e7339de41ba80863dfdea5e405 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.runtime;
 
 import java.io.Serializable;
index 4939e32437ca952f39b7342b5fec76ec752cf8d9..af98a16be345273aa9d4d3f0b12bbce158057a4f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.runtime;
 
 import java.util.HashMap;
index 8d95f495b6357c492711de62621d2a4300063d9b..d940905f6aa022046eed302bfb4bfcb028b3ca22 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.runtime;
 
 import java.security.AccessControlContext;
index 0571e8307d1f83c3e84ea6b8c84b17111b58e227..4aea94fdf246660d62994a4fa38584212087bc06 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.runtime;\r
-\r
-import java.util.Stack;\r
-\r
-import org.apache.commons.logging.Log;\r
-import org.apache.commons.logging.LogFactory;\r
-import org.argeo.slc.SlcException;\r
-import org.argeo.slc.execution.ExecutionFlow;\r
-import org.argeo.slc.execution.ExecutionSpecAttribute;\r
-import org.argeo.slc.execution.RefSpecAttribute;\r
-import org.argeo.slc.primitive.PrimitiveSpecAttribute;\r
-import org.argeo.slc.primitive.PrimitiveUtils;\r
-\r
-/** Manage parameters that need to be set during the instantiation of a flow */\r
-public class InstantiationManager {\r
-\r
-       private final static Log log = LogFactory\r
-                       .getLog(InstantiationManager.class);\r
-\r
-       private ThreadLocal<Stack<ExecutionFlow>> flowStack = new ThreadLocal<Stack<ExecutionFlow>>();\r
-\r
-       public Object createRef(String name) {\r
-\r
-               if ((flowStack.get() == null) || flowStack.get().empty()) {\r
-                       throw new SlcException("No flow is currently initializing."\r
-                                       + " Declare ParameterRef as inner beans or prototypes.");\r
-               }\r
-\r
-               return getInitializingFlowParameter(name);\r
-       }\r
-\r
-       public void flowInitializationStarted(ExecutionFlow flow, String flowName) {\r
-               // set the flow name if it is DefaultExecutionFlow\r
-               if (flow instanceof DefaultExecutionFlow) {\r
-                       ((DefaultExecutionFlow) flow).setName(flowName);\r
-               }\r
-\r
-               if (log.isTraceEnabled())\r
-                       log.trace("Start initialization of " + flow.hashCode() + " ("\r
-                                       + flow + " - " + flow.getClass() + ")");\r
-\r
-               // log.info("# flowInitializationStarted " + flowName);\r
-               // create a stack for this thread if there is none\r
-               if (flowStack.get() == null) {\r
-                       flowStack.set(new Stack<ExecutionFlow>());\r
-               }\r
-               flowStack.get().push(flow);\r
-       }\r
-\r
-       public void flowInitializationFinished(ExecutionFlow flow, String flowName) {\r
-               if (log.isTraceEnabled())\r
-                       log.trace("Finish initialization of " + flow.hashCode() + " ("\r
-                                       + flow + " - " + flow.getClass() + ")");\r
-\r
-               if (flowStack.get() != null) {\r
-                       ExecutionFlow registeredFlow = flowStack.get().pop();\r
-                       if (registeredFlow != null) {\r
-                               if (!flow.getName().equals(registeredFlow.getName()))\r
-                                       throw new SlcException("Current flow is " + flow);\r
-                               // log.info("# flowInitializationFinished " + flowName);\r
-                               // initializingFlow.set(null);\r
-                       }\r
-               } else {\r
-                       // happens for flows imported as services\r
-                       log.warn("flowInitializationFinished - Flow Stack is null");\r
-               }\r
-       }\r
-\r
-       protected ExecutionFlow findInitializingFlowWithParameter(String key) {\r
-               if ((flowStack.get() == null) || flowStack.get().empty())\r
-                       throw new SlcException("No initializing flow available.");\r
-\r
-               // first look in the outer flow (that may override parameters)\r
-               for (int i = 0; i < flowStack.get().size(); i++) {\r
-                       if (flowStack.get().elementAt(i).isSetAsParameter(key)) {\r
-                               return flowStack.get().elementAt(i);\r
-                       }\r
-               }\r
-               throw new SlcException("Key " + key + " is not set as parameter in "\r
-                               + flowStack.get().firstElement().toString() + " (stack size="\r
-                               + flowStack.get().size() + ")");\r
-\r
-       }\r
-\r
-       public Object getInitializingFlowParameter(String key) {\r
-               return findInitializingFlowWithParameter(key).getParameter(key);\r
-       }\r
-\r
-       public Class<?> getInitializingFlowParameterClass(String key) {\r
-               ExecutionSpecAttribute attr = findInitializingFlowWithParameter(key)\r
-                               .getExecutionSpec().getAttributes().get(key);\r
-               if (attr instanceof RefSpecAttribute)\r
-                       return ((RefSpecAttribute) attr).getTargetClass();\r
-               else if (attr instanceof PrimitiveSpecAttribute) {\r
-                       String type = ((PrimitiveSpecAttribute) attr).getType();\r
-                       Class<?> clss = PrimitiveUtils.typeAsClass(type);\r
-                       if (clss == null)\r
-                               throw new SlcException("Cannot convert type " + type\r
-                                               + " to class.");\r
-                       return clss;\r
-               } else\r
-                       return null;\r
-       }\r
-\r
-       public Boolean isInFlowInitialization() {\r
-               return (flowStack.get() != null) && !flowStack.get().empty();\r
-       }\r
-}\r
+package org.argeo.slc.runtime;
+
+import java.util.Stack;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.argeo.slc.SlcException;
+import org.argeo.slc.execution.ExecutionFlow;
+import org.argeo.slc.execution.ExecutionSpecAttribute;
+import org.argeo.slc.execution.RefSpecAttribute;
+import org.argeo.slc.primitive.PrimitiveSpecAttribute;
+import org.argeo.slc.primitive.PrimitiveUtils;
+
+/** Manage parameters that need to be set during the instantiation of a flow */
+public class InstantiationManager {
+
+       private final static Log log = LogFactory
+                       .getLog(InstantiationManager.class);
+
+       private ThreadLocal<Stack<ExecutionFlow>> flowStack = new ThreadLocal<Stack<ExecutionFlow>>();
+
+       public Object createRef(String name) {
+
+               if ((flowStack.get() == null) || flowStack.get().empty()) {
+                       throw new SlcException("No flow is currently initializing."
+                                       + " Declare ParameterRef as inner beans or prototypes.");
+               }
+
+               return getInitializingFlowParameter(name);
+       }
+
+       public void flowInitializationStarted(ExecutionFlow flow, String flowName) {
+               // set the flow name if it is DefaultExecutionFlow
+               if (flow instanceof DefaultExecutionFlow) {
+                       ((DefaultExecutionFlow) flow).setName(flowName);
+               }
+
+               if (log.isTraceEnabled())
+                       log.trace("Start initialization of " + flow.hashCode() + " ("
+                                       + flow + " - " + flow.getClass() + ")");
+
+               // log.info("# flowInitializationStarted " + flowName);
+               // create a stack for this thread if there is none
+               if (flowStack.get() == null) {
+                       flowStack.set(new Stack<ExecutionFlow>());
+               }
+               flowStack.get().push(flow);
+       }
+
+       public void flowInitializationFinished(ExecutionFlow flow, String flowName) {
+               if (log.isTraceEnabled())
+                       log.trace("Finish initialization of " + flow.hashCode() + " ("
+                                       + flow + " - " + flow.getClass() + ")");
+
+               if (flowStack.get() != null) {
+                       ExecutionFlow registeredFlow = flowStack.get().pop();
+                       if (registeredFlow != null) {
+                               if (!flow.getName().equals(registeredFlow.getName()))
+                                       throw new SlcException("Current flow is " + flow);
+                               // log.info("# flowInitializationFinished " + flowName);
+                               // initializingFlow.set(null);
+                       }
+               } else {
+                       // happens for flows imported as services
+                       log.warn("flowInitializationFinished - Flow Stack is null");
+               }
+       }
+
+       protected ExecutionFlow findInitializingFlowWithParameter(String key) {
+               if ((flowStack.get() == null) || flowStack.get().empty())
+                       throw new SlcException("No initializing flow available.");
+
+               // first look in the outer flow (that may override parameters)
+               for (int i = 0; i < flowStack.get().size(); i++) {
+                       if (flowStack.get().elementAt(i).isSetAsParameter(key)) {
+                               return flowStack.get().elementAt(i);
+                       }
+               }
+               throw new SlcException("Key " + key + " is not set as parameter in "
+                               + flowStack.get().firstElement().toString() + " (stack size="
+                               + flowStack.get().size() + ")");
+
+       }
+
+       public Object getInitializingFlowParameter(String key) {
+               return findInitializingFlowWithParameter(key).getParameter(key);
+       }
+
+       public Class<?> getInitializingFlowParameterClass(String key) {
+               ExecutionSpecAttribute attr = findInitializingFlowWithParameter(key)
+                               .getExecutionSpec().getAttributes().get(key);
+               if (attr instanceof RefSpecAttribute)
+                       return ((RefSpecAttribute) attr).getTargetClass();
+               else if (attr instanceof PrimitiveSpecAttribute) {
+                       String type = ((PrimitiveSpecAttribute) attr).getType();
+                       Class<?> clss = PrimitiveUtils.typeAsClass(type);
+                       if (clss == null)
+                               throw new SlcException("Cannot convert type " + type
+                                               + " to class.");
+                       return clss;
+               } else
+                       return null;
+       }
+
+       public Boolean isInFlowInitialization() {
+               return (flowStack.get() != null) && !flowStack.get().empty();
+       }
+}
index 10630687fa1b29c9277c039f3cf4e00f2458475f..2c4f73c7e88064a18924dcec42cef528ba34ca2d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.runtime;
 
 import java.security.AccessControlContext;
index 6c25ecfa47c613585ea15ccc07a70d227a3c2555..79f38d77b48c686480d32b9695ba578be5771eba 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.runtime;
 
 import java.util.concurrent.ArrayBlockingQueue;
index 32d82556b56bcbafa7cdc034f85d560ee8cf0092..2bb48b8fa007fd354cb3de374b44c3b7605cef85 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.runtime.tasks;
 
 import org.argeo.slc.test.TestResult;
index d3ac0b36e5f4d830f26c02a5568f7f55807edc3d..a6e60d36b4f2e71ca1c886dded660c80aa24654d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.runtime.tasks;
 
 import java.io.File;
index bdcfb37b970c7f78d8e4a2ffd532d6513b701f78..08eb804ccb1554dc79a05350c79f7a810f1a2651 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.runtime.tasks;
 
 import org.argeo.slc.SlcException;
index a868a12449f496f72bec0250e0605394e271601c..c89f2b81422c735a3900b806a5ffcee89fdbd58c 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.runtime.tasks;
 
 import java.io.File;
index c16209d9e563070216db98588e41c9f582a4ed18..f5e850201fcd64baee2d3fb9f76f4d41602a48e0 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.runtime.tasks;
 
 import java.io.File;
index f10e52a15b4293beac14a359b8eff55090df6a8d..bedd15a091701aea7e9e2fb43af2dd6fb4d3d38b 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.runtime.tasks;
 
 public interface SystemCallOutputListener {
index 4ff120aa27367cedb6d7ac5d85785e68441b9bc5..ec6261d6818f8dcd4066e22c5dc70a3c7a6b472f 100644 (file)
@@ -1,40 +1,25 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.runtime.test;\r
-\r
-import org.argeo.slc.test.TestData;\r
-\r
-public class BasicTestData implements TestData {\r
-       private Object expected;\r
-       private Object reached;\r
-\r
-       public Object getExpected() {\r
-               return expected;\r
-       }\r
-\r
-       public void setExpected(Object expected) {\r
-               this.expected = expected;\r
-       }\r
-\r
-       public Object getReached() {\r
-               return reached;\r
-       }\r
-\r
-       public void setReached(Object reached) {\r
-               this.reached = reached;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.runtime.test;
+
+import org.argeo.slc.test.TestData;
+
+public class BasicTestData implements TestData {
+       private Object expected;
+       private Object reached;
+
+       public Object getExpected() {
+               return expected;
+       }
+
+       public void setExpected(Object expected) {
+               this.expected = expected;
+       }
+
+       public Object getReached() {
+               return reached;
+       }
+
+       public void setReached(Object reached) {
+               this.reached = reached;
+       }
+
+}
index 009714125770e32727be0553773e627b7daf503e..3bc49f611a96f92e122c209e518a9c439d6c3505 100644 (file)
@@ -1,60 +1,45 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.runtime.test;\r
-\r
-import org.argeo.slc.SlcException;\r
-import org.argeo.slc.test.IncompatibleTestDataException;\r
-import org.argeo.slc.test.TestData;\r
-import org.argeo.slc.test.TestDefinition;\r
-import org.argeo.slc.test.TestResult;\r
-import org.argeo.slc.test.TestRun;\r
-import org.argeo.slc.test.TestStatus;\r
-import org.argeo.slc.test.context.ContextAware;\r
-\r
-/** Understands basic test data and context aware test data. */\r
-public class BasicTestDefinition implements TestDefinition {\r
-\r
-       public void execute(TestRun testRun) {\r
-               if (testRun.<TestData> getTestData() instanceof BasicTestData) {\r
-                       BasicTestData testData = testRun.getTestData();\r
-                       TestResult result = testRun.getTestResult();\r
-\r
-                       if (result == null)\r
-                               throw new SlcException("No test result defined.");\r
-\r
-                       try {\r
-                               if (testData.getExpected().equals(testData.getReached())) {\r
-                                       result.addResultPart(new SimpleResultPart(\r
-                                                       TestStatus.PASSED, "Reached and expected equals"));\r
-                               } else {\r
-                                       result.addResultPart(new SimpleResultPart(\r
-                                                       TestStatus.FAILED, "Expected "\r
-                                                                       + testData.getExpected() + " but reached "\r
-                                                                       + testData.getReached()));\r
-                               }\r
-                       } catch (Exception e) {\r
-                               result.addResultPart(new SimpleResultPart(TestStatus.ERROR,\r
-                                               "Could not compare", e));\r
-                       }\r
-               } else if (testRun.<TestData> getTestData() instanceof ContextAware) {\r
-                       TestData testData = testRun.getTestData();\r
-                       ContextUtils.compareReachedExpected((ContextAware) testData,\r
-                                       testRun.getTestResult());\r
-               } else {\r
-                       throw new IncompatibleTestDataException(testRun);\r
-               }\r
-       }\r
-}\r
+package org.argeo.slc.runtime.test;
+
+import org.argeo.slc.SlcException;
+import org.argeo.slc.test.IncompatibleTestDataException;
+import org.argeo.slc.test.TestData;
+import org.argeo.slc.test.TestDefinition;
+import org.argeo.slc.test.TestResult;
+import org.argeo.slc.test.TestRun;
+import org.argeo.slc.test.TestStatus;
+import org.argeo.slc.test.context.ContextAware;
+
+/** Understands basic test data and context aware test data. */
+public class BasicTestDefinition implements TestDefinition {
+
+       public void execute(TestRun testRun) {
+               if (testRun.<TestData> getTestData() instanceof BasicTestData) {
+                       BasicTestData testData = testRun.getTestData();
+                       TestResult result = testRun.getTestResult();
+
+                       if (result == null)
+                               throw new SlcException("No test result defined.");
+
+                       try {
+                               if (testData.getExpected().equals(testData.getReached())) {
+                                       result.addResultPart(new SimpleResultPart(
+                                                       TestStatus.PASSED, "Reached and expected equals"));
+                               } else {
+                                       result.addResultPart(new SimpleResultPart(
+                                                       TestStatus.FAILED, "Expected "
+                                                                       + testData.getExpected() + " but reached "
+                                                                       + testData.getReached()));
+                               }
+                       } catch (Exception e) {
+                               result.addResultPart(new SimpleResultPart(TestStatus.ERROR,
+                                               "Could not compare", e));
+                       }
+               } else if (testRun.<TestData> getTestData() instanceof ContextAware) {
+                       TestData testData = testRun.getTestData();
+                       ContextUtils.compareReachedExpected((ContextAware) testData,
+                                       testRun.getTestResult());
+               } else {
+                       throw new IncompatibleTestDataException(testRun);
+               }
+       }
+}
index 663e1ed465a5957e02af937abaf30da7eae7efcd..97d7305c1e3ad774e16c707e29c7867cb0852730 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.runtime.test;\r
-\r
-import java.util.Map;\r
-import java.util.TreeMap;\r
-\r
-import org.apache.commons.logging.Log;\r
-import org.apache.commons.logging.LogFactory;\r
-import org.argeo.slc.test.TestResult;\r
-import org.argeo.slc.test.TestStatus;\r
-import org.argeo.slc.test.context.ContextAware;\r
-import org.argeo.slc.test.context.ParentContextAware;\r
-\r
-/** Utilities for comparing and synchronising contexts. */\r
-public class ContextUtils {\r
-       private final static Log log = LogFactory.getLog(ContextUtils.class);\r
-\r
-       public static void compareReachedExpected(ContextAware contextAware,\r
-                       TestResult testResult) {\r
-               for (String key : contextAware.getExpectedValues().keySet()) {\r
-\r
-                       // Compare expected values with reached ones\r
-                       Object expectedValue = contextAware.getExpectedValues().get(key);\r
-\r
-                       if (expectedValue.toString().equals(\r
-                                       contextAware.getContextSkipFlag())) {\r
-                               if (log.isDebugEnabled())\r
-                                       log.debug("Skipped check for key '" + key + "'");\r
-                               continue;\r
-                       }\r
-\r
-                       if (contextAware.getValues().containsKey(key)) {\r
-                               Object reachedValue = contextAware.getValues().get(key);\r
-\r
-                               if (expectedValue.equals(contextAware.getContextAnyFlag())) {\r
-                                       testResult.addResultPart(new SimpleResultPart(\r
-                                                       TestStatus.PASSED, "Expected any value for key '"\r
-                                                                       + key + "'"));\r
-                               } else if (expectedValue.equals(reachedValue)) {\r
-                                       testResult.addResultPart(new SimpleResultPart(\r
-                                                       TestStatus.PASSED, "Values matched for key '" + key\r
-                                                                       + "'"));\r
-                               } else {\r
-                                       testResult.addResultPart(new SimpleResultPart(\r
-                                                       TestStatus.FAILED, "Mismatch for key '" + key\r
-                                                                       + "': expected '" + expectedValue\r
-                                                                       + "' but reached '" + reachedValue + "'"));\r
-                               }\r
-                       } else {\r
-                               testResult.addResultPart(new SimpleResultPart(\r
-                                               TestStatus.FAILED, "No value reached for key '" + key\r
-                                                               + "'"));\r
-                       }\r
-               }\r
-       }\r
-\r
-       /**\r
-        * Makes sure that all children and sub-children of parent share the same\r
-        * maps for values and expected values.\r
-        */\r
-       public static void synchronize(ParentContextAware parent) {\r
-               Map<String, Object> expectedValuesCommon = new TreeMap<String, Object>(\r
-                               parent.getExpectedValues());\r
-               synchronize(parent, expectedValuesCommon);\r
-               if (log.isDebugEnabled())\r
-                       log.debug("Synchronized context " + parent);\r
-\r
-       }\r
-\r
-       private static void synchronize(ParentContextAware parent,\r
-                       Map<String, Object> expectedValuesCommon) {\r
-               for (ContextAware child : parent.getChildContexts()) {\r
-                       // Values\r
-                       putNotContained(parent.getValues(), child.getValues());\r
-                       child.setValues(parent.getValues());\r
-\r
-                       // Expected Values\r
-                       // Expected values reference is not overridden: each child has its\r
-                       // own expected values map.\r
-                       overrideContained(expectedValuesCommon, child.getExpectedValues());\r
-\r
-                       // Creates a new Map in order not to disturb other context using the\r
-                       // same keys\r
-                       Map<String, Object> expectedValuesCommonChild = new TreeMap<String, Object>(\r
-                                       expectedValuesCommon);\r
-                       putNotContained(expectedValuesCommonChild,\r
-                                       child.getExpectedValues());\r
-\r
-                       if (child instanceof ParentContextAware) {\r
-                               // Recursive sync\r
-                               synchronize((ParentContextAware) child,\r
-                                               expectedValuesCommonChild);\r
-                       }\r
-               }\r
-\r
-       }\r
-\r
-       /**\r
-        * Put into common map the values from child map which are not already\r
-        * defined in common map.\r
-        */\r
-       public static void putNotContained(Map<String, Object> commonMap,\r
-                       Map<String, Object> childMap) {\r
-               for (String key : childMap.keySet()) {\r
-                       if (!commonMap.containsKey(key)) {\r
-                               commonMap.put(key, childMap.get(key));\r
-                       }\r
-               }\r
-       }\r
-\r
-       /** Overrides child map values with the values already set in common map */\r
-       public static void overrideContained(Map<String, Object> commonMap,\r
-                       Map<String, Object> childMap) {\r
-               for (String key : childMap.keySet()) {\r
-                       if (commonMap.containsKey(key)) {\r
-                               childMap.put(key, commonMap.get(key));\r
-                       }\r
-               }\r
-       }\r
-\r
-       /** Makes sure this cannot be instantiated. */\r
-       private ContextUtils() {\r
-\r
-       }\r
-}\r
+package org.argeo.slc.runtime.test;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.argeo.slc.test.TestResult;
+import org.argeo.slc.test.TestStatus;
+import org.argeo.slc.test.context.ContextAware;
+import org.argeo.slc.test.context.ParentContextAware;
+
+/** Utilities for comparing and synchronising contexts. */
+public class ContextUtils {
+       private final static Log log = LogFactory.getLog(ContextUtils.class);
+
+       public static void compareReachedExpected(ContextAware contextAware,
+                       TestResult testResult) {
+               for (String key : contextAware.getExpectedValues().keySet()) {
+
+                       // Compare expected values with reached ones
+                       Object expectedValue = contextAware.getExpectedValues().get(key);
+
+                       if (expectedValue.toString().equals(
+                                       contextAware.getContextSkipFlag())) {
+                               if (log.isDebugEnabled())
+                                       log.debug("Skipped check for key '" + key + "'");
+                               continue;
+                       }
+
+                       if (contextAware.getValues().containsKey(key)) {
+                               Object reachedValue = contextAware.getValues().get(key);
+
+                               if (expectedValue.equals(contextAware.getContextAnyFlag())) {
+                                       testResult.addResultPart(new SimpleResultPart(
+                                                       TestStatus.PASSED, "Expected any value for key '"
+                                                                       + key + "'"));
+                               } else if (expectedValue.equals(reachedValue)) {
+                                       testResult.addResultPart(new SimpleResultPart(
+                                                       TestStatus.PASSED, "Values matched for key '" + key
+                                                                       + "'"));
+                               } else {
+                                       testResult.addResultPart(new SimpleResultPart(
+                                                       TestStatus.FAILED, "Mismatch for key '" + key
+                                                                       + "': expected '" + expectedValue
+                                                                       + "' but reached '" + reachedValue + "'"));
+                               }
+                       } else {
+                               testResult.addResultPart(new SimpleResultPart(
+                                               TestStatus.FAILED, "No value reached for key '" + key
+                                                               + "'"));
+                       }
+               }
+       }
+
+       /**
+        * Makes sure that all children and sub-children of parent share the same
+        * maps for values and expected values.
+        */
+       public static void synchronize(ParentContextAware parent) {
+               Map<String, Object> expectedValuesCommon = new TreeMap<String, Object>(
+                               parent.getExpectedValues());
+               synchronize(parent, expectedValuesCommon);
+               if (log.isDebugEnabled())
+                       log.debug("Synchronized context " + parent);
+
+       }
+
+       private static void synchronize(ParentContextAware parent,
+                       Map<String, Object> expectedValuesCommon) {
+               for (ContextAware child : parent.getChildContexts()) {
+                       // Values
+                       putNotContained(parent.getValues(), child.getValues());
+                       child.setValues(parent.getValues());
+
+                       // Expected Values
+                       // Expected values reference is not overridden: each child has its
+                       // own expected values map.
+                       overrideContained(expectedValuesCommon, child.getExpectedValues());
+
+                       // Creates a new Map in order not to disturb other context using the
+                       // same keys
+                       Map<String, Object> expectedValuesCommonChild = new TreeMap<String, Object>(
+                                       expectedValuesCommon);
+                       putNotContained(expectedValuesCommonChild,
+                                       child.getExpectedValues());
+
+                       if (child instanceof ParentContextAware) {
+                               // Recursive sync
+                               synchronize((ParentContextAware) child,
+                                               expectedValuesCommonChild);
+                       }
+               }
+
+       }
+
+       /**
+        * Put into common map the values from child map which are not already
+        * defined in common map.
+        */
+       public static void putNotContained(Map<String, Object> commonMap,
+                       Map<String, Object> childMap) {
+               for (String key : childMap.keySet()) {
+                       if (!commonMap.containsKey(key)) {
+                               commonMap.put(key, childMap.get(key));
+                       }
+               }
+       }
+
+       /** Overrides child map values with the values already set in common map */
+       public static void overrideContained(Map<String, Object> commonMap,
+                       Map<String, Object> childMap) {
+               for (String key : childMap.keySet()) {
+                       if (commonMap.containsKey(key)) {
+                               childMap.put(key, commonMap.get(key));
+                       }
+               }
+       }
+
+       /** Makes sure this cannot be instantiated. */
+       private ContextUtils() {
+
+       }
+}
index 2c7726fcdd51d138e8535af84eca9c32aff41954..7ba74646331283d97667807794473197e549b1d9 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.runtime.test;\r
-\r
-import java.io.Serializable;\r
-\r
-import org.argeo.slc.test.TestResultPart;\r
-import org.argeo.slc.test.TestRun;\r
-import org.argeo.slc.test.TestRunAware;\r
-import org.argeo.slc.test.TestStatus;\r
-\r
-/**\r
- * <p>\r
- * Basic implementation of a result part, implementing the standard three status\r
- * approach for test results.\r
- * </p>\r
- * \r
- * @see TestStatus\r
- */\r
-public class SimpleResultPart implements TestResultPart, TestStatus,\r
-               TestRunAware, Serializable {\r
-       private static final long serialVersionUID = 6669675957685071901L;\r
-\r
-       private Long tid;\r
-\r
-       private String testRunUuid;\r
-\r
-       /** The status. Default to ERROR since it should always be explicitely set. */\r
-       private Integer status = ERROR;\r
-       private String message;\r
-       private String exceptionMessage;\r
-\r
-       public SimpleResultPart() {\r
-       }\r
-\r
-       public SimpleResultPart(Integer status, String message) {\r
-               this(status, message, null);\r
-       }\r
-\r
-       public SimpleResultPart(Integer status, String message, Exception exception) {\r
-               this.status = status;\r
-               this.message = message;\r
-               setException(exception);\r
-       }\r
-\r
-       public String getMessage() {\r
-               return message;\r
-       }\r
-\r
-       public void setMessage(String message) {\r
-               this.message = message;\r
-       }\r
-\r
-       public void setStatus(Integer status) {\r
-               this.status = status;\r
-       }\r
-\r
-       public Integer getStatus() {\r
-               return status;\r
-       }\r
-\r
-       public String getExceptionMessage() {\r
-               return exceptionMessage;\r
-       }\r
-\r
-       public void setException(Exception exception) {\r
-               if (exception == null)\r
-                       return;\r
-\r
-               StringBuffer buf = new StringBuffer("");\r
-               buf.append(exception.toString());\r
-               buf.append('\n');\r
-               for (StackTraceElement elem : exception.getStackTrace()) {\r
-                       buf.append('\t').append(elem.toString()).append('\n');\r
-               }\r
-\r
-               if (exception.getCause() != null)\r
-                       addRootCause(buf, exception.getCause());\r
-\r
-               this.exceptionMessage = buf.toString();\r
-       }\r
-\r
-       protected void addRootCause(StringBuffer buf, Throwable cause) {\r
-               if (cause == null)\r
-                       return;\r
-\r
-               buf.append("Caused by: " + cause.getMessage());\r
-               for (StackTraceElement elem : cause.getStackTrace()) {\r
-                       buf.append('\t').append(elem.toString()).append('\n');\r
-               }\r
-\r
-               if (cause.getCause() != null) {\r
-                       addRootCause(buf, cause.getCause());\r
-               }\r
-       }\r
-\r
-       @Override\r
-       public String toString() {\r
-               StringBuffer buf = new StringBuffer("");\r
-               buf.append(SlcTestUtils.statusToString(status));\r
-               if (status == PASSED || status == FAILED) {\r
-                       buf.append(' ');\r
-               } else if (status == ERROR) {\r
-                       buf.append("  ");\r
-               }\r
-               buf.append(message);\r
-               return buf.toString();\r
-       }\r
-\r
-       /** @deprecated */\r
-       Long getTid() {\r
-               return tid;\r
-       }\r
-\r
-       /** @deprecated */\r
-       void setTid(Long tid) {\r
-               this.tid = tid;\r
-       }\r
-\r
-       public String getTestRunUuid() {\r
-               return testRunUuid;\r
-       }\r
-\r
-       /** For ORM */\r
-       public void setTestRunUuid(String testRunUuid) {\r
-               this.testRunUuid = testRunUuid;\r
-       }\r
-\r
-       public void notifyTestRun(TestRun testRun) {\r
-               testRunUuid = testRun.getUuid();\r
-       }\r
-\r
-       public void setExceptionMessage(String exceptionMessage) {\r
-               this.exceptionMessage = exceptionMessage;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.runtime.test;
+
+import java.io.Serializable;
+
+import org.argeo.slc.test.TestResultPart;
+import org.argeo.slc.test.TestRun;
+import org.argeo.slc.test.TestRunAware;
+import org.argeo.slc.test.TestStatus;
+
+/**
+ * <p>
+ * Basic implementation of a result part, implementing the standard three status
+ * approach for test results.
+ * </p>
+ * 
+ * @see TestStatus
+ */
+public class SimpleResultPart implements TestResultPart, TestStatus,
+               TestRunAware, Serializable {
+       private static final long serialVersionUID = 6669675957685071901L;
+
+       private Long tid;
+
+       private String testRunUuid;
+
+       /** The status. Default to ERROR since it should always be explicitely set. */
+       private Integer status = ERROR;
+       private String message;
+       private String exceptionMessage;
+
+       public SimpleResultPart() {
+       }
+
+       public SimpleResultPart(Integer status, String message) {
+               this(status, message, null);
+       }
+
+       public SimpleResultPart(Integer status, String message, Exception exception) {
+               this.status = status;
+               this.message = message;
+               setException(exception);
+       }
+
+       public String getMessage() {
+               return message;
+       }
+
+       public void setMessage(String message) {
+               this.message = message;
+       }
+
+       public void setStatus(Integer status) {
+               this.status = status;
+       }
+
+       public Integer getStatus() {
+               return status;
+       }
+
+       public String getExceptionMessage() {
+               return exceptionMessage;
+       }
+
+       public void setException(Exception exception) {
+               if (exception == null)
+                       return;
+
+               StringBuffer buf = new StringBuffer("");
+               buf.append(exception.toString());
+               buf.append('\n');
+               for (StackTraceElement elem : exception.getStackTrace()) {
+                       buf.append('\t').append(elem.toString()).append('\n');
+               }
+
+               if (exception.getCause() != null)
+                       addRootCause(buf, exception.getCause());
+
+               this.exceptionMessage = buf.toString();
+       }
+
+       protected void addRootCause(StringBuffer buf, Throwable cause) {
+               if (cause == null)
+                       return;
+
+               buf.append("Caused by: " + cause.getMessage());
+               for (StackTraceElement elem : cause.getStackTrace()) {
+                       buf.append('\t').append(elem.toString()).append('\n');
+               }
+
+               if (cause.getCause() != null) {
+                       addRootCause(buf, cause.getCause());
+               }
+       }
+
+       @Override
+       public String toString() {
+               StringBuffer buf = new StringBuffer("");
+               buf.append(SlcTestUtils.statusToString(status));
+               if (status == PASSED || status == FAILED) {
+                       buf.append(' ');
+               } else if (status == ERROR) {
+                       buf.append("  ");
+               }
+               buf.append(message);
+               return buf.toString();
+       }
+
+       /** @deprecated */
+       Long getTid() {
+               return tid;
+       }
+
+       /** @deprecated */
+       void setTid(Long tid) {
+               this.tid = tid;
+       }
+
+       public String getTestRunUuid() {
+               return testRunUuid;
+       }
+
+       /** For ORM */
+       public void setTestRunUuid(String testRunUuid) {
+               this.testRunUuid = testRunUuid;
+       }
+
+       public void notifyTestRun(TestRun testRun) {
+               testRunUuid = testRun.getUuid();
+       }
+
+       public void setExceptionMessage(String exceptionMessage) {
+               this.exceptionMessage = exceptionMessage;
+       }
+
+}
index b4437d71f53953437b74cf9a10062e3c338fb68b..3791a7ec6300ff773a9b61974e816365f209423c 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.runtime.test;\r
-\r
-import java.util.Date;\r
-import java.util.List;\r
-import java.util.Map;\r
-import java.util.TreeMap;\r
-import java.util.UUID;\r
-import java.util.Vector;\r
-\r
-import org.apache.commons.logging.Log;\r
-import org.apache.commons.logging.LogFactory;\r
-import org.argeo.slc.SlcException;\r
-import org.argeo.slc.test.TestResult;\r
-import org.argeo.slc.test.TestResultPart;\r
-import org.argeo.slc.test.TestRun;\r
-\r
-/**\r
- * Basic implementation of a test result containing only a list of result parts.\r
- */\r
-public class SimpleTestResult implements TestResult {\r
-       private static Log log = LogFactory.getLog(SimpleTestResult.class);\r
-\r
-       private String uuid;\r
-       private String currentTestRunUuid;\r
-\r
-       private Boolean throwError = true;\r
-\r
-       private Date closeDate;\r
-       private List<TestResultPart> parts = new Vector<TestResultPart>();\r
-\r
-       private Map<String, String> attributes = new TreeMap<String, String>();\r
-\r
-       public void addResultPart(TestResultPart part) {\r
-               if (throwError && part.getStatus() == ERROR) {\r
-                       throw new SlcException(\r
-                                       "There was an error in the underlying test: "\r
-                                                       + part.getExceptionMessage());\r
-               }\r
-               parts.add(part);\r
-               if (log.isDebugEnabled())\r
-                       log.debug(part);\r
-       }\r
-\r
-       public void close() {\r
-               parts.clear();\r
-               closeDate = new Date();\r
-       }\r
-\r
-       public List<TestResultPart> getParts() {\r
-               return parts;\r
-       }\r
-\r
-       public Date getCloseDate() {\r
-               return closeDate;\r
-       }\r
-\r
-       public void setThrowError(Boolean throwError) {\r
-               this.throwError = throwError;\r
-       }\r
-\r
-       public void notifyTestRun(TestRun testRun) {\r
-               currentTestRunUuid = testRun.getUuid();\r
-       }\r
-\r
-       public String getUuid() {\r
-               if (uuid == null) {\r
-                       uuid = UUID.randomUUID().toString();\r
-               }\r
-               return uuid;\r
-       }\r
-\r
-       public void setUuid(String uuid) {\r
-               this.uuid = uuid;\r
-       }\r
-\r
-       public String getCurrentTestRunUuid() {\r
-               return currentTestRunUuid;\r
-       }\r
-\r
-       public Map<String, String> getAttributes() {\r
-               return attributes;\r
-       }\r
-\r
-       public void setAttributes(Map<String, String> attributes) {\r
-               this.attributes = attributes;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.runtime.test;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+import java.util.TreeMap;
+import java.util.UUID;
+import java.util.Vector;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.argeo.slc.SlcException;
+import org.argeo.slc.test.TestResult;
+import org.argeo.slc.test.TestResultPart;
+import org.argeo.slc.test.TestRun;
+
+/**
+ * Basic implementation of a test result containing only a list of result parts.
+ */
+public class SimpleTestResult implements TestResult {
+       private static Log log = LogFactory.getLog(SimpleTestResult.class);
+
+       private String uuid;
+       private String currentTestRunUuid;
+
+       private Boolean throwError = true;
+
+       private Date closeDate;
+       private List<TestResultPart> parts = new Vector<TestResultPart>();
+
+       private Map<String, String> attributes = new TreeMap<String, String>();
+
+       public void addResultPart(TestResultPart part) {
+               if (throwError && part.getStatus() == ERROR) {
+                       throw new SlcException(
+                                       "There was an error in the underlying test: "
+                                                       + part.getExceptionMessage());
+               }
+               parts.add(part);
+               if (log.isDebugEnabled())
+                       log.debug(part);
+       }
+
+       public void close() {
+               parts.clear();
+               closeDate = new Date();
+       }
+
+       public List<TestResultPart> getParts() {
+               return parts;
+       }
+
+       public Date getCloseDate() {
+               return closeDate;
+       }
+
+       public void setThrowError(Boolean throwError) {
+               this.throwError = throwError;
+       }
+
+       public void notifyTestRun(TestRun testRun) {
+               currentTestRunUuid = testRun.getUuid();
+       }
+
+       public String getUuid() {
+               if (uuid == null) {
+                       uuid = UUID.randomUUID().toString();
+               }
+               return uuid;
+       }
+
+       public void setUuid(String uuid) {
+               this.uuid = uuid;
+       }
+
+       public String getCurrentTestRunUuid() {
+               return currentTestRunUuid;
+       }
+
+       public Map<String, String> getAttributes() {
+               return attributes;
+       }
+
+       public void setAttributes(Map<String, String> attributes) {
+               this.attributes = attributes;
+       }
+
+}
index a00c48dfa2f3169e046a789d19a117f4d1cdf9ae..bc0145295be9b3c80fb2042947352e52d4cde3f4 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.runtime.test;\r
-\r
-import java.util.UUID;\r
-\r
-import org.argeo.slc.deploy.DeployedSystem;\r
-import org.argeo.slc.test.ExecutableTestRun;\r
-import org.argeo.slc.test.TestData;\r
-import org.argeo.slc.test.TestDefinition;\r
-import org.argeo.slc.test.TestResult;\r
-import org.argeo.slc.test.WritableTestRun;\r
-\r
-/**\r
- * A basic bean implementation of a <code>WritableTestRun</code>, holding\r
- * references to the various parts of a test run.\r
- */\r
-public class SimpleTestRun implements WritableTestRun, ExecutableTestRun {\r
-       private String uuid;\r
-\r
-       // private String slcExecutionUuid;\r
-       // private String slcExecutionStepUuid;\r
-\r
-       private DeployedSystem deployedSystem;\r
-       private TestData testData;\r
-       private TestDefinition testDefinition;\r
-       private TestResult testResult;\r
-\r
-       /** Executes the underlying test definition. */\r
-       public void run() {\r
-               uuid = UUID.randomUUID().toString();\r
-               if (testResult != null)\r
-                       testResult.notifyTestRun(this);\r
-\r
-               testDefinition.execute(this);\r
-       }\r
-\r
-       @SuppressWarnings("unchecked")\r
-       public <T extends DeployedSystem> T getDeployedSystem() {\r
-               return (T) deployedSystem;\r
-       }\r
-\r
-       public void setDeployedSystem(DeployedSystem deployedSystem) {\r
-               this.deployedSystem = deployedSystem;\r
-       }\r
-\r
-       @SuppressWarnings("unchecked")\r
-       public <T extends TestData> T getTestData() {\r
-               return (T) testData;\r
-       }\r
-\r
-       public void setTestData(TestData testData) {\r
-               this.testData = testData;\r
-       }\r
-\r
-       @SuppressWarnings("unchecked")\r
-       public <T extends TestDefinition> T getTestDefinition() {\r
-               return (T) testDefinition;\r
-       }\r
-\r
-       public void setTestDefinition(TestDefinition testDefinition) {\r
-               this.testDefinition = testDefinition;\r
-       }\r
-\r
-       @SuppressWarnings("unchecked")\r
-       public <T extends TestResult> T getTestResult() {\r
-               return (T) testResult;\r
-       }\r
-\r
-       public void setTestResult(TestResult testResult) {\r
-               this.testResult = testResult;\r
-       }\r
-\r
-       public String getUuid() {\r
-               return uuid;\r
-       }\r
-\r
-       public void setUuid(String uuid) {\r
-               this.uuid = uuid;\r
-       }\r
-\r
-       // public String getSlcExecutionUuid() {\r
-       // return slcExecutionUuid;\r
-       // }\r
-       //\r
-       // public void setSlcExecutionUuid(String slcExecutionUuid) {\r
-       // this.slcExecutionUuid = slcExecutionUuid;\r
-       // }\r
-       //\r
-       // public String getSlcExecutionStepUuid() {\r
-       // return slcExecutionStepUuid;\r
-       // }\r
-       //\r
-       // public void setSlcExecutionStepUuid(String slcExecutionStepUuid) {\r
-       // this.slcExecutionStepUuid = slcExecutionStepUuid;\r
-       // }\r
-}\r
+package org.argeo.slc.runtime.test;
+
+import java.util.UUID;
+
+import org.argeo.slc.deploy.DeployedSystem;
+import org.argeo.slc.test.ExecutableTestRun;
+import org.argeo.slc.test.TestData;
+import org.argeo.slc.test.TestDefinition;
+import org.argeo.slc.test.TestResult;
+import org.argeo.slc.test.WritableTestRun;
+
+/**
+ * A basic bean implementation of a <code>WritableTestRun</code>, holding
+ * references to the various parts of a test run.
+ */
+public class SimpleTestRun implements WritableTestRun, ExecutableTestRun {
+       private String uuid;
+
+       // private String slcExecutionUuid;
+       // private String slcExecutionStepUuid;
+
+       private DeployedSystem deployedSystem;
+       private TestData testData;
+       private TestDefinition testDefinition;
+       private TestResult testResult;
+
+       /** Executes the underlying test definition. */
+       public void run() {
+               uuid = UUID.randomUUID().toString();
+               if (testResult != null)
+                       testResult.notifyTestRun(this);
+
+               testDefinition.execute(this);
+       }
+
+       @SuppressWarnings("unchecked")
+       public <T extends DeployedSystem> T getDeployedSystem() {
+               return (T) deployedSystem;
+       }
+
+       public void setDeployedSystem(DeployedSystem deployedSystem) {
+               this.deployedSystem = deployedSystem;
+       }
+
+       @SuppressWarnings("unchecked")
+       public <T extends TestData> T getTestData() {
+               return (T) testData;
+       }
+
+       public void setTestData(TestData testData) {
+               this.testData = testData;
+       }
+
+       @SuppressWarnings("unchecked")
+       public <T extends TestDefinition> T getTestDefinition() {
+               return (T) testDefinition;
+       }
+
+       public void setTestDefinition(TestDefinition testDefinition) {
+               this.testDefinition = testDefinition;
+       }
+
+       @SuppressWarnings("unchecked")
+       public <T extends TestResult> T getTestResult() {
+               return (T) testResult;
+       }
+
+       public void setTestResult(TestResult testResult) {
+               this.testResult = testResult;
+       }
+
+       public String getUuid() {
+               return uuid;
+       }
+
+       public void setUuid(String uuid) {
+               this.uuid = uuid;
+       }
+
+       // public String getSlcExecutionUuid() {
+       // return slcExecutionUuid;
+       // }
+       //
+       // public void setSlcExecutionUuid(String slcExecutionUuid) {
+       // this.slcExecutionUuid = slcExecutionUuid;
+       // }
+       //
+       // public String getSlcExecutionStepUuid() {
+       // return slcExecutionStepUuid;
+       // }
+       //
+       // public void setSlcExecutionStepUuid(String slcExecutionStepUuid) {
+       // this.slcExecutionStepUuid = slcExecutionStepUuid;
+       // }
+}
index fe38620ade95639f56bc207802760c13cddedd5d..5275d0f5410ec43974b634660ee2e96e99868f2f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.runtime.test;
 
 import org.argeo.slc.SlcException;
index b2d74a7c90aeeaa8fa8f06459d5243c3f23d7e98..872f1a5ab3bb4acd24a7ec2af0d0e9cd9d0c4de9 100644 (file)
@@ -1,63 +1,48 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.runtime.test;\r
-\r
-import org.argeo.slc.UnsupportedException;\r
-import org.argeo.slc.test.TestData;\r
-import org.argeo.slc.test.TestDataProvider;\r
-\r
-/** Utilities for dealing with test datas. */\r
-public class TestDataUtils {\r
-       /** Extracts the test data from the given provider. */\r
-       public static <T extends TestData> T getFromProvider(Object obj,\r
-                       Class<T> clss, String key) {\r
-               if (obj instanceof TestDataProvider) {\r
-                       TestDataProvider testDataProvider = (TestDataProvider) obj;\r
-                       return testDataProvider.getTestData(clss, key);\r
-               } else {\r
-                       throw new UnsupportedException("test data provider", obj);\r
-               }\r
-       }\r
-\r
-       /**\r
-        * Extracts the test data from the given provider using <code>null</code>\r
-        * as key.\r
-        */\r
-       public static <T extends TestData> T getFromProvider(Object obj,\r
-                       Class<T> clss) {\r
-               return getFromProvider(obj, clss, null);\r
-       }\r
-\r
-       /**\r
-        * Returns it self after making the proper checks. Used for test data being\r
-        * their own data providers.\r
-        */\r
-       @SuppressWarnings("unchecked")\r
-       public static <T extends TestData> T getItSelf(Class<T> clss,\r
-                       TestData testDataObject) {\r
-               if (clss.isAssignableFrom(testDataObject.getClass())) {\r
-                       return (T) testDataObject;\r
-               } else {\r
-                       throw new UnsupportedException("test data", testDataObject);\r
-               }\r
-\r
-       }\r
-\r
-       /** Makes sure this is an utility class. */\r
-       private TestDataUtils() {\r
-\r
-       }\r
-}\r
+package org.argeo.slc.runtime.test;
+
+import org.argeo.slc.UnsupportedException;
+import org.argeo.slc.test.TestData;
+import org.argeo.slc.test.TestDataProvider;
+
+/** Utilities for dealing with test datas. */
+public class TestDataUtils {
+       /** Extracts the test data from the given provider. */
+       public static <T extends TestData> T getFromProvider(Object obj,
+                       Class<T> clss, String key) {
+               if (obj instanceof TestDataProvider) {
+                       TestDataProvider testDataProvider = (TestDataProvider) obj;
+                       return testDataProvider.getTestData(clss, key);
+               } else {
+                       throw new UnsupportedException("test data provider", obj);
+               }
+       }
+
+       /**
+        * Extracts the test data from the given provider using <code>null</code>
+        * as key.
+        */
+       public static <T extends TestData> T getFromProvider(Object obj,
+                       Class<T> clss) {
+               return getFromProvider(obj, clss, null);
+       }
+
+       /**
+        * Returns it self after making the proper checks. Used for test data being
+        * their own data providers.
+        */
+       @SuppressWarnings("unchecked")
+       public static <T extends TestData> T getItSelf(Class<T> clss,
+                       TestData testDataObject) {
+               if (clss.isAssignableFrom(testDataObject.getClass())) {
+                       return (T) testDataObject;
+               } else {
+                       throw new UnsupportedException("test data", testDataObject);
+               }
+
+       }
+
+       /** Makes sure this is an utility class. */
+       private TestDataUtils() {
+
+       }
+}
index 15fb429033994fa30bd782d6f1c5f39b28da4f3a..e433d66949b87b416ea42a11eb9581c8520bab40 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.deploy;
 
 import java.util.Map;
index edb383cb573db6eea57168224ad2d82c33ac27f2..3a5e8a75b51fd94c9c5224372386bb015a977965 100644 (file)
@@ -1,83 +1,68 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.execution;\r
-\r
-import junit.framework.TestCase;\r
-\r
-import org.apache.commons.logging.Log;\r
-import org.apache.commons.logging.LogFactory;\r
-import org.argeo.slc.execution.ExecutionContext;\r
-import org.argeo.slc.execution.ExecutionFlow;\r
-import org.argeo.slc.runtime.test.SimpleTestResult;\r
-import org.argeo.slc.test.TestResultPart;\r
-import org.argeo.slc.test.TestStatus;\r
-import org.springframework.context.ConfigurableApplicationContext;\r
-import org.springframework.context.support.ClassPathXmlApplicationContext;\r
-\r
-public abstract class AbstractExecutionFlowTestCase extends TestCase {\r
-\r
-       protected final Log log = LogFactory.getLog(getClass());\r
-\r
-       protected void logException(Throwable ex) {\r
-               log.info("Got Exception of class " + ex.getClass().toString()\r
-                               + " with message '" + ex.getMessage() + "'.");\r
-       }\r
-\r
-       protected void validateTestResult(SimpleTestResult testResult) {\r
-               validateTestResult(testResult, TestStatus.PASSED);\r
-       }\r
-\r
-       protected void validateTestResult(SimpleTestResult testResult,\r
-                       int expectedStatus) {\r
-               for (TestResultPart part : testResult.getParts()) {\r
-                       if (part.getStatus() != expectedStatus) {\r
-                               fail("Error found in TestResult: " + part.getMessage());\r
-                       }\r
-               }\r
-       }\r
-\r
-       protected ConfigurableApplicationContext createApplicationContext(\r
-                       String applicationContextSuffix) {\r
-               ConfigurableApplicationContext applicationContext = new ClassPathXmlApplicationContext(\r
-                               inPackage(applicationContextSuffix));\r
-               // applicationContext.start();\r
-               return applicationContext;\r
-       }\r
-\r
-       protected void configureAndExecuteSlcFlow(String applicationContextSuffix,\r
-                       String beanName) {\r
-               ConfigurableApplicationContext applicationContext = createApplicationContext(applicationContextSuffix);\r
-               ExecutionContext executionContext = (ExecutionContext) applicationContext\r
-                               .getBean("executionContext");\r
-               ExecutionFlow executionFlow = (ExecutionFlow) applicationContext\r
-                               .getBean(beanName);\r
-               if (executionFlow instanceof DefaultExecutionFlow)\r
-                       ((DefaultExecutionFlow) executionFlow)\r
-                                       .setExecutionContext(executionContext);\r
-               try {\r
-                       executionContext.beforeFlow(executionFlow);\r
-                       executionFlow.run();\r
-               } finally {\r
-                       executionContext.afterFlow(executionFlow);\r
-               }\r
-               applicationContext.close();\r
-       }\r
-\r
-       protected String inPackage(String suffix) {\r
-               String prefix = getClass().getPackage().getName().replace('.', '/');\r
-               return prefix + '/' + suffix;\r
-       }\r
-}\r
+package org.argeo.slc.core.execution;
+
+import junit.framework.TestCase;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.argeo.slc.execution.ExecutionContext;
+import org.argeo.slc.execution.ExecutionFlow;
+import org.argeo.slc.runtime.test.SimpleTestResult;
+import org.argeo.slc.test.TestResultPart;
+import org.argeo.slc.test.TestStatus;
+import org.springframework.context.ConfigurableApplicationContext;
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+public abstract class AbstractExecutionFlowTestCase extends TestCase {
+
+       protected final Log log = LogFactory.getLog(getClass());
+
+       protected void logException(Throwable ex) {
+               log.info("Got Exception of class " + ex.getClass().toString()
+                               + " with message '" + ex.getMessage() + "'.");
+       }
+
+       protected void validateTestResult(SimpleTestResult testResult) {
+               validateTestResult(testResult, TestStatus.PASSED);
+       }
+
+       protected void validateTestResult(SimpleTestResult testResult,
+                       int expectedStatus) {
+               for (TestResultPart part : testResult.getParts()) {
+                       if (part.getStatus() != expectedStatus) {
+                               fail("Error found in TestResult: " + part.getMessage());
+                       }
+               }
+       }
+
+       protected ConfigurableApplicationContext createApplicationContext(
+                       String applicationContextSuffix) {
+               ConfigurableApplicationContext applicationContext = new ClassPathXmlApplicationContext(
+                               inPackage(applicationContextSuffix));
+               // applicationContext.start();
+               return applicationContext;
+       }
+
+       protected void configureAndExecuteSlcFlow(String applicationContextSuffix,
+                       String beanName) {
+               ConfigurableApplicationContext applicationContext = createApplicationContext(applicationContextSuffix);
+               ExecutionContext executionContext = (ExecutionContext) applicationContext
+                               .getBean("executionContext");
+               ExecutionFlow executionFlow = (ExecutionFlow) applicationContext
+                               .getBean(beanName);
+               if (executionFlow instanceof DefaultExecutionFlow)
+                       ((DefaultExecutionFlow) executionFlow)
+                                       .setExecutionContext(executionContext);
+               try {
+                       executionContext.beforeFlow(executionFlow);
+                       executionFlow.run();
+               } finally {
+                       executionContext.afterFlow(executionFlow);
+               }
+               applicationContext.close();
+       }
+
+       protected String inPackage(String suffix) {
+               String prefix = getClass().getPackage().getName().replace('.', '/');
+               return prefix + '/' + suffix;
+       }
+}
index c2ecd09dcbcc0fffef5089fefc339dd7db2b4890..b79fe44c5a0eb5bdc22d6a240848d78a62d72128 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.execution;\r
-\r
-import java.util.HashMap;\r
-import java.util.Map;\r
-\r
-import org.argeo.slc.execution.ExecutionContext;\r
-import org.argeo.slc.execution.ExecutionFlow;\r
-import org.argeo.slc.runtime.test.SimpleTestResult;\r
-import org.argeo.slc.test.TestStatus;\r
-import org.springframework.beans.factory.BeanCreationException;\r
-import org.springframework.context.ConfigurableApplicationContext;\r
-\r
-public class BasicExecutionFlowTest extends AbstractExecutionFlowTestCase {\r
-       // TO TEST\r
-       // - post-processing for @{} replacement in beans with complex properties\r
-       // - bean of scope other than execution are not resolved at execution\r
-\r
-       // public void testMyTest() throws Exception {\r
-       // ConfigurableApplicationContext applicationContext =\r
-       // createApplicationContext("test.xml");\r
-       // log.info("Start Execution");\r
-       // ((ExecutionFlow) applicationContext.getBean("flow1")).execute();\r
-       // applicationContext.close();\r
-       // }\r
-\r
-       public void XXXtestSpecOverriding() throws Exception {\r
-               ConfigurableApplicationContext applicationContext = createApplicationContext("specOverriding.xml");\r
-               ((ExecutionFlow) applicationContext.getBean("flow2")).run();\r
-               SimpleTestResult res = (SimpleTestResult) applicationContext\r
-                               .getBean("myTestResult");\r
-               validateTestResult(res);\r
-       }\r
-\r
-       public void testMultipleFlows() throws Exception {\r
-               ConfigurableApplicationContext applicationContext = createApplicationContext("multipleFlow.xml");\r
-               ((ExecutionFlow) applicationContext.getBean("flow1")).run();\r
-               SimpleTestResult res = (SimpleTestResult) applicationContext\r
-                               .getBean("myTestResult");\r
-               validateTestResult(res);\r
-               res.getParts().clear();\r
-               ((ExecutionFlow) applicationContext.getBean("flow2")).run();\r
-               validateTestResult(res, TestStatus.FAILED);\r
-               applicationContext.close();\r
-       }\r
-\r
-       /**\r
-        * Test placeholder resolution in a context without scope execution or proxy\r
-        * and with cascading flows (the flow A contains the flow B)\r
-        * \r
-        * @throws Exception\r
-        */\r
-       public void testPlaceHolders() throws Exception {\r
-               ConfigurableApplicationContext applicationContext = createApplicationContext("placeHolders.cascading.xml");\r
-               ((ExecutionFlow) applicationContext.getBean("flowA")).run();\r
-               validateTestResult((SimpleTestResult) applicationContext\r
-                               .getBean("myTestResult"));\r
-               applicationContext.close();\r
-       }\r
-\r
-       /**\r
-        * Test placeholder resolution in a context without scope execution or proxy\r
-        * and with cascading flows (the flow A contains the flow B) setting\r
-        * execution values (should have no effect)\r
-        * \r
-        * @throws Exception\r
-        */\r
-       public void testPlaceHoldersWithExecutionValues() throws Exception {\r
-               ConfigurableApplicationContext applicationContext = createApplicationContext("placeHolders.cascading.xml");\r
-\r
-               ExecutionContext executionContext = (ExecutionContext) applicationContext\r
-                               .getBean("executionContext");\r
-               Map<String, String> executionParameters = new HashMap<String, String>();\r
-               executionParameters.put("p1", "e1");\r
-               executionParameters.put("p2", "e2");\r
-               executionParameters.put("p3", "e3");\r
-               executionParameters.put("p4", "e4");\r
-               executionParameters.put("p5", "e5");\r
-               executionParameters.put("p6", "e6");\r
-               executionParameters.put("p7", "e7");\r
-               executionParameters.put("p8", "e8");\r
-               addVariables(executionContext, executionParameters);\r
-\r
-               ((ExecutionFlow) applicationContext.getBean("flowA")).run();\r
-               validateTestResult((SimpleTestResult) applicationContext\r
-                               .getBean("myTestResult"));\r
-               applicationContext.close();\r
-       }\r
-\r
-       public void XXXtestPlaceHoldersExec() throws Exception {\r
-               ConfigurableApplicationContext applicationContext = createApplicationContext("placeHolders.cascading.exec.xml");\r
-\r
-               ExecutionContext executionContext = (ExecutionContext) applicationContext\r
-                               .getBean("executionContext");\r
-               Map<String, String> executionParameters = new HashMap<String, String>();\r
-               executionParameters.put("p1", "e1");\r
-               executionParameters.put("p2", "e2");\r
-               executionParameters.put("p3", "e3");\r
-               executionParameters.put("p4", "e4");\r
-               executionParameters.put("p5", "e5");\r
-               executionParameters.put("p6", "e6");\r
-               addVariables(executionContext, executionParameters);\r
-\r
-               ((ExecutionFlow) applicationContext.getBean("flowA")).run();\r
-               validateTestResult((SimpleTestResult) applicationContext\r
-                               .getBean("myTestResult"));\r
-               applicationContext.close();\r
-       }\r
-\r
-       public void testCanonicFlowParameters() throws Exception {\r
-               configureAndExecuteSlcFlow("canonic-001.xml", "canonic.001");\r
-       }\r
-\r
-       public void testCanonicDefaultValues() throws Exception {\r
-               configureAndExecuteSlcFlow("canonic-002.xml", "canonic.002");\r
-       }\r
-\r
-       public void testCanonicMissingValues() throws Exception {\r
-               try {\r
-                       configureAndExecuteSlcFlow("canonic-003.error.xml", "canonic.003");\r
-                       fail("Parameter not set - should be rejected.");\r
-               } catch (BeanCreationException e) {\r
-                       // exception expected\r
-                       logException(e);\r
-               }\r
-       }\r
-\r
-       public void testCanonicUnknownParameter() throws Exception {\r
-               try {\r
-                       configureAndExecuteSlcFlow("canonic-004.error.xml", "canonic.004");\r
-                       fail("Unknown parameter set - should be rejected.");\r
-               } catch (BeanCreationException e) {\r
-                       // exception expected\r
-                       logException(e);\r
-               }\r
-       }\r
-\r
-       public void testListSetMap() throws Exception {\r
-               ConfigurableApplicationContext applicationContext = createApplicationContext("listSetMap.xml");\r
-               ExecutionFlow executionFlow = (ExecutionFlow) applicationContext\r
-                               .getBean("myFlow");\r
-               executionFlow.run();\r
-\r
-               validateTestResult((SimpleTestResult) applicationContext\r
-                               .getBean("myTestResult"));\r
-\r
-               // BasicTestData res = (BasicTestData)\r
-               // applicationContext.getBean("cascadingComplex.testData");\r
-               // log.info("res=" + res.getReached().toString());\r
-\r
-               applicationContext.close();\r
-       }\r
-\r
-       public void testListSetMapMultipleFlows() throws Exception {\r
-               ConfigurableApplicationContext applicationContext = createApplicationContext("listSetMapMultipleFlow.xml");\r
-               ((ExecutionFlow) applicationContext.getBean("flow1")).run();\r
-               SimpleTestResult res = (SimpleTestResult) applicationContext\r
-                               .getBean("myTestResult");\r
-               validateTestResult(res);\r
-               res.getParts().clear();\r
-               ((ExecutionFlow) applicationContext.getBean("flow2")).run();\r
-               validateTestResult(res, TestStatus.FAILED);\r
-               applicationContext.close();\r
-       }\r
-\r
-       protected void addVariables(ExecutionContext executionContext,\r
-                       Map<String, String> vars) {\r
-               for (String key : vars.keySet())\r
-                       executionContext.setVariable(key, vars.get(key));\r
-       }\r
-}\r
+package org.argeo.slc.core.execution;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.argeo.slc.execution.ExecutionContext;
+import org.argeo.slc.execution.ExecutionFlow;
+import org.argeo.slc.runtime.test.SimpleTestResult;
+import org.argeo.slc.test.TestStatus;
+import org.springframework.beans.factory.BeanCreationException;
+import org.springframework.context.ConfigurableApplicationContext;
+
+public class BasicExecutionFlowTest extends AbstractExecutionFlowTestCase {
+       // TO TEST
+       // - post-processing for @{} replacement in beans with complex properties
+       // - bean of scope other than execution are not resolved at execution
+
+       // public void testMyTest() throws Exception {
+       // ConfigurableApplicationContext applicationContext =
+       // createApplicationContext("test.xml");
+       // log.info("Start Execution");
+       // ((ExecutionFlow) applicationContext.getBean("flow1")).execute();
+       // applicationContext.close();
+       // }
+
+       public void XXXtestSpecOverriding() throws Exception {
+               ConfigurableApplicationContext applicationContext = createApplicationContext("specOverriding.xml");
+               ((ExecutionFlow) applicationContext.getBean("flow2")).run();
+               SimpleTestResult res = (SimpleTestResult) applicationContext
+                               .getBean("myTestResult");
+               validateTestResult(res);
+       }
+
+       public void testMultipleFlows() throws Exception {
+               ConfigurableApplicationContext applicationContext = createApplicationContext("multipleFlow.xml");
+               ((ExecutionFlow) applicationContext.getBean("flow1")).run();
+               SimpleTestResult res = (SimpleTestResult) applicationContext
+                               .getBean("myTestResult");
+               validateTestResult(res);
+               res.getParts().clear();
+               ((ExecutionFlow) applicationContext.getBean("flow2")).run();
+               validateTestResult(res, TestStatus.FAILED);
+               applicationContext.close();
+       }
+
+       /**
+        * Test placeholder resolution in a context without scope execution or proxy
+        * and with cascading flows (the flow A contains the flow B)
+        * 
+        * @throws Exception
+        */
+       public void testPlaceHolders() throws Exception {
+               ConfigurableApplicationContext applicationContext = createApplicationContext("placeHolders.cascading.xml");
+               ((ExecutionFlow) applicationContext.getBean("flowA")).run();
+               validateTestResult((SimpleTestResult) applicationContext
+                               .getBean("myTestResult"));
+               applicationContext.close();
+       }
+
+       /**
+        * Test placeholder resolution in a context without scope execution or proxy
+        * and with cascading flows (the flow A contains the flow B) setting
+        * execution values (should have no effect)
+        * 
+        * @throws Exception
+        */
+       public void testPlaceHoldersWithExecutionValues() throws Exception {
+               ConfigurableApplicationContext applicationContext = createApplicationContext("placeHolders.cascading.xml");
+
+               ExecutionContext executionContext = (ExecutionContext) applicationContext
+                               .getBean("executionContext");
+               Map<String, String> executionParameters = new HashMap<String, String>();
+               executionParameters.put("p1", "e1");
+               executionParameters.put("p2", "e2");
+               executionParameters.put("p3", "e3");
+               executionParameters.put("p4", "e4");
+               executionParameters.put("p5", "e5");
+               executionParameters.put("p6", "e6");
+               executionParameters.put("p7", "e7");
+               executionParameters.put("p8", "e8");
+               addVariables(executionContext, executionParameters);
+
+               ((ExecutionFlow) applicationContext.getBean("flowA")).run();
+               validateTestResult((SimpleTestResult) applicationContext
+                               .getBean("myTestResult"));
+               applicationContext.close();
+       }
+
+       public void XXXtestPlaceHoldersExec() throws Exception {
+               ConfigurableApplicationContext applicationContext = createApplicationContext("placeHolders.cascading.exec.xml");
+
+               ExecutionContext executionContext = (ExecutionContext) applicationContext
+                               .getBean("executionContext");
+               Map<String, String> executionParameters = new HashMap<String, String>();
+               executionParameters.put("p1", "e1");
+               executionParameters.put("p2", "e2");
+               executionParameters.put("p3", "e3");
+               executionParameters.put("p4", "e4");
+               executionParameters.put("p5", "e5");
+               executionParameters.put("p6", "e6");
+               addVariables(executionContext, executionParameters);
+
+               ((ExecutionFlow) applicationContext.getBean("flowA")).run();
+               validateTestResult((SimpleTestResult) applicationContext
+                               .getBean("myTestResult"));
+               applicationContext.close();
+       }
+
+       public void testCanonicFlowParameters() throws Exception {
+               configureAndExecuteSlcFlow("canonic-001.xml", "canonic.001");
+       }
+
+       public void testCanonicDefaultValues() throws Exception {
+               configureAndExecuteSlcFlow("canonic-002.xml", "canonic.002");
+       }
+
+       public void testCanonicMissingValues() throws Exception {
+               try {
+                       configureAndExecuteSlcFlow("canonic-003.error.xml", "canonic.003");
+                       fail("Parameter not set - should be rejected.");
+               } catch (BeanCreationException e) {
+                       // exception expected
+                       logException(e);
+               }
+       }
+
+       public void testCanonicUnknownParameter() throws Exception {
+               try {
+                       configureAndExecuteSlcFlow("canonic-004.error.xml", "canonic.004");
+                       fail("Unknown parameter set - should be rejected.");
+               } catch (BeanCreationException e) {
+                       // exception expected
+                       logException(e);
+               }
+       }
+
+       public void testListSetMap() throws Exception {
+               ConfigurableApplicationContext applicationContext = createApplicationContext("listSetMap.xml");
+               ExecutionFlow executionFlow = (ExecutionFlow) applicationContext
+                               .getBean("myFlow");
+               executionFlow.run();
+
+               validateTestResult((SimpleTestResult) applicationContext
+                               .getBean("myTestResult"));
+
+               // BasicTestData res = (BasicTestData)
+               // applicationContext.getBean("cascadingComplex.testData");
+               // log.info("res=" + res.getReached().toString());
+
+               applicationContext.close();
+       }
+
+       public void testListSetMapMultipleFlows() throws Exception {
+               ConfigurableApplicationContext applicationContext = createApplicationContext("listSetMapMultipleFlow.xml");
+               ((ExecutionFlow) applicationContext.getBean("flow1")).run();
+               SimpleTestResult res = (SimpleTestResult) applicationContext
+                               .getBean("myTestResult");
+               validateTestResult(res);
+               res.getParts().clear();
+               ((ExecutionFlow) applicationContext.getBean("flow2")).run();
+               validateTestResult(res, TestStatus.FAILED);
+               applicationContext.close();
+       }
+
+       protected void addVariables(ExecutionContext executionContext,
+                       Map<String, String> vars) {
+               for (String key : vars.keySet())
+                       executionContext.setVariable(key, vars.get(key));
+       }
+}
index 55afdc0c8b8111e02b6fac77c3846ce6e66f2089..7ba7c826a33834ca573ea5c834ec5b98d775c4a6 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import org.apache.commons.logging.Log;
index 8b3d2ec25bccb4da56c1d5310067535076611af9..0d1223a499852a3de13f284414b21061376e85a0 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import java.io.File;
index e2dae65645871b1f214f6eb34addd30451be4bfc..63bd58c3cd476fda393c8b8d5549feb9ade32800 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import java.io.File;
index af77690786591dd137cefbf8b6a88acc23457a83..6b954b9f57127b820a83d2540b96d79473eca5bc 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import org.argeo.slc.execution.ExecutionFlow;
index 8301b8517369a6cc904bd5312b29d74ae3fafabb..b007b9a54dc8924d4768a861bae4db63a581fd0e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.tasks;
 
 import org.apache.commons.logging.Log;
index e728001247e248467e3b1a5af11b333e9274d978..4ebb6678d31528be70b0a4bc3b635aac102d1683 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.xml;
 
 import org.argeo.slc.core.execution.AbstractExecutionFlowTestCase;
index 61eb3b2b3352fe75a0c8a2a12e943c759f6f1c23..507bb41bf1857d61d0f2d4031befc4d5cf71e0be 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.test.context;\r
-\r
-import java.util.Map;\r
-\r
-import junit.framework.TestCase;\r
-\r
-import org.apache.commons.logging.Log;\r
-import org.apache.commons.logging.LogFactory;\r
-import org.argeo.slc.SlcException;\r
-import org.springframework.beans.factory.BeanFactoryUtils;\r
-import org.springframework.beans.factory.ListableBeanFactory;\r
-import org.springframework.context.ConfigurableApplicationContext;\r
-import org.springframework.context.support.ClassPathXmlApplicationContext;\r
-\r
-/** Helper for tests using a Spring application context. */\r
-public abstract class AbstractInternalSpringTestCase extends TestCase {\r
-       protected final Log log = LogFactory.getLog(getClass());\r
-       private ConfigurableApplicationContext context;\r
-\r
-       /**\r
-        * Gets (and create if necessary) the application context to use. Default\r
-        * implementation uses a class path xml application context and calls\r
-        * {@link #getApplicationContextLocation()}.\r
-        */\r
-       protected ConfigurableApplicationContext getContext() {\r
-               if (context == null) {\r
-                       context = new ClassPathXmlApplicationContext(\r
-                                       getApplicationContextLocation());\r
-               }\r
-               return context;\r
-       }\r
-\r
-       /** Returns a bean from the underlying context */\r
-       @SuppressWarnings(value = { "unchecked" })\r
-       protected <T> T getBean(String beanId) {\r
-               return (T) getContext().getBean(beanId);\r
-       }\r
-\r
-       protected <T> T getBean(Class<? extends T> clss) {\r
-               T bean = loadSingleFromContext(getContext(), clss);\r
-               if (bean == null) {\r
-                       throw new SlcException("Cannot retrieve a unique bean of type "\r
-                                       + clss);\r
-               } else {\r
-                       return bean;\r
-               }\r
-       }\r
-\r
-       /**\r
-        * Th location of the application to load. The default implementation\r
-        * returns <i>applicationContext.xml</i> found in the same package as the\r
-        * test.\r
-        */\r
-       protected String getApplicationContextLocation() {\r
-               return inPackage("applicationContext.xml");\r
-       }\r
-\r
-       /**\r
-        * Prefixes the package of the class after converting the '.' to '/' in\r
-        * order to have a resource path.\r
-        */\r
-       protected String inPackage(String suffix) {\r
-               String prefix = getClass().getPackage().getName().replace('.', '/');\r
-               return prefix + '/' + suffix;\r
-       }\r
-\r
-       @SuppressWarnings(value = { "unchecked" })\r
-       protected <T> T loadSingleFromContext(ListableBeanFactory context,\r
-                       Class<T> clss) {\r
-               Map<String, T> beans = BeanFactoryUtils.beansOfTypeIncludingAncestors(\r
-                               context, clss, false, false);\r
-               if (beans.size() == 1) {\r
-                       return beans.values().iterator().next();\r
-               } else if (beans.size() > 1) {\r
-                       if (log.isDebugEnabled()) {\r
-                               log\r
-                                               .debug(("Found more that on bean for type " + clss\r
-                                                               + ": " + beans.keySet()));\r
-                       }\r
-                       return null;\r
-               } else {\r
-                       return null;\r
-               }\r
-       }\r
-\r
-}\r
+package org.argeo.slc.core.test.context;
+
+import java.util.Map;
+
+import junit.framework.TestCase;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.argeo.slc.SlcException;
+import org.springframework.beans.factory.BeanFactoryUtils;
+import org.springframework.beans.factory.ListableBeanFactory;
+import org.springframework.context.ConfigurableApplicationContext;
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+/** Helper for tests using a Spring application context. */
+public abstract class AbstractInternalSpringTestCase extends TestCase {
+       protected final Log log = LogFactory.getLog(getClass());
+       private ConfigurableApplicationContext context;
+
+       /**
+        * Gets (and create if necessary) the application context to use. Default
+        * implementation uses a class path xml application context and calls
+        * {@link #getApplicationContextLocation()}.
+        */
+       protected ConfigurableApplicationContext getContext() {
+               if (context == null) {
+                       context = new ClassPathXmlApplicationContext(
+                                       getApplicationContextLocation());
+               }
+               return context;
+       }
+
+       /** Returns a bean from the underlying context */
+       @SuppressWarnings(value = { "unchecked" })
+       protected <T> T getBean(String beanId) {
+               return (T) getContext().getBean(beanId);
+       }
+
+       protected <T> T getBean(Class<? extends T> clss) {
+               T bean = loadSingleFromContext(getContext(), clss);
+               if (bean == null) {
+                       throw new SlcException("Cannot retrieve a unique bean of type "
+                                       + clss);
+               } else {
+                       return bean;
+               }
+       }
+
+       /**
+        * Th location of the application to load. The default implementation
+        * returns <i>applicationContext.xml</i> found in the same package as the
+        * test.
+        */
+       protected String getApplicationContextLocation() {
+               return inPackage("applicationContext.xml");
+       }
+
+       /**
+        * Prefixes the package of the class after converting the '.' to '/' in
+        * order to have a resource path.
+        */
+       protected String inPackage(String suffix) {
+               String prefix = getClass().getPackage().getName().replace('.', '/');
+               return prefix + '/' + suffix;
+       }
+
+       @SuppressWarnings(value = { "unchecked" })
+       protected <T> T loadSingleFromContext(ListableBeanFactory context,
+                       Class<T> clss) {
+               Map<String, T> beans = BeanFactoryUtils.beansOfTypeIncludingAncestors(
+                               context, clss, false, false);
+               if (beans.size() == 1) {
+                       return beans.values().iterator().next();
+               } else if (beans.size() > 1) {
+                       if (log.isDebugEnabled()) {
+                               log
+                                               .debug(("Found more that on bean for type " + clss
+                                                               + ": " + beans.keySet()));
+                       }
+                       return null;
+               } else {
+                       return null;
+               }
+       }
+
+}
index 75d4b9349cd1b16bd82708cf783af63a6ccfd260..64a4369ed139cf75c57282d37ab62dc24cad4c69 100644 (file)
@@ -1,46 +1,31 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.test.context;\r
-\r
-import java.util.List;\r
-\r
-import org.argeo.slc.runtime.test.ContextUtils;\r
-import org.argeo.slc.runtime.test.SimpleTestResult;\r
-import org.argeo.slc.test.TestResultPart;\r
-import org.argeo.slc.test.TestStatus;\r
-import org.argeo.slc.test.context.ContextAware;\r
-\r
-public class ContextTest extends AbstractInternalSpringTestCase {\r
-\r
-       public void testComplexContext() {\r
-               SimpleTestResult testResult = new SimpleTestResult();\r
-               ContextUtils.compareReachedExpected(\r
-                               (ContextAware) getBean("context.c1"), testResult);\r
-               ContextUtils.compareReachedExpected(\r
-                               (ContextAware) getBean("context.c2"), testResult);\r
-               ContextUtils.compareReachedExpected(\r
-                               (ContextAware) getBean("context.c3"), testResult);\r
-\r
-               List<TestResultPart> parts = testResult.getParts();\r
-               assertEquals(6, parts.size());\r
-               assertEquals(TestStatus.PASSED, parts.get(0).getStatus());\r
-               assertEquals(TestStatus.PASSED, parts.get(1).getStatus());\r
-               assertEquals(TestStatus.PASSED, parts.get(2).getStatus());\r
-               assertEquals(TestStatus.FAILED, parts.get(3).getStatus());\r
-               assertEquals(TestStatus.PASSED, parts.get(4).getStatus());\r
-               assertEquals(TestStatus.PASSED, parts.get(5).getStatus());\r
-       }\r
-}\r
+package org.argeo.slc.core.test.context;
+
+import java.util.List;
+
+import org.argeo.slc.runtime.test.ContextUtils;
+import org.argeo.slc.runtime.test.SimpleTestResult;
+import org.argeo.slc.test.TestResultPart;
+import org.argeo.slc.test.TestStatus;
+import org.argeo.slc.test.context.ContextAware;
+
+public class ContextTest extends AbstractInternalSpringTestCase {
+
+       public void testComplexContext() {
+               SimpleTestResult testResult = new SimpleTestResult();
+               ContextUtils.compareReachedExpected(
+                               (ContextAware) getBean("context.c1"), testResult);
+               ContextUtils.compareReachedExpected(
+                               (ContextAware) getBean("context.c2"), testResult);
+               ContextUtils.compareReachedExpected(
+                               (ContextAware) getBean("context.c3"), testResult);
+
+               List<TestResultPart> parts = testResult.getParts();
+               assertEquals(6, parts.size());
+               assertEquals(TestStatus.PASSED, parts.get(0).getStatus());
+               assertEquals(TestStatus.PASSED, parts.get(1).getStatus());
+               assertEquals(TestStatus.PASSED, parts.get(2).getStatus());
+               assertEquals(TestStatus.FAILED, parts.get(3).getStatus());
+               assertEquals(TestStatus.PASSED, parts.get(4).getStatus());
+               assertEquals(TestStatus.PASSED, parts.get(5).getStatus());
+       }
+}
index 9dea43e495c8e079802a39bf6617d41894563871..1a6f692194d9ad1bdec8daae9e472b5bff05dedd 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.ant;
 
 import java.util.ArrayList;
index 1e2dcb940a1fcfd7237eda5cf9d00a178385f005..238e2255c1ea1bc04eb4f32f88b23992e6850310 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.ant;
 
 import java.io.File;
index 9b91207b33cbaf2af729147d5d3014ffd7996d5e..fcd265752798d5473fb94b30fde0fb7a473a696a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.attachment;
 
 import org.argeo.slc.attachment.Attachment;
index e6bd8e776256e36dba1f5d2ccf0aeca7393393ca..b5c9e3cd4aef2d1fcc0637e9c95a3957c2726e24 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.attachment;
 
 import java.io.File;
index e9a44c959474e504cf4243f815b9a9d06ee32b8f..5319d5915c217c0fbce30ed1b4ee40758858f47f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.attachment;
 
 import java.io.Serializable;
index 4ebbe92a4595fa25063d0724b77232eb0f15f716..e449331791a1957f10196b210370f330c1bfea11 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.build;
 
 import java.io.IOException;
index c11dc00ea41645c11dcc5bea8fbf01c700434449..932ecc7d177132634079ea513f2b296b2684069b 100644 (file)
@@ -1,97 +1,82 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.build;\r
-\r
-import java.util.StringTokenizer;\r
-\r
-/**\r
- * <p>\r
- * An implementation of the distribution id using the standard\r
- * Major.Minor.Release notation. And additional arbitrary string can also be\r
- * added.\r
- * </p>\r
- * \r
- * <p>\r
- * <b>Examples:</b><br>\r
- * 0.2.6<br>\r
- * 2.4.12.RC1\r
- * </p>\r
- */\r
-public class VersionDistributionId {\r
-\r
-       private Integer major;\r
-       private Integer minor;\r
-       private Integer release;\r
-       private String additional;\r
-\r
-       /** Parse the provided string in order to set the various components. */\r
-       public void setVersionString(String str) {\r
-               StringTokenizer st = new StringTokenizer(str, ".");\r
-               if (st.hasMoreTokens())\r
-                       major = Integer.parseInt(st.nextToken());\r
-               if (st.hasMoreTokens())\r
-                       minor = Integer.parseInt(st.nextToken());\r
-               if (st.hasMoreTokens())\r
-                       release = Integer.parseInt(st.nextToken());\r
-               if (st.hasMoreTokens())\r
-                       additional = st.nextToken();\r
-       }\r
-\r
-       public Integer getMajor() {\r
-               return major;\r
-       }\r
-\r
-       public void setMajor(Integer major) {\r
-               this.major = major;\r
-       }\r
-\r
-       public Integer getMinor() {\r
-               return minor;\r
-       }\r
-\r
-       public void setMinor(Integer minor) {\r
-               this.minor = minor;\r
-       }\r
-\r
-       public Integer getRelease() {\r
-               return release;\r
-       }\r
-\r
-       public void setRelease(Integer release) {\r
-               this.release = release;\r
-       }\r
-\r
-       public String getAdditional() {\r
-               return additional;\r
-       }\r
-\r
-       public void setAdditional(String additional) {\r
-               this.additional = additional;\r
-       }\r
-\r
-       @Override\r
-       public boolean equals(Object obj) {\r
-               // TODO Auto-generated method stub\r
-               return super.equals(obj);\r
-       }\r
-\r
-       @Override\r
-       public String toString() {\r
-               return major + "." + minor + "." + release\r
-                               + (additional != null ? "." + additional : "");\r
-       }\r
-\r
-}\r
+package org.argeo.slc.core.build;
+
+import java.util.StringTokenizer;
+
+/**
+ * <p>
+ * An implementation of the distribution id using the standard
+ * Major.Minor.Release notation. And additional arbitrary string can also be
+ * added.
+ * </p>
+ * 
+ * <p>
+ * <b>Examples:</b><br>
+ * 0.2.6<br>
+ * 2.4.12.RC1
+ * </p>
+ */
+public class VersionDistributionId {
+
+       private Integer major;
+       private Integer minor;
+       private Integer release;
+       private String additional;
+
+       /** Parse the provided string in order to set the various components. */
+       public void setVersionString(String str) {
+               StringTokenizer st = new StringTokenizer(str, ".");
+               if (st.hasMoreTokens())
+                       major = Integer.parseInt(st.nextToken());
+               if (st.hasMoreTokens())
+                       minor = Integer.parseInt(st.nextToken());
+               if (st.hasMoreTokens())
+                       release = Integer.parseInt(st.nextToken());
+               if (st.hasMoreTokens())
+                       additional = st.nextToken();
+       }
+
+       public Integer getMajor() {
+               return major;
+       }
+
+       public void setMajor(Integer major) {
+               this.major = major;
+       }
+
+       public Integer getMinor() {
+               return minor;
+       }
+
+       public void setMinor(Integer minor) {
+               this.minor = minor;
+       }
+
+       public Integer getRelease() {
+               return release;
+       }
+
+       public void setRelease(Integer release) {
+               this.release = release;
+       }
+
+       public String getAdditional() {
+               return additional;
+       }
+
+       public void setAdditional(String additional) {
+               this.additional = additional;
+       }
+
+       @Override
+       public boolean equals(Object obj) {
+               // TODO Auto-generated method stub
+               return super.equals(obj);
+       }
+
+       @Override
+       public String toString() {
+               return major + "." + minor + "." + release
+                               + (additional != null ? "." + additional : "");
+       }
+
+}
index 52307ec67af24666289c7ba68ef41f19e5023254..414a12b29b7c49b6ad538ae828fca5c7c76c6dc0 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.build;
 
 import org.argeo.slc.NameVersion;
index abdcfeec38c4fc77197a1258c1cf5351558eeea0..a5b8536df8649d1e181c5e1dcbf77a92ea8422d9 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.deploy;
 
 import java.io.IOException;
index be8355fe36d1815fe363868086bfab09b15ab32d..e7908eb7f1bdf83a88ca161eb88547b89e4ae150 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.deploy;
 
 import java.io.File;
index 79ad8359775785724111f0f4e42478298d713c4e..d339b94027aa0b6907acfe303cd7fa634b3200a3 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.deploy;
 
 import java.io.File;
index 8da17ba42fb6f883931e88772dfa5dda721c7ad0..20867128e8788bc6221431fa1cb2ac5ddca0afc6 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.deploy;
 
 import java.util.ArrayList;
index 01c01abaececa9d5aa0f5fb99521596e332ae668..6d670e033ae4a028fb382c755d56faa7bed5236c 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.deploy;
 
 import java.util.Map;
index 5a5b8259fe4d67d50eb467bf1ac1db2ccb167e2c..6c9336854965639e9364af1fcbb9d90eb6273009 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.deploy;
 
 import java.io.File;
index 13d254366b274b53d236136562abe271cb5b8bcc..40f6735e03babb3249b9a0067ed647e1be780d96 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.deploy;
 
 import java.io.File;
index dc55b40f9195d75b7ebaaf435fd8a5e4d0daa9c3..19861151aa006fda305c2370674d557bfd7992a5 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import java.util.List;
index b2252f6a29c9160f678baa85cd38c16f7d23760d..366b8d4896a6c6ca2db5e0504e180fdf924794eb 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import org.argeo.slc.execution.ExecutionModule;
index d07643414318d97734a8ff221609a9dc4ef09a17..c878e24f02ca67c8161d78647c2fb153bfe476b2 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 /** Implements the base methods of an SLC agent. */
index a555906cd266c90b06e0e18d05ea41f557d6a88a..f3b4eb1d50dddfe19a2a5e436dc93e9ed5a60001 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import java.util.Map;
index 9fe48f71c969eae8a68759b8f89ca995987379cb..0bdeb53bb749a444b2165bbfca35afe3502e8b6a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import java.util.Comparator;
index fbd031bae57e84698128c415ac52e3831eab4520..e603f71a72342cdaee9b71788b8a041561b18043 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import java.util.ArrayList;
index b50b78f512d35c2f81ba35da24bb2465bd624bf5..2fb23488cf0bf61f71e0c6d1da8d8a9034d65ada 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import org.apache.commons.logging.Log;
index dab4cfb3ff77b4d157f8ee844283d392c4f722b4..75105045e5f139c66c8c4a8e2f4ce3d2ac634985 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.execution;\r
-\r
-import java.beans.PropertyDescriptor;\r
-import java.util.HashSet;\r
-import java.util.Iterator;\r
-import java.util.List;\r
-import java.util.Map;\r
-import java.util.Set;\r
-\r
-import org.apache.commons.logging.Log;\r
-import org.apache.commons.logging.LogFactory;\r
-import org.argeo.slc.SlcException;\r
-import org.argeo.slc.execution.ExecutionContext;\r
-import org.argeo.slc.execution.ExecutionFlow;\r
-import org.argeo.slc.runtime.InstantiationManager;\r
-import org.springframework.beans.BeansException;\r
-import org.springframework.beans.MutablePropertyValues;\r
-import org.springframework.beans.PropertyValue;\r
-import org.springframework.beans.PropertyValues;\r
-import org.springframework.beans.factory.BeanDefinitionStoreException;\r
-import org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter;\r
-import org.springframework.beans.factory.config.TypedStringValue;\r
-import org.springframework.beans.factory.support.ManagedList;\r
-import org.springframework.beans.factory.support.ManagedMap;\r
-import org.springframework.beans.factory.support.ManagedSet;\r
-import org.springframework.util.ObjectUtils;\r
-import org.springframework.util.StringUtils;\r
-\r
-/**\r
- * Spring post processor which ensures that execution parameters are properly\r
- * set. It is used at two levels: first during instantiation for instantiation\r
- * parameters which allow to implement templates, then at runtime in order to\r
- * interpret @{} placeholders when object of scope execution are instantiated.\r
- */\r
-public class ExecutionParameterPostProcessor extends\r
-               InstantiationAwareBeanPostProcessorAdapter {\r
-\r
-       private final static Log log = LogFactory\r
-                       .getLog(ExecutionParameterPostProcessor.class);\r
-\r
-       private ExecutionContext executionContext;\r
-       private InstantiationManager instantiationManager;\r
-\r
-       private String placeholderPrefix = "@{";\r
-       private String placeholderSuffix = "}";\r
-       private String nullValue;\r
-\r
-       @Override\r
-       public PropertyValues postProcessPropertyValues(PropertyValues pvs,\r
-                       PropertyDescriptor[] pds, Object bean, String beanName)\r
-                       throws BeansException {\r
-\r
-               // TODO: resolve at execution only if scope is execution\r
-               // TODO: deal with placeholders in RuntimeBeanReference and\r
-               // RuntimeBeanNameReference\r
-\r
-               MutablePropertyValues newPvs = new MutablePropertyValues();\r
-\r
-               boolean changesOccured = false;\r
-\r
-               for (PropertyValue pv : pvs.getPropertyValues()) {\r
-                       Object convertedValue = resolveValue(beanName, bean, pv.getValue());\r
-                       newPvs.addPropertyValue(new PropertyValue(pv, convertedValue));\r
-                       if (convertedValue != pv.getValue()) {\r
-                               changesOccured = true;\r
-                       }\r
-               }\r
-\r
-               return changesOccured ? newPvs : pvs;\r
-       }\r
-\r
-       @Override\r
-       public boolean postProcessAfterInstantiation(Object bean, String beanName)\r
-                       throws BeansException {\r
-               if (bean instanceof ExecutionFlow)\r
-                       instantiationManager.flowInitializationStarted(\r
-                                       (ExecutionFlow) bean, beanName);\r
-               return true;\r
-       }\r
-\r
-       @Override\r
-       public Object postProcessAfterInitialization(Object bean, String beanName)\r
-                       throws BeansException {\r
-               if (bean instanceof ExecutionFlow)\r
-                       instantiationManager.flowInitializationFinished(\r
-                                       (ExecutionFlow) bean, beanName);\r
-               return bean;\r
-       }\r
-\r
-       protected String resolvePlaceholder(Object bean, String placeholder) {\r
-               if (instantiationManager.isInFlowInitialization())\r
-                       return instantiationManager.getInitializingFlowParameter(\r
-                                       placeholder).toString();\r
-\r
-               else {// execution\r
-                               // next call fail if no execution context available\r
-                       Object obj = executionContext.getVariable(placeholder);\r
-                       if (obj != null) {\r
-                               return obj.toString();\r
-                       }\r
-               }\r
-\r
-               return null;\r
-       }\r
-\r
-       public Object resolveValue(String beanName, Object bean, Object value) {\r
-               if (value instanceof TypedStringValue) {\r
-                       TypedStringValue tsv = (TypedStringValue) value;\r
-                       String originalValue = tsv.getValue();\r
-\r
-                       String convertedValue = resolveString(beanName, bean, originalValue);\r
-                       if (convertedValue == null)\r
-                               return null;\r
-                       return convertedValue.equals(originalValue) ? value\r
-                                       : new TypedStringValue(convertedValue);\r
-               } else if (value instanceof String) {\r
-                       String originalValue = value.toString();\r
-                       String convertedValue = resolveString(beanName, bean, originalValue);\r
-                       if (convertedValue == null)\r
-                               return null;\r
-                       return convertedValue.equals(originalValue) ? value\r
-                                       : convertedValue;\r
-               } else if (value instanceof ManagedMap) {\r
-                       Map<?, ?> mapVal = (Map<?, ?>) value;\r
-\r
-                       Map<Object, Object> newContent = new ManagedMap<Object, Object>();\r
-                       boolean entriesModified = false;\r
-                       for (Iterator<?> it = mapVal.entrySet().iterator(); it.hasNext();) {\r
-                               Map.Entry<?, ?> entry = (Map.Entry<?, ?>) it.next();\r
-                               Object key = entry.getKey();\r
-                               int keyHash = (key != null ? key.hashCode() : 0);\r
-                               Object newKey = resolveValue(beanName, bean, key);\r
-                               int newKeyHash = (newKey != null ? newKey.hashCode() : 0);\r
-                               Object val = entry.getValue();\r
-                               Object newVal = resolveValue(beanName, bean, val);\r
-                               newContent.put(newKey, newVal);\r
-                               entriesModified = entriesModified\r
-                                               || (newVal != val || newKey != key || newKeyHash != keyHash);\r
-                       }\r
-\r
-                       return entriesModified ? newContent : value;\r
-               } else if (value instanceof ManagedList) {\r
-                       List<?> listVal = (List<?>) value;\r
-                       List<Object> newContent = new ManagedList<Object>();\r
-                       boolean valueModified = false;\r
-\r
-                       for (int i = 0; i < listVal.size(); i++) {\r
-                               Object elem = listVal.get(i);\r
-                               Object newVal = resolveValue(beanName, bean, elem);\r
-                               newContent.add(newVal);\r
-                               if (!ObjectUtils.nullSafeEquals(newVal, elem)) {\r
-                                       valueModified = true;\r
-                               }\r
-                       }\r
-                       return valueModified ? newContent : value;\r
-               } else if (value instanceof ManagedSet) {\r
-                       Set<?> setVal = (Set<?>) value;\r
-                       Set<Object> newContent = new ManagedSet<Object>();\r
-                       boolean entriesModified = false;\r
-                       for (Iterator<?> it = setVal.iterator(); it.hasNext();) {\r
-                               Object elem = it.next();\r
-                               int elemHash = (elem != null ? elem.hashCode() : 0);\r
-                               Object newVal = resolveValue(beanName, bean, elem);\r
-                               int newValHash = (newVal != null ? newVal.hashCode() : 0);\r
-                               newContent.add(newVal);\r
-                               entriesModified = entriesModified\r
-                                               || (newVal != elem || newValHash != elemHash);\r
-                       }\r
-                       return entriesModified ? newContent : value;\r
-               } else {\r
-                       // log.debug(beanName + ": " + value.getClass() + " : " + value);\r
-                       return value;\r
-               }\r
-\r
-       }\r
-\r
-       private String resolveString(String beanName, Object bean, String strVal) {\r
-               // in case <null/> is passed\r
-               if (strVal == null)\r
-                       return null;\r
-\r
-               String value = parseStringValue(bean, strVal, new HashSet<String>());\r
-\r
-               if (value == null)\r
-                       throw new SlcException("Could not resolve placeholder '" + strVal\r
-                                       + "' in bean '" + beanName + "'");\r
-\r
-               return (value.equals(nullValue) ? null : value);\r
-       }\r
-\r
-       public void setPlaceholderPrefix(String placeholderPrefix) {\r
-               this.placeholderPrefix = placeholderPrefix;\r
-       }\r
-\r
-       public void setPlaceholderSuffix(String placeholderSuffix) {\r
-               this.placeholderSuffix = placeholderSuffix;\r
-       }\r
-\r
-       public void setNullValue(String nullValue) {\r
-               this.nullValue = nullValue;\r
-       }\r
-\r
-       public void setInstantiationManager(\r
-                       InstantiationManager instantiationManager) {\r
-               this.instantiationManager = instantiationManager;\r
-       }\r
-\r
-       public void setExecutionContext(ExecutionContext executionContext) {\r
-               this.executionContext = executionContext;\r
-       }\r
-\r
-       //\r
-       // Following methods hacked from the internals of\r
-       // PropertyPlaceholderConfigurer\r
-       //\r
-\r
-       protected String parseStringValue(Object bean, String strVal,\r
-                       Set<String> visitedPlaceholders)\r
-                       throws BeanDefinitionStoreException {\r
-\r
-               // in case <null/> is passed\r
-               if (strVal == null)\r
-                       return null;\r
-\r
-               StringBuffer buf = new StringBuffer(strVal);\r
-\r
-               int startIndex = strVal.indexOf(placeholderPrefix);\r
-               while (startIndex != -1) {\r
-                       int endIndex = findPlaceholderEndIndex(buf, startIndex);\r
-                       if (endIndex != -1) {\r
-                               String placeholder = buf.substring(startIndex\r
-                                               + placeholderPrefix.length(), endIndex);\r
-                               if (!visitedPlaceholders.add(placeholder)) {\r
-                                       throw new BeanDefinitionStoreException(\r
-                                                       "Circular placeholder reference '" + placeholder\r
-                                                                       + "' in property definitions");\r
-                               }\r
-                               // Recursive invocation, parsing placeholders contained in\r
-                               // the placeholder key.\r
-                               placeholder = parseStringValue(bean, placeholder,\r
-                                               visitedPlaceholders);\r
-                               // Now obtain the value for the fully resolved key...\r
-                               String propVal = resolvePlaceholder(bean, placeholder);\r
-                               if (propVal != null) {\r
-                                       // Recursive invocation, parsing placeholders contained\r
-                                       // in the\r
-                                       // previously resolved placeholder value.\r
-                                       propVal = parseStringValue(bean, propVal,\r
-                                                       visitedPlaceholders);\r
-                                       buf.replace(startIndex,\r
-                                                       endIndex + placeholderSuffix.length(), propVal);\r
-                                       if (log.isTraceEnabled()) {\r
-                                               log.trace("Resolved placeholder '" + placeholder + "'");\r
-                                       }\r
-                                       startIndex = buf.indexOf(placeholderPrefix, startIndex\r
-                                                       + propVal.length());\r
-                               } else {\r
-                                       throw new BeanDefinitionStoreException(\r
-                                                       "Could not resolve placeholder '" + placeholder\r
-                                                                       + "'");\r
-                               }\r
-                               visitedPlaceholders.remove(placeholder);\r
-                       } else {\r
-                               startIndex = -1;\r
-                       }\r
-               }\r
-\r
-               return buf.toString();\r
-       }\r
-\r
-       private int findPlaceholderEndIndex(CharSequence buf, int startIndex) {\r
-               int index = startIndex + placeholderPrefix.length();\r
-               int withinNestedPlaceholder = 0;\r
-               while (index < buf.length()) {\r
-                       if (StringUtils.substringMatch(buf, index, placeholderSuffix)) {\r
-                               if (withinNestedPlaceholder > 0) {\r
-                                       withinNestedPlaceholder--;\r
-                                       index = index + placeholderSuffix.length();\r
-                               } else {\r
-                                       return index;\r
-                               }\r
-                       } else if (StringUtils\r
-                                       .substringMatch(buf, index, placeholderPrefix)) {\r
-                               withinNestedPlaceholder++;\r
-                               index = index + placeholderPrefix.length();\r
-                       } else {\r
-                               index++;\r
-                       }\r
-               }\r
-               return -1;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.core.execution;
+
+import java.beans.PropertyDescriptor;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.argeo.slc.SlcException;
+import org.argeo.slc.execution.ExecutionContext;
+import org.argeo.slc.execution.ExecutionFlow;
+import org.argeo.slc.runtime.InstantiationManager;
+import org.springframework.beans.BeansException;
+import org.springframework.beans.MutablePropertyValues;
+import org.springframework.beans.PropertyValue;
+import org.springframework.beans.PropertyValues;
+import org.springframework.beans.factory.BeanDefinitionStoreException;
+import org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter;
+import org.springframework.beans.factory.config.TypedStringValue;
+import org.springframework.beans.factory.support.ManagedList;
+import org.springframework.beans.factory.support.ManagedMap;
+import org.springframework.beans.factory.support.ManagedSet;
+import org.springframework.util.ObjectUtils;
+import org.springframework.util.StringUtils;
+
+/**
+ * Spring post processor which ensures that execution parameters are properly
+ * set. It is used at two levels: first during instantiation for instantiation
+ * parameters which allow to implement templates, then at runtime in order to
+ * interpret @{} placeholders when object of scope execution are instantiated.
+ */
+public class ExecutionParameterPostProcessor extends
+               InstantiationAwareBeanPostProcessorAdapter {
+
+       private final static Log log = LogFactory
+                       .getLog(ExecutionParameterPostProcessor.class);
+
+       private ExecutionContext executionContext;
+       private InstantiationManager instantiationManager;
+
+       private String placeholderPrefix = "@{";
+       private String placeholderSuffix = "}";
+       private String nullValue;
+
+       @Override
+       public PropertyValues postProcessPropertyValues(PropertyValues pvs,
+                       PropertyDescriptor[] pds, Object bean, String beanName)
+                       throws BeansException {
+
+               // TODO: resolve at execution only if scope is execution
+               // TODO: deal with placeholders in RuntimeBeanReference and
+               // RuntimeBeanNameReference
+
+               MutablePropertyValues newPvs = new MutablePropertyValues();
+
+               boolean changesOccured = false;
+
+               for (PropertyValue pv : pvs.getPropertyValues()) {
+                       Object convertedValue = resolveValue(beanName, bean, pv.getValue());
+                       newPvs.addPropertyValue(new PropertyValue(pv, convertedValue));
+                       if (convertedValue != pv.getValue()) {
+                               changesOccured = true;
+                       }
+               }
+
+               return changesOccured ? newPvs : pvs;
+       }
+
+       @Override
+       public boolean postProcessAfterInstantiation(Object bean, String beanName)
+                       throws BeansException {
+               if (bean instanceof ExecutionFlow)
+                       instantiationManager.flowInitializationStarted(
+                                       (ExecutionFlow) bean, beanName);
+               return true;
+       }
+
+       @Override
+       public Object postProcessAfterInitialization(Object bean, String beanName)
+                       throws BeansException {
+               if (bean instanceof ExecutionFlow)
+                       instantiationManager.flowInitializationFinished(
+                                       (ExecutionFlow) bean, beanName);
+               return bean;
+       }
+
+       protected String resolvePlaceholder(Object bean, String placeholder) {
+               if (instantiationManager.isInFlowInitialization())
+                       return instantiationManager.getInitializingFlowParameter(
+                                       placeholder).toString();
+
+               else {// execution
+                               // next call fail if no execution context available
+                       Object obj = executionContext.getVariable(placeholder);
+                       if (obj != null) {
+                               return obj.toString();
+                       }
+               }
+
+               return null;
+       }
+
+       public Object resolveValue(String beanName, Object bean, Object value) {
+               if (value instanceof TypedStringValue) {
+                       TypedStringValue tsv = (TypedStringValue) value;
+                       String originalValue = tsv.getValue();
+
+                       String convertedValue = resolveString(beanName, bean, originalValue);
+                       if (convertedValue == null)
+                               return null;
+                       return convertedValue.equals(originalValue) ? value
+                                       : new TypedStringValue(convertedValue);
+               } else if (value instanceof String) {
+                       String originalValue = value.toString();
+                       String convertedValue = resolveString(beanName, bean, originalValue);
+                       if (convertedValue == null)
+                               return null;
+                       return convertedValue.equals(originalValue) ? value
+                                       : convertedValue;
+               } else if (value instanceof ManagedMap) {
+                       Map<?, ?> mapVal = (Map<?, ?>) value;
+
+                       Map<Object, Object> newContent = new ManagedMap<Object, Object>();
+                       boolean entriesModified = false;
+                       for (Iterator<?> it = mapVal.entrySet().iterator(); it.hasNext();) {
+                               Map.Entry<?, ?> entry = (Map.Entry<?, ?>) it.next();
+                               Object key = entry.getKey();
+                               int keyHash = (key != null ? key.hashCode() : 0);
+                               Object newKey = resolveValue(beanName, bean, key);
+                               int newKeyHash = (newKey != null ? newKey.hashCode() : 0);
+                               Object val = entry.getValue();
+                               Object newVal = resolveValue(beanName, bean, val);
+                               newContent.put(newKey, newVal);
+                               entriesModified = entriesModified
+                                               || (newVal != val || newKey != key || newKeyHash != keyHash);
+                       }
+
+                       return entriesModified ? newContent : value;
+               } else if (value instanceof ManagedList) {
+                       List<?> listVal = (List<?>) value;
+                       List<Object> newContent = new ManagedList<Object>();
+                       boolean valueModified = false;
+
+                       for (int i = 0; i < listVal.size(); i++) {
+                               Object elem = listVal.get(i);
+                               Object newVal = resolveValue(beanName, bean, elem);
+                               newContent.add(newVal);
+                               if (!ObjectUtils.nullSafeEquals(newVal, elem)) {
+                                       valueModified = true;
+                               }
+                       }
+                       return valueModified ? newContent : value;
+               } else if (value instanceof ManagedSet) {
+                       Set<?> setVal = (Set<?>) value;
+                       Set<Object> newContent = new ManagedSet<Object>();
+                       boolean entriesModified = false;
+                       for (Iterator<?> it = setVal.iterator(); it.hasNext();) {
+                               Object elem = it.next();
+                               int elemHash = (elem != null ? elem.hashCode() : 0);
+                               Object newVal = resolveValue(beanName, bean, elem);
+                               int newValHash = (newVal != null ? newVal.hashCode() : 0);
+                               newContent.add(newVal);
+                               entriesModified = entriesModified
+                                               || (newVal != elem || newValHash != elemHash);
+                       }
+                       return entriesModified ? newContent : value;
+               } else {
+                       // log.debug(beanName + ": " + value.getClass() + " : " + value);
+                       return value;
+               }
+
+       }
+
+       private String resolveString(String beanName, Object bean, String strVal) {
+               // in case <null/> is passed
+               if (strVal == null)
+                       return null;
+
+               String value = parseStringValue(bean, strVal, new HashSet<String>());
+
+               if (value == null)
+                       throw new SlcException("Could not resolve placeholder '" + strVal
+                                       + "' in bean '" + beanName + "'");
+
+               return (value.equals(nullValue) ? null : value);
+       }
+
+       public void setPlaceholderPrefix(String placeholderPrefix) {
+               this.placeholderPrefix = placeholderPrefix;
+       }
+
+       public void setPlaceholderSuffix(String placeholderSuffix) {
+               this.placeholderSuffix = placeholderSuffix;
+       }
+
+       public void setNullValue(String nullValue) {
+               this.nullValue = nullValue;
+       }
+
+       public void setInstantiationManager(
+                       InstantiationManager instantiationManager) {
+               this.instantiationManager = instantiationManager;
+       }
+
+       public void setExecutionContext(ExecutionContext executionContext) {
+               this.executionContext = executionContext;
+       }
+
+       //
+       // Following methods hacked from the internals of
+       // PropertyPlaceholderConfigurer
+       //
+
+       protected String parseStringValue(Object bean, String strVal,
+                       Set<String> visitedPlaceholders)
+                       throws BeanDefinitionStoreException {
+
+               // in case <null/> is passed
+               if (strVal == null)
+                       return null;
+
+               StringBuffer buf = new StringBuffer(strVal);
+
+               int startIndex = strVal.indexOf(placeholderPrefix);
+               while (startIndex != -1) {
+                       int endIndex = findPlaceholderEndIndex(buf, startIndex);
+                       if (endIndex != -1) {
+                               String placeholder = buf.substring(startIndex
+                                               + placeholderPrefix.length(), endIndex);
+                               if (!visitedPlaceholders.add(placeholder)) {
+                                       throw new BeanDefinitionStoreException(
+                                                       "Circular placeholder reference '" + placeholder
+                                                                       + "' in property definitions");
+                               }
+                               // Recursive invocation, parsing placeholders contained in
+                               // the placeholder key.
+                               placeholder = parseStringValue(bean, placeholder,
+                                               visitedPlaceholders);
+                               // Now obtain the value for the fully resolved key...
+                               String propVal = resolvePlaceholder(bean, placeholder);
+                               if (propVal != null) {
+                                       // Recursive invocation, parsing placeholders contained
+                                       // in the
+                                       // previously resolved placeholder value.
+                                       propVal = parseStringValue(bean, propVal,
+                                                       visitedPlaceholders);
+                                       buf.replace(startIndex,
+                                                       endIndex + placeholderSuffix.length(), propVal);
+                                       if (log.isTraceEnabled()) {
+                                               log.trace("Resolved placeholder '" + placeholder + "'");
+                                       }
+                                       startIndex = buf.indexOf(placeholderPrefix, startIndex
+                                                       + propVal.length());
+                               } else {
+                                       throw new BeanDefinitionStoreException(
+                                                       "Could not resolve placeholder '" + placeholder
+                                                                       + "'");
+                               }
+                               visitedPlaceholders.remove(placeholder);
+                       } else {
+                               startIndex = -1;
+                       }
+               }
+
+               return buf.toString();
+       }
+
+       private int findPlaceholderEndIndex(CharSequence buf, int startIndex) {
+               int index = startIndex + placeholderPrefix.length();
+               int withinNestedPlaceholder = 0;
+               while (index < buf.length()) {
+                       if (StringUtils.substringMatch(buf, index, placeholderSuffix)) {
+                               if (withinNestedPlaceholder > 0) {
+                                       withinNestedPlaceholder--;
+                                       index = index + placeholderSuffix.length();
+                               } else {
+                                       return index;
+                               }
+                       } else if (StringUtils
+                                       .substringMatch(buf, index, placeholderPrefix)) {
+                               withinNestedPlaceholder++;
+                               index = index + placeholderPrefix.length();
+                       } else {
+                               index++;
+                       }
+               }
+               return -1;
+       }
+
+}
index 759a125425e86ce80a0c66ba450ee026cde55e2d..772330a78c553fda0547c89e6a69c81d88f227fa 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import java.io.File;
index 0b887da5af4f2bf9f7cdd93f5e583f74924f7c80..b217c3bfabf39cd5d5b1e2a0d6fd1d57cd33fa7c 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import org.springframework.beans.factory.FactoryBean;
index a931329b6cd7cbca837d00b744684b33522d8faf..19296ab082f7853a300c4c79de62d0d4eef2e067 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import org.apache.commons.logging.Log;
index d225cd193fd87df74aa9c977a15b9fde2d3a45eb..41fb6941aaba072da9a9a3e6f3118ccccbe2aa41 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import java.io.File;
index 324f973059fc40c150cd4f0ca5abc0935ec7109b..5a96405cc39a46bfa71d3ff8059ccb2aea633d25 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import java.util.Collections;
index e524970cfe1b9f817bcb4c4092434f86c50c25e8..7cd6e20a71733ed4acb6d491d85aea2f0d1f7080 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import java.io.File;
index b4eafac41bb922ef398c94453daf61d557dd9310..093f78184e28c2c5989134e54455515a53ca6cab 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import org.apache.commons.logging.Log;
index c793f4963a6168b46f34c27b26a127db27baf3f5..728f95c5b61757d26296bb4bcd9da1884d380d43 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution;
 
 import java.io.File;
index 6504a3de39400b74a8e427f3ebaaaaef98f0b000..1e8f8f9a2bcacec7e503a33b57de30c765e5b062 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.doc;
 
 import org.springframework.beans.MutablePropertyValues;
index 713019b3725eb2079d23b443b39c3705d8a9a95d..7dd9afea74229c3606e384c47fa0c85304a98e77 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.doc;
 
 import org.springframework.beans.factory.config.BeanDefinition;
index f1e80d390d053cb6ea1b5d39064938bad5435e3d..4fc5dc01dbf37803652c5adc56d4684580d57bbf 100644 (file)
@@ -1,77 +1,62 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.execution.generator;\r
-\r
-import java.util.Map;\r
-\r
-import org.argeo.slc.SlcException;\r
-import org.springframework.beans.factory.support.BeanDefinitionRegistry;\r
-\r
-/**\r
- * Composite <code>RunnableFactory</code>, redirecting the Runnable \r
- * creation to on of the configured <code>RunnableFactory</code> depending\r
- * on an entry of the data of the <code>RunnableDataNode</code>.\r
- */\r
-public class CompositeRunnableFactory implements RunnableFactory {\r
-\r
-       /**\r
-        * Key used to access factory ID in the data of the <code>RunnableDataNode</code>\r
-        */\r
-       private String factoryKey;\r
-\r
-       /**\r
-        * Maps a factory ID to an ExecutionFlowFactory\r
-        */\r
-       private Map<String, RunnableFactory> factories;\r
-\r
-       public void createAndRegisterRunnable(RunnableDataNode node,\r
-                       BeanDefinitionRegistry beanDefinitionRegistry) {\r
-               findFactory(node).createAndRegisterRunnable(node, beanDefinitionRegistry);\r
-       }       \r
-       \r
-       /**\r
-        * Finds the <code>RunnableFactory</code> to use for a <code>RunnableDataNode</code>\r
-        * @param node\r
-        * @return the <code>RunnableFactory</code> to use for the <code>RunnableDataNode</code>\r
-        */\r
-       private RunnableFactory findFactory(RunnableDataNode node) {\r
-               // get the factory ID from the data of the RunnableDescriptor\r
-               Map<String, Object> data = node.getData();\r
-               if (!data.containsKey(factoryKey)) {\r
-                       throw new SlcException("No data value for key '" + factoryKey + "'");\r
-               }\r
-               String factoryId = data.get(factoryKey).toString();\r
-               \r
-               // see if we have a factory for the factory ID\r
-               if ((factories != null) && factories.containsKey(factoryId)) {\r
-                       return factories.get(factoryId);\r
-               }\r
-               // if not, look for a bean of name equals to the factory ID\r
-               else {\r
-                       throw new SlcException("Not implemented");\r
-               }               \r
-       }\r
-       \r
-       public void setFactoryKey(String factoryKey) {\r
-               this.factoryKey = factoryKey;\r
-       }\r
-\r
-       public void setFactories(Map<String, RunnableFactory> factories) {\r
-               this.factories = factories;\r
-       }\r
-\r
-\r
-}\r
+package org.argeo.slc.core.execution.generator;
+
+import java.util.Map;
+
+import org.argeo.slc.SlcException;
+import org.springframework.beans.factory.support.BeanDefinitionRegistry;
+
+/**
+ * Composite <code>RunnableFactory</code>, redirecting the Runnable 
+ * creation to on of the configured <code>RunnableFactory</code> depending
+ * on an entry of the data of the <code>RunnableDataNode</code>.
+ */
+public class CompositeRunnableFactory implements RunnableFactory {
+
+       /**
+        * Key used to access factory ID in the data of the <code>RunnableDataNode</code>
+        */
+       private String factoryKey;
+
+       /**
+        * Maps a factory ID to an ExecutionFlowFactory
+        */
+       private Map<String, RunnableFactory> factories;
+
+       public void createAndRegisterRunnable(RunnableDataNode node,
+                       BeanDefinitionRegistry beanDefinitionRegistry) {
+               findFactory(node).createAndRegisterRunnable(node, beanDefinitionRegistry);
+       }       
+       
+       /**
+        * Finds the <code>RunnableFactory</code> to use for a <code>RunnableDataNode</code>
+        * @param node
+        * @return the <code>RunnableFactory</code> to use for the <code>RunnableDataNode</code>
+        */
+       private RunnableFactory findFactory(RunnableDataNode node) {
+               // get the factory ID from the data of the RunnableDescriptor
+               Map<String, Object> data = node.getData();
+               if (!data.containsKey(factoryKey)) {
+                       throw new SlcException("No data value for key '" + factoryKey + "'");
+               }
+               String factoryId = data.get(factoryKey).toString();
+               
+               // see if we have a factory for the factory ID
+               if ((factories != null) && factories.containsKey(factoryId)) {
+                       return factories.get(factoryId);
+               }
+               // if not, look for a bean of name equals to the factory ID
+               else {
+                       throw new SlcException("Not implemented");
+               }               
+       }
+       
+       public void setFactoryKey(String factoryKey) {
+               this.factoryKey = factoryKey;
+       }
+
+       public void setFactories(Map<String, RunnableFactory> factories) {
+               this.factories = factories;
+       }
+
+
+}
index daed350b2e1d6f084473cdf1501683a811b8d6a2..cd0eaefe662b0a586d4ade32948b7b8452bb0876 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.execution.generator;\r
-\r
-import java.util.ArrayList;\r
-import java.util.HashMap;\r
-import java.util.List;\r
-import java.util.Map;\r
-\r
-/**\r
- * Default implementation of <code>RunnableDataNode</code>\r
- *\r
- */\r
-public class DefaultRunnableDataNode implements RunnableDataNode {\r
-\r
-       private List<RunnableDataNode> children = new ArrayList<RunnableDataNode>();\r
-       \r
-       private RunnableDataNode parent;\r
-       \r
-       /**\r
-        * Data of the RunnableDataNode. Does not contain\r
-        * parent data.\r
-        */\r
-       private Map<String, Object> properData = new HashMap<String, Object>();\r
-       \r
-       private String path;\r
-       \r
-       private String beanName;\r
-\r
-       public boolean isLeaf() {\r
-               return children.size() == 0;\r
-       }\r
-       \r
-       public List<RunnableDataNode> getChildren() {\r
-               return children;\r
-       }\r
-\r
-       public void addChild(RunnableDataNode child) {\r
-               child.setParent(this);\r
-               children.add(child);\r
-       }\r
-       \r
-       public Map<String, Object> getData() {\r
-               Map<String, Object> data = new HashMap<String, Object>();\r
-               if(parent != null) {\r
-                       Map<String, Object> parentData = parent.getData();\r
-                       if(parentData != null) {\r
-                               data.putAll(parentData);\r
-                       }\r
-               }\r
-               // entries defined in parentData can be overridden\r
-               // in properData\r
-               if(properData != null) {\r
-                       data.putAll(properData);\r
-               }\r
-               return data;\r
-       }\r
-\r
-       public Map<String, Object> getProperData() {\r
-               return properData;\r
-       }\r
-\r
-       public void setProperData(Map<String, Object> properData) {\r
-               this.properData = properData;\r
-       }\r
-\r
-       public String getPath() {\r
-               return path;\r
-       }\r
-\r
-       public void setPath(String path) {\r
-               this.path = path;\r
-       }\r
-\r
-       public String getBeanName() {\r
-               return beanName;\r
-       }\r
-\r
-       public void setBeanName(String beanName) {\r
-               this.beanName = beanName;\r
-       }\r
-\r
-       public void setParent(RunnableDataNode parent) {\r
-               this.parent = parent;\r
-       }\r
-\r
-       public RunnableDataNode getParent() {\r
-               return parent;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.core.execution.generator;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Default implementation of <code>RunnableDataNode</code>
+ *
+ */
+public class DefaultRunnableDataNode implements RunnableDataNode {
+
+       private List<RunnableDataNode> children = new ArrayList<RunnableDataNode>();
+       
+       private RunnableDataNode parent;
+       
+       /**
+        * Data of the RunnableDataNode. Does not contain
+        * parent data.
+        */
+       private Map<String, Object> properData = new HashMap<String, Object>();
+       
+       private String path;
+       
+       private String beanName;
+
+       public boolean isLeaf() {
+               return children.size() == 0;
+       }
+       
+       public List<RunnableDataNode> getChildren() {
+               return children;
+       }
+
+       public void addChild(RunnableDataNode child) {
+               child.setParent(this);
+               children.add(child);
+       }
+       
+       public Map<String, Object> getData() {
+               Map<String, Object> data = new HashMap<String, Object>();
+               if(parent != null) {
+                       Map<String, Object> parentData = parent.getData();
+                       if(parentData != null) {
+                               data.putAll(parentData);
+                       }
+               }
+               // entries defined in parentData can be overridden
+               // in properData
+               if(properData != null) {
+                       data.putAll(properData);
+               }
+               return data;
+       }
+
+       public Map<String, Object> getProperData() {
+               return properData;
+       }
+
+       public void setProperData(Map<String, Object> properData) {
+               this.properData = properData;
+       }
+
+       public String getPath() {
+               return path;
+       }
+
+       public void setPath(String path) {
+               this.path = path;
+       }
+
+       public String getBeanName() {
+               return beanName;
+       }
+
+       public void setBeanName(String beanName) {
+               this.beanName = beanName;
+       }
+
+       public void setParent(RunnableDataNode parent) {
+               this.parent = parent;
+       }
+
+       public RunnableDataNode getParent() {
+               return parent;
+       }
+
+}
index d9400e42edf8b89651b7e4d27e5c3202fa7c7436..0e06f4e1756039587218a2e9ce23df65dfd16345 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.execution.generator;\r
-\r
-import java.util.HashMap;\r
-\r
-import org.apache.commons.logging.Log;\r
-import org.apache.commons.logging.LogFactory;\r
-import org.argeo.slc.SlcException;\r
-import org.springframework.aop.scope.ScopedProxyUtils;\r
-import org.springframework.beans.BeansException;\r
-import org.springframework.beans.MutablePropertyValues;\r
-import org.springframework.beans.factory.config.BeanDefinitionHolder;\r
-import org.springframework.beans.factory.config.BeanFactoryPostProcessor;\r
-import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;\r
-import org.springframework.beans.factory.config.RuntimeBeanReference;\r
-import org.springframework.beans.factory.support.BeanDefinitionRegistry;\r
-import org.springframework.beans.factory.support.GenericBeanDefinition;\r
-import org.springframework.core.Ordered;\r
-\r
-/**\r
- * Generates <code>ExecutionFlows</code> and <code>Runnables</code> as\r
- * beans in the Spring Application Context.\r
- * Called by the Application Context as a <code>BeanFactoryPostProcessor</code>.\r
- * Two kinds of beans are generated:\r
- * <code>RunnableCallFlow</code>, calling a list of <code>Runnables</code> from the\r
- * Application Context after configuring the <code>ExecutionContext</code>, \r
- * and outputs of a <code>RunnableFactory</code>.\r
- */\r
-public class ExecutionFlowGenerator implements BeanFactoryPostProcessor,\r
-               Ordered {\r
-       \r
-       private final Log log = LogFactory.getLog(getClass());\r
-\r
-       /**\r
-        * Source providing a list of <code>RunnableCallFlowDescriptor</code> \r
-        * used to create <code>RunnableCallFlow</code> and a list of \r
-        * <code>RunnableDataNode</code> used to create any kind of flow via a factory\r
-        */\r
-       protected ExecutionFlowGeneratorSource source;\r
-       \r
-       /**\r
-        * Factory used to create Runnables in the Application context from\r
-        * the <code>RunnableDataNode</code> provided from the source.\r
-        */\r
-       protected RunnableFactory runnableFactory;\r
-       \r
-       /**\r
-        * Bean name of the <code>ExecutionContext</code>.\r
-        * Used to provide the created <code>RunnableCallFlow</code> beans \r
-        * with a <code>RuntimeBeanReference</code> to\r
-        * the <code>ExecutionContext</code>\r
-        */\r
-       private String executionContextBeanName = "executionContext";\r
-       \r
-       /**\r
-        * Bean name of the context values Map.\r
-        * A bean of class HashMap is created with this name, and a \r
-        * <code>RuntimeBeanReference</code> is provided to the created\r
-        * <code>RunnableCallFlow</code> beans.\r
-        */\r
-       private String contextValuesBeanName = "executionFlowGenerator.contextValues";\r
-       \r
-       /**\r
-        * Prefix added to the bean names defined in each \r
-        * <code>RunnableCallFlowDescriptor</code>\r
-        */\r
-       private String flowBeanNamesPrefix = "";\r
-       \r
-       private int order = Ordered.HIGHEST_PRECEDENCE;\r
-               \r
-       public void postProcessBeanFactory(\r
-                       ConfigurableListableBeanFactory beanFactory) throws BeansException {\r
-\r
-               // assert that the beanFactory is a BeanDefinitionRegistry\r
-               if (!(beanFactory instanceof BeanDefinitionRegistry)) {\r
-                       throw new SlcException("Can only work on "\r
-                                       + BeanDefinitionRegistry.class);\r
-               } \r
-               \r
-               // add bean for the Context Values Map\r
-               createAndRegisterContextValuesBean((BeanDefinitionRegistry) beanFactory);\r
-               \r
-               // add beans for each RunnableDataNode\r
-               for(RunnableDataNode node : source.getRunnableDataNodes()) {\r
-                       runnableFactory.createAndRegisterRunnable(node, (BeanDefinitionRegistry) beanFactory);\r
-               }\r
-               \r
-               // add beans for each RunnableCallFlowDescriptor of the source to the application context\r
-               for (RunnableCallFlowDescriptor descriptor : source\r
-                               .getRunnableCallFlowDescriptors()) {\r
-                       createAndRegisterFlowFor(descriptor, (BeanDefinitionRegistry) beanFactory);\r
-               }\r
-       }\r
-\r
-       /**\r
-        * Creates a <code>RunnableCallFlow</code> bean\r
-        * for a <code>RunnableCallFlowDescriptor</code> and registers \r
-        * it in the <code>BeanDefinitionRegistry</code>\r
-        * @param flowDescriptor\r
-        * @param registry\r
-        */\r
-       private void createAndRegisterFlowFor(RunnableCallFlowDescriptor flowDescriptor, BeanDefinitionRegistry registry) {\r
-               // create the flow bean\r
-               GenericBeanDefinition flowBean = new GenericBeanDefinition();\r
-               flowBean.setBeanClass(RunnableCallFlow.class);\r
-               \r
-               String beanName = flowBeanNamesPrefix + flowDescriptor.getBeanName();\r
-               \r
-               MutablePropertyValues mpv = new MutablePropertyValues();                \r
-               mpv.addPropertyValue("runnableCalls", flowDescriptor.getRunnableCalls());\r
-               mpv.addPropertyValue("sharedContextValuesMap", new RuntimeBeanReference(contextValuesBeanName));\r
-               \r
-               mpv.addPropertyValue("name", beanName);\r
-               mpv.addPropertyValue("path", flowDescriptor.getPath());\r
-\r
-               mpv.addPropertyValue("executionContext", new RuntimeBeanReference(executionContextBeanName));\r
-               \r
-               flowBean.setPropertyValues(mpv);\r
-               \r
-               // register it\r
-               if(log.isDebugEnabled()) {\r
-                       log.debug("Registering bean definition for RunnableCallFlow " + beanName);\r
-               }\r
-               registry.registerBeanDefinition(beanName, flowBean);\r
-       }\r
-       \r
-       /**\r
-        * Creates the Context Values bean and register it in the\r
-        * <code>BeanDefinitionRegistry</code>\r
-        * @param registry\r
-        */\r
-       private void createAndRegisterContextValuesBean(BeanDefinitionRegistry registry) {\r
-               GenericBeanDefinition contextValuesBean = new GenericBeanDefinition();\r
-               contextValuesBean.setBeanClass(HashMap.class);\r
-               \r
-               BeanDefinitionHolder bdh = ScopedProxyUtils.createScopedProxy(new BeanDefinitionHolder(contextValuesBean, contextValuesBeanName), registry, true);                                                                                                                      \r
-               registry.registerBeanDefinition(contextValuesBeanName, bdh.getBeanDefinition());                \r
-       }\r
-       \r
-       public int getOrder() {\r
-               return order;\r
-       }\r
-\r
-       public void setOrder(int order) {\r
-               this.order = order;\r
-       }\r
-\r
-       public void setSource(ExecutionFlowGeneratorSource source) {\r
-               this.source = source;\r
-       }\r
-\r
-       public void setRunnableFactory(RunnableFactory runnableFactory) {\r
-               this.runnableFactory = runnableFactory;\r
-       }\r
-\r
-       public void setExecutionContextBeanName(String executionContextBeanName) {\r
-               this.executionContextBeanName = executionContextBeanName;\r
-       }\r
-\r
-       public void setContextValuesBeanName(String contextValuesBeanName) {\r
-               this.contextValuesBeanName = contextValuesBeanName;\r
-       }\r
-\r
-       public void setFlowBeanNamesPrefix(String flowBeanNamesPrefix) {\r
-               this.flowBeanNamesPrefix = flowBeanNamesPrefix;\r
-       }\r
-}\r
+package org.argeo.slc.core.execution.generator;
+
+import java.util.HashMap;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.argeo.slc.SlcException;
+import org.springframework.aop.scope.ScopedProxyUtils;
+import org.springframework.beans.BeansException;
+import org.springframework.beans.MutablePropertyValues;
+import org.springframework.beans.factory.config.BeanDefinitionHolder;
+import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
+import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
+import org.springframework.beans.factory.config.RuntimeBeanReference;
+import org.springframework.beans.factory.support.BeanDefinitionRegistry;
+import org.springframework.beans.factory.support.GenericBeanDefinition;
+import org.springframework.core.Ordered;
+
+/**
+ * Generates <code>ExecutionFlows</code> and <code>Runnables</code> as
+ * beans in the Spring Application Context.
+ * Called by the Application Context as a <code>BeanFactoryPostProcessor</code>.
+ * Two kinds of beans are generated:
+ * <code>RunnableCallFlow</code>, calling a list of <code>Runnables</code> from the
+ * Application Context after configuring the <code>ExecutionContext</code>, 
+ * and outputs of a <code>RunnableFactory</code>.
+ */
+public class ExecutionFlowGenerator implements BeanFactoryPostProcessor,
+               Ordered {
+       
+       private final Log log = LogFactory.getLog(getClass());
+
+       /**
+        * Source providing a list of <code>RunnableCallFlowDescriptor</code> 
+        * used to create <code>RunnableCallFlow</code> and a list of 
+        * <code>RunnableDataNode</code> used to create any kind of flow via a factory
+        */
+       protected ExecutionFlowGeneratorSource source;
+       
+       /**
+        * Factory used to create Runnables in the Application context from
+        * the <code>RunnableDataNode</code> provided from the source.
+        */
+       protected RunnableFactory runnableFactory;
+       
+       /**
+        * Bean name of the <code>ExecutionContext</code>.
+        * Used to provide the created <code>RunnableCallFlow</code> beans 
+        * with a <code>RuntimeBeanReference</code> to
+        * the <code>ExecutionContext</code>
+        */
+       private String executionContextBeanName = "executionContext";
+       
+       /**
+        * Bean name of the context values Map.
+        * A bean of class HashMap is created with this name, and a 
+        * <code>RuntimeBeanReference</code> is provided to the created
+        * <code>RunnableCallFlow</code> beans.
+        */
+       private String contextValuesBeanName = "executionFlowGenerator.contextValues";
+       
+       /**
+        * Prefix added to the bean names defined in each 
+        * <code>RunnableCallFlowDescriptor</code>
+        */
+       private String flowBeanNamesPrefix = "";
+       
+       private int order = Ordered.HIGHEST_PRECEDENCE;
+               
+       public void postProcessBeanFactory(
+                       ConfigurableListableBeanFactory beanFactory) throws BeansException {
+
+               // assert that the beanFactory is a BeanDefinitionRegistry
+               if (!(beanFactory instanceof BeanDefinitionRegistry)) {
+                       throw new SlcException("Can only work on "
+                                       + BeanDefinitionRegistry.class);
+               } 
+               
+               // add bean for the Context Values Map
+               createAndRegisterContextValuesBean((BeanDefinitionRegistry) beanFactory);
+               
+               // add beans for each RunnableDataNode
+               for(RunnableDataNode node : source.getRunnableDataNodes()) {
+                       runnableFactory.createAndRegisterRunnable(node, (BeanDefinitionRegistry) beanFactory);
+               }
+               
+               // add beans for each RunnableCallFlowDescriptor of the source to the application context
+               for (RunnableCallFlowDescriptor descriptor : source
+                               .getRunnableCallFlowDescriptors()) {
+                       createAndRegisterFlowFor(descriptor, (BeanDefinitionRegistry) beanFactory);
+               }
+       }
+
+       /**
+        * Creates a <code>RunnableCallFlow</code> bean
+        * for a <code>RunnableCallFlowDescriptor</code> and registers 
+        * it in the <code>BeanDefinitionRegistry</code>
+        * @param flowDescriptor
+        * @param registry
+        */
+       private void createAndRegisterFlowFor(RunnableCallFlowDescriptor flowDescriptor, BeanDefinitionRegistry registry) {
+               // create the flow bean
+               GenericBeanDefinition flowBean = new GenericBeanDefinition();
+               flowBean.setBeanClass(RunnableCallFlow.class);
+               
+               String beanName = flowBeanNamesPrefix + flowDescriptor.getBeanName();
+               
+               MutablePropertyValues mpv = new MutablePropertyValues();                
+               mpv.addPropertyValue("runnableCalls", flowDescriptor.getRunnableCalls());
+               mpv.addPropertyValue("sharedContextValuesMap", new RuntimeBeanReference(contextValuesBeanName));
+               
+               mpv.addPropertyValue("name", beanName);
+               mpv.addPropertyValue("path", flowDescriptor.getPath());
+
+               mpv.addPropertyValue("executionContext", new RuntimeBeanReference(executionContextBeanName));
+               
+               flowBean.setPropertyValues(mpv);
+               
+               // register it
+               if(log.isDebugEnabled()) {
+                       log.debug("Registering bean definition for RunnableCallFlow " + beanName);
+               }
+               registry.registerBeanDefinition(beanName, flowBean);
+       }
+       
+       /**
+        * Creates the Context Values bean and register it in the
+        * <code>BeanDefinitionRegistry</code>
+        * @param registry
+        */
+       private void createAndRegisterContextValuesBean(BeanDefinitionRegistry registry) {
+               GenericBeanDefinition contextValuesBean = new GenericBeanDefinition();
+               contextValuesBean.setBeanClass(HashMap.class);
+               
+               BeanDefinitionHolder bdh = ScopedProxyUtils.createScopedProxy(new BeanDefinitionHolder(contextValuesBean, contextValuesBeanName), registry, true);                                                                                                                      
+               registry.registerBeanDefinition(contextValuesBeanName, bdh.getBeanDefinition());                
+       }
+       
+       public int getOrder() {
+               return order;
+       }
+
+       public void setOrder(int order) {
+               this.order = order;
+       }
+
+       public void setSource(ExecutionFlowGeneratorSource source) {
+               this.source = source;
+       }
+
+       public void setRunnableFactory(RunnableFactory runnableFactory) {
+               this.runnableFactory = runnableFactory;
+       }
+
+       public void setExecutionContextBeanName(String executionContextBeanName) {
+               this.executionContextBeanName = executionContextBeanName;
+       }
+
+       public void setContextValuesBeanName(String contextValuesBeanName) {
+               this.contextValuesBeanName = contextValuesBeanName;
+       }
+
+       public void setFlowBeanNamesPrefix(String flowBeanNamesPrefix) {
+               this.flowBeanNamesPrefix = flowBeanNamesPrefix;
+       }
+}
index 8d699c66065a240c011058c0beb9fd0bf7f74249..de29e29cefa28f8ebd80b65bdb14d9e6f4083707 100644 (file)
@@ -1,39 +1,24 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.execution.generator;\r
-\r
-import java.util.List;\r
-\r
-/**\r
- * Provides 2 types of information required by an <code>ExecutionFlowGenerator</code>: \r
- * a list of <code>RunnableCallFlowDescriptor</code> used to create <code>RunnableCallFlow</code>\r
- * and a list of <code>RunnableDataNode</code> used to create any kind of flow via a factory.\r
- */\r
-public interface ExecutionFlowGeneratorSource {\r
-       \r
-       /**\r
-        * @return a list of <code>RunnableCallFlowDescriptor</code> used \r
-        * by a <code>ExecutionFlowGenerator</code> to create <code>RunnableCallFlow</code>\r
-        */\r
-       public List<RunnableCallFlowDescriptor> getRunnableCallFlowDescriptors();\r
-       \r
-       /**\r
-        * @return a list of <code>RunnableDataNode</code> used \r
-        * by a <code>ExecutionFlowGenerator</code> to create any kind of flow via a factory\r
-        */\r
-       public List<RunnableDataNode> getRunnableDataNodes();\r
-       \r
-}\r
+package org.argeo.slc.core.execution.generator;
+
+import java.util.List;
+
+/**
+ * Provides 2 types of information required by an <code>ExecutionFlowGenerator</code>: 
+ * a list of <code>RunnableCallFlowDescriptor</code> used to create <code>RunnableCallFlow</code>
+ * and a list of <code>RunnableDataNode</code> used to create any kind of flow via a factory.
+ */
+public interface ExecutionFlowGeneratorSource {
+       
+       /**
+        * @return a list of <code>RunnableCallFlowDescriptor</code> used 
+        * by a <code>ExecutionFlowGenerator</code> to create <code>RunnableCallFlow</code>
+        */
+       public List<RunnableCallFlowDescriptor> getRunnableCallFlowDescriptors();
+       
+       /**
+        * @return a list of <code>RunnableDataNode</code> used 
+        * by a <code>ExecutionFlowGenerator</code> to create any kind of flow via a factory
+        */
+       public List<RunnableDataNode> getRunnableDataNodes();
+       
+}
index c3fd5f2d8c181a25df97c21310c5859f00be4be8..d7740720a05fd7134eb9a254a57f44bbbafd32fa 100644 (file)
@@ -1,70 +1,55 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.execution.generator;\r
-\r
-import java.util.Map;\r
-\r
-/**\r
- * Storage class for information required to call a flow \r
- * of the Spring execution context: \r
- * bean name of the flow,\r
- * variables to add to the Execution Context before the call \r
- * and variables (context values) to add to a Map \r
- * potentially referenced by the called flow \r
- */\r
-public class RunnableCall {\r
-       \r
-       /**\r
-        * Bean name of the flow to call\r
-        */\r
-       private String beanName;\r
-       \r
-       /**\r
-        * Variables to add to the execution context before the call\r
-        */\r
-       private Map<String, Object> executionVariables;\r
-       \r
-       /**\r
-        * Variables to add to the Map potentially referenced by\r
-        * the called flow\r
-        */\r
-       private Map<String, Object> contextValues;\r
-\r
-       public String getBeanName() {\r
-               return beanName;\r
-       }\r
-\r
-       public void setBeanName(String beanName) {\r
-               this.beanName = beanName;\r
-       }\r
-\r
-       public Map<String, Object> getExecutionVariables() {\r
-               return executionVariables;\r
-       }\r
-\r
-       public void setExecutionVariables(Map<String, Object> executionVariables) {\r
-               this.executionVariables = executionVariables;\r
-       }\r
-\r
-       public Map<String, Object> getContextValues() {\r
-               return contextValues;\r
-       }\r
-\r
-       public void setContextValues(Map<String, Object> contextValues) {\r
-               this.contextValues = contextValues;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.core.execution.generator;
+
+import java.util.Map;
+
+/**
+ * Storage class for information required to call a flow 
+ * of the Spring execution context: 
+ * bean name of the flow,
+ * variables to add to the Execution Context before the call 
+ * and variables (context values) to add to a Map 
+ * potentially referenced by the called flow 
+ */
+public class RunnableCall {
+       
+       /**
+        * Bean name of the flow to call
+        */
+       private String beanName;
+       
+       /**
+        * Variables to add to the execution context before the call
+        */
+       private Map<String, Object> executionVariables;
+       
+       /**
+        * Variables to add to the Map potentially referenced by
+        * the called flow
+        */
+       private Map<String, Object> contextValues;
+
+       public String getBeanName() {
+               return beanName;
+       }
+
+       public void setBeanName(String beanName) {
+               this.beanName = beanName;
+       }
+
+       public Map<String, Object> getExecutionVariables() {
+               return executionVariables;
+       }
+
+       public void setExecutionVariables(Map<String, Object> executionVariables) {
+               this.executionVariables = executionVariables;
+       }
+
+       public Map<String, Object> getContextValues() {
+               return contextValues;
+       }
+
+       public void setContextValues(Map<String, Object> contextValues) {
+               this.contextValues = contextValues;
+       }
+
+}
index 695606c210f803dafda009d5f97c18b078e72f32..04043acff6be12123f3f41a33648262094df7bf4 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.execution.generator;\r
-\r
-import java.util.ArrayList;\r
-import java.util.Iterator;\r
-import java.util.List;\r
-import java.util.Map;\r
-\r
-import org.apache.commons.logging.Log;\r
-import org.apache.commons.logging.LogFactory;\r
-import org.argeo.slc.SlcException;\r
-import org.argeo.slc.core.execution.DefaultExecutionSpec;\r
-import org.argeo.slc.execution.ExecutionContext;\r
-import org.argeo.slc.execution.ExecutionFlow;\r
-import org.argeo.slc.execution.ExecutionSpec;\r
-import org.springframework.context.ApplicationContext;\r
-import org.springframework.context.ApplicationContextAware;\r
-\r
-/**\r
- * Execution Flow calling a list of <code>Runnable</code> (identified by their\r
- * bean name in the Spring Application Context) after configuring the Execution\r
- * context and a Map potentially shared by the called <code>Runnable</code>\r
- * \r
- */\r
-public class RunnableCallFlow implements ExecutionFlow, ApplicationContextAware {\r
-\r
-       private final static Log log = LogFactory.getLog(RunnableCallFlow.class);\r
-\r
-       /**\r
-        * Key in the execution context for the index of the call (e.g. 0 for the\r
-        * first runnable called, ...)\r
-        */\r
-       public final static String VAR_CALL_INDEX = "slcVar.runnableCallFlow.callIndex";\r
-\r
-       /**\r
-        * Name of the flow. Also bean name\r
-        */\r
-       private String name;\r
-\r
-       /**\r
-        * Path of the flow\r
-        */\r
-       private String path;\r
-\r
-       /**\r
-        * Whether an exception in a <code>Runnable</code> shall stop the execution\r
-        * of the flow\r
-        */\r
-       private Boolean failOnError = true;\r
-\r
-       /**\r
-        * List of <code>Runnable</code> to call, with bean name, execution\r
-        * variables and context values\r
-        */\r
-       private List<RunnableCall> runnableCalls;\r
-\r
-       /**\r
-        * Map potentially referenced by called flows. Updated with the context\r
-        * values of a Runnable before calling it.\r
-        */\r
-       private Map<String, Object> sharedContextValuesMap;\r
-\r
-       /**\r
-        * ExecutionSpec of the flow. Does not contain any attribute.\r
-        */\r
-       private ExecutionSpec executionSpec = new DefaultExecutionSpec();\r
-\r
-       /**\r
-        * Reference to the ExecutionContext\r
-        */\r
-       private ExecutionContext executionContext;\r
-\r
-       /**\r
-        * Reference to the Spring <code>ApplicationContext</code>. Set via\r
-        * <code>setApplicationContext</code>, the class implementing\r
-        * <code>ApplicationContextAware</code>\r
-        */\r
-       private ApplicationContext applicationContext;\r
-\r
-       /**\r
-        * Runs a <code>Runnable</code> after configuring the Execution Context and\r
-        * <code>sharedContextValuesMap</code>\r
-        * \r
-        * @param runnable\r
-        *            the <code>Runnable</code> to call\r
-        * @param executionVariables\r
-        *            the variables to add to the <code>ExecutionContext</code>\r
-        * @param contextValues\r
-        *            the variables to add to <code>sharedContextValuesMap</code>\r
-        * @param callIndex\r
-        *            index of the call (0 for the first called\r
-        *            <code>Runnable</code>) set as variable of the\r
-        *            <code>ExecutionContext</code>\r
-        */\r
-       private void run(Runnable runnable, Map<String, Object> executionVariables,\r
-                       Map<String, Object> contextValues, int callIndex) {\r
-               // add all variables to the Execution Context\r
-               for (Map.Entry<String, Object> entry : executionVariables.entrySet()) {\r
-                       executionContext.setVariable(entry.getKey(), entry.getValue());\r
-               }\r
-\r
-               // add call Index Variable\r
-               executionContext.setVariable(VAR_CALL_INDEX, callIndex);\r
-\r
-               // clear sharedContextValues and add all values of contextValues\r
-               if (sharedContextValuesMap != null) {\r
-                       sharedContextValuesMap.clear();\r
-                       sharedContextValuesMap.putAll(contextValues);\r
-               }\r
-\r
-               // then run the runnable\r
-               doExecuteRunnable(runnable);\r
-       }\r
-\r
-       public void doExecuteRunnable(Runnable runnable) {\r
-               runnable.run();\r
-       }\r
-\r
-       /**\r
-        * Executes the flow. For each <code>RunnableCall</code>, the corresponding\r
-        * flow is retrieved from the Spring Application Context, the\r
-        * <code>ExecutionContext</code> and <code>sharedContextValuesMap</code> are\r
-        * configured and the <code>Runnable</code> is called.\r
-        */\r
-       public void run() {\r
-               if (applicationContext == null) {\r
-                       throw new SlcException("No ApplicationContext defined");\r
-               }\r
-\r
-               try {\r
-                       for (int callIndex = 0; callIndex < runnableCalls.size(); ++callIndex) {\r
-                               RunnableCall runnableCall = runnableCalls.get(callIndex);\r
-                               Object bean = applicationContext.getBean(\r
-                                               runnableCall.getBeanName(), Runnable.class);\r
-                               if (log.isDebugEnabled())\r
-                                       log.debug("Running flow '" + runnableCall.getBeanName()\r
-                                                       + "'");\r
-                               run((Runnable) bean, runnableCall.getExecutionVariables(),\r
-                                               runnableCall.getContextValues(), callIndex);\r
-                       }\r
-               } catch (RuntimeException e) {\r
-                       if (failOnError)\r
-                               throw e;\r
-                       else {\r
-                               log.error("Execution flow failed,"\r
-                                               + " but process did not fail"\r
-                                               + " because failOnError property"\r
-                                               + " is set to false: " + e);\r
-                               if (log.isTraceEnabled())\r
-                                       e.printStackTrace();\r
-                       }\r
-               }\r
-       }\r
-\r
-       public Iterator<Runnable> runnables() {\r
-               List<Runnable> runnables = new ArrayList<Runnable>();\r
-               for (int callIndex = 0; callIndex < runnableCalls.size(); ++callIndex) {\r
-                       RunnableCall runnableCall = runnableCalls.get(callIndex);\r
-                       Object bean = applicationContext.getBean(\r
-                                       runnableCall.getBeanName(), Runnable.class);\r
-                       runnables.add((Runnable) bean);\r
-               }\r
-               return runnables.iterator();\r
-       }\r
-\r
-       public Runnable getRunnable() {\r
-               if (runnableCalls.size() == 1)\r
-                       return runnables().next();\r
-               else\r
-                       throw new SlcException("There are " + runnableCalls.size()\r
-                                       + " runnables in flow " + getName());\r
-       }\r
-\r
-       @Override\r
-       public String toString() {\r
-               return new StringBuffer("RunnableCallFlow ").append(name).toString();\r
-       }\r
-\r
-       public ExecutionSpec getExecutionSpec() {\r
-               return executionSpec;\r
-       }\r
-\r
-       public String getName() {\r
-               return name;\r
-       }\r
-\r
-       public Object getParameter(String key) {\r
-               throw new SlcException("RunnableCallFlow have no parameters");\r
-       }\r
-\r
-       public String getPath() {\r
-               return path;\r
-       }\r
-\r
-       public Boolean isSetAsParameter(String key) {\r
-               // The ExecutionSpec having no attribute,\r
-               // always return false\r
-               return false;\r
-       }\r
-\r
-       public void setName(String name) {\r
-               this.name = name;\r
-       }\r
-\r
-       public void setPath(String path) {\r
-               this.path = path;\r
-       }\r
-\r
-       public void setExecutionContext(ExecutionContext executionContext) {\r
-               this.executionContext = executionContext;\r
-       }\r
-\r
-       public void setRunnableCalls(List<RunnableCall> runnableCalls) {\r
-               this.runnableCalls = runnableCalls;\r
-       }\r
-\r
-       public void setApplicationContext(ApplicationContext applicationContext) {\r
-               this.applicationContext = applicationContext;\r
-       }\r
-\r
-       public void setSharedContextValuesMap(Map<String, Object> contextValues) {\r
-               this.sharedContextValuesMap = contextValues;\r
-       }\r
-\r
-       public void setFailOnError(Boolean failOnError) {\r
-               this.failOnError = failOnError;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.core.execution.generator;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.argeo.slc.SlcException;
+import org.argeo.slc.core.execution.DefaultExecutionSpec;
+import org.argeo.slc.execution.ExecutionContext;
+import org.argeo.slc.execution.ExecutionFlow;
+import org.argeo.slc.execution.ExecutionSpec;
+import org.springframework.context.ApplicationContext;
+import org.springframework.context.ApplicationContextAware;
+
+/**
+ * Execution Flow calling a list of <code>Runnable</code> (identified by their
+ * bean name in the Spring Application Context) after configuring the Execution
+ * context and a Map potentially shared by the called <code>Runnable</code>
+ * 
+ */
+public class RunnableCallFlow implements ExecutionFlow, ApplicationContextAware {
+
+       private final static Log log = LogFactory.getLog(RunnableCallFlow.class);
+
+       /**
+        * Key in the execution context for the index of the call (e.g. 0 for the
+        * first runnable called, ...)
+        */
+       public final static String VAR_CALL_INDEX = "slcVar.runnableCallFlow.callIndex";
+
+       /**
+        * Name of the flow. Also bean name
+        */
+       private String name;
+
+       /**
+        * Path of the flow
+        */
+       private String path;
+
+       /**
+        * Whether an exception in a <code>Runnable</code> shall stop the execution
+        * of the flow
+        */
+       private Boolean failOnError = true;
+
+       /**
+        * List of <code>Runnable</code> to call, with bean name, execution
+        * variables and context values
+        */
+       private List<RunnableCall> runnableCalls;
+
+       /**
+        * Map potentially referenced by called flows. Updated with the context
+        * values of a Runnable before calling it.
+        */
+       private Map<String, Object> sharedContextValuesMap;
+
+       /**
+        * ExecutionSpec of the flow. Does not contain any attribute.
+        */
+       private ExecutionSpec executionSpec = new DefaultExecutionSpec();
+
+       /**
+        * Reference to the ExecutionContext
+        */
+       private ExecutionContext executionContext;
+
+       /**
+        * Reference to the Spring <code>ApplicationContext</code>. Set via
+        * <code>setApplicationContext</code>, the class implementing
+        * <code>ApplicationContextAware</code>
+        */
+       private ApplicationContext applicationContext;
+
+       /**
+        * Runs a <code>Runnable</code> after configuring the Execution Context and
+        * <code>sharedContextValuesMap</code>
+        * 
+        * @param runnable
+        *            the <code>Runnable</code> to call
+        * @param executionVariables
+        *            the variables to add to the <code>ExecutionContext</code>
+        * @param contextValues
+        *            the variables to add to <code>sharedContextValuesMap</code>
+        * @param callIndex
+        *            index of the call (0 for the first called
+        *            <code>Runnable</code>) set as variable of the
+        *            <code>ExecutionContext</code>
+        */
+       private void run(Runnable runnable, Map<String, Object> executionVariables,
+                       Map<String, Object> contextValues, int callIndex) {
+               // add all variables to the Execution Context
+               for (Map.Entry<String, Object> entry : executionVariables.entrySet()) {
+                       executionContext.setVariable(entry.getKey(), entry.getValue());
+               }
+
+               // add call Index Variable
+               executionContext.setVariable(VAR_CALL_INDEX, callIndex);
+
+               // clear sharedContextValues and add all values of contextValues
+               if (sharedContextValuesMap != null) {
+                       sharedContextValuesMap.clear();
+                       sharedContextValuesMap.putAll(contextValues);
+               }
+
+               // then run the runnable
+               doExecuteRunnable(runnable);
+       }
+
+       public void doExecuteRunnable(Runnable runnable) {
+               runnable.run();
+       }
+
+       /**
+        * Executes the flow. For each <code>RunnableCall</code>, the corresponding
+        * flow is retrieved from the Spring Application Context, the
+        * <code>ExecutionContext</code> and <code>sharedContextValuesMap</code> are
+        * configured and the <code>Runnable</code> is called.
+        */
+       public void run() {
+               if (applicationContext == null) {
+                       throw new SlcException("No ApplicationContext defined");
+               }
+
+               try {
+                       for (int callIndex = 0; callIndex < runnableCalls.size(); ++callIndex) {
+                               RunnableCall runnableCall = runnableCalls.get(callIndex);
+                               Object bean = applicationContext.getBean(
+                                               runnableCall.getBeanName(), Runnable.class);
+                               if (log.isDebugEnabled())
+                                       log.debug("Running flow '" + runnableCall.getBeanName()
+                                                       + "'");
+                               run((Runnable) bean, runnableCall.getExecutionVariables(),
+                                               runnableCall.getContextValues(), callIndex);
+                       }
+               } catch (RuntimeException e) {
+                       if (failOnError)
+                               throw e;
+                       else {
+                               log.error("Execution flow failed,"
+                                               + " but process did not fail"
+                                               + " because failOnError property"
+                                               + " is set to false: " + e);
+                               if (log.isTraceEnabled())
+                                       e.printStackTrace();
+                       }
+               }
+       }
+
+       public Iterator<Runnable> runnables() {
+               List<Runnable> runnables = new ArrayList<Runnable>();
+               for (int callIndex = 0; callIndex < runnableCalls.size(); ++callIndex) {
+                       RunnableCall runnableCall = runnableCalls.get(callIndex);
+                       Object bean = applicationContext.getBean(
+                                       runnableCall.getBeanName(), Runnable.class);
+                       runnables.add((Runnable) bean);
+               }
+               return runnables.iterator();
+       }
+
+       public Runnable getRunnable() {
+               if (runnableCalls.size() == 1)
+                       return runnables().next();
+               else
+                       throw new SlcException("There are " + runnableCalls.size()
+                                       + " runnables in flow " + getName());
+       }
+
+       @Override
+       public String toString() {
+               return new StringBuffer("RunnableCallFlow ").append(name).toString();
+       }
+
+       public ExecutionSpec getExecutionSpec() {
+               return executionSpec;
+       }
+
+       public String getName() {
+               return name;
+       }
+
+       public Object getParameter(String key) {
+               throw new SlcException("RunnableCallFlow have no parameters");
+       }
+
+       public String getPath() {
+               return path;
+       }
+
+       public Boolean isSetAsParameter(String key) {
+               // The ExecutionSpec having no attribute,
+               // always return false
+               return false;
+       }
+
+       public void setName(String name) {
+               this.name = name;
+       }
+
+       public void setPath(String path) {
+               this.path = path;
+       }
+
+       public void setExecutionContext(ExecutionContext executionContext) {
+               this.executionContext = executionContext;
+       }
+
+       public void setRunnableCalls(List<RunnableCall> runnableCalls) {
+               this.runnableCalls = runnableCalls;
+       }
+
+       public void setApplicationContext(ApplicationContext applicationContext) {
+               this.applicationContext = applicationContext;
+       }
+
+       public void setSharedContextValuesMap(Map<String, Object> contextValues) {
+               this.sharedContextValuesMap = contextValues;
+       }
+
+       public void setFailOnError(Boolean failOnError) {
+               this.failOnError = failOnError;
+       }
+
+}
index e0bbbdda974e07415d86aef5b9fdd3c9eb81934c..738b75f7645a2be22dafed588b9d6556dc4bcb7d 100644 (file)
@@ -1,70 +1,55 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.execution.generator;\r
-\r
-import java.util.ArrayList;\r
-import java.util.List;\r
-\r
-/**\r
- * Storage Class for information required to\r
- * instantiate a <code>RunnableCallFlow</code>:\r
- * bean name of the flow, \r
- * path of the flow \r
- * and list of <code>RunnableCall</code>. \r
- *\r
- */\r
-public class RunnableCallFlowDescriptor {\r
-       \r
-       /**\r
-        * Bean name of the flow to instantiate\r
-        */\r
-       private String beanName;\r
-       \r
-       /**\r
-        * Path of the flow to instantiate\r
-        */\r
-       private String path;\r
-       \r
-       /**\r
-        * List of <code>RunnableCall</code> \r
-        */\r
-       private List<RunnableCall> runnableCalls = new ArrayList<RunnableCall>();\r
-\r
-       public String getBeanName() {\r
-               return beanName;\r
-       }\r
-\r
-       public void setBeanName(String beanName) {\r
-               this.beanName = beanName;\r
-       }\r
-\r
-       public String getPath() {\r
-               return path;\r
-       }\r
-\r
-       public void setPath(String path) {\r
-               this.path = path;\r
-       }\r
-\r
-       public List<RunnableCall> getRunnableCalls() {\r
-               return runnableCalls;\r
-       }\r
-\r
-       public void setRunnableCalls(List<RunnableCall> runnableCalls) {\r
-               this.runnableCalls = runnableCalls;\r
-       }\r
-       \r
-}\r
+package org.argeo.slc.core.execution.generator;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Storage Class for information required to
+ * instantiate a <code>RunnableCallFlow</code>:
+ * bean name of the flow, 
+ * path of the flow 
+ * and list of <code>RunnableCall</code>. 
+ *
+ */
+public class RunnableCallFlowDescriptor {
+       
+       /**
+        * Bean name of the flow to instantiate
+        */
+       private String beanName;
+       
+       /**
+        * Path of the flow to instantiate
+        */
+       private String path;
+       
+       /**
+        * List of <code>RunnableCall</code> 
+        */
+       private List<RunnableCall> runnableCalls = new ArrayList<RunnableCall>();
+
+       public String getBeanName() {
+               return beanName;
+       }
+
+       public void setBeanName(String beanName) {
+               this.beanName = beanName;
+       }
+
+       public String getPath() {
+               return path;
+       }
+
+       public void setPath(String path) {
+               this.path = path;
+       }
+
+       public List<RunnableCall> getRunnableCalls() {
+               return runnableCalls;
+       }
+
+       public void setRunnableCalls(List<RunnableCall> runnableCalls) {
+               this.runnableCalls = runnableCalls;
+       }
+       
+}
index 51843dcd00e876160d58cf7360ce8aa560e377a1..e526b5e65ebcc4b0ff38ef62fe8ca0e99202fbd1 100644 (file)
@@ -1,74 +1,59 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.execution.generator;\r
-\r
-import java.util.List;\r
-import java.util.Map;\r
-\r
-/**\r
- * Stores information relative to a Runnable.\r
- * Allows to structure the information as a tree, each node\r
- * storing data as a Map.\r
- */\r
-public interface RunnableDataNode {\r
-\r
-       /**\r
-        * @return a Map containing the data associated with this node.\r
-        * Data associated with parent nodes are expected\r
-        * to be contained in the returned Map\r
-        */\r
-       public Map<String, Object> getData();   \r
-\r
-       /**\r
-        * @return the name of the bean to create.\r
-        * Can be null if no bean shall be created for the \r
-        * <code>RunnableDataNode</code> (e.g. is is a sub-node)\r
-        */\r
-       public String getBeanName();\r
-       \r
-       /**\r
-        * @return the path of the flow bean to create.\r
-        * Can be null if the bean to created is not an\r
-        * <code>ExecutionFlow</code> or if no bean shall be created for the \r
-        * <code>RunnableDataNode</code> (e.g. is is a sub-node)\r
-        */\r
-       public String getPath();\r
-               \r
-       /**\r
-        * @return whether the <code>RunnableDataNode</code> has\r
-        * children or not.\r
-        * Expected to be equivalent to <code>getChildren().empty()</code>\r
-        */\r
-       public boolean isLeaf();\r
-\r
-       /**\r
-        * @return the list of <code>RunnableDataNode</code> children.\r
-        * Can be empty. Shall not be null.\r
-        */\r
-       public List<RunnableDataNode> getChildren();\r
-       \r
-       /**\r
-        * @return the <code>RunnableDataNode</code> parent.\r
-        * Can be null if no parent is defined (top node).\r
-        */\r
-       public RunnableDataNode getParent();\r
-       \r
-       /**\r
-        * Sets the <code>RunnableDataNode</code> parent\r
-        * @param parent\r
-        */\r
-       public void setParent(RunnableDataNode parent); \r
-}\r
+package org.argeo.slc.core.execution.generator;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Stores information relative to a Runnable.
+ * Allows to structure the information as a tree, each node
+ * storing data as a Map.
+ */
+public interface RunnableDataNode {
+
+       /**
+        * @return a Map containing the data associated with this node.
+        * Data associated with parent nodes are expected
+        * to be contained in the returned Map
+        */
+       public Map<String, Object> getData();   
+
+       /**
+        * @return the name of the bean to create.
+        * Can be null if no bean shall be created for the 
+        * <code>RunnableDataNode</code> (e.g. is is a sub-node)
+        */
+       public String getBeanName();
+       
+       /**
+        * @return the path of the flow bean to create.
+        * Can be null if the bean to created is not an
+        * <code>ExecutionFlow</code> or if no bean shall be created for the 
+        * <code>RunnableDataNode</code> (e.g. is is a sub-node)
+        */
+       public String getPath();
+               
+       /**
+        * @return whether the <code>RunnableDataNode</code> has
+        * children or not.
+        * Expected to be equivalent to <code>getChildren().empty()</code>
+        */
+       public boolean isLeaf();
+
+       /**
+        * @return the list of <code>RunnableDataNode</code> children.
+        * Can be empty. Shall not be null.
+        */
+       public List<RunnableDataNode> getChildren();
+       
+       /**
+        * @return the <code>RunnableDataNode</code> parent.
+        * Can be null if no parent is defined (top node).
+        */
+       public RunnableDataNode getParent();
+       
+       /**
+        * Sets the <code>RunnableDataNode</code> parent
+        * @param parent
+        */
+       public void setParent(RunnableDataNode parent); 
+}
index 2b3702889516e0dbb666f5f5381f579a1416d153..c81008a9fc697548035749af4f36cefff13e77ea 100644 (file)
@@ -1,29 +1,14 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.execution.generator;\r
-\r
-import org.springframework.beans.factory.support.BeanDefinitionRegistry;\r
-\r
-/**\r
- * Interprets a <code>RunnableDataNode</code> by creating corresponding\r
- * beans and registering them in a <code>BeanDefinitionRegistry</code>\r
- *\r
- */\r
-public interface RunnableFactory {\r
-\r
-       public void createAndRegisterRunnable(RunnableDataNode node,\r
-                       BeanDefinitionRegistry beanDefinitionRegistry);\r
-}\r
+package org.argeo.slc.core.execution.generator;
+
+import org.springframework.beans.factory.support.BeanDefinitionRegistry;
+
+/**
+ * Interprets a <code>RunnableDataNode</code> by creating corresponding
+ * beans and registering them in a <code>BeanDefinitionRegistry</code>
+ *
+ */
+public interface RunnableFactory {
+
+       public void createAndRegisterRunnable(RunnableDataNode node,
+                       BeanDefinitionRegistry beanDefinitionRegistry);
+}
index 43b296106575a13bf98e86dce8b946468bb61ddd..76460d6c2b40ce3699a7c23d82c2e50c0eafdb6a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.tasks;
 
 import org.argeo.slc.test.TestResult;
index d47149b86a7a8e9d2ce2b7d236132c04c3530d60..87140246ff87f11c1ba51b03f48085377c6faa3f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.tasks;
 
 import java.io.File;
index 0d22e437d9bff996cd73ebc0b7d21bd0070206a9..f8a79d84849ae5abe4179ab9fedbdd30077e1f06 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.tasks;
 
 import org.argeo.slc.SlcException;
index 01f11012fba228d8b49200020e5fea9c8a632db4..157c150dae00fcb7db1e70c694ce3bda72503dae 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.tasks;
 
 import java.io.File;
index e1740e6594766e1b3fdca508f1a629791e441241..bb25c88e604a9063ea1a54c1c37c6f89f34fcd22 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.tasks;
 
 import java.util.ArrayList;
index e4fa7722228f257a3936cc2b540452e80d08a88e..88aeb47162376d1868901d2aa34bb2fc302cfd11 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.tasks;
 
 import java.lang.reflect.Method;
index 9afa8468ce5be7ff57a74710f1c27de294f1b265..6162ecbb29873cb689504d49f9d8dc7e1fb7899e 100644 (file)
@@ -1,72 +1,57 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.execution.tasks;\r
-\r
-import org.argeo.slc.SlcException;\r
-import org.argeo.slc.core.test.context.SimpleContextAware;\r
-import org.argeo.slc.test.context.ContextAware;\r
-\r
-/**\r
- * Overrides Values and Expected values of a target \r
- * <code>SimpleContextAware</code> with the corresponding\r
- * values and expected values of a source <code>ContextAware</code>\r
- *\r
- */\r
-public class OverrideContextAware implements Runnable {\r
-\r
-       private ContextAware source;\r
-\r
-       private SimpleContextAware target;\r
-       \r
-       /**\r
-        * Whether an exception shall be thrown if a value\r
-        * or expected value of the source is not defined\r
-        * in the target\r
-        */\r
-       private Boolean failIfUndefinedInSource = true;\r
-       \r
-       public void run() {\r
-               // override values\r
-               if(source.getValues() != null)\r
-                       for(String key : source.getValues().keySet()) {\r
-                               if(failIfUndefinedInSource && !target.getValues().containsKey(key)) {\r
-                                       throw new SlcException("No entry in target values for key '" + key + "'");\r
-                               }\r
-                               target.getValues().put(key, source.getValues().get(key));\r
-                       }\r
-               \r
-               // override expected values\r
-               if(source.getExpectedValues() != null)\r
-                       for(String key : source.getExpectedValues().keySet()) {\r
-                               if(failIfUndefinedInSource && !target.getExpectedValues().containsKey(key)) {\r
-                                       throw new SlcException("No entry in target expected values for key '" + key + "'");\r
-                               }\r
-                               target.getExpectedValues().put(key, source.getExpectedValues().get(key));\r
-                       }               \r
-       }       \r
-       \r
-       public void setSource(ContextAware source) {\r
-               this.source = source;\r
-       }\r
-\r
-       public void setTarget(SimpleContextAware target) {\r
-               this.target = target;\r
-       }\r
-\r
-       public void setFailIfUndefinedInSource(Boolean failIfUndefinedInSource) {\r
-               this.failIfUndefinedInSource = failIfUndefinedInSource;\r
-       }       \r
-}\r
+package org.argeo.slc.core.execution.tasks;
+
+import org.argeo.slc.SlcException;
+import org.argeo.slc.core.test.context.SimpleContextAware;
+import org.argeo.slc.test.context.ContextAware;
+
+/**
+ * Overrides Values and Expected values of a target 
+ * <code>SimpleContextAware</code> with the corresponding
+ * values and expected values of a source <code>ContextAware</code>
+ *
+ */
+public class OverrideContextAware implements Runnable {
+
+       private ContextAware source;
+
+       private SimpleContextAware target;
+       
+       /**
+        * Whether an exception shall be thrown if a value
+        * or expected value of the source is not defined
+        * in the target
+        */
+       private Boolean failIfUndefinedInSource = true;
+       
+       public void run() {
+               // override values
+               if(source.getValues() != null)
+                       for(String key : source.getValues().keySet()) {
+                               if(failIfUndefinedInSource && !target.getValues().containsKey(key)) {
+                                       throw new SlcException("No entry in target values for key '" + key + "'");
+                               }
+                               target.getValues().put(key, source.getValues().get(key));
+                       }
+               
+               // override expected values
+               if(source.getExpectedValues() != null)
+                       for(String key : source.getExpectedValues().keySet()) {
+                               if(failIfUndefinedInSource && !target.getExpectedValues().containsKey(key)) {
+                                       throw new SlcException("No entry in target expected values for key '" + key + "'");
+                               }
+                               target.getExpectedValues().put(key, source.getExpectedValues().get(key));
+                       }               
+       }       
+       
+       public void setSource(ContextAware source) {
+               this.source = source;
+       }
+
+       public void setTarget(SimpleContextAware target) {
+               this.target = target;
+       }
+
+       public void setFailIfUndefinedInSource(Boolean failIfUndefinedInSource) {
+               this.failIfUndefinedInSource = failIfUndefinedInSource;
+       }       
+}
index 4237c57520833b5556cf5277f903d4095f19164b..633f8f950b22a16ad1f3168ac9a425ca597425ee 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.tasks;
 
 import java.io.File;
index b28f1ade25e71c9186c704029a955b0dca093748..7972cdcb80e93be27d3720cc5f119f863def69b9 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.tasks;
 
 public interface SystemCallOutputListener {
index 93f27b281f28a58d1005ae5c9a4eaad8ac6029c3..83f2ee8c50287beb4d18ba6a5f6eb49c039cf58a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.tasks;
 
 import java.util.ArrayList;
index dceec1c5a42e0bd94d76a62919eae40c7d4ab2dc..b68d9c77dfda7136ad91507b17fccd75c83ebf1c 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.xml;
 
 import org.apache.commons.logging.Log;
index dfca9d51260ca94029dde18d2a8f832c0fe6bdfa..b756381ef036fc70a99188c384a359b53b8ddd8a 100644 (file)
@@ -1,52 +1,37 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.execution.xml;\r
-\r
-import org.springframework.aop.scope.ScopedProxyUtils;\r
-import org.springframework.beans.factory.config.BeanDefinitionHolder;\r
-import org.springframework.beans.factory.parsing.BeanComponentDefinition;\r
-import org.springframework.beans.factory.xml.BeanDefinitionDecorator;\r
-import org.springframework.beans.factory.xml.ParserContext;\r
-import org.w3c.dom.Element;\r
-import org.w3c.dom.Node;\r
-\r
-/**\r
- * Inspired by org.springframework.aop.config.ScopedProxyBeanDefinitionDecorator\r
- */\r
-public class ExecutionScopeDecorator implements BeanDefinitionDecorator {      \r
-       private static final String PROXY_TARGET_CLASS = "proxy-target-class";  \r
-       \r
-       public BeanDefinitionHolder decorate(Node node,\r
-                       BeanDefinitionHolder definition, ParserContext parserContext) {\r
-               \r
-               definition.getBeanDefinition().setScope("execution");\r
-               \r
-               // Default: CGLib not used\r
-               boolean proxyTargetClass = false;\r
-               if (node instanceof Element) {\r
-                       Element ele = (Element) node;\r
-                       if (ele.hasAttribute(PROXY_TARGET_CLASS)) {\r
-                               proxyTargetClass = Boolean.valueOf(ele.getAttribute(PROXY_TARGET_CLASS)).booleanValue();\r
-                       }\r
-               }\r
-               \r
-               // Register the original bean definition as it will be referenced by the scoped proxy and is relevant for tooling (validation, navigation).\r
-               String targetBeanName = ScopedProxyUtils.getTargetBeanName(definition.getBeanName());\r
-               parserContext.getReaderContext().fireComponentRegistered(new BeanComponentDefinition(definition.getBeanDefinition(), targetBeanName));\r
-               \r
-               return ScopedProxyUtils.createScopedProxy(definition, parserContext.getRegistry(), proxyTargetClass);           \r
-       }\r
-}\r
+package org.argeo.slc.core.execution.xml;
+
+import org.springframework.aop.scope.ScopedProxyUtils;
+import org.springframework.beans.factory.config.BeanDefinitionHolder;
+import org.springframework.beans.factory.parsing.BeanComponentDefinition;
+import org.springframework.beans.factory.xml.BeanDefinitionDecorator;
+import org.springframework.beans.factory.xml.ParserContext;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+/**
+ * Inspired by org.springframework.aop.config.ScopedProxyBeanDefinitionDecorator
+ */
+public class ExecutionScopeDecorator implements BeanDefinitionDecorator {      
+       private static final String PROXY_TARGET_CLASS = "proxy-target-class";  
+       
+       public BeanDefinitionHolder decorate(Node node,
+                       BeanDefinitionHolder definition, ParserContext parserContext) {
+               
+               definition.getBeanDefinition().setScope("execution");
+               
+               // Default: CGLib not used
+               boolean proxyTargetClass = false;
+               if (node instanceof Element) {
+                       Element ele = (Element) node;
+                       if (ele.hasAttribute(PROXY_TARGET_CLASS)) {
+                               proxyTargetClass = Boolean.valueOf(ele.getAttribute(PROXY_TARGET_CLASS)).booleanValue();
+                       }
+               }
+               
+               // Register the original bean definition as it will be referenced by the scoped proxy and is relevant for tooling (validation, navigation).
+               String targetBeanName = ScopedProxyUtils.getTargetBeanName(definition.getBeanName());
+               parserContext.getReaderContext().fireComponentRegistered(new BeanComponentDefinition(definition.getBeanDefinition(), targetBeanName));
+               
+               return ScopedProxyUtils.createScopedProxy(definition, parserContext.getRegistry(), proxyTargetClass);           
+       }
+}
index 7d2ab49a1285176902ba1b5521f2ba120ff27aa5..60e8699922d578c914d1fba892f52cb1b8a3f793 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.xml;
 
 import java.util.ArrayList;
index 2deba8bb2b048e85c8e7a90a251ad8a5ced2ad87..a1d6912aa9328278591580d1e855175400ecb552 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.xml;
 
 import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
index ccf94f131cd0842d1ab68c0cf0da4b6814e7ddcb..baa01524f33c8833716d84bd415073b361e7269c 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.xml;
 
 import org.argeo.slc.SlcException;
index 16839c042c48bbae501920afeacd8076b85b02df..ed7a223750cdee14c208ff5463a0ac3e8c9bf7e0 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.xml;
 
 import org.argeo.slc.core.execution.ParameterRef;
index bb2d24516f548c5b12a07f346015ff26e0551497..937e8d02df60dc42c277fffbcc4ceee1fc1225de 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.core.execution.xml;
 
 import java.util.List;
index 3c7f44ae24a3459ae0dd52457a54c0a4d5665f1a..2701cd27b75fcb7feaa0e749a70aa65c0e00b0d0 100644 (file)
@@ -1,29 +1,14 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.test.context;\r
-\r
-import org.argeo.slc.runtime.test.TestDataUtils;\r
-import org.argeo.slc.test.TestData;\r
-import org.argeo.slc.test.TestDataProvider;\r
-\r
-public class DefaultContextTestData extends SimpleContextAware implements\r
-               TestData, TestDataProvider {\r
-\r
-       public <T extends TestData> T getTestData(Class<T> clss, String key) {\r
-               return TestDataUtils.getItSelf(clss, this);\r
-       }\r
-\r
-}\r
+package org.argeo.slc.core.test.context;
+
+import org.argeo.slc.runtime.test.TestDataUtils;
+import org.argeo.slc.test.TestData;
+import org.argeo.slc.test.TestDataProvider;
+
+public class DefaultContextTestData extends SimpleContextAware implements
+               TestData, TestDataProvider {
+
+       public <T extends TestData> T getTestData(Class<T> clss, String key) {
+               return TestDataUtils.getItSelf(clss, this);
+       }
+
+}
index 7980e37689b137764f5aa506a89f3abac5a0d574..b2d8191909f9989cfec973f8ac7952b9a4f29689 100644 (file)
@@ -1,86 +1,71 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.test.context;\r
-\r
-import java.util.Map;\r
-import java.util.TreeMap;\r
-\r
-import org.argeo.slc.SlcException;\r
-import org.argeo.slc.runtime.test.ContextUtils;\r
-import org.argeo.slc.test.context.ContextAware;\r
-import org.argeo.slc.test.context.ParentContextAware;\r
-import org.springframework.beans.factory.InitializingBean;\r
-\r
-public class SimpleContextAware implements ContextAware, InitializingBean {\r
-       private ParentContextAware parentContext;\r
-\r
-       private Map<String, Object> values = new TreeMap<String, Object>();\r
-       private Map<String, Object> expectedValues = new TreeMap<String, Object>();\r
-\r
-       private String contextSkipFlag = DEFAULT_SKIP_FLAG;\r
-       private String contextAnyFlag = DEFAULT_ANY_FLAG;\r
-\r
-       public Map<String, Object> getValues() {\r
-               return values;\r
-       }\r
-\r
-       public void setValues(Map<String, Object> values) {\r
-               this.values = values;\r
-       }\r
-\r
-       public Map<String, Object> getExpectedValues() {\r
-               return expectedValues;\r
-       }\r
-\r
-       public void setExpectedValues(Map<String, Object> expectedValues) {\r
-               this.expectedValues = expectedValues;\r
-       }\r
-\r
-       /** Used to add this context as a child by setting a property. */\r
-       public void setParentContext(ParentContextAware parentContextAware) {\r
-               if (parentContext != null)\r
-                       throw new SlcException("Parent context already set");\r
-               this.parentContext = parentContextAware;\r
-               this.parentContext.addChildContext(this);\r
-       }\r
-\r
-       protected ParentContextAware getParentContext() {\r
-               return parentContext;\r
-       }\r
-\r
-       public void afterPropertiesSet() throws Exception {\r
-               if (parentContext != null) {\r
-                       ContextUtils.synchronize(parentContext);\r
-               }\r
-       }\r
-\r
-       public String getContextSkipFlag() {\r
-               return contextSkipFlag;\r
-       }\r
-\r
-       public void setContextSkipFlag(String contextSkipFlag) {\r
-               this.contextSkipFlag = contextSkipFlag;\r
-       }\r
-\r
-       public String getContextAnyFlag() {\r
-               return contextAnyFlag;\r
-       }\r
-\r
-       public void setContextAnyFlag(String contextAnyFlag) {\r
-               this.contextAnyFlag = contextAnyFlag;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.core.test.context;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.argeo.slc.SlcException;
+import org.argeo.slc.runtime.test.ContextUtils;
+import org.argeo.slc.test.context.ContextAware;
+import org.argeo.slc.test.context.ParentContextAware;
+import org.springframework.beans.factory.InitializingBean;
+
+public class SimpleContextAware implements ContextAware, InitializingBean {
+       private ParentContextAware parentContext;
+
+       private Map<String, Object> values = new TreeMap<String, Object>();
+       private Map<String, Object> expectedValues = new TreeMap<String, Object>();
+
+       private String contextSkipFlag = DEFAULT_SKIP_FLAG;
+       private String contextAnyFlag = DEFAULT_ANY_FLAG;
+
+       public Map<String, Object> getValues() {
+               return values;
+       }
+
+       public void setValues(Map<String, Object> values) {
+               this.values = values;
+       }
+
+       public Map<String, Object> getExpectedValues() {
+               return expectedValues;
+       }
+
+       public void setExpectedValues(Map<String, Object> expectedValues) {
+               this.expectedValues = expectedValues;
+       }
+
+       /** Used to add this context as a child by setting a property. */
+       public void setParentContext(ParentContextAware parentContextAware) {
+               if (parentContext != null)
+                       throw new SlcException("Parent context already set");
+               this.parentContext = parentContextAware;
+               this.parentContext.addChildContext(this);
+       }
+
+       protected ParentContextAware getParentContext() {
+               return parentContext;
+       }
+
+       public void afterPropertiesSet() throws Exception {
+               if (parentContext != null) {
+                       ContextUtils.synchronize(parentContext);
+               }
+       }
+
+       public String getContextSkipFlag() {
+               return contextSkipFlag;
+       }
+
+       public void setContextSkipFlag(String contextSkipFlag) {
+               this.contextSkipFlag = contextSkipFlag;
+       }
+
+       public String getContextAnyFlag() {
+               return contextAnyFlag;
+       }
+
+       public void setContextAnyFlag(String contextAnyFlag) {
+               this.contextAnyFlag = contextAnyFlag;
+       }
+
+}
index fc214ea1a79f0914e1c7d79743112e8486eab552..3c2e7b9f0614f346b1ea6d1c0c72b14bfdb99d5e 100644 (file)
@@ -1,51 +1,36 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.test.context;\r
-\r
-import java.util.Collection;\r
-import java.util.List;\r
-import java.util.Vector;\r
-\r
-import org.argeo.slc.runtime.test.ContextUtils;\r
-import org.argeo.slc.test.context.ContextAware;\r
-import org.argeo.slc.test.context.ParentContextAware;\r
-import org.springframework.beans.factory.InitializingBean;\r
-\r
-public class SimpleParentContextAware extends SimpleContextAware implements\r
-               ParentContextAware, InitializingBean {\r
-       private List<ContextAware> children = new Vector<ContextAware>();\r
-\r
-       public Collection<ContextAware> getChildContexts() {\r
-               return children;\r
-       }\r
-\r
-       public void addChildContext(ContextAware contextAware) {\r
-               children.add(contextAware);\r
-       }\r
-\r
-       @Override\r
-       public void afterPropertiesSet() throws Exception {\r
-               if (getParentContext() != null) {\r
-                       // If has a parent, sync it.\r
-                       super.afterPropertiesSet();\r
-               } else {\r
-                       if (children.size() > 0) {\r
-                               // No need to synchronize if no children\r
-                               ContextUtils.synchronize(this);\r
-                       }\r
-               }\r
-       }\r
-}\r
+package org.argeo.slc.core.test.context;
+
+import java.util.Collection;
+import java.util.List;
+import java.util.Vector;
+
+import org.argeo.slc.runtime.test.ContextUtils;
+import org.argeo.slc.test.context.ContextAware;
+import org.argeo.slc.test.context.ParentContextAware;
+import org.springframework.beans.factory.InitializingBean;
+
+public class SimpleParentContextAware extends SimpleContextAware implements
+               ParentContextAware, InitializingBean {
+       private List<ContextAware> children = new Vector<ContextAware>();
+
+       public Collection<ContextAware> getChildContexts() {
+               return children;
+       }
+
+       public void addChildContext(ContextAware contextAware) {
+               children.add(contextAware);
+       }
+
+       @Override
+       public void afterPropertiesSet() throws Exception {
+               if (getParentContext() != null) {
+                       // If has a parent, sync it.
+                       super.afterPropertiesSet();
+               } else {
+                       if (children.size() > 0) {
+                               // No need to synchronize if no children
+                               ContextUtils.synchronize(this);
+                       }
+               }
+       }
+}
index 747785fee30d28fac4e87a6c2b81565565db6b31..b04395cc6e32d7525e69ea3f494155b03f06a836 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi;
 
 /** <b>Experimental</b> A structured set of OSGi bundles. */
index 9877c31e6662cb685b01cddae017b0183cc2af3f..6563d3951b1663ce561ddfe2d43de14410b37088 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi;
 
 import java.util.Collection;
index 03f21c5304e2217530fb9181bb046ad382454178..605c797e6727277fbf36735b3d7453c57d55ecb1 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi;
 
 import java.io.File;
index 2d8b0311c430d3cc3c274517c99214c36b482a83..01509c273134fdfd3465535fdf34b49df2d96d48 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi;
 
 import java.util.ArrayList;
index cb11615b6e5cb6add872fee7410333aa50213dcb..01275da276c1befaf1bc2fb63946c722206cc03d 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi;
 
 import org.argeo.slc.DefaultNameVersion;
index df7ae9bc100da2c81c34dcfa5cbd456c1ab45574..ca3f5faa7fe3df1938f9397c41757042a24de0e8 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi;
 
 import org.apache.commons.logging.Log;
index 3693657044f689af7f45846708c094ceb9394a1e..63eb6f9a4166a9c7ef81b9c61bae5d72a44fadb8 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi;
 
 import java.lang.management.ManagementFactory;
index 306ad07a83be3c97b894fb71a57f040f7452393c..3668b9123b92eb3d98b54d75df58154c7ef5ff2a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi;
 
 import java.io.File;
index 8286eccd5b97964bd0e702162ff865b9d8a84238..089baa6db6955ea6485a7eff7824cd627a327139 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi;
 
 import java.util.ArrayList;
index c76659f09de71ccaed285077ccb43f843050948e..61380c0eb4cfcbe3c149f8c281d51e6efa39ebeb 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi.build;
 
 import java.util.ArrayList;
index db7c7e8a13bed34dad86572b99fe62516af79ba8..ec7d2f6bf91a54029d2e89eb464b21ef0b798c45 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi.build;
 
 import java.net.URL;
index e38d9c024a2c4be203ab719df2b0b00eaf19c539..b8debf575819e5ed362afdd64d0fe59eddb6a132 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi.build;
 
 import java.util.ArrayList;
index c716562368467d5b77a305fe9369ae04c61dfe05..510a55552226d6fabf6eac267cce1eef6aa9ee89 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi.build;
 
 public class EclipseUpdateSiteCategory {
index f28c0cb122dcc96a6b3d5a96ca8a6df9fb1e54c8..42ded0b314d2ed2e0bb72da0d8fc1f7afd2923b6 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi.build;
 
 import java.util.ArrayList;
index 5523e6efecdf85a1d32a098d48f571fd4b1f166f..acc4bab364886fd33fd73024ff4b7d6320be3cd1 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi.build;
 
 import java.net.URL;
index 2414788c8a2c379d163c551902d8416c8091e875..bea394927906f60cc264ae136b5f98acdd057dc5 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.osgi.deploy;
 
 import org.argeo.slc.core.deploy.DefaultResourceSet;
index 83a6640c4d521455aa9770b875505eecfe9665e2..2c12838cdf490ef48ae044a49be7488ccc05ac6a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.spring;
 
 import javax.security.auth.Subject;
index 68a9cc993c8858a3985c2b2579534720f052c80c..40d562bb3e95b0a46de2495e577b6a4663c5aa63 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.spring;
 
 import java.security.AccessController;
index ba358fa6d625f6c6a6fab437de3c2781f3f252ff..eb1d73155db6fdc360815b9d8a7cfa7346d98739 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.spring.auth;
 
 import javax.security.auth.Subject;
index 5702134031cdd034e26c7cb02f004ad03cbad47c..79f7822eefbef8c425f7203da66233cec0e8ff33 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.spring.auth;
 
 import java.security.AccessController;
index b3c3ae4c05952f723097a7d966ed12f681232384..f95296a5c02cce138473d2dd1b5022d4ba6a7edc 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.spring.unit;
 
 import org.argeo.slc.execution.ExecutionFlow;
index 7cd14736eb8b70a2c5a61e437b63244eaf7ad20d..734a5ec9493fea95bef08ed03f3e1fb38423f0f8 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.spring.unit;
 
 import java.util.ArrayList;
index b6e48fed489ddda274e0347da70774b97f1d8977..ec532eb133464fc2bd5cdaf7b511ee472ee70db2 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.spring.unit;\r
-\r
-import java.util.Map;\r
-\r
-import org.apache.commons.logging.Log;\r
-import org.apache.commons.logging.LogFactory;\r
-import org.argeo.slc.SlcException;\r
-import org.springframework.beans.factory.BeanFactoryUtils;\r
-import org.springframework.beans.factory.ListableBeanFactory;\r
-import org.springframework.context.ConfigurableApplicationContext;\r
-import org.springframework.context.support.ClassPathXmlApplicationContext;\r
-\r
-import junit.framework.TestCase;\r
-\r
-/** Helper for tests using a Spring application co,text. */\r
-public abstract class AbstractSpringTestCase extends TestCase {\r
-       protected final Log log = LogFactory.getLog(getClass());\r
-       private ConfigurableApplicationContext context;\r
-\r
-       /**\r
-        * Gets (and create if necessary) the application context to use. Default\r
-        * implementation uses a class path xml application context and calls\r
-        * {@link #getApplicationContextLocation()}.\r
-        */\r
-       protected ConfigurableApplicationContext getContext() {\r
-               if (context == null) {\r
-                       context = new ClassPathXmlApplicationContext(\r
-                                       getApplicationContextLocation());\r
-                       if (getIsStartContext())\r
-                               context.start();\r
-               }\r
-               return context;\r
-       }\r
-\r
-       @Override\r
-       protected void tearDown() throws Exception {\r
-               if (context != null && context.isActive())\r
-                       context.close();\r
-               super.tearDown();\r
-       }\r
-\r
-       /** Whether the context should be started after being created. */\r
-       protected Boolean getIsStartContext() {\r
-               return false;\r
-       }\r
-\r
-       /** Returns a bean from the underlying context */\r
-       @SuppressWarnings(value = { "unchecked" })\r
-       protected <T> T getBean(String beanId) {\r
-               return (T) getContext().getBean(beanId);\r
-       }\r
-\r
-       protected <T> T getBean(Class<? extends T> clss) {\r
-               T bean = loadSingleFromContext(getContext(), clss);\r
-               if (bean == null) {\r
-                       throw new SlcException("Cannot retrieve a unique bean of type "\r
-                                       + clss);\r
-               } else {\r
-                       return bean;\r
-               }\r
-       }\r
-\r
-       /**\r
-        * Th location of the application to load. The default implementation\r
-        * returns <i>applicationContext.xml</i> found in the same package as the\r
-        * test.\r
-        */\r
-       protected String getApplicationContextLocation() {\r
-               return inPackage("applicationContext.xml");\r
-       }\r
-\r
-       /**\r
-        * Prefixes the package of the class after converting the '.' to '/' in\r
-        * order to have a resource path.\r
-        */\r
-       protected String inPackage(String suffix) {\r
-               String prefix = getClass().getPackage().getName().replace('.', '/');\r
-               return prefix + '/' + suffix;\r
-       }\r
-\r
-       @SuppressWarnings(value = { "unchecked" })\r
-       protected <T> T loadSingleFromContext(ListableBeanFactory context,\r
-                       Class<T> clss) {\r
-               Map<String, T> beans = BeanFactoryUtils.beansOfTypeIncludingAncestors(\r
-                               context, clss, false, false);\r
-               if (beans.size() == 1) {\r
-                       return beans.values().iterator().next();\r
-               } else if (beans.size() > 1) {\r
-                       if (log.isDebugEnabled()) {\r
-                               log\r
-                                               .debug(("Found more that on bean for type " + clss\r
-                                                               + ": " + beans.keySet()));\r
-                       }\r
-                       return null;\r
-               } else {\r
-                       return null;\r
-               }\r
-       }\r
-\r
-}\r
+package org.argeo.slc.spring.unit;
+
+import java.util.Map;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.argeo.slc.SlcException;
+import org.springframework.beans.factory.BeanFactoryUtils;
+import org.springframework.beans.factory.ListableBeanFactory;
+import org.springframework.context.ConfigurableApplicationContext;
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+import junit.framework.TestCase;
+
+/** Helper for tests using a Spring application co,text. */
+public abstract class AbstractSpringTestCase extends TestCase {
+       protected final Log log = LogFactory.getLog(getClass());
+       private ConfigurableApplicationContext context;
+
+       /**
+        * Gets (and create if necessary) the application context to use. Default
+        * implementation uses a class path xml application context and calls
+        * {@link #getApplicationContextLocation()}.
+        */
+       protected ConfigurableApplicationContext getContext() {
+               if (context == null) {
+                       context = new ClassPathXmlApplicationContext(
+                                       getApplicationContextLocation());
+                       if (getIsStartContext())
+                               context.start();
+               }
+               return context;
+       }
+
+       @Override
+       protected void tearDown() throws Exception {
+               if (context != null && context.isActive())
+                       context.close();
+               super.tearDown();
+       }
+
+       /** Whether the context should be started after being created. */
+       protected Boolean getIsStartContext() {
+               return false;
+       }
+
+       /** Returns a bean from the underlying context */
+       @SuppressWarnings(value = { "unchecked" })
+       protected <T> T getBean(String beanId) {
+               return (T) getContext().getBean(beanId);
+       }
+
+       protected <T> T getBean(Class<? extends T> clss) {
+               T bean = loadSingleFromContext(getContext(), clss);
+               if (bean == null) {
+                       throw new SlcException("Cannot retrieve a unique bean of type "
+                                       + clss);
+               } else {
+                       return bean;
+               }
+       }
+
+       /**
+        * Th location of the application to load. The default implementation
+        * returns <i>applicationContext.xml</i> found in the same package as the
+        * test.
+        */
+       protected String getApplicationContextLocation() {
+               return inPackage("applicationContext.xml");
+       }
+
+       /**
+        * Prefixes the package of the class after converting the '.' to '/' in
+        * order to have a resource path.
+        */
+       protected String inPackage(String suffix) {
+               String prefix = getClass().getPackage().getName().replace('.', '/');
+               return prefix + '/' + suffix;
+       }
+
+       @SuppressWarnings(value = { "unchecked" })
+       protected <T> T loadSingleFromContext(ListableBeanFactory context,
+                       Class<T> clss) {
+               Map<String, T> beans = BeanFactoryUtils.beansOfTypeIncludingAncestors(
+                               context, clss, false, false);
+               if (beans.size() == 1) {
+                       return beans.values().iterator().next();
+               } else if (beans.size() > 1) {
+                       if (log.isDebugEnabled()) {
+                               log
+                                               .debug(("Found more that on bean for type " + clss
+                                                               + ": " + beans.keySet()));
+                       }
+                       return null;
+               } else {
+                       return null;
+               }
+       }
+
+}
index f858492674365d7115ecd4c951aa6ddd58635c12..5e504f654adda1d4b9db0de33d09618d93ea6624 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.spring.unit;
 
 import java.util.ArrayList;
index 1eeca0561cedb6d0f3acefaa32dbd704af937f05..1e69adf7e4380a3771f957683a3875a596a2ad45 100644 (file)
@@ -1,57 +1,42 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.spring.unit;\r
-\r
-import static junit.framework.Assert.assertEquals;\r
-import static junit.framework.Assert.assertNotNull;\r
-import static junit.framework.Assert.assertNull;\r
-\r
-import java.util.Calendar;\r
-import java.util.Date;\r
-import java.util.GregorianCalendar;\r
-\r
-public abstract class UnitUtils {\r
-       public static void assertDateSec(Date expected, Date reached) {\r
-               if (expected == null) {\r
-                       assertNull(reached);\r
-                       return;\r
-               } else {\r
-                       assertNotNull(reached);\r
-               }\r
-\r
-               Calendar expectedCal = new GregorianCalendar();\r
-               expectedCal.setTime(expected);\r
-               Calendar reachedCal = new GregorianCalendar();\r
-               reachedCal.setTime(reached);\r
-               assertEquals(expectedCal.get(Calendar.YEAR), reachedCal\r
-                               .get(Calendar.YEAR));\r
-               assertEquals(expectedCal.get(Calendar.MONTH), reachedCal\r
-                               .get(Calendar.MONTH));\r
-               assertEquals(expectedCal.get(Calendar.DATE), reachedCal\r
-                               .get(Calendar.DATE));\r
-               assertEquals(expectedCal.get(Calendar.HOUR_OF_DAY), reachedCal\r
-                               .get(Calendar.HOUR_OF_DAY));\r
-               assertEquals(expectedCal.get(Calendar.MINUTE), reachedCal\r
-                               .get(Calendar.MINUTE));\r
-               assertEquals(expectedCal.get(Calendar.SECOND), reachedCal\r
-                               .get(Calendar.SECOND));\r
-       }\r
-\r
-       private UnitUtils() {\r
-\r
-       }\r
-\r
-}\r
+package org.argeo.slc.spring.unit;
+
+import static junit.framework.Assert.assertEquals;
+import static junit.framework.Assert.assertNotNull;
+import static junit.framework.Assert.assertNull;
+
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+
+public abstract class UnitUtils {
+       public static void assertDateSec(Date expected, Date reached) {
+               if (expected == null) {
+                       assertNull(reached);
+                       return;
+               } else {
+                       assertNotNull(reached);
+               }
+
+               Calendar expectedCal = new GregorianCalendar();
+               expectedCal.setTime(expected);
+               Calendar reachedCal = new GregorianCalendar();
+               reachedCal.setTime(reached);
+               assertEquals(expectedCal.get(Calendar.YEAR), reachedCal
+                               .get(Calendar.YEAR));
+               assertEquals(expectedCal.get(Calendar.MONTH), reachedCal
+                               .get(Calendar.MONTH));
+               assertEquals(expectedCal.get(Calendar.DATE), reachedCal
+                               .get(Calendar.DATE));
+               assertEquals(expectedCal.get(Calendar.HOUR_OF_DAY), reachedCal
+                               .get(Calendar.HOUR_OF_DAY));
+               assertEquals(expectedCal.get(Calendar.MINUTE), reachedCal
+                               .get(Calendar.MINUTE));
+               assertEquals(expectedCal.get(Calendar.SECOND), reachedCal
+                               .get(Calendar.SECOND));
+       }
+
+       private UnitUtils() {
+
+       }
+
+}
index 8b6a0e6f81c6eaeefbf227e59e09bd4df68e3423..36db90f1cb442731acb19d6a8a8278a425572405 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.maven;
 
 import org.apache.maven.cli.MavenCli;
index c3926e1b0253a46d61154a08e8b6d80c0f19d3d4..658b702c63b4af5224e203370029d577f07d74e4 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.maven;
 
 import java.io.IOException;
index ecc03a83e7702a6cea8e49407b7c6e4d4f96487b..30dec4906aa0c2af6f900f3f476eb837a6c01660 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.maven;
 
 /*******************************************************************************
index 9db7d4cb53bcd8e766cd20192b7bcd5dd2037aa0..8e8499db93ae96782a599af579c80876c73f7c9a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.maven;
 
 import java.io.File;
index 2522d2f09514c7e9bab6020689032234d598bbc5..cf2f591ac7fd8a5d80227b80255fcb06eaa24a7c 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.maven;
 
 import java.io.File;
index 93e242b44871911c5c66d289c333ab09bdd7e112..210f3af930e1c7798a9d5e42f69bae2a428006b7 100644 (file)
@@ -1,87 +1,72 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.maven;\r
-\r
-import org.argeo.slc.build.Distribution;\r
-import org.argeo.slc.deploy.DeploymentData;\r
-\r
-public class MavenFile implements Distribution, DeploymentData {\r
-       private String groupId;\r
-       private String artifactId;\r
-       private String version;\r
-       private String type;\r
-       private String classifier;\r
-       private String scope;\r
-\r
-       public String getScope() {\r
-               return scope;\r
-       }\r
-\r
-       public void setScope(String scope) {\r
-               this.scope = scope;\r
-       }\r
-\r
-       private String distributionId;\r
-\r
-       public String getDistributionId() {\r
-               return distributionId;\r
-       }\r
-\r
-       public void setDistributionId(String distributionId) {\r
-               this.distributionId = distributionId;\r
-       }\r
-\r
-       public String getGroupId() {\r
-               return groupId;\r
-       }\r
-\r
-       public void setGroupId(String groupId) {\r
-               this.groupId = groupId;\r
-       }\r
-\r
-       public String getArtifactId() {\r
-               return artifactId;\r
-       }\r
-\r
-       public void setArtifactId(String artifactId) {\r
-               this.artifactId = artifactId;\r
-       }\r
-\r
-       public String getVersion() {\r
-               return version;\r
-       }\r
-\r
-       public void setVersion(String version) {\r
-               this.version = version;\r
-       }\r
-\r
-       public String getType() {\r
-               return type;\r
-       }\r
-\r
-       public void setType(String type) {\r
-               this.type = type;\r
-       }\r
-\r
-       public String getClassifier() {\r
-               return classifier;\r
-       }\r
-\r
-       public void setClassifier(String classifier) {\r
-               this.classifier = classifier;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.maven;
+
+import org.argeo.slc.build.Distribution;
+import org.argeo.slc.deploy.DeploymentData;
+
+public class MavenFile implements Distribution, DeploymentData {
+       private String groupId;
+       private String artifactId;
+       private String version;
+       private String type;
+       private String classifier;
+       private String scope;
+
+       public String getScope() {
+               return scope;
+       }
+
+       public void setScope(String scope) {
+               this.scope = scope;
+       }
+
+       private String distributionId;
+
+       public String getDistributionId() {
+               return distributionId;
+       }
+
+       public void setDistributionId(String distributionId) {
+               this.distributionId = distributionId;
+       }
+
+       public String getGroupId() {
+               return groupId;
+       }
+
+       public void setGroupId(String groupId) {
+               this.groupId = groupId;
+       }
+
+       public String getArtifactId() {
+               return artifactId;
+       }
+
+       public void setArtifactId(String artifactId) {
+               this.artifactId = artifactId;
+       }
+
+       public String getVersion() {
+               return version;
+       }
+
+       public void setVersion(String version) {
+               this.version = version;
+       }
+
+       public String getType() {
+               return type;
+       }
+
+       public void setType(String type) {
+               this.type = type;
+       }
+
+       public String getClassifier() {
+               return classifier;
+       }
+
+       public void setClassifier(String classifier) {
+               this.classifier = classifier;
+       }
+
+}
index 37dabc60e4978d5ce907e2d72b8d12914c56fca5..e4355ecf887512b761d4994027076fa6ae584084 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.maven;\r
-\r
-import org.apache.commons.logging.Log;\r
-import org.apache.commons.logging.LogFactory;\r
-import org.apache.maven.repository.internal.MavenRepositorySystemUtils;\r
-import org.argeo.slc.SlcException;\r
-import org.argeo.slc.aether.AetherUtils;\r
-import org.argeo.slc.aether.ConsoleRepositoryListener;\r
-import org.argeo.slc.aether.ConsoleTransferListener;\r
-import org.codehaus.plexus.PlexusContainer;\r
-import org.eclipse.aether.DefaultRepositorySystemSession;\r
-import org.eclipse.aether.RepositorySystem;\r
-import org.eclipse.aether.RepositorySystemSession;\r
-import org.eclipse.aether.artifact.Artifact;\r
-import org.eclipse.aether.artifact.DefaultArtifact;\r
-import org.eclipse.aether.collection.CollectRequest;\r
-import org.eclipse.aether.graph.Dependency;\r
-import org.eclipse.aether.graph.DependencyNode;\r
-import org.eclipse.aether.impl.DefaultServiceLocator;\r
-import org.eclipse.aether.repository.LocalRepository;\r
-import org.eclipse.aether.repository.RemoteRepository;\r
-import org.eclipse.aether.util.graph.visitor.PreorderNodeListGenerator;\r
-\r
-public class MavenManager {\r
-       private final static Log log = LogFactory.getLog(MavenManager.class);\r
-\r
-       public void init() {\r
-               try {\r
-                       testMaven();\r
-                       testAether();\r
-                       // List<ComponentDescriptor<?>> lst = plexusContainer\r
-                       // .discoverComponents(plexusContainer.getContainerRealm());\r
-                       // for (ComponentDescriptor<?> cd : lst) {\r
-                       // log.debug(cd);\r
-                       // }\r
-                       // ArtifactHandler artifactHandler = plexusContainer\r
-                       // .lookup(ArtifactHandler.class);\r
-                       // ArtifactRepository localRepository = new\r
-                       // DefaultArtifactRepositoryFactory().createArtifactRepository("local",\r
-                       // , layoutId, snapshots, releases);\r
-                       // Maven maven = mavenCli.getContainer().lookup(Maven.class);\r
-                       // Artifact artifact = new DefaultArtifact("org.argeo.slc.dist",\r
-                       // "org.argeo.slc.sdk", "0.13.1-SNAPSHOT", "compile", "pom",\r
-                       // null, artifactHandler);\r
-                       // ArtifactResolutionRequest req = new ArtifactResolutionRequest();\r
-                       // req.setLocalRepository(localRepository);\r
-                       // req.setResolveTransitively(true);\r
-                       // req.setArtifact(artifact);\r
-                       // ArtifactResolver artifactResolver = plexusContainer\r
-                       // .lookup(ArtifactResolver.class);\r
-                       // ArtifactResolutionResult res = artifactResolver.resolve(req);\r
-                       // Set<Artifact> artifacts = res.getArtifacts();\r
-                       // for (Artifact art : artifacts) {\r
-                       // log.debug(art);\r
-                       // }\r
-               } catch (Exception e) {\r
-                       // TODO Auto-generated catch block\r
-                       e.printStackTrace();\r
-               }\r
-       }\r
-\r
-       public void testMaven() {\r
-               Thread.currentThread().setContextClassLoader(\r
-                               getClass().getClassLoader());\r
-               String[] goals = { "-o", "-e", "-f",\r
-                               "/home/mbaudier/dev/src/slc/dist/org.argeo.slc.sdk/pom.xml",\r
-                               "dependency:tree" };\r
-\r
-               // String m2Home = "/opt/apache-maven-3.0.1";\r
-               // System.setProperty("classworlds.conf", m2Home + "/bin/m2.conf");\r
-               // System.setProperty("maven.home", m2Home);\r
-               //\r
-               // Launcher.main(goals);\r
-\r
-               CustomCli mavenCli = new CustomCli();\r
-               mavenCli.doMain(goals,\r
-                               "/home/mbaudier/dev/src/slc/dist/org.argeo.slc.sdk",\r
-                               System.out, System.err);\r
-\r
-               PlexusContainer plexusContainer = mavenCli.getContainer();\r
-               log.debug(plexusContainer.getContext().getContextData());\r
-               plexusContainer.dispose();\r
-       }\r
-\r
-       public void testAether() {\r
-               try {\r
-                       RepositorySystem repoSystem = createRepositorySystem();\r
-\r
-                       RepositorySystemSession session = createRepositorySystemSession(repoSystem);\r
-\r
-                       Dependency dependency = new Dependency(new DefaultArtifact(\r
-                                       "org.argeo.slc.dep:org.argeo.slc.dep.sdk:0.13.1-SNAPSHOT"),\r
-                                       "compile");\r
-//                     RemoteRepository argeo = new RemoteRepository("argeo", "default",\r
-//                                     "http://maven.argeo.org/argeo/");\r
-//                     RemoteRepository argeoSnapshots = new RemoteRepository(\r
-//                                     "argeo-snapshots", "default",\r
-//                                     "http://dev.argeo.org/maven/argeo-snapshots/");\r
-                       RemoteRepository argeo =null;\r
-                       RemoteRepository argeoSnapshots =null;\r
-\r
-                       CollectRequest collectRequest = new CollectRequest();\r
-                       collectRequest.setRoot(dependency);\r
-                       collectRequest.addRepository(argeo);\r
-                       collectRequest.addRepository(argeoSnapshots);\r
-                       DependencyNode node = repoSystem.collectDependencies(session,\r
-                                       collectRequest).getRoot();\r
-\r
-//                     repoSystem.resolveDependencies(session, node, null);\r
-\r
-                       PreorderNodeListGenerator nlg = new PreorderNodeListGenerator();\r
-                       node.accept(nlg);\r
-\r
-                       for (Artifact artifact : nlg.getArtifacts(true)) {\r
-                               log.debug(artifact);\r
-                       }\r
-\r
-                       AetherUtils.logDependencyNode(0, node);\r
-                       // System.out.println(nlg.getClassPath());\r
-\r
-               } catch (Exception e) {\r
-                       throw new SlcException("Cannot resolve", e);\r
-               }\r
-\r
-       }\r
-\r
-       /** Creates a Maven {@link RepositorySystem}. */\r
-       public static RepositorySystem createRepositorySystem() {\r
-               try {\r
-                       DefaultServiceLocator locator = new DefaultServiceLocator();\r
-\r
-//                     locator.setServices(WagonProvider.class, new ManualWagonProvider());\r
-//                     locator.addService(RepositoryConnectorFactory.class,\r
-//                                     WagonRepositoryConnectorFactory.class);\r
-\r
-                       return locator.getService(RepositorySystem.class);\r
-               } catch (Exception e) {\r
-                       throw new SlcException("Cannot lookup repository system", e);\r
-               }\r
-       }\r
-\r
-       public static RepositorySystemSession createRepositorySystemSession(\r
-                       RepositorySystem system) {\r
-//             MavenRepositorySystemSession session = new MavenRepositorySystemSession();\r
-              DefaultRepositorySystemSession session = MavenRepositorySystemUtils.newSession();\r
-              \r
-               LocalRepository localRepo = new LocalRepository(\r
-                               System.getProperty("user.home") + "/.m2/repository");\r
-        session.setLocalRepositoryManager( system.newLocalRepositoryManager( session, localRepo ) );\r
-//             session.setLocalRepositoryManager(system\r
-//                             .newLocalRepositoryManager(localRepo));\r
-               session.setTransferListener(new ConsoleTransferListener(System.out));\r
-               session.setRepositoryListener(new ConsoleRepositoryListener());\r
-               return session;\r
-       }\r
-\r
-       public static void main(String[] args) {\r
-               new MavenManager().init();\r
-       }\r
-\r
-}\r
+package org.argeo.slc.maven;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.maven.repository.internal.MavenRepositorySystemUtils;
+import org.argeo.slc.SlcException;
+import org.argeo.slc.aether.AetherUtils;
+import org.argeo.slc.aether.ConsoleRepositoryListener;
+import org.argeo.slc.aether.ConsoleTransferListener;
+import org.codehaus.plexus.PlexusContainer;
+import org.eclipse.aether.DefaultRepositorySystemSession;
+import org.eclipse.aether.RepositorySystem;
+import org.eclipse.aether.RepositorySystemSession;
+import org.eclipse.aether.artifact.Artifact;
+import org.eclipse.aether.artifact.DefaultArtifact;
+import org.eclipse.aether.collection.CollectRequest;
+import org.eclipse.aether.graph.Dependency;
+import org.eclipse.aether.graph.DependencyNode;
+import org.eclipse.aether.impl.DefaultServiceLocator;
+import org.eclipse.aether.repository.LocalRepository;
+import org.eclipse.aether.repository.RemoteRepository;
+import org.eclipse.aether.util.graph.visitor.PreorderNodeListGenerator;
+
+public class MavenManager {
+       private final static Log log = LogFactory.getLog(MavenManager.class);
+
+       public void init() {
+               try {
+                       testMaven();
+                       testAether();
+                       // List<ComponentDescriptor<?>> lst = plexusContainer
+                       // .discoverComponents(plexusContainer.getContainerRealm());
+                       // for (ComponentDescriptor<?> cd : lst) {
+                       // log.debug(cd);
+                       // }
+                       // ArtifactHandler artifactHandler = plexusContainer
+                       // .lookup(ArtifactHandler.class);
+                       // ArtifactRepository localRepository = new
+                       // DefaultArtifactRepositoryFactory().createArtifactRepository("local",
+                       // , layoutId, snapshots, releases);
+                       // Maven maven = mavenCli.getContainer().lookup(Maven.class);
+                       // Artifact artifact = new DefaultArtifact("org.argeo.slc.dist",
+                       // "org.argeo.slc.sdk", "0.13.1-SNAPSHOT", "compile", "pom",
+                       // null, artifactHandler);
+                       // ArtifactResolutionRequest req = new ArtifactResolutionRequest();
+                       // req.setLocalRepository(localRepository);
+                       // req.setResolveTransitively(true);
+                       // req.setArtifact(artifact);
+                       // ArtifactResolver artifactResolver = plexusContainer
+                       // .lookup(ArtifactResolver.class);
+                       // ArtifactResolutionResult res = artifactResolver.resolve(req);
+                       // Set<Artifact> artifacts = res.getArtifacts();
+                       // for (Artifact art : artifacts) {
+                       // log.debug(art);
+                       // }
+               } catch (Exception e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+       }
+
+       public void testMaven() {
+               Thread.currentThread().setContextClassLoader(
+                               getClass().getClassLoader());
+               String[] goals = { "-o", "-e", "-f",
+                               "/home/mbaudier/dev/src/slc/dist/org.argeo.slc.sdk/pom.xml",
+                               "dependency:tree" };
+
+               // String m2Home = "/opt/apache-maven-3.0.1";
+               // System.setProperty("classworlds.conf", m2Home + "/bin/m2.conf");
+               // System.setProperty("maven.home", m2Home);
+               //
+               // Launcher.main(goals);
+
+               CustomCli mavenCli = new CustomCli();
+               mavenCli.doMain(goals,
+                               "/home/mbaudier/dev/src/slc/dist/org.argeo.slc.sdk",
+                               System.out, System.err);
+
+               PlexusContainer plexusContainer = mavenCli.getContainer();
+               log.debug(plexusContainer.getContext().getContextData());
+               plexusContainer.dispose();
+       }
+
+       public void testAether() {
+               try {
+                       RepositorySystem repoSystem = createRepositorySystem();
+
+                       RepositorySystemSession session = createRepositorySystemSession(repoSystem);
+
+                       Dependency dependency = new Dependency(new DefaultArtifact(
+                                       "org.argeo.slc.dep:org.argeo.slc.dep.sdk:0.13.1-SNAPSHOT"),
+                                       "compile");
+//                     RemoteRepository argeo = new RemoteRepository("argeo", "default",
+//                                     "http://maven.argeo.org/argeo/");
+//                     RemoteRepository argeoSnapshots = new RemoteRepository(
+//                                     "argeo-snapshots", "default",
+//                                     "http://dev.argeo.org/maven/argeo-snapshots/");
+                       RemoteRepository argeo =null;
+                       RemoteRepository argeoSnapshots =null;
+
+                       CollectRequest collectRequest = new CollectRequest();
+                       collectRequest.setRoot(dependency);
+                       collectRequest.addRepository(argeo);
+                       collectRequest.addRepository(argeoSnapshots);
+                       DependencyNode node = repoSystem.collectDependencies(session,
+                                       collectRequest).getRoot();
+
+//                     repoSystem.resolveDependencies(session, node, null);
+
+                       PreorderNodeListGenerator nlg = new PreorderNodeListGenerator();
+                       node.accept(nlg);
+
+                       for (Artifact artifact : nlg.getArtifacts(true)) {
+                               log.debug(artifact);
+                       }
+
+                       AetherUtils.logDependencyNode(0, node);
+                       // System.out.println(nlg.getClassPath());
+
+               } catch (Exception e) {
+                       throw new SlcException("Cannot resolve", e);
+               }
+
+       }
+
+       /** Creates a Maven {@link RepositorySystem}. */
+       public static RepositorySystem createRepositorySystem() {
+               try {
+                       DefaultServiceLocator locator = new DefaultServiceLocator();
+
+//                     locator.setServices(WagonProvider.class, new ManualWagonProvider());
+//                     locator.addService(RepositoryConnectorFactory.class,
+//                                     WagonRepositoryConnectorFactory.class);
+
+                       return locator.getService(RepositorySystem.class);
+               } catch (Exception e) {
+                       throw new SlcException("Cannot lookup repository system", e);
+               }
+       }
+
+       public static RepositorySystemSession createRepositorySystemSession(
+                       RepositorySystem system) {
+//             MavenRepositorySystemSession session = new MavenRepositorySystemSession();
+              DefaultRepositorySystemSession session = MavenRepositorySystemUtils.newSession();
+              
+               LocalRepository localRepo = new LocalRepository(
+                               System.getProperty("user.home") + "/.m2/repository");
+        session.setLocalRepositoryManager( system.newLocalRepositoryManager( session, localRepo ) );
+//             session.setLocalRepositoryManager(system
+//                             .newLocalRepositoryManager(localRepo));
+               session.setTransferListener(new ConsoleTransferListener(System.out));
+               session.setRepositoryListener(new ConsoleRepositoryListener());
+               return session;
+       }
+
+       public static void main(String[] args) {
+               new MavenManager().init();
+       }
+
+}
index 1103e3c002483d680ed00a7e70fb2d836c9a98da..da1ac71dc76a409b0ebbe96396e77e70f8fa165c 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.maven;
 
 import java.util.ArrayList;
index 196b7c5ad8dc481b4b68579a182d2498e1826287..a3f3bc87c5d216808f400375dfa66c3bb1856e2a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.maven;
 
 public class RemoteRepo {
index 4c7c85817c2dcf75cc7b3519de2b6ab34f70cfc7..58ed61a92021559547eef5724fdbaa53f2a3e738 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.diff;
 
 import java.util.List;
index 9255c76fee068f325ad8158a6082bcb9c56ac355..0f2705d00c12208b4df4cbbaf5bd25aec0355cf0 100644 (file)
@@ -1,35 +1,20 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.diff;\r
-\r
-/**\r
- * Converts data into a format better adapted for comparison. It is typically\r
- * used to convert <code>String</code> into typed format such as\r
- * <code>BigDecimal</code>\r
- */\r
-public interface DataInterpreter {\r
-       /**\r
-        * Converts data\r
-        * \r
-        * @param key\r
-        *            any object used to differentiate the type of data (e.g.\r
-        *            column, path)\r
-        * @param value\r
-        *            the data to convert\r
-        * @return the converted object\r
-        */\r
-       public Object convert(Object key, Object value);\r
-}\r
+package org.argeo.slc.diff;
+
+/**
+ * Converts data into a format better adapted for comparison. It is typically
+ * used to convert <code>String</code> into typed format such as
+ * <code>BigDecimal</code>
+ */
+public interface DataInterpreter {
+       /**
+        * Converts data
+        * 
+        * @param key
+        *            any object used to differentiate the type of data (e.g.
+        *            column, path)
+        * @param value
+        *            the data to convert
+        * @return the converted object
+        */
+       public Object convert(Object key, Object value);
+}
index 79dd7c499e7b5a6da1ea219a7b0e675f7456efd8..6bb5f6d8ba686519d0eb5d875c295b428667a55c 100644 (file)
@@ -1,25 +1,10 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.diff;\r
-\r
-import org.springframework.core.io.Resource;\r
-\r
-/** A comparator providing structured information about the differences found. */\r
-public interface Diff {\r
-       /** Performs the comparison. */\r
-       public void compare(Resource expected, Resource reached,\r
-                       DiffResult diffResult);\r
-}\r
+package org.argeo.slc.diff;
+
+import org.springframework.core.io.Resource;
+
+/** A comparator providing structured information about the differences found. */
+public interface Diff {
+       /** Performs the comparison. */
+       public void compare(Resource expected, Resource reached,
+                       DiffResult diffResult);
+}
index eda08e5e9d80ae6486c1d71625b53cecd9706a0d..b390d68c936d84616c63c533fe40aa1b879db5b5 100644 (file)
@@ -1,58 +1,43 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.diff;\r
-\r
-/** The root class for issues which happened during a diff. */\r
-public abstract class DiffIssue implements Comparable<DiffIssue> {\r
-       /** The position of this issue. */\r
-       // Was final and is not anymore in order to persist in hibernate\r
-       protected DiffPosition position;\r
-\r
-       // hibernate\r
-       private long id;\r
-\r
-       /** Constructor */\r
-       public DiffIssue(DiffPosition position) {\r
-               super();\r
-               this.position = position;\r
-       }\r
-\r
-       public int compareTo(DiffIssue o) {\r
-               return position.compareTo(o.position);\r
-       }\r
-\r
-       /** The position of this issue within the test file */\r
-       public DiffPosition getPosition() {\r
-               return position;\r
-       }\r
-\r
-       // Hibernate\r
-       @SuppressWarnings("unused")\r
-       private void setId(long id) {\r
-               this.id = id;\r
-       }\r
-\r
-       @SuppressWarnings("unused")\r
-       private long getId() {\r
-               return id;\r
-       }\r
-\r
-       @SuppressWarnings("unused")\r
-       private void setPosition(DiffPosition position) {\r
-               this.position = position;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.diff;
+
+/** The root class for issues which happened during a diff. */
+public abstract class DiffIssue implements Comparable<DiffIssue> {
+       /** The position of this issue. */
+       // Was final and is not anymore in order to persist in hibernate
+       protected DiffPosition position;
+
+       // hibernate
+       private long id;
+
+       /** Constructor */
+       public DiffIssue(DiffPosition position) {
+               super();
+               this.position = position;
+       }
+
+       public int compareTo(DiffIssue o) {
+               return position.compareTo(o.position);
+       }
+
+       /** The position of this issue within the test file */
+       public DiffPosition getPosition() {
+               return position;
+       }
+
+       // Hibernate
+       @SuppressWarnings("unused")
+       private void setId(long id) {
+               this.id = id;
+       }
+
+       @SuppressWarnings("unused")
+       private long getId() {
+               return id;
+       }
+
+       @SuppressWarnings("unused")
+       private void setPosition(DiffPosition position) {
+               this.position = position;
+       }
+
+}
index 0be73a5a0bda30f7e69ba964f5e992dd44923bf1..c9dde85cbaf134584bb62dd705cfb204b413ba83 100644 (file)
@@ -1,52 +1,37 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.diff;\r
-\r
-/** Intermediate class that can hold the key to be displayed. */\r
-public abstract class DiffIssueKey extends DiffIssue {\r
-       /** The position of this issue. */\r
-       protected DiffKey key;\r
-\r
-       /** Constructor without key */\r
-       public DiffIssueKey(DiffPosition position) {\r
-               super(position);\r
-       }\r
-\r
-       /** Constructor with key */\r
-       public DiffIssueKey(DiffPosition position, DiffKey key) {\r
-               super(position);\r
-               this.key = key;\r
-       }\r
-\r
-       public Object getKey() {\r
-               return key;\r
-       }\r
-\r
-       @Override\r
-       public String toString() {\r
-               if (key != null) {\r
-                       return key.toString();\r
-               } else {\r
-                       return "";\r
-               }\r
-       }\r
-\r
-       // Hibernate\r
-       @SuppressWarnings("unused")\r
-       private void setKey(DiffKey key) {\r
-               this.key = key;\r
-       }\r
-}\r
+package org.argeo.slc.diff;
+
+/** Intermediate class that can hold the key to be displayed. */
+public abstract class DiffIssueKey extends DiffIssue {
+       /** The position of this issue. */
+       protected DiffKey key;
+
+       /** Constructor without key */
+       public DiffIssueKey(DiffPosition position) {
+               super(position);
+       }
+
+       /** Constructor with key */
+       public DiffIssueKey(DiffPosition position, DiffKey key) {
+               super(position);
+               this.key = key;
+       }
+
+       public Object getKey() {
+               return key;
+       }
+
+       @Override
+       public String toString() {
+               if (key != null) {
+                       return key.toString();
+               } else {
+                       return "";
+               }
+       }
+
+       // Hibernate
+       @SuppressWarnings("unused")
+       private void setKey(DiffKey key) {
+               this.key = key;
+       }
+}
index 8c2e60d290b918b60226b8e1d18b2c24776187c0..89a34963eb913590dceb5289403b37f838984e10 100644 (file)
@@ -1,24 +1,9 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.diff;\r
-\r
-/**\r
- * Object able to uniquely identify an atomic diff part. Used to identify\r
- * missings and left-overs.\r
- */\r
-public interface DiffKey {\r
-       public String toString();\r
-}\r
+package org.argeo.slc.diff;
+
+/**
+ * Object able to uniquely identify an atomic diff part. Used to identify
+ * missings and left-overs.
+ */
+public interface DiffKey {
+       public String toString();
+}
index 7e7ba248bb4cf093e35a2065553a23d42ae80104..adea313cacde69f523bf20fe6265e77ed22845a6 100644 (file)
@@ -1,41 +1,26 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.diff;\r
-\r
-/**\r
- * A value missing in one of the file. If its position is related to expected,\r
- * this means it is a left over in the reached, if its position is related to\r
- * the reached it means that it is missing from the reached. If the value is\r
- * null it means that the entire line is missing.\r
- */\r
-public class DiffMissing extends DiffIssueKey {\r
-\r
-       public DiffMissing(DiffPosition position, DiffKey key) {\r
-               super(position);\r
-               super.key = key;\r
-       }\r
-\r
-       @Override\r
-       public String toString() {\r
-               if (position.relatedFile == RelatedFile.EXPECTED) {\r
-                       return position + ": left over " + super.toString();\r
-               } else if (position.relatedFile == RelatedFile.REACHED) {\r
-                       return position + ": missing " + super.toString();\r
-               }\r
-               return super.toString();\r
-       }\r
-\r
-}\r
+package org.argeo.slc.diff;
+
+/**
+ * A value missing in one of the file. If its position is related to expected,
+ * this means it is a left over in the reached, if its position is related to
+ * the reached it means that it is missing from the reached. If the value is
+ * null it means that the entire line is missing.
+ */
+public class DiffMissing extends DiffIssueKey {
+
+       public DiffMissing(DiffPosition position, DiffKey key) {
+               super(position);
+               super.key = key;
+       }
+
+       @Override
+       public String toString() {
+               if (position.relatedFile == RelatedFile.EXPECTED) {
+                       return position + ": left over " + super.toString();
+               } else if (position.relatedFile == RelatedFile.REACHED) {
+                       return position + ": missing " + super.toString();
+               }
+               return super.toString();
+       }
+
+}
index 50fc7cdb7c1902b227ecc749fe878b1fe8427adf..c18223788e18d5b7a3887b4fcdf0322b2f998de3 100644 (file)
@@ -1,58 +1,43 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.diff;\r
-\r
-/**\r
- * <code>DiffMissing</code> using the XPath of the position as\r
- * <code>DiffKey</code>\r
- */\r
-public class DiffMissingXml extends DiffMissing {\r
-\r
-       public DiffMissingXml(XPathDiffPosition position) {\r
-               super(position, new DiffKeyXml(position.getXPath()));\r
-       }\r
-\r
-       /** Implementation of <code>DiffKey</code> based on an XPath string. */\r
-       protected static class DiffKeyXml implements DiffKey {\r
-               private final String xPath;\r
-\r
-               public DiffKeyXml(String xPath) {\r
-                       this.xPath = xPath;\r
-               }\r
-\r
-               public String getXPath() {\r
-                       return xPath;\r
-               }\r
-\r
-               @Override\r
-               public String toString() {\r
-                       return xPath;\r
-               }\r
-\r
-               @Override\r
-               public boolean equals(Object obj) {\r
-                       if (!(obj instanceof DiffKeyXml))\r
-                               return false;\r
-                       return xPath.equals(((DiffKeyXml) obj).xPath);\r
-               }\r
-\r
-               @Override\r
-               public int hashCode() {\r
-                       return xPath.hashCode();\r
-               }\r
-\r
-       }\r
-}\r
+package org.argeo.slc.diff;
+
+/**
+ * <code>DiffMissing</code> using the XPath of the position as
+ * <code>DiffKey</code>
+ */
+public class DiffMissingXml extends DiffMissing {
+
+       public DiffMissingXml(XPathDiffPosition position) {
+               super(position, new DiffKeyXml(position.getXPath()));
+       }
+
+       /** Implementation of <code>DiffKey</code> based on an XPath string. */
+       protected static class DiffKeyXml implements DiffKey {
+               private final String xPath;
+
+               public DiffKeyXml(String xPath) {
+                       this.xPath = xPath;
+               }
+
+               public String getXPath() {
+                       return xPath;
+               }
+
+               @Override
+               public String toString() {
+                       return xPath;
+               }
+
+               @Override
+               public boolean equals(Object obj) {
+                       if (!(obj instanceof DiffKeyXml))
+                               return false;
+                       return xPath.equals(((DiffKeyXml) obj).xPath);
+               }
+
+               @Override
+               public int hashCode() {
+                       return xPath.hashCode();
+               }
+
+       }
+}
index 9483dfeffcc74be8328b39631fb6c4e7019cc66c..eba911f9c3dd76ed8998648b5477747d0d72a168 100644 (file)
@@ -1,90 +1,75 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.diff;\r
-\r
-import org.argeo.slc.SlcException;\r
-\r
-/** Diff issue where reached and expected values are different. */\r
-public class DiffNotMatched extends DiffIssueKey {\r
-\r
-       // To enable hibernate persistance, these object cannot be final\r
-       // private final Object expected;\r
-       // private final Object reached;\r
-\r
-       private Object expected;\r
-       private Object reached;\r
-\r
-       public DiffNotMatched(DiffPosition position, Object expected, Object reached) {\r
-               super(position);\r
-               this.expected = expected;\r
-               this.reached = reached;\r
-       }\r
-\r
-       public DiffNotMatched(DiffPosition position, Object expected,\r
-                       Object reached, DiffKey key) {\r
-               super(position, key);\r
-               this.expected = expected;\r
-               this.reached = reached;\r
-       }\r
-\r
-       public Object getExpected() {\r
-               return expected;\r
-       }\r
-\r
-       public Object getReached() {\r
-               return reached;\r
-       }\r
-\r
-       @Override\r
-       public String toString() {\r
-               String result = position + ": not matched " + expected + " <> "\r
-                               + reached;\r
-               if (super.key != null) {\r
-                       result = result + " - Key: " + super.toString();\r
-               }\r
-\r
-               return result;\r
-       }\r
-\r
-       @SuppressWarnings("unused")\r
-       private String getExpectedStr() {\r
-               if (expected instanceof String)\r
-                       return (String) expected;\r
-               else\r
-                       throw new SlcException(\r
-                                       "Object 'expected' is of wrong type. Must be a String");\r
-       }\r
-\r
-       @SuppressWarnings("unused")\r
-       private String getReachedStr() {\r
-               if (reached instanceof String)\r
-                       return (String) reached;\r
-               else\r
-                       throw new SlcException(\r
-                                       "Object 'reached' is of wrong type. Must be a String");\r
-       }\r
-\r
-       @SuppressWarnings("unused")\r
-       private void setReachedStr(String reachedStr) {\r
-               this.reached = reachedStr;\r
-       }\r
-\r
-       @SuppressWarnings("unused")\r
-       private void setExpectedStr(String expectedStr) {\r
-               this.expected = expectedStr;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.diff;
+
+import org.argeo.slc.SlcException;
+
+/** Diff issue where reached and expected values are different. */
+public class DiffNotMatched extends DiffIssueKey {
+
+       // To enable hibernate persistance, these object cannot be final
+       // private final Object expected;
+       // private final Object reached;
+
+       private Object expected;
+       private Object reached;
+
+       public DiffNotMatched(DiffPosition position, Object expected, Object reached) {
+               super(position);
+               this.expected = expected;
+               this.reached = reached;
+       }
+
+       public DiffNotMatched(DiffPosition position, Object expected,
+                       Object reached, DiffKey key) {
+               super(position, key);
+               this.expected = expected;
+               this.reached = reached;
+       }
+
+       public Object getExpected() {
+               return expected;
+       }
+
+       public Object getReached() {
+               return reached;
+       }
+
+       @Override
+       public String toString() {
+               String result = position + ": not matched " + expected + " <> "
+                               + reached;
+               if (super.key != null) {
+                       result = result + " - Key: " + super.toString();
+               }
+
+               return result;
+       }
+
+       @SuppressWarnings("unused")
+       private String getExpectedStr() {
+               if (expected instanceof String)
+                       return (String) expected;
+               else
+                       throw new SlcException(
+                                       "Object 'expected' is of wrong type. Must be a String");
+       }
+
+       @SuppressWarnings("unused")
+       private String getReachedStr() {
+               if (reached instanceof String)
+                       return (String) reached;
+               else
+                       throw new SlcException(
+                                       "Object 'reached' is of wrong type. Must be a String");
+       }
+
+       @SuppressWarnings("unused")
+       private void setReachedStr(String reachedStr) {
+               this.reached = reachedStr;
+       }
+
+       @SuppressWarnings("unused")
+       private void setExpectedStr(String expectedStr) {
+               this.expected = expectedStr;
+       }
+
+}
index f8ff823f23e4e521e4f3be6ee8bd11ec983c7a16..9f38d88292af0c1d25c32dc32cf7b98ac08e19cd 100644 (file)
@@ -1,47 +1,32 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.diff;\r
-\r
-/** The position of a diff issue within the test resource. */\r
-public abstract class DiffPosition implements Comparable<DiffPosition> {\r
-       protected RelatedFile relatedFile;\r
-\r
-       public DiffPosition(RelatedFile relatedFile) {\r
-               super();\r
-               this.relatedFile = relatedFile;\r
-       }\r
-\r
-       // For Hibernate\r
-       DiffPosition() {\r
-       }\r
-\r
-       public RelatedFile getRelatedFile() {\r
-               return relatedFile;\r
-       }\r
-\r
-       // Added to enable the new data model for persisting TabularDiffTestResult\r
-       @SuppressWarnings("unused")\r
-       private Boolean getIsReached() {\r
-               return relatedFile.equals(RelatedFile.REACHED);\r
-       }\r
-\r
-       @SuppressWarnings("unused")\r
-       private void setIsReached(Boolean isReached) {\r
-               this.relatedFile = (isReached ? RelatedFile.REACHED\r
-                               : RelatedFile.EXPECTED);\r
-       }\r
-\r
-}\r
+package org.argeo.slc.diff;
+
+/** The position of a diff issue within the test resource. */
+public abstract class DiffPosition implements Comparable<DiffPosition> {
+       protected RelatedFile relatedFile;
+
+       public DiffPosition(RelatedFile relatedFile) {
+               super();
+               this.relatedFile = relatedFile;
+       }
+
+       // For Hibernate
+       DiffPosition() {
+       }
+
+       public RelatedFile getRelatedFile() {
+               return relatedFile;
+       }
+
+       // Added to enable the new data model for persisting TabularDiffTestResult
+       @SuppressWarnings("unused")
+       private Boolean getIsReached() {
+               return relatedFile.equals(RelatedFile.REACHED);
+       }
+
+       @SuppressWarnings("unused")
+       private void setIsReached(Boolean isReached) {
+               this.relatedFile = (isReached ? RelatedFile.REACHED
+                               : RelatedFile.EXPECTED);
+       }
+
+}
index 8cdcf7e1dc80b9042bc20c6550e7f49ecb986a2a..8c0f9e2f0853869d6a39a35064bbf1599cc8039e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.diff;
 
 /**
index 8ba832d4c7ddedabbc6baabf7efd1f0d71ef78cf..764732179aa89c1ca4bd46af5dec1d8ffe344c20 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.diff;
 
 import java.util.List;
index baaa3b966411130b4db2a92f0df7ae4e86e130aa..fed4c37b518aae1771aeabc2eddb801cde542178 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.diff;
 
 import java.util.ArrayList;
index e2887ba0292d6b4c341f5c0dbd3e463e4755df5d..09b10333803e450bc77c1e3cbcb110f2b3d1874b 100644 (file)
@@ -1,24 +1,9 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.diff;\r
-\r
-/** Enumeration of the types of resource tested. */\r
-public enum RelatedFile {\r
-       /** The expected resource */\r
-       EXPECTED,\r
-       /** The reached resource */\r
-       REACHED\r
-}\r
+package org.argeo.slc.diff;
+
+/** Enumeration of the types of resource tested. */
+public enum RelatedFile {
+       /** The expected resource */
+       EXPECTED,
+       /** The reached resource */
+       REACHED
+}
index 7d5aa3ed3b4f9ae436cd464e958932abe6e50e9e..a6838435483c00a682db18912cfefe74989e3d2b 100644 (file)
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.diff;\r
-\r
-import org.argeo.slc.UnsupportedException;\r
-\r
-/**\r
- * A diff position within a table structure such a CSV file or an SQL result\r
- * set.\r
- */\r
-public class TableDiffPosition extends DiffPosition {\r
-       private Integer line;\r
-       /** Can be null */\r
-       private Integer column;\r
-       /** Can be null */\r
-       private String columnName;\r
-\r
-       public TableDiffPosition(RelatedFile relatedFile, Integer line,\r
-                       Integer column, String columnName) {\r
-               super(relatedFile);\r
-               this.line = line;\r
-               this.column = column;\r
-               this.columnName = columnName;\r
-       }\r
-\r
-       @SuppressWarnings("unused")\r
-       private TableDiffPosition() {\r
-       }\r
-\r
-       public Integer getLine() {\r
-               return line;\r
-       }\r
-\r
-       public Integer getColumn() {\r
-               return column;\r
-       }\r
-\r
-       public String getColumnName() {\r
-               return columnName;\r
-       }\r
-\r
-       public int compareTo(DiffPosition dp) {\r
-               if (!(dp instanceof TableDiffPosition))\r
-                       throw new UnsupportedException("position", dp);\r
-\r
-               TableDiffPosition o = (TableDiffPosition) dp;\r
-               if (relatedFile.equals(o.relatedFile)) {\r
-                       if (line == o.line) {\r
-                               return column.compareTo(o.column);\r
-                       } else {\r
-                               return line.compareTo(o.line);\r
-                       }\r
-               } else {\r
-                       return relatedFile.compareTo(o.relatedFile);\r
-               }\r
-       }\r
-\r
-       @Override\r
-       public String toString() {\r
-               StringBuffer buf = new StringBuffer("");\r
-               buf.append(relatedFile).append('[').append(line);\r
-               if (column != null) {\r
-                       buf.append(',').append(column);\r
-                       if (columnName != null) {\r
-                               buf.append('-').append(columnName);\r
-                       }\r
-               }\r
-               buf.append(']');\r
-               return buf.toString();\r
-       }\r
-\r
-       // Hibernate\r
-       @SuppressWarnings("unused")\r
-       private void setLine(Integer line) {\r
-               this.line = line;\r
-       }\r
-\r
-       @SuppressWarnings("unused")\r
-       private void setColumn(Integer column) {\r
-               this.column = column;\r
-       }\r
-\r
-       @SuppressWarnings("unused")\r
-       private void setColumnName(String columnName) {\r
-               this.columnName = columnName;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.diff;
+
+import org.argeo.slc.UnsupportedException;
+
+/**
+ * A diff position within a table structure such a CSV file or an SQL result
+ * set.
+ */
+public class TableDiffPosition extends DiffPosition {
+       private Integer line;
+       /** Can be null */
+       private Integer column;
+       /** Can be null */
+       private String columnName;
+
+       public TableDiffPosition(RelatedFile relatedFile, Integer line,
+                       Integer column, String columnName) {
+               super(relatedFile);
+               this.line = line;
+               this.column = column;
+               this.columnName = columnName;
+       }
+
+       @SuppressWarnings("unused")
+       private TableDiffPosition() {
+       }
+
+       public Integer getLine() {
+               return line;
+       }
+
+       public Integer getColumn() {
+               return column;
+       }
+
+       public String getColumnName() {
+               return columnName;
+       }
+
+       public int compareTo(DiffPosition dp) {
+               if (!(dp instanceof TableDiffPosition))
+                       throw new UnsupportedException("position", dp);
+
+               TableDiffPosition o = (TableDiffPosition) dp;
+               if (relatedFile.equals(o.relatedFile)) {
+                       if (line == o.line) {
+                               return column.compareTo(o.column);
+                       } else {
+                               return line.compareTo(o.line);
+                       }
+               } else {
+                       return relatedFile.compareTo(o.relatedFile);
+               }
+       }
+
+       @Override
+       public String toString() {
+               StringBuffer buf = new StringBuffer("");
+               buf.append(relatedFile).append('[').append(line);
+               if (column != null) {
+                       buf.append(',').append(column);
+                       if (columnName != null) {
+                               buf.append('-').append(columnName);
+                       }
+               }
+               buf.append(']');
+               return buf.toString();
+       }
+
+       // Hibernate
+       @SuppressWarnings("unused")
+       private void setLine(Integer line) {
+               this.line = line;
+       }
+
+       @SuppressWarnings("unused")
+       private void setColumn(Integer column) {
+               this.column = column;
+       }
+
+       @SuppressWarnings("unused")
+       private void setColumnName(String columnName) {
+               this.columnName = columnName;
+       }
+
+}
index 625699ca70e0c3b5451dbfd90ceeb174e519d96f..6bddd1da320aa023c96e1ced254d33b9698295b8 100644 (file)
@@ -1,33 +1,18 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.diff;\r
-\r
-/** Compares objects, eventually using tolerance mechanisms. */\r
-public interface Tolerance {\r
-       /**\r
-        * Compares objects\r
-        * \r
-        * @param key\r
-        *            any object used to differentiate the type of data (e.g.\r
-        *            column, path)\r
-        * @param expected\r
-        *            the expected value\r
-        * @param reached\r
-        *            the reached value\r
-        * @return the converted object\r
-        */\r
-       public Boolean compare(Object key, Object expected, Object reached);\r
-}\r
+package org.argeo.slc.diff;
+
+/** Compares objects, eventually using tolerance mechanisms. */
+public interface Tolerance {
+       /**
+        * Compares objects
+        * 
+        * @param key
+        *            any object used to differentiate the type of data (e.g.
+        *            column, path)
+        * @param expected
+        *            the expected value
+        * @param reached
+        *            the reached value
+        * @return the converted object
+        */
+       public Boolean compare(Object key, Object expected, Object reached);
+}
index 798b658e6a8363c506bc699ebf72c90a81bccca1..8260889dfa3bf749ea1331a517e32b702c55bc96 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.diff;
 
 import java.util.Map;
index a1ddb6edb5206fd5775da0c3403a3e523c2a6474..b119421d6cbde08be705fc6c54f89df0e54ea574 100644 (file)
@@ -1,50 +1,35 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.diff;\r
-\r
-import org.argeo.slc.UnsupportedException;\r
-\r
-/** A diff position within an Xml file. <b>NOT YET IMPLEMENTED</b>. */\r
-public class XPathDiffPosition extends DiffPosition {\r
-\r
-       private String xPath;\r
-\r
-       public XPathDiffPosition(RelatedFile relatedFile, String path) {\r
-               super(relatedFile);\r
-               xPath = path;\r
-       }\r
-\r
-       public int compareTo(DiffPosition dp) {\r
-               if (!(dp instanceof XPathDiffPosition))\r
-                       throw new UnsupportedException("position", dp);\r
-\r
-               XPathDiffPosition o = (XPathDiffPosition) dp;\r
-               if (relatedFile.equals(o.relatedFile)) {\r
-                       return xPath.compareTo(o.xPath);\r
-               } else {\r
-                       return relatedFile.compareTo(o.relatedFile);\r
-               }\r
-       }\r
-\r
-       public String getXPath() {\r
-               return xPath;\r
-       }\r
-\r
-       @Override\r
-       public String toString() {\r
-               return xPath;\r
-       }\r
-}\r
+package org.argeo.slc.diff;
+
+import org.argeo.slc.UnsupportedException;
+
+/** A diff position within an Xml file. <b>NOT YET IMPLEMENTED</b>. */
+public class XPathDiffPosition extends DiffPosition {
+
+       private String xPath;
+
+       public XPathDiffPosition(RelatedFile relatedFile, String path) {
+               super(relatedFile);
+               xPath = path;
+       }
+
+       public int compareTo(DiffPosition dp) {
+               if (!(dp instanceof XPathDiffPosition))
+                       throw new UnsupportedException("position", dp);
+
+               XPathDiffPosition o = (XPathDiffPosition) dp;
+               if (relatedFile.equals(o.relatedFile)) {
+                       return xPath.compareTo(o.xPath);
+               } else {
+                       return relatedFile.compareTo(o.relatedFile);
+               }
+       }
+
+       public String getXPath() {
+               return xPath;
+       }
+
+       @Override
+       public String toString() {
+               return xPath;
+       }
+}
index 2dbcd84e74a3a9c01d7eca195049dbed7af7b511..59c0acfae4866f12e953efc523aedc88e5b22785 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jsch;
 
 import java.io.IOException;
index ab358aa9e0af9dd9422d367a51775fdb0ecbf435..c069a8189bbe1200f75b5056ee9a111d14bd31ff 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jsch;
 
 import javax.security.auth.callback.Callback;
index 44d0bcce31afb7a980575727c97d01671da96349..8855beb7c5309c9dfba041ca14f9dd193480cb93 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jsch;
 
 import org.apache.commons.logging.Log;
index b15694cbbc8bf561db83a5c3f77017b422a77d50..b9d5f55c7af736ca0ce235add0423a7eb621e8dd 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jsch;
 
 import java.io.File;
index 40d4034bb590b1f3248f82a591f5479693cdb892..3dcba87c3c808ca717c8d256e6887eec26b4a11b 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jsch;
 
 import java.util.ArrayList;
index 691d0d63329914e6366d6409517c8a5e5152a2f7..886dc92b2e639e4124a6d094c0da31bcad49ae6f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jsch;
 
 import java.io.BufferedReader;
index 3f83778a887d5c7d1714b322ae4586b48680cadd..ced80eee03ceeb6fa62d4020b091cc391bfe4ad4 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jsch;
 
 import java.io.File;
index c0af991a754970c9f997c4e21c24eecfbbd02cbf..5da5f79e7ba2511ee774f8e4b62498d17fb65b4e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jsch;
 
 import java.io.ByteArrayInputStream;
index cabeeb26ddb4419431d2d0e8ae12adb471ea642f..fd84224ad64ffc48673d0867a4a79d764a8c99f5 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jsch;
 
 import java.io.IOException;
index 9254d7c7a3045e9c817966485cdbcc570f4ad7df..53670e14de95691b7f279c7e4c0ea71d979029f7 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jsch;
 
 import java.util.ArrayList;
index cb1b7241abb64e0ea148c829e33c47575f2daf87..2ec2b72a19602b8c18e7840738a95974a8eb2a8a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jsch;
 
 import java.io.BufferedReader;
index eeebbc6e8765082c18bed4ae990eaadf2b4252ff..f328f8fbe8f21f7ab968789d97a6d02fa6458c31 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jsch;
 
 import java.io.File;
index 963cbab386232c3c42eded0a2aaf323a4bc4dcfc..14eb16b6db8231aa8e0f46d8db1358df0c2051a0 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.jsch;
 
 import java.awt.Container;
index e1467543a61484fca73408d3e9816f4f5ef1503d..977bf8786d1362f3ae12be33558e80cf1167d2b2 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.jcr;
 
 import java.util.UUID;
index 641e404712cf49441870de4c6d138e99b9740b72..e93b99b8b8d4ad303948f8f5aa7e75c90bae21da 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.linux;
 
 import org.argeo.slc.core.deploy.MultiResourceSet;
index 0e51a236f18e5f794eb0268b10c2495b418b4ea2..5722bc1006bd2e59fb91f24f87465c82346ca604 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.linux;
 
 import java.util.List;
index e62bb1cbbe557e12331a8c68728c057683cd48f9..39592b7a718c03c011add7b18a3f3a7bde59e418 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.linux;
 
 import org.argeo.slc.core.deploy.ResourceSet;
index a59b6645fccf81d93658b31668dc54515753663c..8b1c5e5053f60f42fa4a1f07a09de67fbeff95d1 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.linux;
 
 import org.argeo.slc.SlcException;
index 6b4d9b5e5fc9a574dbb923e1b622ae8aa01b6dac..66e7969058dd9db31524b51572e6eee9d17b006e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.linux;
 
 import java.util.List;
index d4f664add309b937d6d4a54f2fdc584c4cb50160..755fa0cf83a18fd2701ab993223dcf39284cca5c 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.linux;
 
 import java.io.File;
index b25e9f40eb5abcda9595a9be636a62c61c2bd10d..d51497a634064cd80732e9289d26f4bc172ca614 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.linux;
 
 import org.argeo.slc.build.Distribution;
index 1bafe8c777e6664918432be67d36e19b20e12ad8..44c4e0c94db4b25ff00192f1d5a1ecfc711e2b38 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.linux.rpmfactory;
 
 import java.io.File;
index b5f7bd07d80f822b1ae61a4ac271726ef065612a..04680df7b438e77bb0cc603d48d9d86b36f986fb 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.linux.rpmfactory;
 
 import java.io.File;
index cd170e30d62db13cb5555bccc7ac2c96b81e8bf1..e00560832a463f25262d59aadfd3f5d74fd9818e 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.linux.rpmfactory;
 
 import java.io.File;
index a5c1fc7ded02d674480ee5e233a56e0ff21a89aa..17a1f270b87f786cd8bc3f8c5494d37126c37392 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.linux.rpmfactory;
 
 import java.io.File;
index f2486549cd1279a542e1d9b4ca04a8b1b386b2db..899603a7b93707f3861abde1a3ee5e6e39cf5c51 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.linux.rpmfactory;
 
 import java.io.IOException;
index cf30bbb02b635e99545bba91f55b0d4247fc9a3b..2b561b6a83f98fb9a870d9a09ed77b8c52eee118 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.vbox;
 
 import org.argeo.slc.UnsupportedException;
index 34e8993f84b142af412e2f4c9074c204d178a7a7..9992d77f58c6e29865dec91ac7aec0f520d36ccf 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.vbox;
 
 import java.io.IOException;
index e69eba11138dcf66060ad124c8db022c76b64422..2661009ef1dafa28dbbb3fda92cc1e4b128ee261 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.vbox;
 
 import java.util.Map;
index dc9783fa61a722bbc2859b64d7b7ccabc5408649..64ec866364c6d3df46d5d6b855f0f60d52faf508 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.lib.vbox;
 
 /** The mapping of one port. */
index 6652fa0dcf52226602a5aa7afba8508d20560eb0..2a9ea5f3d61b3eb4123cb4f35551c717d950c117 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.log4j;
 
 import java.util.Date;
index d2e2780ffba45d9715d17ff797f4e43271446444..db4ab45f9fc047db21f21b0728a3d75352dcd9ee 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.mail;
 
 import java.util.HashMap;
index d7489ee32d326e453d5ee5f83cc22947a3f09691..804f2805dc9fffc9f59029ad12213b36213b6927 100644 (file)
@@ -1,83 +1,68 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.support.deploy;\r
-\r
-import java.io.File;\r
-\r
-import org.apache.commons.logging.Log;\r
-import org.apache.commons.logging.LogFactory;\r
-import org.argeo.slc.SlcException;\r
-import org.argeo.slc.build.Distribution;\r
-import org.argeo.slc.deploy.DeployEnvironment;\r
-import org.argeo.slc.deploy.DeployedSystem;\r
-import org.argeo.slc.deploy.Deployment;\r
-import org.argeo.slc.deploy.DeploymentData;\r
-import org.argeo.slc.deploy.TargetData;\r
-\r
-public class HttpdApplicationDeployment implements Deployment {\r
-       private static final Log log = LogFactory\r
-                       .getLog(HttpdApplicationDeployment.class);\r
-\r
-       private HttpdApplicationTargetData targetData;\r
-       private DeploymentData deploymentData;\r
-       private SimpleHttpdApplication deployedSystem;\r
-       private Distribution distribution;\r
-\r
-       private DeployEnvironment deployEnvironment;\r
-\r
-       public void run() {\r
-               try {\r
-                       deployEnvironment.unpackTo(distribution, targetData\r
-                                       .getTargetRootLocation(), null);\r
-\r
-                       // FIXME: make it generic\r
-                       String deployDataPath = targetData.getTargetRootLocation()\r
-                                       .getCanonicalPath();\r
-\r
-                       deployEnvironment.unpackTo(deploymentData,\r
-                                       new File(deployDataPath), null);\r
-                       deployedSystem = new SimpleHttpdApplication();\r
-                       deployedSystem.setTargetData(targetData);\r
-\r
-                       log.info("Deployed " + distribution + " to " + targetData);\r
-               } catch (Exception e) {\r
-                       throw new SlcException("Cannot deploy " + distribution + " to "\r
-                                       + targetData, e);\r
-               }\r
-\r
-       }\r
-\r
-       public void setTargetData(TargetData targetData) {\r
-               this.targetData = (HttpdApplicationTargetData) targetData;\r
-       }\r
-\r
-       public void setDeploymentData(DeploymentData deploymentData) {\r
-               this.deploymentData = deploymentData;\r
-       }\r
-\r
-       public DeployedSystem getDeployedSystem() {\r
-               return deployedSystem;\r
-       }\r
-\r
-       public void setDistribution(Distribution distribution) {\r
-               this.distribution = distribution;\r
-       }\r
-\r
-       public void setDeployEnvironment(DeployEnvironment deployEnvironment) {\r
-               this.deployEnvironment = deployEnvironment;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.support.deploy;
+
+import java.io.File;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.argeo.slc.SlcException;
+import org.argeo.slc.build.Distribution;
+import org.argeo.slc.deploy.DeployEnvironment;
+import org.argeo.slc.deploy.DeployedSystem;
+import org.argeo.slc.deploy.Deployment;
+import org.argeo.slc.deploy.DeploymentData;
+import org.argeo.slc.deploy.TargetData;
+
+public class HttpdApplicationDeployment implements Deployment {
+       private static final Log log = LogFactory
+                       .getLog(HttpdApplicationDeployment.class);
+
+       private HttpdApplicationTargetData targetData;
+       private DeploymentData deploymentData;
+       private SimpleHttpdApplication deployedSystem;
+       private Distribution distribution;
+
+       private DeployEnvironment deployEnvironment;
+
+       public void run() {
+               try {
+                       deployEnvironment.unpackTo(distribution, targetData
+                                       .getTargetRootLocation(), null);
+
+                       // FIXME: make it generic
+                       String deployDataPath = targetData.getTargetRootLocation()
+                                       .getCanonicalPath();
+
+                       deployEnvironment.unpackTo(deploymentData,
+                                       new File(deployDataPath), null);
+                       deployedSystem = new SimpleHttpdApplication();
+                       deployedSystem.setTargetData(targetData);
+
+                       log.info("Deployed " + distribution + " to " + targetData);
+               } catch (Exception e) {
+                       throw new SlcException("Cannot deploy " + distribution + " to "
+                                       + targetData, e);
+               }
+
+       }
+
+       public void setTargetData(TargetData targetData) {
+               this.targetData = (HttpdApplicationTargetData) targetData;
+       }
+
+       public void setDeploymentData(DeploymentData deploymentData) {
+               this.deploymentData = deploymentData;
+       }
+
+       public DeployedSystem getDeployedSystem() {
+               return deployedSystem;
+       }
+
+       public void setDistribution(Distribution distribution) {
+               this.distribution = distribution;
+       }
+
+       public void setDeployEnvironment(DeployEnvironment deployEnvironment) {
+               this.deployEnvironment = deployEnvironment;
+       }
+
+}
index 3bc08c72ddf256afdbe8cb7c0e40a9d9679d2298..7b052ec6281b597e9c7716aca691b081e35c0d0e 100644 (file)
@@ -1,80 +1,65 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.support.deploy;\r
-\r
-import java.io.File;\r
-import java.net.MalformedURLException;\r
-import java.net.URL;\r
-\r
-import org.argeo.slc.SlcException;\r
-import org.argeo.slc.deploy.TargetData;\r
-\r
-public class HttpdApplicationTargetData implements TargetData {\r
-       private HttpdServer webServer;\r
-       private String relativePath;\r
-       private String targetRootPath;\r
-\r
-       public HttpdServer getWebServer() {\r
-               return webServer;\r
-       }\r
-\r
-       public void setWebServer(HttpdServer webServer) {\r
-               this.webServer = webServer;\r
-       }\r
-\r
-       public String getRelativePath() {\r
-               return relativePath;\r
-       }\r
-\r
-       /**\r
-        * If targetRootLocation not set, used to build the targetRootLocation,\r
-        * relative to the webserver base.\r
-        */\r
-       public void setRelativePath(String relativePath) {\r
-               this.relativePath = relativePath;\r
-       }\r
-\r
-       public String getTargetRootPath() {\r
-               return targetRootPath;\r
-       }\r
-\r
-       public void setTargetRootPath(String targetRootPath) {\r
-               this.targetRootPath = targetRootPath;\r
-       }\r
-\r
-       public URL getTargetBaseUrl() {\r
-               try {\r
-                       URL wsUrl = getWebServer().getBaseUrl();\r
-                       // TODO: use URI\r
-                       return new URL(wsUrl, wsUrl.getFile() + '/' + relativePath);\r
-               } catch (MalformedURLException e) {\r
-                       throw new SlcException("Cannot get base url for " + relativePath, e);\r
-               }\r
-       }\r
-\r
-       public File getTargetRootLocation() {\r
-               if (targetRootPath != null && !targetRootPath.equals("")) {\r
-                       return new File(targetRootPath);\r
-               } else {\r
-                       HttpdServerTargetData targetData = (HttpdServerTargetData) getWebServer()\r
-                                       .getTargetData();\r
-                       String path = targetData.getServerRoot() + File.separator\r
-                                       + getRelativePath();\r
-                       return new File(path);\r
-               }\r
-       }\r
-\r
-}\r
+package org.argeo.slc.support.deploy;
+
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import org.argeo.slc.SlcException;
+import org.argeo.slc.deploy.TargetData;
+
+public class HttpdApplicationTargetData implements TargetData {
+       private HttpdServer webServer;
+       private String relativePath;
+       private String targetRootPath;
+
+       public HttpdServer getWebServer() {
+               return webServer;
+       }
+
+       public void setWebServer(HttpdServer webServer) {
+               this.webServer = webServer;
+       }
+
+       public String getRelativePath() {
+               return relativePath;
+       }
+
+       /**
+        * If targetRootLocation not set, used to build the targetRootLocation,
+        * relative to the webserver base.
+        */
+       public void setRelativePath(String relativePath) {
+               this.relativePath = relativePath;
+       }
+
+       public String getTargetRootPath() {
+               return targetRootPath;
+       }
+
+       public void setTargetRootPath(String targetRootPath) {
+               this.targetRootPath = targetRootPath;
+       }
+
+       public URL getTargetBaseUrl() {
+               try {
+                       URL wsUrl = getWebServer().getBaseUrl();
+                       // TODO: use URI
+                       return new URL(wsUrl, wsUrl.getFile() + '/' + relativePath);
+               } catch (MalformedURLException e) {
+                       throw new SlcException("Cannot get base url for " + relativePath, e);
+               }
+       }
+
+       public File getTargetRootLocation() {
+               if (targetRootPath != null && !targetRootPath.equals("")) {
+                       return new File(targetRootPath);
+               } else {
+                       HttpdServerTargetData targetData = (HttpdServerTargetData) getWebServer()
+                                       .getTargetData();
+                       String path = targetData.getServerRoot() + File.separator
+                                       + getRelativePath();
+                       return new File(path);
+               }
+       }
+
+}
index 9416f2172efd06fa38f8dc63f7b7ade3f4a63a99..5fa4e9b59737b09b63b78ee4c56ca1bcb0e567dd 100644 (file)
@@ -1,65 +1,50 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.support.deploy;\r
-\r
-import java.io.IOException;\r
-import java.net.URL;\r
-\r
-import org.argeo.slc.SlcException;\r
-import org.argeo.slc.build.Distribution;\r
-import org.argeo.slc.deploy.DeploymentData;\r
-import org.argeo.slc.deploy.TargetData;\r
-\r
-public class HttpdServer implements WebServer {\r
-       private HttpdServerTargetData targetData;\r
-       private HttpdServerDeploymentData deploymentData;\r
-\r
-       public URL getBaseUrl() {\r
-               try {\r
-                       return new URL("http://localhost:" + targetData.getPort());\r
-               } catch (IOException e) {\r
-                       throw new SlcException("Cannot get url for Httpd server "\r
-                                       + getDeployedSystemId(), e);\r
-               }\r
-       }\r
-\r
-       public String getDeployedSystemId() {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       public Distribution getDistribution() {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       public DeploymentData getDeploymentData() {\r
-               return deploymentData;\r
-       }\r
-\r
-       public TargetData getTargetData() {\r
-               return targetData;\r
-       }\r
-\r
-       public void setTargetData(TargetData targetData) {\r
-               this.targetData = (HttpdServerTargetData)targetData;\r
-       }\r
-\r
-       public void setDeploymentData(DeploymentData deploymentData) {\r
-               this.deploymentData = (HttpdServerDeploymentData)deploymentData;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.support.deploy;
+
+import java.io.IOException;
+import java.net.URL;
+
+import org.argeo.slc.SlcException;
+import org.argeo.slc.build.Distribution;
+import org.argeo.slc.deploy.DeploymentData;
+import org.argeo.slc.deploy.TargetData;
+
+public class HttpdServer implements WebServer {
+       private HttpdServerTargetData targetData;
+       private HttpdServerDeploymentData deploymentData;
+
+       public URL getBaseUrl() {
+               try {
+                       return new URL("http://localhost:" + targetData.getPort());
+               } catch (IOException e) {
+                       throw new SlcException("Cannot get url for Httpd server "
+                                       + getDeployedSystemId(), e);
+               }
+       }
+
+       public String getDeployedSystemId() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       public Distribution getDistribution() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       public DeploymentData getDeploymentData() {
+               return deploymentData;
+       }
+
+       public TargetData getTargetData() {
+               return targetData;
+       }
+
+       public void setTargetData(TargetData targetData) {
+               this.targetData = (HttpdServerTargetData)targetData;
+       }
+
+       public void setDeploymentData(DeploymentData deploymentData) {
+               this.deploymentData = (HttpdServerDeploymentData)deploymentData;
+       }
+
+}
index f7915d8a27f886c904ed392d22ae325d43f982e8..785510fe9448842dd227e0aeb7a67c847d86a0dc 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.support.deploy;
 
 import org.argeo.slc.build.Distribution;
index fd9b681d9258febe136fb6d7e301c494c90bc10a..668ee390e0c9ae414d7adc924fa3cde03690db05 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.support.deploy;
 
 import org.argeo.slc.deploy.DeploymentData;
index 3fd76ed9db5680abc331dcfbe6fd586f42cacec7..20b78591f4a7cc658378b6272fbee85349bdc226 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.support.deploy;
 
 import java.io.BufferedReader;
index fa4e3f94d1072e18029a1d9feb3617a72e032ac7..e4f28ca3c881999b79fc9d9255edc3977f055dd1 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.support.deploy;
 
 import org.argeo.slc.deploy.InstalledExecutables;
index 45c67f46e4ef31cf23d9e1558998c627ce995578..b5157f60d3881378ee26123e4f81cb96741641e0 100644 (file)
@@ -1,62 +1,47 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.support.deploy;\r
-\r
-import java.io.File;\r
-import java.net.URL;\r
-\r
-import org.argeo.slc.build.Distribution;\r
-import org.argeo.slc.deploy.DeploymentData;\r
-\r
-public class SimpleHttpdApplication implements WebApplication {\r
-       private HttpdApplicationTargetData targetData;\r
-       private Distribution distribution;\r
-\r
-       public void setDistribution(Distribution distribution) {\r
-               this.distribution = distribution;\r
-       }\r
-\r
-       public URL getBaseUrl() {\r
-               return targetData.getTargetBaseUrl();\r
-       }\r
-\r
-       public File getRootLocation() {\r
-               return targetData.getTargetRootLocation();\r
-       }\r
-\r
-       public String getDeployedSystemId() {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       public HttpdApplicationTargetData getTargetData() {\r
-               return targetData;\r
-       }\r
-\r
-       public void setTargetData(HttpdApplicationTargetData targetData) {\r
-               this.targetData = targetData;\r
-       }\r
-\r
-       public Distribution getDistribution() {\r
-               return distribution;\r
-       }\r
-\r
-       public DeploymentData getDeploymentData() {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.support.deploy;
+
+import java.io.File;
+import java.net.URL;
+
+import org.argeo.slc.build.Distribution;
+import org.argeo.slc.deploy.DeploymentData;
+
+public class SimpleHttpdApplication implements WebApplication {
+       private HttpdApplicationTargetData targetData;
+       private Distribution distribution;
+
+       public void setDistribution(Distribution distribution) {
+               this.distribution = distribution;
+       }
+
+       public URL getBaseUrl() {
+               return targetData.getTargetBaseUrl();
+       }
+
+       public File getRootLocation() {
+               return targetData.getTargetRootLocation();
+       }
+
+       public String getDeployedSystemId() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       public HttpdApplicationTargetData getTargetData() {
+               return targetData;
+       }
+
+       public void setTargetData(HttpdApplicationTargetData targetData) {
+               this.targetData = targetData;
+       }
+
+       public Distribution getDistribution() {
+               return distribution;
+       }
+
+       public DeploymentData getDeploymentData() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+}
index 6d1b38d91ac753637f6a294a771b81d86bd19224..1d827540855aec2aa819cea6c8eb3d2b90501c5d 100644 (file)
@@ -1,27 +1,12 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.support.deploy;\r
-\r
-import java.io.File;\r
-import java.net.URL;\r
-\r
-import org.argeo.slc.deploy.DeployedSystem;\r
-\r
-public interface WebApplication extends DeployedSystem {\r
-       public URL getBaseUrl();\r
-\r
-       public File getRootLocation();\r
-}\r
+package org.argeo.slc.support.deploy;
+
+import java.io.File;
+import java.net.URL;
+
+import org.argeo.slc.deploy.DeployedSystem;
+
+public interface WebApplication extends DeployedSystem {
+       public URL getBaseUrl();
+
+       public File getRootLocation();
+}
index f1dbc10c9bd9f0a36804f45ab43412afc7773a53..afce096c9aefe5579710f8c42ffaf45b8671da22 100644 (file)
@@ -1,24 +1,9 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.support.deploy;\r
-\r
-import java.net.URL;\r
-\r
-import org.argeo.slc.deploy.DeployedSystem;\r
-\r
-public interface WebServer extends DeployedSystem {\r
-       public URL getBaseUrl();\r
-}\r
+package org.argeo.slc.support.deploy;
+
+import java.net.URL;
+
+import org.argeo.slc.deploy.DeployedSystem;
+
+public interface WebServer extends DeployedSystem {
+       public URL getBaseUrl();
+}
index 49f651b8271c99e7b804e3c8528a4ae92a186a68..6140d7bc0975035337b8aff069f1fe187e64ac8f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.support.deploy.db;
 
 import java.sql.Connection;
index 5c10939982c2d0dcd5e98cf2dd09d378623f48ae..0d4de5eae1e631c397fa0e1f927dcb95116d19a5 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.support.deploy.db;
 
 import javax.sql.DataSource;
index 5ff7ab8ffa06a5efb644597844126f9ddc5584b9..4f15209552dcce8c21833e7462ccac9c40e39eec 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.support.deploy.db;
 
 import javax.sql.DataSource;
index 920fb8b49489c5657d72ab05ebc25c96250614ab..7c0c7e9b0c38279cfd276696c89fe5e70682e555 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.vfs;
 
 import java.io.File;
index 6a3b6cab2b28743e8abca8c199d5a6a4fd6eb404..ac92adfb56350f6c7adc2687b3fafc6242a1fbad 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.vfs;
 
 import org.apache.commons.vfs2.CacheStrategy;
index 8adb27629a5b2f1c24854b91a7bc3c59a255c811..a56b43140dec8d6cfb9b0720a1ed185ed09b257b 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.slc.vfs;
 
 import java.util.HashMap;
diff --git a/pom.xml b/pom.xml
index 468e7426cff25da39ee72445fad0f1cf5e8fcb3d..16378dccadc4d98017ed323385a867652ac94642 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -67,6 +67,9 @@
                <developerConnection>scm:git:https://code.argeo.org/git/lgpl/argeo-slc.git</developerConnection>
                <tag>HEAD</tag>
        </scm>
+       <organization>
+               <name>Argeo GmbH</name>
+       </organization>
        <inceptionYear>2007</inceptionYear>
        <licenses>
                <license>
index 1d3cd29e83d15bef5da80a5ff20e3e85e758f6c2..fbb4fbf834161ecc569d9b35c829b7de8f4d1f25 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.eclipse.ui.specific;
 
 /** RCP specific {@link NLS} to be extended */
index 7ed0a4f222fc7fadf2b70a5dc6fc135345c47e98..315aa3bbf7a05b21c1a5f23784bdde43af9d12b3 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.eclipse.ui.specific;
 
 import org.eclipse.jface.viewers.ColumnViewer;
index 863082ac355c0a9e99eb80459af287b3be7e7f56..e22c95ed1b03efcb4c22dfdc2ab8f4c66013ec7a 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 package org.argeo.eclipse.ui.specific;
 
 import static org.argeo.eclipse.ui.util.SingleSourcingConstants.FILE_SCHEME;