package com.hp.oo.orchestrator.services.configuration;

import com.hp.oo.execution.debug.ExecutionInterrupt;

import java.util.List;

import static com.hp.oo.execution.debug.ExecutionInterrupt.InterruptType;

/**
 * Created by IntelliJ IDEA.
 * User: kravtsov
 * Date: 03/06/12
 * Time: 14:35
 */
public interface WorkerConfigurationService {

    public String getGroupByAlias(String aliasName, Long configurationVersion);

    public String getSystemProperty(String name, Long configurationVersion) ;

    public String getSelectionList(String name, Long configurationVersion) ;

    public String getDomainTerm(String name, Long configurationVersion) ;

    List<String> getCancelledExecutions();

    List<String> getWorkerGroups();

    boolean isExecutionPaused(String executionId, String branchId);

    void refreshConfiguration();

    void refreshWorkerGroups();

	void enabled(boolean enabled);

    ExecutionInterrupt getDebugInterrupt(String executionId, InterruptType interruptType, String key, String value);
}

@@ -60,425 +60,197 @@
 ort 
-com.hp.oo.execution.debug.ExecutionInterrupt;%0A%0Aimport java.util.List;%0A%0Aimport static com.hp.oo.execution.debug.ExecutionInterrupt.InterruptType;%0A%0A/**%0A * Created by IntelliJ IDEA.%0A * User: kravtsov%0A * Date: 03/06/12%0A * Time: 14:35%0A */%0Apublic interface WorkerConfigurationService %7B%0A%0A    public String getGroupByAlias(String aliasName, Long configurationVersion);%0A%0A    public String getSystemProperty(String name, Long c
+java.util.List;%0A%0A/**%0A * Created by IntelliJ IDEA.%0A * User: kravtsov%0A * Date: 03/06/12%0A * Time: 14:35%0A * Used by Score for pause/cancel runs & stay in the worker%0A */%0Apublic interface WorkerC
 onfi
@@ -261,537 +261,254 @@
 tion
-Version) ;%0A%0A    public String getSelectionList(String name, Long configurationVersion) ;%0A%0A    public String getDomainTerm(String name, Long configurationVersion) ;%0A%0A    List%3CString%3E getCancelledExecutions();%0A%0A    List%3CString%3E getWorkerGroups();%0A%0A    boolean isExecutionPaused(String executionId, String branchId);%0A%0A    void refreshConfiguration();%0A%0A    void refreshWorkerGroups();%0A%0A%09void enabled(boolean enabled);%0A%0A    ExecutionInterrupt getDebugInterrupt(String executionId, InterruptType interruptType, String key, String value
+Service %7B%0A%0A    //todo: orit - refactor method to return boolean%0A    List%3CString%3E getCancelledExecutions();%0A%0A    List%3CString%3E getWorkerGroups();%0A%0A    boolean isExecutionPaused(String executionId, String branchId);%0A%0A    void enabled(boolean enabled
 );%0A%7D

Refactor service to contain only Score methods