Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SONAR-7923 Create WS api/qualitygates/get_by_project
- Loading branch information
Showing
31 changed files
with
749 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
server/sonar-server/src/main/java/org/sonar/server/qualitygate/QualityGateModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,69 @@ | |||
/* | |||
* SonarQube | |||
* Copyright (C) 2009-2016 SonarSource SA | |||
* mailto:contact AT sonarsource DOT com | |||
* | |||
* This program 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. | |||
* | |||
* 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 | |||
* 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; | |||
|
|||
import org.sonar.core.platform.Module; | |||
import org.sonar.server.qualitygate.ws.AppAction; | |||
import org.sonar.server.qualitygate.ws.CopyAction; | |||
import org.sonar.server.qualitygate.ws.CreateAction; | |||
import org.sonar.server.qualitygate.ws.CreateConditionAction; | |||
import org.sonar.server.qualitygate.ws.DeleteConditionAction; | |||
import org.sonar.server.qualitygate.ws.DeselectAction; | |||
import org.sonar.server.qualitygate.ws.DestroyAction; | |||
import org.sonar.server.qualitygate.ws.GetByProjectAction; | |||
import org.sonar.server.qualitygate.ws.ListAction; | |||
import org.sonar.server.qualitygate.ws.ProjectStatusAction; | |||
import org.sonar.server.qualitygate.ws.QualityGatesWs; | |||
import org.sonar.server.qualitygate.ws.RenameAction; | |||
import org.sonar.server.qualitygate.ws.SearchAction; | |||
import org.sonar.server.qualitygate.ws.SelectAction; | |||
import org.sonar.server.qualitygate.ws.SetAsDefaultAction; | |||
import org.sonar.server.qualitygate.ws.ShowAction; | |||
import org.sonar.server.qualitygate.ws.UnsetDefaultAction; | |||
import org.sonar.server.qualitygate.ws.UpdateConditionAction; | |||
|
|||
public class QualityGateModule extends Module { | |||
@Override | |||
protected void configureModule() { | |||
add( | |||
QualityGates.class, | |||
QgateProjectFinder.class, | |||
// WS | |||
QualityGatesWs.class, | |||
ListAction.class, | |||
SearchAction.class, | |||
ShowAction.class, | |||
CreateAction.class, | |||
RenameAction.class, | |||
CopyAction.class, | |||
DestroyAction.class, | |||
SetAsDefaultAction.class, | |||
UnsetDefaultAction.class, | |||
SelectAction.class, | |||
DeselectAction.class, | |||
CreateConditionAction.class, | |||
DeleteConditionAction.class, | |||
UpdateConditionAction.class, | |||
AppAction.class, | |||
ProjectStatusAction.class, | |||
GetByProjectAction.class); | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.