+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.server.batch;
-
-import org.sonar.server.ws.WsAction;
-
-public interface BatchAction extends WsAction {
-
- // Marker interface
-}
public static final String API_ENDPOINT = "batch";
private final BatchIndex batchIndex;
- private final BatchAction[] actions;
+ private final BatchWsAction[] actions;
- public BatchWs(BatchIndex batchIndex, BatchAction... actions) {
+ public BatchWs(BatchIndex batchIndex, BatchWsAction... actions) {
this.batchIndex = batchIndex;
this.actions = actions;
}
defineIndexAction(controller);
defineFileAction(controller);
- for (BatchAction action : actions) {
+ for (BatchWsAction action : actions) {
action.define(controller);
}
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.server.batch;
+
+import org.sonar.server.ws.WsAction;
+
+public interface BatchWsAction extends WsAction {
+ // Marker interface
+}
import org.sonar.server.plugins.MimeTypes;
import org.sonar.server.user.UserSession;
-public class GlobalRepositoryAction implements BatchAction {
+public class GlobalRepositoryAction implements BatchWsAction {
private final DbClient dbClient;
private final PropertiesDao propertiesDao;
package org.sonar.server.batch;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
import org.sonar.api.resources.Scopes;
import org.sonar.api.server.ws.Request;
import org.sonar.api.server.ws.Response;
import org.sonar.server.plugins.MimeTypes;
import org.sonar.server.user.UserSession;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
import static com.google.common.collect.Maps.newHashMap;
-public class IssuesAction implements BatchAction {
+public class IssuesAction implements BatchWsAction {
private static final String PARAM_KEY = "key";
import org.sonar.batch.protocol.input.ProjectRepositories;
import org.sonar.server.plugins.MimeTypes;
-public class ProjectRepositoryAction implements BatchAction {
+public class ProjectRepositoryAction implements BatchWsAction {
private static final String PARAM_KEY = "key";
private static final String PARAM_PROFILE = "profile";
import org.sonar.server.user.index.UserDoc;
import org.sonar.server.user.index.UserIndex;
-public class UsersAction implements BatchAction {
+public class UsersAction implements BatchWsAction {
private static final String PARAM_LOGINS = "logins";
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-package org.sonar.server.component.ws;
-
-import org.sonar.server.ws.WsAction;
-
-public interface ProjectsAction extends WsAction {
- // marker interface
-}
import org.sonar.api.server.ws.WebService;
public class ProjectsWs implements WebService {
- private final ProjectsAction[] actions;
+ private final ProjectsWsAction[] actions;
- public ProjectsWs(ProjectsAction... actions) {
+ public ProjectsWs(ProjectsWsAction... actions) {
this.actions = actions;
}
defineCreateAction(controller);
defineDestroyAction(controller);
- for (ProjectsAction action : actions) {
+ for (ProjectsWsAction action : actions) {
action.define(controller);
}
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+package org.sonar.server.component.ws;
+
+import org.sonar.server.ws.WsAction;
+
+public interface ProjectsWsAction extends WsAction {
+ // marker interface
+}
import java.util.Date;
import java.util.List;
-public class ProvisionedProjectsAction implements ProjectsAction {
+public class ProvisionedProjectsAction implements ProjectsWsAction {
private static final List<String> POSSIBLE_FIELDS = Arrays.asList("uuid", "key", "name", "creationDate");
private final DbClient dbClient;
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.server.dashboard.ws;
-
-import org.sonar.server.ws.WsAction;
-
-public interface DashboardsAction extends WsAction {
-
- // Marker interface
-
-}
package org.sonar.server.dashboard.ws;
import com.google.common.collect.ListMultimap;
-import java.util.Collection;
import org.sonar.api.server.ws.Request;
import org.sonar.api.server.ws.Response;
import org.sonar.api.server.ws.WebService;
import org.sonar.server.exceptions.NotFoundException;
import org.sonar.server.user.UserSession;
-public class DashboardsShowAction implements DashboardsAction {
+import java.util.Collection;
+
+public class DashboardsShowAction implements DashboardsWsAction {
private static final String PARAM_KEY = "key";
public class DashboardsWs implements WebService {
- private final DashboardsAction[] actions;
+ private final DashboardsWsAction[] actions;
- public DashboardsWs(DashboardsAction... actions) {
+ public DashboardsWs(DashboardsWsAction... actions) {
this.actions = actions;
}
NewController controller = context.createController("api/dashboards");
controller.setSince("5.0");
controller.setDescription("Management of dashboards and widgets");
- for (DashboardsAction action : actions) {
+ for (DashboardsWsAction action : actions) {
action.define(controller);
}
controller.done();
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.server.dashboard.ws;
+
+import org.sonar.server.ws.WsAction;
+
+public interface DashboardsWsAction extends WsAction {
+
+ // Marker interface
+
+}
import org.sonar.core.persistence.DbSession;
import org.sonar.server.db.DbClient;
import org.sonar.server.user.UserSession;
-import org.sonar.server.user.ws.BaseUsersWsAction;
+import org.sonar.server.user.ws.UsersWsAction;
-public class ShowAction implements BaseUsersWsAction {
+public class ShowAction implements UsersWsAction {
private static final String PARAM_FROM_PARENT_UUID = "fromParentUuid";
private static final String PARAM_TO_PARENT_UUID = "toParentUuid";
import org.sonar.api.utils.text.JsonWriter;
import org.sonar.server.issue.IssueService;
-public class AuthorsAction implements BaseIssuesWsAction {
+public class AuthorsAction implements IssuesWsAction {
private final IssueService service;
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.server.issue.ws;
-
-import org.sonar.server.ws.WsAction;
-
-interface BaseIssuesWsAction extends WsAction {
-
- // Marker interface
-
-}
-
* List issue tags matching a given query.
* @since 5.1
*/
-public class ComponentTagsAction implements BaseIssuesWsAction {
+public class ComponentTagsAction implements IssuesWsAction {
private static final String PARAM_COMPONENT_UUID = "componentUuid";
private static final String PARAM_CREATED_AT = "createdAfter";
import static com.google.common.collect.Maps.newHashMap;
-public class IssueShowAction implements BaseIssuesWsAction {
+public class IssueShowAction implements IssuesWsAction {
public static final String SHOW_ACTION = "show";
public static final String DO_ACTION_ACTION = "do_action";
public static final String BULK_CHANGE_ACTION = "bulk_change";
- private final BaseIssuesWsAction[] actions;
+ private final IssuesWsAction[] actions;
- public IssuesWs(BaseIssuesWsAction... actions) {
+ public IssuesWs(IssuesWsAction... actions) {
this.actions = actions;
}
NewController controller = context.createController(API_ENDPOINT);
controller.setDescription("Coding rule issues");
controller.setSince("3.6");
- for (BaseIssuesWsAction action : actions) {
+ for (IssuesWsAction action : actions) {
action.define(controller);
}
defineRailsActions(controller);
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.server.issue.ws;
+
+import org.sonar.server.ws.WsAction;
+
+interface IssuesWsAction extends WsAction {
+ // Marker interface
+}
import static com.google.common.collect.Maps.newHashMap;
import static com.google.common.collect.Sets.newHashSet;
-public class SearchAction implements BaseIssuesWsAction {
+public class SearchAction implements IssuesWsAction {
public static final String SEARCH_ACTION = "search";
/**
* Set tags on an issue
*/
-public class SetTagsAction implements BaseIssuesWsAction {
+public class SetTagsAction implements IssuesWsAction {
private final IssueService service;
* List issue tags matching a given query.
* @since 5.1
*/
-public class TagsAction implements BaseIssuesWsAction {
+public class TagsAction implements IssuesWsAction {
private final IssueService service;
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.server.qualitygate.ws;
-
-import org.sonar.server.ws.WsAction;
-
-public interface BaseQGateWsAction extends WsAction {
-
- // Marker interface
-}
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.server.qualitygate.ws;
+
+import org.sonar.server.ws.WsAction;
+
+public interface QGateWsAction extends WsAction {
+
+ // Marker interface
+}
import java.util.Locale;
-public class QGatesAppAction implements BaseQGateWsAction {
+public class QGatesAppAction implements QGateWsAction {
private final QualityGates qualityGates;
import org.sonar.core.qualitygate.db.QualityGateDto;
import org.sonar.server.qualitygate.QualityGates;
-public class QGatesCopyAction implements BaseQGateWsAction {
+public class QGatesCopyAction implements QGateWsAction {
private final QualityGates qualityGates;
import org.sonar.core.qualitygate.db.QualityGateDto;
import org.sonar.server.qualitygate.QualityGates;
-public class QGatesCreateAction implements BaseQGateWsAction {
+public class QGatesCreateAction implements QGateWsAction {
private final QualityGates qualityGates;
import org.sonar.api.server.ws.WebService;
import org.sonar.server.qualitygate.QualityGates;
-public class QGatesCreateConditionAction implements BaseQGateWsAction {
+public class QGatesCreateConditionAction implements QGateWsAction {
private final QualityGates qualityGates;
import org.sonar.api.server.ws.WebService;
import org.sonar.server.qualitygate.QualityGates;
-public class QGatesDeleteConditionAction implements BaseQGateWsAction {
+public class QGatesDeleteConditionAction implements QGateWsAction {
private final QualityGates qualityGates;
import org.sonar.api.server.ws.WebService;
import org.sonar.server.qualitygate.QualityGates;
-public class QGatesDeselectAction implements BaseQGateWsAction {
+public class QGatesDeselectAction implements QGateWsAction {
private final QualityGates qualityGates;
import org.sonar.api.server.ws.WebService;
import org.sonar.server.qualitygate.QualityGates;
-public class QGatesDestroyAction implements BaseQGateWsAction {
+public class QGatesDestroyAction implements QGateWsAction {
private final QualityGates qualityGates;
import org.sonar.core.qualitygate.db.QualityGateDto;
import org.sonar.server.qualitygate.QualityGates;
-public class QGatesListAction implements BaseQGateWsAction {
+public class QGatesListAction implements QGateWsAction {
private final QualityGates qualityGates;
import org.sonar.core.qualitygate.db.QualityGateDto;
import org.sonar.server.qualitygate.QualityGates;
-public class QGatesRenameAction implements BaseQGateWsAction {
+public class QGatesRenameAction implements QGateWsAction {
private final QualityGates qualityGates;
import org.sonar.core.qualitygate.db.ProjectQgateAssociationQuery;
import org.sonar.server.qualitygate.QgateProjectFinder;
-public class QGatesSearchAction implements BaseQGateWsAction {
+public class QGatesSearchAction implements QGateWsAction {
private final QgateProjectFinder projectFinder;
import org.sonar.api.server.ws.WebService;
import org.sonar.server.qualitygate.QualityGates;
-public class QGatesSelectAction implements BaseQGateWsAction {
+public class QGatesSelectAction implements QGateWsAction {
private final QualityGates qualityGates;
import org.sonar.api.server.ws.WebService;
import org.sonar.server.qualitygate.QualityGates;
-public class QGatesSetAsDefaultAction implements BaseQGateWsAction {
+public class QGatesSetAsDefaultAction implements QGateWsAction {
private final QualityGates qualityGates;
import java.util.Collection;
-public class QGatesShowAction implements BaseQGateWsAction {
+public class QGatesShowAction implements QGateWsAction {
private final QualityGates qualityGates;
import org.sonar.api.server.ws.WebService;
import org.sonar.server.qualitygate.QualityGates;
-public class QGatesUnsetDefaultAction implements BaseQGateWsAction {
+public class QGatesUnsetDefaultAction implements QGateWsAction {
private final QualityGates qualityGates;
import org.sonar.api.server.ws.WebService;
import org.sonar.server.qualitygate.QualityGates;
-public class QGatesUpdateConditionAction implements BaseQGateWsAction {
+public class QGatesUpdateConditionAction implements QGateWsAction {
private final QualityGates qualityGates;
static final String PARAM_PROJECT_ID = "projectId";
static final String PARAM_ID = "id";
- private final BaseQGateWsAction[] actions;
+ private final QGateWsAction[] actions;
- public QGatesWs(BaseQGateWsAction... actions) {
+ public QGatesWs(QGateWsAction... actions) {
this.actions = actions;
}
.setSince("4.3")
.setDescription("This service manages quality gates, including conditions and project association");
- for (BaseQGateWsAction action : actions) {
+ for (QGateWsAction action : actions) {
action.define(controller);
}
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.server.qualityprofile.ws;
-
-import org.sonar.server.ws.WsAction;
-
-/**
- * Marker interface for quality profile related web service end points
- */
-public interface BaseQProfileWsAction extends WsAction {
-
- // Marker interface
-}
import java.io.OutputStreamWriter;
-public class QProfileBackupAction implements BaseQProfileWsAction {
+public class QProfileBackupAction implements QProfileWsAction {
private final QProfileBackuper backuper;
import static org.apache.commons.lang.StringUtils.isEmpty;
-public class QProfileChangeParentAction implements BaseQProfileWsAction {
+public class QProfileChangeParentAction implements QProfileWsAction {
private static final String PARAM_PARENT_KEY = "parentKey";
import java.util.Date;
import java.util.Map.Entry;
-public class QProfileChangelogAction implements BaseQProfileWsAction {
+public class QProfileChangelogAction implements QProfileWsAction {
private static final String PARAM_SINCE = "since";
private static final String PARAM_TO = "to";
import java.util.Map;
import java.util.Map.Entry;
-public class QProfileCompareAction implements BaseQProfileWsAction {
+public class QProfileCompareAction implements QProfileWsAction {
private static final String ATTRIBUTE_LEFT = "left";
private static final String ATTRIBUTE_RIGHT = "right";
import org.sonar.server.qualityprofile.QProfileCopier;
import org.sonar.server.user.UserSession;
-public class QProfileCopyAction implements BaseQProfileWsAction {
+public class QProfileCopyAction implements QProfileWsAction {
private static final String PARAM_PROFILE_NAME = "toName";
private static final String PARAM_PROFILE_KEY = "fromKey";
import java.io.InputStream;
import org.sonar.server.user.UserSession;
-public class QProfileCreateAction implements BaseQProfileWsAction {
+public class QProfileCreateAction implements QProfileWsAction {
private static final String PARAM_PROFILE_NAME = "name";
private static final String PARAM_LANGUAGE = "language";
import org.sonar.server.qualityprofile.QProfileFactory;
import org.sonar.server.user.UserSession;
-public class QProfileDeleteAction implements BaseQProfileWsAction {
+public class QProfileDeleteAction implements QProfileWsAction {
private final Languages languages;
private final QProfileFactory profileFactory;
import java.io.Writer;
import java.util.List;
-public class QProfileExportAction implements BaseQProfileWsAction {
+public class QProfileExportAction implements QProfileWsAction {
private static final String PARAM_PROFILE_NAME = "name";
private static final String PARAM_LANGUAGE = "language";
import org.sonar.api.server.ws.WebService.NewController;
import org.sonar.api.utils.text.JsonWriter;
-public class QProfileExportersAction implements BaseQProfileWsAction {
+public class QProfileExportersAction implements QProfileWsAction {
private ProfileExporter[] exporters;
import org.sonar.api.server.ws.WebService;
import org.sonar.api.utils.text.JsonWriter;
-public class QProfileImportersAction implements BaseQProfileWsAction {
+public class QProfileImportersAction implements QProfileWsAction {
private final ProfileImporter[] importers;
import java.util.List;
import java.util.Map;
-public class QProfileInheritanceAction implements BaseQProfileWsAction {
+public class QProfileInheritanceAction implements QProfileWsAction {
private final DbClient dbClient;
import org.sonar.server.exceptions.NotFoundException;
import org.sonar.server.user.UserSession;
-public class QProfileProjectsAction implements BaseQProfileWsAction {
+public class QProfileProjectsAction implements QProfileWsAction {
private static final String PARAM_KEY = "key";
private static final String PARAM_SELECTED = "selected";
import org.sonar.server.qualityprofile.QProfileFactory;
import org.sonar.server.user.UserSession;
-public class QProfileRenameAction implements BaseQProfileWsAction {
+public class QProfileRenameAction implements QProfileWsAction {
private static final String PARAM_PROFILE_NAME = "name";
private static final String PARAM_PROFILE_KEY = "key";
import org.sonar.server.qualityprofile.QProfileBackuper;
import org.sonar.server.user.UserSession;
-public class QProfileRestoreAction implements BaseQProfileWsAction {
+public class QProfileRestoreAction implements QProfileWsAction {
private static final String PARAM_BACKUP = "backup";
private final QProfileBackuper backuper;
import org.sonar.api.server.ws.WebService;
import org.sonar.server.qualityprofile.QProfileService;
-public class QProfileRestoreBuiltInAction implements BaseQProfileWsAction {
+public class QProfileRestoreBuiltInAction implements QProfileWsAction {
private final QProfileService service;
import java.util.Map;
import java.util.Set;
-public class QProfileSearchAction implements BaseQProfileWsAction {
+public class QProfileSearchAction implements QProfileWsAction {
private static final String FIELD_KEY = "key";
private static final String FIELD_NAME = "name";
import static org.apache.commons.lang.StringUtils.isEmpty;
-public class QProfileSetDefaultAction implements BaseQProfileWsAction {
+public class QProfileSetDefaultAction implements QProfileWsAction {
private static final String PARAM_LANGUAGE = "language";
private static final String PARAM_PROFILE_NAME = "profileName";
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.server.qualityprofile.ws;
+
+import org.sonar.server.ws.WsAction;
+
+/**
+ * Marker interface for quality profile related web service end points
+ */
+public interface QProfileWsAction extends WsAction {
+
+ // Marker interface
+}
private final RuleActivationActions ruleActivationActions;
private final BulkRuleActivationActions bulkRuleActivationActions;
private final ProjectAssociationActions projectAssociationActions;
- private final BaseQProfileWsAction[] actions;
+ private final QProfileWsAction[] actions;
public QProfilesWs(RuleActivationActions ruleActivationActions,
BulkRuleActivationActions bulkRuleActivationActions,
ProjectAssociationActions projectAssociationActions,
- BaseQProfileWsAction... actions) {
+ QProfileWsAction... actions) {
this.ruleActivationActions = ruleActivationActions;
this.bulkRuleActivationActions = bulkRuleActivationActions;
this.projectAssociationActions = projectAssociationActions;
ruleActivationActions.define(controller);
bulkRuleActivationActions.define(controller);
projectAssociationActions.define(controller);
- for(BaseQProfileWsAction action: actions) {
+ for(QProfileWsAction action: actions) {
action.define(controller);
}
/**
* @since 4.4
*/
-public class AppAction implements RulesAction {
+public class AppAction implements RulesWsAction {
private final Languages languages;
private final RuleRepositories ruleRepositories;
/**
* @since 4.4
*/
-public class CreateAction implements RulesAction {
+public class CreateAction implements RulesWsAction {
public static final String PARAM_CUSTOM_KEY = "custom_key";
public static final String PARAM_MANUAL_KEY = "manual_key";
/**
* @since 4.4
*/
-public class DeleteAction implements RulesAction {
+public class DeleteAction implements RulesWsAction {
public static final String PARAM_KEY = "key";
/**
* @since 5.1
*/
-public class RepositoriesAction implements RulesAction {
+public class RepositoriesAction implements RulesWsAction {
private static final String LANGUAGE = "language";
private static final String MATCH_ALL = ".*";
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.server.rule.ws;
-
-import org.sonar.server.ws.WsAction;
-
-/**
- * Marker interface for coding rule related actions
- *
- */
-interface RulesAction extends WsAction {
-
- // Marker interface
-}
public class RulesWs implements WebService {
- private final RulesAction[] actions;
+ private final RulesWsAction[] actions;
- public RulesWs(RulesAction... actions) {
+ public RulesWs(RulesWsAction... actions) {
this.actions = actions;
}
.createController("api/rules")
.setDescription("Coding rules");
- for (RulesAction action : actions) {
+ for (RulesWsAction action : actions) {
action.define(controller);
}
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.server.rule.ws;
+
+import org.sonar.server.ws.WsAction;
+
+/**
+ * Marker interface for coding rule related actions
+ *
+ */
+interface RulesWsAction extends WsAction {
+ // Marker interface
+}
/**
* @since 4.4
*/
-public class SearchAction extends SearchRequestHandler<RuleQuery, Rule> implements RulesAction {
+public class SearchAction extends SearchRequestHandler<RuleQuery, Rule> implements RulesWsAction {
public static final String PARAM_REPOSITORIES = "repositories";
public static final String PARAM_KEY = "rule_key";
/**
* @since 4.4
*/
-public class ShowAction implements RulesAction {
+public class ShowAction implements RulesWsAction {
public static final String PARAM_KEY = "key";
public static final String PARAM_ACTIVES = "actives";
import java.util.Set;
-public class TagsAction implements RulesAction {
+public class TagsAction implements RulesWsAction {
private final RuleService service;
import org.sonar.server.rule.RuleService;
import org.sonar.server.rule.RuleUpdate;
-public class UpdateAction implements RulesAction {
+public class UpdateAction implements RulesWsAction {
public static final String PARAM_KEY = "key";
public static final String PARAM_TAGS = "tags";
import org.sonar.server.db.DbClient;
import org.sonar.server.user.UserSession;
-public class HashAction implements SourcesAction {
+public class HashAction implements SourcesWsAction {
private final DbClient dbClient;
private final UserSession userSession;
import org.sonar.server.source.SourceService;
import org.sonar.server.user.UserSession;
-public class IndexAction implements SourcesAction {
+public class IndexAction implements SourcesWsAction {
private final DbClient dbClient;
private final SourceService sourceService;
import org.sonar.server.source.index.SourceLineIndex;
import org.sonar.server.user.UserSession;
-public class LinesAction implements SourcesAction {
+public class LinesAction implements SourcesWsAction {
private static final String PARAM_UUID = "uuid";
private static final String PARAM_KEY = "key";
import org.sonar.server.source.SourceService;
import org.sonar.server.user.UserSession;
-public class RawAction implements SourcesAction {
+public class RawAction implements SourcesWsAction {
private final DbClient dbClient;
private final SourceService sourceService;
import org.sonar.server.source.index.SourceLineIndex;
import org.sonar.server.user.UserSession;
-public class ScmAction implements SourcesAction {
+public class ScmAction implements SourcesWsAction {
private final DbClient dbClient;
private final SourceLineIndex sourceLineIndex;
import org.sonar.server.source.SourceService;
import org.sonar.server.user.UserSession;
-public class ShowAction implements SourcesAction {
+public class ShowAction implements SourcesWsAction {
private final SourceService sourceService;
private final DbClient dbClient;
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-package org.sonar.server.source.ws;
-
-import org.sonar.server.ws.WsAction;
-
-public interface SourcesAction extends WsAction {
-
- // Marker interface
-}
public class SourcesWs implements WebService {
- private final SourcesAction[] actions;
+ private final SourcesWsAction[] actions;
- public SourcesWs(SourcesAction... actions) {
+ public SourcesWs(SourcesWsAction... actions) {
this.actions = actions;
}
NewController controller = context.createController("api/sources")
.setSince("4.2")
.setDescription("Display sources information");
- for (SourcesAction action : actions) {
+ for (SourcesWsAction action : actions) {
action.define(controller);
}
controller.done();
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+package org.sonar.server.source.ws;
+
+import org.sonar.server.ws.WsAction;
+
+public interface SourcesWsAction extends WsAction {
+ // Marker interface
+}
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-package org.sonar.server.test.ws;
-
-import org.sonar.server.ws.WsAction;
-
-public interface TestAction extends WsAction {
- // marker interface
-}
import org.sonar.server.test.index.TestIndex;
import org.sonar.server.user.UserSession;
-public class TestsCoveredFilesAction implements TestAction {
+public class TestsCoveredFilesAction implements TestsWsAction {
public static final String TEST_UUID = "testUuid";
import org.sonar.server.test.index.TestIndex;
import org.sonar.server.user.UserSession;
-public class TestsListAction implements TestAction {
+public class TestsListAction implements TestsWsAction {
public static final String TEST_UUID = "testUuid";
public static final String TEST_FILE_UUID = "testFileUuid";
public static final String TEST_FILE_KEY = "testFileKey";
public class TestsWs implements WebService {
- private final TestAction[] actions;
+ private final TestsWsAction[] actions;
- public TestsWs(TestAction... actions) {
+ public TestsWs(TestsWsAction... actions) {
this.actions = actions;
}
.setSince("4.4")
.setDescription("Tests management");
- for (TestAction action : actions) {
+ for (TestsWsAction action : actions) {
action.define(controller);
}
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+package org.sonar.server.test.ws;
+
+import org.sonar.server.ws.WsAction;
+
+public interface TestsWsAction extends WsAction {
+ // marker interface
+}
import org.sonar.server.ui.Views;
import org.sonar.server.user.UserSession;
-public class ComponentNavigationAction implements NavigationAction {
+public class ComponentNavigationAction implements NavigationWsAction {
private static final String PARAM_COMPONENT_KEY = "componentKey";
import org.sonar.server.ui.Views;
import org.sonar.server.user.UserSession;
-public class GlobalNavigationAction implements NavigationAction {
+public class GlobalNavigationAction implements NavigationWsAction {
private static final String ANONYMOUS = null;
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.server.ui.ws;
-
-import org.sonar.server.ws.WsAction;
-
-public interface NavigationAction extends WsAction {
-
- // Marker interface for navigation related actions
-}
public class NavigationWs implements WebService {
- private final NavigationAction[] actions;
+ private final NavigationWsAction[] actions;
- public NavigationWs(NavigationAction... actions) {
+ public NavigationWs(NavigationWsAction... actions) {
this.actions = actions;
}
.setDescription("Get information required to build navigation UI components")
.setSince("5.2");
- for (NavigationAction action : actions) {
+ for (NavigationWsAction action : actions) {
action.define(navigation);
}
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.server.ui.ws;
+
+import org.sonar.server.ws.WsAction;
+
+public interface NavigationWsAction extends WsAction {
+ // Marker interface for navigation related actions
+}
import org.sonar.server.ui.Views;
import org.sonar.server.user.UserSession;
-public class SettingsNavigationAction implements NavigationAction {
+public class SettingsNavigationAction implements NavigationWsAction {
private final Settings settings;
private final Views views;
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.server.user.ws;
-
-import org.sonar.server.ws.WsAction;
-
-public interface BaseUsersWsAction extends WsAction {
-
- // Marker interface for UsersWs actions
-}
import org.sonar.server.user.UserSession;
import org.sonar.server.user.UserUpdater;
-public class ChangePasswordAction implements BaseUsersWsAction {
+public class ChangePasswordAction implements UsersWsAction {
private static final String PARAM_LOGIN = "login";
private static final String PARAM_PASSWORD = "password";
import org.sonar.server.user.index.UserDoc;
import org.sonar.server.user.index.UserIndex;
-public class CreateAction implements BaseUsersWsAction {
+public class CreateAction implements UsersWsAction {
private static final String PARAM_LOGIN = "login";
private static final String PARAM_PASSWORD = "password";
import org.sonar.api.utils.text.JsonWriter;
import org.sonar.server.user.UserSession;
-public class CurrentUserAction implements BaseUsersWsAction {
+public class CurrentUserAction implements UsersWsAction {
private final UserSession userSession;
public CurrentUserAction(UserSession userSession) {
import org.sonar.server.user.index.UserDoc;
import org.sonar.server.user.index.UserIndex;
-public class DeactivateAction implements BaseUsersWsAction {
+public class DeactivateAction implements UsersWsAction {
private static final String PARAM_LOGIN = "login";
import java.util.List;
-public class GroupsAction implements BaseUsersWsAction {
+public class GroupsAction implements UsersWsAction {
private static final String PARAM_LOGIN = "login";
private static final String PARAM_SELECTED = "selected";
import java.util.List;
import java.util.Set;
-public class SearchAction implements BaseUsersWsAction {
+public class SearchAction implements UsersWsAction {
private static final String FIELD_LOGIN = "login";
private static final String FIELD_NAME = "name";
import org.sonar.server.user.index.UserDoc;
import org.sonar.server.user.index.UserIndex;
-public class UpdateAction implements BaseUsersWsAction {
+public class UpdateAction implements UsersWsAction {
private static final String PARAM_LOGIN = "login";
private static final String PARAM_NAME = "name";
public class UsersWs implements WebService {
- private final BaseUsersWsAction[] actions;
+ private final UsersWsAction[] actions;
- public UsersWs(BaseUsersWsAction... actions) {
+ public UsersWs(UsersWsAction... actions) {
this.actions = actions;
}
.setDescription("Users management");
defineSearchAction(controller);
- for (BaseUsersWsAction action : actions) {
+ for (UsersWsAction action : actions) {
action.define(controller);
}
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.server.user.ws;
+
+import org.sonar.server.ws.WsAction;
+
+public interface UsersWsAction extends WsAction {
+ // Marker interface for UsersWs actions
+}
* Since 5.2, this interface is the base for Web Service marker interfaces
*/
public interface WsAction extends RequestHandler, Definable<WebService.NewController> {
-
// Marker interface
}
@Test
public void define_actions() {
- BaseIssuesWsAction action1 = mock(BaseIssuesWsAction.class);
- BaseIssuesWsAction action2 = mock(BaseIssuesWsAction.class);
+ IssuesWsAction action1 = mock(IssuesWsAction.class);
+ IssuesWsAction action2 = mock(IssuesWsAction.class);
IssuesWs ws = new IssuesWs(action1, action2);
WebService.Context context = new WebService.Context();
ws.define(context);
+++ /dev/null
-{"total": 1, "p": 1, "ps": 100, "rules": [
- {
- "key": "xoo:x1",
- "sysTags": ["tag1"],
- "tags": []
- }
-],
-"facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "tag1",
- "count": 1
- },
- {
- "val": "tag2",
- "count": 1
- }
- ]
- }
-]}
+++ /dev/null
-{
- "total": 1, "p": 1, "ps": 100,
- "rules": [
- {
- "key": "xoo:x1",
- "htmlNote": "this is <em>bold</em>",
- "mdNote": "this is *bold*"
- }
- ]}
+++ /dev/null
-{
- "tags": [
- "sys1",
- "java",
- "world",
- "hello"
- ]
-}
+++ /dev/null
-{"tags": ["hello"]}
\ No newline at end of file
+++ /dev/null
-{"tags": ["hello"]}
\ No newline at end of file
+++ /dev/null
-{
- "total": 2,
- "p": 1,
- "ps": 100,
- "rules": [
- {
- "key": "xoo:x2",
- "repo": "xoo",
- "name": "Rule x2",
- "htmlDesc": "Description x2",
- "severity": "INFO",
- "status": "READY",
- "internalKey": "InternalKeyx2",
- "isTemplate": false,
- "tags": [
- "tag1",
- "tag2"
- ],
- "sysTags": [
- "systag1",
- "systag2"
- ],
- "debtRemFnType": "LINEAR",
- "debtRemFnCoeff": "1h",
- "debtRemFnOffset": "5min",
- "lang": "xoo",
- "params": []
- },
- {
- "key": "xoo:x1",
- "repo": "xoo",
- "name": "Rule x1",
- "htmlDesc": "Description x1",
- "severity": "INFO",
- "status": "READY",
- "internalKey": "InternalKeyx1",
- "isTemplate": false,
- "tags": [
- "tag1",
- "tag2"
- ],
- "sysTags": [
- "systag1",
- "systag2"
- ],
- "debtRemFnType": "LINEAR",
- "debtRemFnCoeff": "1h",
- "debtRemFnOffset": "5min",
- "lang": "xoo",
- "params": []
- }
- ]
-}
+++ /dev/null
-{
- "total": 2, "p": 1, "ps": 100,
- "rules": [
- {
- "key": "xoo:x2",
- "name": "Rule x2",
- "mdDesc": "A *Xoo* rule",
- "htmlDesc": "A <em>Xoo</em> rule"
- },
- {
- "key": "xoo:x1",
- "name": "Rule x1",
- "htmlDesc": "Description x1",
- }
- ]}
+++ /dev/null
-{
- "total": 1, "p": 1, "ps": 100,
- "rules": [
- {
- "key": "xoo:x1"
- }
- ]}
+++ /dev/null
-{"total": 1, "p": 1, "ps": 100, "rules": [
- {
- "key": "xoo:x1",
- "params": [
- {
- "key": "my_var",
- "htmlDesc": "My small description",
- "defaultValue": "some value",
- "type": "string"
- },
- {
- "key": "the_var",
- "htmlDesc": "My small description",
- "defaultValue": "other value",
- "type": "integer"
- }
- ]
- }
-]
-}
+++ /dev/null
-{"total": 1, "p": 1, "ps": 100, "rules": [
- {
- "key": "xoo:x1",
- "debtChar": "RELIABILITY",
- "debtCharName": "Reliability",
- "debtSubChar": "HARD_RELIABILITY",
- "debtSubCharName": "Hard Reliability",
- "debtRemFnType": "LINEAR_OFFSET",
- "debtRemFnCoeff": "1h",
- "debtRemFnOffset": "15min",
- "debtOverloaded": false,
- "defaultDebtChar": "RELIABILITY",
- "defaultDebtSubChar": "HARD_RELIABILITY",
- "defaultDebtRemFnType": "LINEAR_OFFSET",
- "defaultDebtRemFnCoeff": "1h",
- "defaultDebtRemFnOffset": "15min"
- }
-],
-"facets": [
- {
- "property": "debt_characteristics",
- "values": [
- {
- "val": "RELIABILITY",
- "count": 1
- },
- {
- "val": "HARD_RELIABILITY",
- "count": 1
- },
- {
- "val": "NONE",
- "count": 0
- }
- ]
- }
-]}
+++ /dev/null
-{
- "total": 1,
- "p": 1,
- "ps": 100,
- "rules": [
- {
- "key": "xoo:x2",
- "debtSubCharName": "Soft Reliability",
- "defaultDebtRemFnType": "LINEAR_OFFSET",
- "defaultDebtRemFnCoeff": "1h",
- "defaultDebtRemFnOffset": "15min",
- "debtChar": "RELIABILITY",
- "debtOverloaded": true,
- "debtCharName": "Reliability",
- "debtRemFnType": "LINEAR_OFFSET",
- "debtRemFnCoeff": "30min",
- "debtRemFnOffset": "5min",
- "debtSubChar": "SOFT_RELIABILITY",
- "defaultDebtSubChar": "HARD_RELIABILITY",
- "defaultDebtChar": "RELIABILITY"
- }
- ],
- "facets": [
- {
- "property": "debt_characteristics",
- "values": [
- {
- "val": "HARD_RELIABILITY",
- "count": 1
- },
- {
- "val": "SOFT_RELIABILITY",
- "count": 1
- },
- {
- "val": "RELIABILITY",
- "count": 2
- },
- {
- "val": "NONE",
- "count": 2
- }
- ]
- }
- ]
-}
+++ /dev/null
-{"total": 1, "p": 1, "ps": 100, "rules": [
- {
- "key": "xoo:x1",
- "debtChar": "RELIABILITY",
- "debtCharName": "Reliability",
- "debtSubChar": "SOFT_RELIABILITY",
- "debtSubCharName": "Soft Reliability",
- "debtRemFnType": "LINEAR_OFFSET",
- "debtRemFnCoeff": "2h",
- "debtRemFnOffset": "25min",
- "debtOverloaded": true,
- "defaultDebtChar": "RELIABILITY",
- "defaultDebtSubChar": "HARD_RELIABILITY",
- "defaultDebtRemFnType": "LINEAR_OFFSET",
- "defaultDebtRemFnCoeff": "1h",
- "defaultDebtRemFnOffset": "15min"
- }
-]}
+++ /dev/null
-{"total": 1, "p": 1, "ps": 100, "rules": [
- {
- "key": "xoo:x1",
- "debtChar": "RELIABILITY",
- "debtCharName": "Reliability",
- "debtSubChar": "SOFT_RELIABILITY",
- "debtSubCharName": "Soft Reliability",
- "debtRemFnType": "CONSTANT_ISSUE",
- "debtRemFnOffset": "5min",
- "debtOverloaded": true,
- "defaultDebtChar": "RELIABILITY",
- "defaultDebtSubChar": "HARD_RELIABILITY",
- "defaultDebtRemFnType": "LINEAR_OFFSET",
- "defaultDebtRemFnCoeff": "1h",
- "defaultDebtRemFnOffset": "15min"
- }
-]}
+++ /dev/null
-{"total": 1, "p": 1, "ps": 100, "rules": [
- {
- "key": "xoo:x1",
- "debtChar": "RELIABILITY",
- "debtCharName": "Reliability",
- "debtSubChar": "SOFT_RELIABILITY",
- "debtSubCharName": "Soft Reliability",
- "debtRemFnType": "LINEAR",
- "debtRemFnCoeff": "1h",
- "debtOverloaded": true,
- "defaultDebtChar": "RELIABILITY",
- "defaultDebtSubChar": "HARD_RELIABILITY",
- "defaultDebtRemFnType": "LINEAR_OFFSET",
- "defaultDebtRemFnCoeff": "1h",
- "defaultDebtRemFnOffset": "15min"
- }
-]}
+++ /dev/null
-{
- "total": 0,
- "p": 1,
- "ps": 100,
- "rules": [],
- "actives": {},
- "qProfiles": {}
-}
+++ /dev/null
-{
- "total":1,
- "p":1,
- "ps":100,
- "rules": [
- {
- "key": "xoo:x1"
- }
- ],
- "actives": {
- "xoo:x1": [
- {
- "qProfile": "XOO_P2",
- "inherit": "NONE",
- "severity": "BLOCKER",
- "params": []
- }
- ]
- },
- "qProfiles": {
- "XOO_P2": {
- "name": "P2",
- "lang": "xoo",
- "langName": "xoo"
- }
- }
-}
+++ /dev/null
-{
- "total": 1,
- "p": 1,
- "ps": 100,
- "rules": [
- {
- "key": "xoo:x1"
- }
- ],
- "actives": {
- "xoo:x1": [
- {
- "qProfile": "XOO_P2",
- "inherit": "OVERRIDES",
- "severity": "CRITICAL",
- "params": []
- }
- ]
- },
- "qProfiles": {
- "XOO_P2": {
- "name": "P2",
- "lang": "xoo",
- "langName": "xoo",
- "parent": "XOO_P1"
- },
- "XOO_P1": {
- "name": "P1",
- "lang": "xoo",
- "langName": "xoo"
- }
- }
-}
+++ /dev/null
-{
- "total": 1, "p": 1, "ps": 100,
- "rules": [
- {
- "key": "xoo:x2",
- "templateKey": "xoo:x1"
- }
- ]}
+++ /dev/null
-{
- "total": 1, "p": 1, "ps": 100,
- "rules": [
- {
- "key": "xoo:x1",
- "isTemplate": true
- }
-]}
+++ /dev/null
-{"total": 0, "p": 1, "ps": 100, "rules": [],
-"facets": [
- {
- "property": "severities",
- "values": [
- {
- "val": "BLOCKER",
- "count": 0
- },{
- "val": "CRITICAL",
- "count": 0
- },{
- "val": "MAJOR",
- "count": 0
- },{
- "val": "MINOR",
- "count": 0
- },
- {
- "val": "INFO",
- "count": 0
- }
- ]
- }
-]}
+++ /dev/null
-{
- "rule": {
- "key": "xoo:x1",
- "repo": "xoo",
- "name": "Rule x1",
- "htmlDesc": "Description x1",
- "severity": "INFO",
- "status": "READY",
- "internalKey": "InternalKeyx1",
- "isTemplate": false,
- "tags": ["tag1", "tag2"],
- "sysTags": ["systag1", "systag2"],
- "debtRemFnType": "LINEAR",
- "debtRemFnCoeff": "1h",
- "debtRemFnOffset": "5min",
- "lang": "xoo",
- "params": []
- },
- "actives": [
- {
- "qProfile": "XOO_P1",
- "inherit": "NONE",
- "severity": "BLOCKER",
- "params": []
- }
- ]}
+++ /dev/null
-{"rule": {
- "key": "xoo:x1",
- "repo": "xoo",
- "name": "Rule x1",
- "htmlDesc": "Description x1",
- "severity": "INFO",
- "status": "READY",
- "internalKey": "InternalKeyx1",
- "isTemplate": false,
- "tags": ["tag1", "tag2"],
- "sysTags": ["systag1", "systag2"],
- "debtRemFnType": "LINEAR",
- "debtRemFnCoeff": "1h",
- "debtRemFnOffset": "5min",
- "lang": "xoo",
- "params": []
-}}
+++ /dev/null
-{"total": 0, "p": 1, "ps": 100, "rules": [],
-"facets": [
- {
- "property": "statuses",
- "values": [
- {
- "val": "BETA",
- "count": 0
- },{
- "val": "DEPRECATED",
- "count": 0
- },{
- "val": "READY",
- "count": 0
- }
- ]
- }
-]}
+++ /dev/null
-{"total": 1, "p": 1, "ps": 100, "rules": [
- {"key": "xoo:x3"}
-],
-"facets": [
- {
- "property": "statuses",
- "values": [
- {
- "val": "BETA",
- "count": 1
- },{
- "val": "DEPRECATED",
- "count": 1
- },{
- "val": "READY",
- "count": 1
- }
- ]
- }
-]}
--- /dev/null
+{"total": 1, "p": 1, "ps": 100, "rules": [
+ {
+ "key": "xoo:x1",
+ "sysTags": ["tag1"],
+ "tags": []
+ }
+],
+"facets": [
+ {
+ "property": "tags",
+ "values": [
+ {
+ "val": "tag1",
+ "count": 1
+ },
+ {
+ "val": "tag2",
+ "count": 1
+ }
+ ]
+ }
+]}
--- /dev/null
+{
+ "total": 1, "p": 1, "ps": 100,
+ "rules": [
+ {
+ "key": "xoo:x1",
+ "htmlNote": "this is <em>bold</em>",
+ "mdNote": "this is *bold*"
+ }
+ ]}
--- /dev/null
+{
+ "tags": [
+ "sys1",
+ "java",
+ "world",
+ "hello"
+ ]
+}
--- /dev/null
+{"tags": ["hello"]}
\ No newline at end of file
--- /dev/null
+{"tags": ["hello"]}
\ No newline at end of file
--- /dev/null
+{
+ "total": 2,
+ "p": 1,
+ "ps": 100,
+ "rules": [
+ {
+ "key": "xoo:x2",
+ "repo": "xoo",
+ "name": "Rule x2",
+ "htmlDesc": "Description x2",
+ "severity": "INFO",
+ "status": "READY",
+ "internalKey": "InternalKeyx2",
+ "isTemplate": false,
+ "tags": [
+ "tag1",
+ "tag2"
+ ],
+ "sysTags": [
+ "systag1",
+ "systag2"
+ ],
+ "debtRemFnType": "LINEAR",
+ "debtRemFnCoeff": "1h",
+ "debtRemFnOffset": "5min",
+ "lang": "xoo",
+ "params": []
+ },
+ {
+ "key": "xoo:x1",
+ "repo": "xoo",
+ "name": "Rule x1",
+ "htmlDesc": "Description x1",
+ "severity": "INFO",
+ "status": "READY",
+ "internalKey": "InternalKeyx1",
+ "isTemplate": false,
+ "tags": [
+ "tag1",
+ "tag2"
+ ],
+ "sysTags": [
+ "systag1",
+ "systag2"
+ ],
+ "debtRemFnType": "LINEAR",
+ "debtRemFnCoeff": "1h",
+ "debtRemFnOffset": "5min",
+ "lang": "xoo",
+ "params": []
+ }
+ ]
+}
--- /dev/null
+{
+ "total": 2, "p": 1, "ps": 100,
+ "rules": [
+ {
+ "key": "xoo:x2",
+ "name": "Rule x2",
+ "mdDesc": "A *Xoo* rule",
+ "htmlDesc": "A <em>Xoo</em> rule"
+ },
+ {
+ "key": "xoo:x1",
+ "name": "Rule x1",
+ "htmlDesc": "Description x1",
+ }
+ ]}
--- /dev/null
+{
+ "total": 1, "p": 1, "ps": 100,
+ "rules": [
+ {
+ "key": "xoo:x1"
+ }
+ ]}
--- /dev/null
+{"total": 1, "p": 1, "ps": 100, "rules": [
+ {
+ "key": "xoo:x1",
+ "params": [
+ {
+ "key": "my_var",
+ "htmlDesc": "My small description",
+ "defaultValue": "some value",
+ "type": "string"
+ },
+ {
+ "key": "the_var",
+ "htmlDesc": "My small description",
+ "defaultValue": "other value",
+ "type": "integer"
+ }
+ ]
+ }
+]
+}
--- /dev/null
+{"total": 1, "p": 1, "ps": 100, "rules": [
+ {
+ "key": "xoo:x1",
+ "debtChar": "RELIABILITY",
+ "debtCharName": "Reliability",
+ "debtSubChar": "HARD_RELIABILITY",
+ "debtSubCharName": "Hard Reliability",
+ "debtRemFnType": "LINEAR_OFFSET",
+ "debtRemFnCoeff": "1h",
+ "debtRemFnOffset": "15min",
+ "debtOverloaded": false,
+ "defaultDebtChar": "RELIABILITY",
+ "defaultDebtSubChar": "HARD_RELIABILITY",
+ "defaultDebtRemFnType": "LINEAR_OFFSET",
+ "defaultDebtRemFnCoeff": "1h",
+ "defaultDebtRemFnOffset": "15min"
+ }
+],
+"facets": [
+ {
+ "property": "debt_characteristics",
+ "values": [
+ {
+ "val": "RELIABILITY",
+ "count": 1
+ },
+ {
+ "val": "HARD_RELIABILITY",
+ "count": 1
+ },
+ {
+ "val": "NONE",
+ "count": 0
+ }
+ ]
+ }
+]}
--- /dev/null
+{
+ "total": 1,
+ "p": 1,
+ "ps": 100,
+ "rules": [
+ {
+ "key": "xoo:x2",
+ "debtSubCharName": "Soft Reliability",
+ "defaultDebtRemFnType": "LINEAR_OFFSET",
+ "defaultDebtRemFnCoeff": "1h",
+ "defaultDebtRemFnOffset": "15min",
+ "debtChar": "RELIABILITY",
+ "debtOverloaded": true,
+ "debtCharName": "Reliability",
+ "debtRemFnType": "LINEAR_OFFSET",
+ "debtRemFnCoeff": "30min",
+ "debtRemFnOffset": "5min",
+ "debtSubChar": "SOFT_RELIABILITY",
+ "defaultDebtSubChar": "HARD_RELIABILITY",
+ "defaultDebtChar": "RELIABILITY"
+ }
+ ],
+ "facets": [
+ {
+ "property": "debt_characteristics",
+ "values": [
+ {
+ "val": "HARD_RELIABILITY",
+ "count": 1
+ },
+ {
+ "val": "SOFT_RELIABILITY",
+ "count": 1
+ },
+ {
+ "val": "RELIABILITY",
+ "count": 2
+ },
+ {
+ "val": "NONE",
+ "count": 2
+ }
+ ]
+ }
+ ]
+}
--- /dev/null
+{"total": 1, "p": 1, "ps": 100, "rules": [
+ {
+ "key": "xoo:x1",
+ "debtChar": "RELIABILITY",
+ "debtCharName": "Reliability",
+ "debtSubChar": "SOFT_RELIABILITY",
+ "debtSubCharName": "Soft Reliability",
+ "debtRemFnType": "LINEAR_OFFSET",
+ "debtRemFnCoeff": "2h",
+ "debtRemFnOffset": "25min",
+ "debtOverloaded": true,
+ "defaultDebtChar": "RELIABILITY",
+ "defaultDebtSubChar": "HARD_RELIABILITY",
+ "defaultDebtRemFnType": "LINEAR_OFFSET",
+ "defaultDebtRemFnCoeff": "1h",
+ "defaultDebtRemFnOffset": "15min"
+ }
+]}
--- /dev/null
+{"total": 1, "p": 1, "ps": 100, "rules": [
+ {
+ "key": "xoo:x1",
+ "debtChar": "RELIABILITY",
+ "debtCharName": "Reliability",
+ "debtSubChar": "SOFT_RELIABILITY",
+ "debtSubCharName": "Soft Reliability",
+ "debtRemFnType": "CONSTANT_ISSUE",
+ "debtRemFnOffset": "5min",
+ "debtOverloaded": true,
+ "defaultDebtChar": "RELIABILITY",
+ "defaultDebtSubChar": "HARD_RELIABILITY",
+ "defaultDebtRemFnType": "LINEAR_OFFSET",
+ "defaultDebtRemFnCoeff": "1h",
+ "defaultDebtRemFnOffset": "15min"
+ }
+]}
--- /dev/null
+{"total": 1, "p": 1, "ps": 100, "rules": [
+ {
+ "key": "xoo:x1",
+ "debtChar": "RELIABILITY",
+ "debtCharName": "Reliability",
+ "debtSubChar": "SOFT_RELIABILITY",
+ "debtSubCharName": "Soft Reliability",
+ "debtRemFnType": "LINEAR",
+ "debtRemFnCoeff": "1h",
+ "debtOverloaded": true,
+ "defaultDebtChar": "RELIABILITY",
+ "defaultDebtSubChar": "HARD_RELIABILITY",
+ "defaultDebtRemFnType": "LINEAR_OFFSET",
+ "defaultDebtRemFnCoeff": "1h",
+ "defaultDebtRemFnOffset": "15min"
+ }
+]}
--- /dev/null
+{
+ "total": 0,
+ "p": 1,
+ "ps": 100,
+ "rules": [],
+ "actives": {},
+ "qProfiles": {}
+}
--- /dev/null
+{
+ "total":1,
+ "p":1,
+ "ps":100,
+ "rules": [
+ {
+ "key": "xoo:x1"
+ }
+ ],
+ "actives": {
+ "xoo:x1": [
+ {
+ "qProfile": "XOO_P2",
+ "inherit": "NONE",
+ "severity": "BLOCKER",
+ "params": []
+ }
+ ]
+ },
+ "qProfiles": {
+ "XOO_P2": {
+ "name": "P2",
+ "lang": "xoo",
+ "langName": "xoo"
+ }
+ }
+}
--- /dev/null
+{
+ "total": 1,
+ "p": 1,
+ "ps": 100,
+ "rules": [
+ {
+ "key": "xoo:x1"
+ }
+ ],
+ "actives": {
+ "xoo:x1": [
+ {
+ "qProfile": "XOO_P2",
+ "inherit": "OVERRIDES",
+ "severity": "CRITICAL",
+ "params": []
+ }
+ ]
+ },
+ "qProfiles": {
+ "XOO_P2": {
+ "name": "P2",
+ "lang": "xoo",
+ "langName": "xoo",
+ "parent": "XOO_P1"
+ },
+ "XOO_P1": {
+ "name": "P1",
+ "lang": "xoo",
+ "langName": "xoo"
+ }
+ }
+}
--- /dev/null
+{
+ "total": 1, "p": 1, "ps": 100,
+ "rules": [
+ {
+ "key": "xoo:x2",
+ "templateKey": "xoo:x1"
+ }
+ ]}
--- /dev/null
+{
+ "total": 1, "p": 1, "ps": 100,
+ "rules": [
+ {
+ "key": "xoo:x1",
+ "isTemplate": true
+ }
+]}
--- /dev/null
+{"total": 0, "p": 1, "ps": 100, "rules": [],
+"facets": [
+ {
+ "property": "severities",
+ "values": [
+ {
+ "val": "BLOCKER",
+ "count": 0
+ },{
+ "val": "CRITICAL",
+ "count": 0
+ },{
+ "val": "MAJOR",
+ "count": 0
+ },{
+ "val": "MINOR",
+ "count": 0
+ },
+ {
+ "val": "INFO",
+ "count": 0
+ }
+ ]
+ }
+]}
--- /dev/null
+{
+ "rule": {
+ "key": "xoo:x1",
+ "repo": "xoo",
+ "name": "Rule x1",
+ "htmlDesc": "Description x1",
+ "severity": "INFO",
+ "status": "READY",
+ "internalKey": "InternalKeyx1",
+ "isTemplate": false,
+ "tags": ["tag1", "tag2"],
+ "sysTags": ["systag1", "systag2"],
+ "debtRemFnType": "LINEAR",
+ "debtRemFnCoeff": "1h",
+ "debtRemFnOffset": "5min",
+ "lang": "xoo",
+ "params": []
+ },
+ "actives": [
+ {
+ "qProfile": "XOO_P1",
+ "inherit": "NONE",
+ "severity": "BLOCKER",
+ "params": []
+ }
+ ]}
--- /dev/null
+{"rule": {
+ "key": "xoo:x1",
+ "repo": "xoo",
+ "name": "Rule x1",
+ "htmlDesc": "Description x1",
+ "severity": "INFO",
+ "status": "READY",
+ "internalKey": "InternalKeyx1",
+ "isTemplate": false,
+ "tags": ["tag1", "tag2"],
+ "sysTags": ["systag1", "systag2"],
+ "debtRemFnType": "LINEAR",
+ "debtRemFnCoeff": "1h",
+ "debtRemFnOffset": "5min",
+ "lang": "xoo",
+ "params": []
+}}
--- /dev/null
+{"total": 0, "p": 1, "ps": 100, "rules": [],
+"facets": [
+ {
+ "property": "statuses",
+ "values": [
+ {
+ "val": "BETA",
+ "count": 0
+ },{
+ "val": "DEPRECATED",
+ "count": 0
+ },{
+ "val": "READY",
+ "count": 0
+ }
+ ]
+ }
+]}
--- /dev/null
+{"total": 1, "p": 1, "ps": 100, "rules": [
+ {"key": "xoo:x3"}
+],
+"facets": [
+ {
+ "property": "statuses",
+ "values": [
+ {
+ "val": "BETA",
+ "count": 1
+ },{
+ "val": "DEPRECATED",
+ "count": 1
+ },{
+ "val": "READY",
+ "count": 1
+ }
+ ]
+ }
+]}