-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from indigo-dc/refactor
Refactor
- Loading branch information
Showing
257 changed files
with
386 additions
and
8,498 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
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 | Diff line number | Diff line change |
---|---|---|
|
@@ -56,16 +56,6 @@ | |
</properties> | ||
|
||
<dependencies> | ||
<!--<dependency>--> | ||
<!--<groupId>org.codehaus.jackson</groupId>--> | ||
<!--<artifactId>jackson-core-lgpl</artifactId>--> | ||
<!--<version>2.8.3</version>--> | ||
<!--</dependency>--> | ||
<!--<dependency>--> | ||
<!--<groupId>org.codehaus.jackson</groupId>--> | ||
<!--<artifactId>jackson-mapper-lgpl</artifactId>--> | ||
<!--<version>2.8.3</version>--> | ||
<!--</dependency>--> | ||
<dependency> | ||
<groupId>com.agreemount</groupId> | ||
<artifactId>engine</artifactId> | ||
|
@@ -80,11 +70,6 @@ | |
<groupId>mysql</groupId> | ||
<artifactId>mysql-connector-java</artifactId> | ||
</dependency> | ||
<!-- <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> | ||
<version>9.4-1206-jdbc42</version> </dependency> --> | ||
<!-- <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> | ||
</dependency> --> | ||
|
||
<dependency> | ||
<groupId>com.mashape.unirest</groupId> | ||
<artifactId>unirest-java</artifactId> | ||
|
@@ -147,8 +132,6 @@ | |
<groupId>org.springframework.hateoas</groupId> | ||
<artifactId>spring-hateoas</artifactId> | ||
</dependency> | ||
<!-- <dependency> <groupId>pl.cyfronet</groupId> <artifactId>bazaar-uo-ext</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> </dependency> --> | ||
<dependency> | ||
<groupId>org.springframework.security.oauth</groupId> | ||
<artifactId>spring-security-oauth2</artifactId> | ||
|
@@ -165,13 +148,6 @@ | |
<artifactId>commons-codec</artifactId> | ||
<version>1.10</version> | ||
</dependency> | ||
|
||
<!--breaks things with engine, for some reasons spring throws null pointer exceptions on some components--> | ||
<!--<dependency>--> | ||
<!--<groupId>org.springframework.boot</groupId>--> | ||
<!--<artifactId>spring-boot-devtools</artifactId>--> | ||
<!--<optional>true</optional>--> | ||
<!--</dependency>--> | ||
</dependencies> | ||
|
||
<build> | ||
|
@@ -266,23 +242,11 @@ | |
</plugins> | ||
</build> | ||
|
||
<scm> | ||
<connection>scm:git:ssh://[email protected]:7999/fiddev/duo-demo.git</connection> | ||
<url>https://git.plgrid.pl/projects/fiddev</url> | ||
<developerConnection>scm:git:ssh://[email protected]:7999/fiddev/duo-demo.git</developerConnection> | ||
<tag>HEAD</tag> | ||
</scm> | ||
|
||
<repositories> | ||
<repository> | ||
<id>spring-releases</id> | ||
<url>https://repo.spring.io/libs-release</url> | ||
</repository> | ||
<!--<repository>--> | ||
<!--<id>agreemount-cyfro-releases</id>--> | ||
<!--<layout>default</layout>--> | ||
<!--<url>https://gforge.cyfronet.pl/nexus/content/repositories/agreemount-cyfro-releases</url>--> | ||
<!--</repository>--> | ||
<repository> | ||
<id>agreemount-cyfro-releases</id> | ||
<layout>default</layout> | ||
|
@@ -297,15 +261,4 @@ | |
<url>https://repo.spring.io/libs-release</url> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
|
||
<distributionManagement> | ||
<repository> | ||
<id>fiddev-releases</id> | ||
<url>https://gforge.cyfronet.pl/nexus/content/repositories/fiddev-releases</url> | ||
</repository> | ||
<snapshotRepository> | ||
<id>fiddev-snapshots</id> | ||
<url>https://gforge.cyfronet.pl/nexus/content/repositories/fiddev-snapshots</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
</project> |
33 changes: 0 additions & 33 deletions
33
src/main/java/pl/cyfronet/bazaar/engine/extension/component/DocumentService.java
This file was deleted.
Oops, something went wrong.
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package pl.cyfronet.indigo; | ||
|
||
import com.agreemount.slaneg.fixtures.FileRulesProvidersConfiguration; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.context.annotation.*; | ||
|
||
/** | ||
* @author bwilk | ||
* | ||
*/ | ||
@SpringBootApplication | ||
@EnableAutoConfiguration | ||
@PropertySources({ | ||
@PropertySource("classpath:bootstrap.properties"), | ||
@PropertySource("classpath:hibernate.properties"), | ||
@PropertySource("classpath:auth.properties"), | ||
@PropertySource("classpath:bazaar.properties"), | ||
@PropertySource("classpath:mongo.properties") | ||
}) | ||
@ComponentScan( | ||
basePackages = {"com.agreemount","pl.cyfronet.indigo"}, | ||
excludeFilters = { | ||
@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, | ||
value = FileRulesProvidersConfiguration.class) | ||
} | ||
) | ||
public class Application { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(Application.class, args); | ||
} | ||
|
||
} |
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
4 changes: 1 addition & 3 deletions
4
...pl/cyfronet/ltos/bean/DocumentWeight.java → .../cyfronet/indigo/bean/DocumentWeight.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
4 changes: 1 addition & 3 deletions
4
.../cyfronet/ltos/bean/DocumentWeightPk.java → ...yfronet/indigo/bean/DocumentWeightPk.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
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
2 changes: 1 addition & 1 deletion
2
...n/java/pl/cyfronet/ltos/bean/SLAData.java → ...java/pl/cyfronet/indigo/bean/SLAData.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 | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package pl.cyfronet.ltos.bean; | ||
package pl.cyfronet.indigo.bean; | ||
|
||
/** | ||
* Created by chomik on 27.01.16. | ||
|
2 changes: 1 addition & 1 deletion
2
...main/java/pl/cyfronet/ltos/bean/Team.java → ...in/java/pl/cyfronet/indigo/bean/Team.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 | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package pl.cyfronet.ltos.bean; | ||
package pl.cyfronet.indigo.bean; | ||
|
||
import java.util.List; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...main/java/pl/cyfronet/ltos/bean/User.java → ...in/java/pl/cyfronet/indigo/bean/User.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
2 changes: 1 addition & 1 deletion
2
...net/ltos/bean/legacy/CreateGrantData.java → ...t/indigo/bean/legacy/CreateGrantData.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
2 changes: 1 addition & 1 deletion
2
...yfronet/ltos/bean/legacy/GenericBean.java → ...ronet/indigo/bean/legacy/GenericBean.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
2 changes: 1 addition & 1 deletion
2
.../pl/cyfronet/ltos/bean/legacy/Status.java → ...l/cyfronet/indigo/bean/legacy/Status.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
2 changes: 1 addition & 1 deletion
2
...onet/ltos/bean/legacy/UserFirstSteps.java → ...et/indigo/bean/legacy/UserFirstSteps.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 | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package pl.cyfronet.ltos.bean.legacy; | ||
package pl.cyfronet.indigo.bean.legacy; | ||
|
||
import lombok.Data; | ||
|
||
|
28 changes: 28 additions & 0 deletions
28
src/main/java/pl/cyfronet/indigo/controller/CmdbController.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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package pl.cyfronet.indigo.controller; | ||
|
||
import com.mashape.unirest.http.Unirest; | ||
import com.mashape.unirest.http.exceptions.UnirestException; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RequestMethod; | ||
import org.springframework.web.bind.annotation.ResponseBody; | ||
|
||
|
||
@Controller | ||
public class CmdbController { | ||
|
||
static Logger logger = LoggerFactory | ||
.getLogger(CmdbController.class); | ||
|
||
@Value("${cmdb.url}") | ||
private String cmdbUrl; | ||
|
||
@RequestMapping(value = "api/sites", method = RequestMethod.GET) | ||
@ResponseBody | ||
public String getSites() throws UnirestException { | ||
return Unirest.get(cmdbUrl+"/cmdb/service/list").asString().getBody(); | ||
} | ||
} |
12 changes: 6 additions & 6 deletions
12
...controller/EngineExtensionController.java → ...controller/EngineExtensionController.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
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
10 changes: 5 additions & 5 deletions
10
.../ltos/rest/controller/RestController.java → ...net/indigo/controller/RestController.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
4 changes: 2 additions & 2 deletions
4
...ion/definition/SetOrganizationAsTeam.java → ...ion/definition/SetOrganizationAsTeam.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
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.