-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
294 additions
and
306 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 |
---|---|---|
@@ -1,26 +1,36 @@ | ||
package edu.tamu.app; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.CommandLineRunner; | ||
import org.springframework.context.annotation.Profile; | ||
import org.springframework.stereotype.Component; | ||
|
||
import edu.tamu.app.model.repo.VersionManagementSoftwareRepo; | ||
import edu.tamu.app.enums.ServiceType; | ||
import edu.tamu.app.model.Project; | ||
import edu.tamu.app.model.RemoteProjectManager; | ||
import edu.tamu.app.model.repo.ProjectRepo; | ||
import edu.tamu.app.model.repo.RemoteProjectManagerRepo; | ||
import edu.tamu.app.service.registry.ManagementBeanRegistry; | ||
|
||
@Component | ||
public class ProjectInitialization implements CommandLineRunner { | ||
|
||
@Autowired | ||
private ProjectRepo projectRepo; | ||
|
||
@Autowired | ||
private ManagementBeanRegistry managementBeanRegistry; | ||
|
||
@Autowired | ||
private VersionManagementSoftwareRepo versionManagementSoftwareRepo; | ||
private RemoteProjectManagerRepo remoteProjectManagerRepo; | ||
|
||
@Override | ||
public void run(String... args) throws Exception { | ||
versionManagementSoftwareRepo.findAll().forEach(versionManagementSoftware -> { | ||
remoteProjectManagerRepo.findAll().forEach(versionManagementSoftware -> { | ||
managementBeanRegistry.register(versionManagementSoftware); | ||
}); | ||
} | ||
|
||
} |
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
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
24 changes: 24 additions & 0 deletions
24
src/main/java/edu/tamu/app/model/RemoteProjectManager.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,24 @@ | ||
package edu.tamu.app.model; | ||
|
||
import java.util.Map; | ||
|
||
import javax.persistence.Entity; | ||
|
||
import edu.tamu.app.enums.ServiceType; | ||
|
||
@Entity | ||
public class RemoteProjectManager extends ManagementService { | ||
|
||
public RemoteProjectManager() { | ||
super(); | ||
} | ||
|
||
public RemoteProjectManager(String name, ServiceType type) { | ||
super(name, type); | ||
} | ||
|
||
public RemoteProjectManager(String name, ServiceType type, Map<String, String> settings) { | ||
super(name, type, settings); | ||
} | ||
|
||
} |
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 |
---|---|---|
|
@@ -192,4 +192,4 @@ public String getPassword() { | |
return null; | ||
} | ||
|
||
} | ||
} |
24 changes: 0 additions & 24 deletions
24
src/main/java/edu/tamu/app/model/VersionManagementSoftware.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.