-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MARP-1312 Refactor sync product-version (#221)
- Loading branch information
1 parent
5786cd0
commit 046cda0
Showing
16 changed files
with
220 additions
and
126 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
16 changes: 16 additions & 0 deletions
16
marketplace-service/src/main/java/com/axonivy/market/model/ReadmeContentsModel.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,16 @@ | ||
package com.axonivy.market.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class ReadmeContentsModel { | ||
private String description; | ||
private String demo; | ||
private String setup; | ||
} |
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
5 changes: 5 additions & 0 deletions
5
marketplace-service/src/main/java/com/axonivy/market/service/MetadataService.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,9 +1,14 @@ | ||
package com.axonivy.market.service; | ||
|
||
import com.axonivy.market.bo.Artifact; | ||
import com.axonivy.market.entity.Product; | ||
import java.util.List; | ||
|
||
public interface MetadataService { | ||
|
||
int syncAllProductsMetadata(); | ||
|
||
boolean syncProductMetadata(Product product); | ||
|
||
void updateArtifactAndMetadata(String productId , List<String> versions , List<Artifact> artifacts); | ||
} |
4 changes: 3 additions & 1 deletion
4
marketplace-service/src/main/java/com/axonivy/market/service/ProductJsonContentService.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,6 +1,8 @@ | ||
package com.axonivy.market.service; | ||
|
||
import com.axonivy.market.entity.ProductJsonContent; | ||
|
||
public interface ProductJsonContentService { | ||
void updateProductJsonContent(String jsonContent, String currentVersion, String replaceVersion, | ||
ProductJsonContent updateProductJsonContent(String jsonContent, String currentVersion, String replaceVersion, | ||
String productId, String productName); | ||
} |
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.