Skip to content

Commit

Permalink
BPM-8717: Stunner - Remove process editor's related permissions (#2838)
Browse files Browse the repository at this point in the history
  • Loading branch information
inodeman authored and krisv committed Sep 2, 2019
1 parent 049cffe commit c6fd504
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public interface EditorIds {
String GUIDED_DECISION_TREE = "GuidedDecisionTreeEditorPresenter";
String GUIDED_SCORE_CARD = "GuidedScoreCardEditor";
String XLS_SCORE_CARD = "ScoreCardXLSEditor";
String STUNNER_DESIGNER = "BPMNDiagramEditor";
String CASE_MODELLER = "CaseManagementDiagramEditor";
String SCENARIO_SIMULATION_DESIGNER = "ScenarioSimulationEditor";
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,29 @@
import static org.kie.workbench.common.workbench.client.EditorIds.GUIDED_DECISION_TREE;
import static org.kie.workbench.common.workbench.client.EditorIds.GUIDED_SCORE_CARD;
import static org.kie.workbench.common.workbench.client.EditorIds.SCENARIO_SIMULATION_DESIGNER;
import static org.kie.workbench.common.workbench.client.EditorIds.STUNNER_DESIGNER;
import static org.kie.workbench.common.workbench.client.EditorIds.XLS_SCORE_CARD;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.*;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.ADMIN;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.ADMINISTRATION;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.APPS;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.CONTENT_MANAGEMENT;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.DATASET_AUTHORING;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.DATASOURCE_MANAGEMENT;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.EXECUTION_ERRORS;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.GUVNOR_M2REPO;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.HOME;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.JOBS;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.LIBRARY;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.PLUGIN_AUTHORING;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.PROCESS_DASHBOARD;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.PROCESS_DEFINITIONS;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.PROCESS_INSTANCES;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.PROVISIONING;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.SECURITY_MANAGEMENT;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.SERVER_MANAGEMENT;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.SSH_KEYS_EDITOR;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.TASKS;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.TASKS_ADMIN;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.TASK_DASHBOARD;

/**
* This is an example of how to customize some of the permission tree nodes.
Expand Down Expand Up @@ -126,8 +146,6 @@ public void configureTree() {
i18n.GuidedScoreCard());
editorTreeProvider.registerEditor(XLS_SCORE_CARD,
i18n.XLSScoreCard());
editorTreeProvider.registerEditor(STUNNER_DESIGNER,
i18n.StunnerDesigner());
editorTreeProvider.registerEditor(CASE_MODELLER,
i18n.CaseModeller());
editorTreeProvider.registerEditor(SCENARIO_SIMULATION_DESIGNER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ public interface DefaultWorkbenchConstants

String XLSScoreCard();

String StunnerDesigner();

String StunnerDesignerPreferences();

String SSHKeys();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ Tasks=Tasks
GuidedDecisionTree=Guided Decision Tree Editor
GuidedScoreCard=Guided Score Card Editor
XLSScoreCard=XLS Score Card Editor
StunnerDesigner=(New) jBPM Designer Editor
SSHKeys=SSH Keys
StunnerDesignerPreferences=Process Designer
SessionTimeout=Session timeout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import static org.kie.workbench.common.workbench.client.EditorIds.GUIDED_DECISION_TREE;
import static org.kie.workbench.common.workbench.client.EditorIds.GUIDED_SCORE_CARD;
import static org.kie.workbench.common.workbench.client.EditorIds.SCENARIO_SIMULATION_DESIGNER;
import static org.kie.workbench.common.workbench.client.EditorIds.STUNNER_DESIGNER;
import static org.kie.workbench.common.workbench.client.EditorIds.XLS_SCORE_CARD;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.ADMIN;
import static org.kie.workbench.common.workbench.client.PerspectiveIds.ADMINISTRATION;
Expand Down Expand Up @@ -162,8 +161,6 @@ public void testConfigureTree_RegisteredEditors() {
eq("GuidedScoreCard"));
verify(editorTreeProvider).registerEditor(eq(XLS_SCORE_CARD),
eq("XLSScoreCard"));
verify(editorTreeProvider).registerEditor(eq(STUNNER_DESIGNER),
eq("StunnerDesigner"));
verify(editorTreeProvider).registerEditor(eq(CASE_MODELLER),
eq("CaseModeller"));
verify(editorTreeProvider).registerEditor(eq(SCENARIO_SIMULATION_DESIGNER),
Expand Down

0 comments on commit c6fd504

Please sign in to comment.