forked from Vakaris-U/ignition-git-module
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #1 from WHK01/multiproject
Multiproject support for multi projects and project inheritance via YAML configuration
- Loading branch information
Showing
10 changed files
with
493 additions
and
241 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
51 changes: 51 additions & 0 deletions
51
git-gateway/src/main/java/com/axone_io/ignition/git/commissioning/ProjectConfig.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,51 @@ | ||
package com.axone_io.ignition.git.commissioning; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public class ProjectConfig { | ||
// Getters and setters | ||
@lombok.Getter | ||
@lombok.Setter | ||
private String initDefaultBranch; | ||
|
||
@Getter | ||
@Setter | ||
private String repo_uri; | ||
@Getter | ||
@Setter | ||
private String repo_branch; | ||
@Getter | ||
@Setter | ||
private String ignition_projectName; | ||
@Getter | ||
@Setter | ||
private String ignition_userName; | ||
@Getter | ||
@Setter | ||
private Boolean ignition_inheritable; | ||
@Getter | ||
@Setter | ||
@Nullable | ||
private String ignition_parentName; | ||
@Getter | ||
@Setter | ||
private String user_name; | ||
@Getter | ||
@Setter | ||
private String user_email; | ||
@Getter | ||
@Setter | ||
private String user_password; | ||
@Getter | ||
@Setter | ||
private Boolean commissioning_importThemes; | ||
@Getter | ||
@Setter | ||
private Boolean commissioning_importTags; | ||
@Getter | ||
@Setter | ||
private Boolean commissioning_importImages; | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
git-gateway/src/main/java/com/axone_io/ignition/git/commissioning/ProjectConfigs.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,17 @@ | ||
package com.axone_io.ignition.git.commissioning; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@Setter | ||
public class ProjectConfigs { | ||
private List<ProjectConfig> projects; | ||
// Method to Add Project to Class | ||
public void addProject(ProjectConfig projectConfig) { | ||
if (this.projects == null) { this.projects = new java.util.ArrayList<ProjectConfig>();} | ||
projects.add(projectConfig); | ||
} | ||
} |
Oops, something went wrong.