Search in sources :

Example 21 with AbstractDeployCommand

use of org.talend.mdm.repository.core.command.deploy.AbstractDeployCommand in project tmdm-studio-se by Talend.

the class CommandManager method attachParameterToCommand.

public void attachParameterToCommand(List<AbstractDeployCommand> commands, Map<IRepositoryViewObject, ICommandParameter> paramMap) {
    for (AbstractDeployCommand cmd : commands) {
        IRepositoryViewObject viewObject = cmd.getViewObject();
        if (viewObject != null) {
            ICommandParameter param = paramMap.get(viewObject);
            cmd.setParameter(param);
        }
    }
}
Also used : IRepositoryViewObject(org.talend.core.model.repository.IRepositoryViewObject) ICommandParameter(org.talend.mdm.repository.core.command.param.ICommandParameter) AbstractDeployCommand(org.talend.mdm.repository.core.command.deploy.AbstractDeployCommand)

Aggregations

AbstractDeployCommand (org.talend.mdm.repository.core.command.deploy.AbstractDeployCommand)21 IRepositoryViewObject (org.talend.core.model.repository.IRepositoryViewObject)16 CommandManager (org.talend.mdm.repository.core.command.CommandManager)8 IStatus (org.eclipse.core.runtime.IStatus)7 MDMServerDef (org.talend.mdm.repository.model.mdmmetadata.MDMServerDef)7 ArrayList (java.util.ArrayList)6 LinkedList (java.util.LinkedList)6 ICommand (org.talend.mdm.repository.core.command.ICommand)6 ICommandParameter (org.talend.mdm.repository.core.command.param.ICommandParameter)5 ImpactOperation (org.talend.mdm.repository.core.service.ModelImpactAnalyseService.ImpactOperation)4 Test (org.junit.Test)3 ConsistencyCheckResult (org.talend.mdm.repository.core.service.ConsistencyService.ConsistencyCheckResult)3 IModelValidateResult (org.talend.mdm.repository.core.service.IModelValidationService.IModelValidateResult)3 XtentisException (com.amalto.workbench.utils.XtentisException)2 HashSet (java.util.HashSet)2 WebServiceException (javax.xml.ws.WebServiceException)2 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)2 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)2 Property (org.talend.core.model.properties.Property)2 CommandStack (org.talend.mdm.repository.core.command.CommandStack)2