forked from finos/vuu
-
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
1 parent
5ad3a79
commit 6c93a6a
Showing
597 changed files
with
16,014 additions
and
6,875 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
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
15 changes: 15 additions & 0 deletions
15
layout-server/src/main/java/org/finos/vuu/layoutserver/CorsConfig.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,15 @@ | ||
package org.finos.vuu.layoutserver; | ||
|
||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.web.servlet.config.annotation.CorsRegistry; | ||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; | ||
|
||
@Configuration | ||
public class CorsConfig implements WebMvcConfigurer { | ||
@Override | ||
public void addCorsMappings(CorsRegistry registry) { | ||
registry.addMapping("/**") | ||
.allowedOrigins("http://127.0.0.1:5173") | ||
.allowedMethods("GET", "POST", "PUT", "DELETE"); | ||
} | ||
} |
13 changes: 10 additions & 3 deletions
13
layout-server/src/main/java/org/finos/vuu/layoutserver/config/MappingConfig.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
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
17 changes: 5 additions & 12 deletions
17
layout-server/src/main/java/org/finos/vuu/layoutserver/dto/request/MetadataRequestDto.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,19 +1,12 @@ | ||
package org.finos.vuu.layoutserver.dto.request; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonUnwrapped; | ||
import lombok.Data; | ||
import org.finos.vuu.layoutserver.dto.MetadataDto; | ||
|
||
import javax.validation.constraints.NotNull; | ||
import org.finos.vuu.layoutserver.model.BaseMetadata; | ||
|
||
@Data | ||
public class MetadataRequestDto implements MetadataDto { | ||
|
||
@JsonProperty(value = "name", required = true) | ||
@NotNull(message = "Please provide a valid name") | ||
private String name; | ||
public class MetadataRequestDto { | ||
|
||
private String group; | ||
private String screenshot; | ||
private String user; | ||
@JsonUnwrapped | ||
BaseMetadata baseMetadata; | ||
} |
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
19 changes: 10 additions & 9 deletions
19
layout-server/src/main/java/org/finos/vuu/layoutserver/dto/response/MetadataResponseDto.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,19 +1,20 @@ | ||
package org.finos.vuu.layoutserver.dto.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonUnwrapped; | ||
import lombok.Data; | ||
import org.finos.vuu.layoutserver.dto.MetadataDto; | ||
import org.finos.vuu.layoutserver.model.BaseMetadata; | ||
|
||
import java.util.Date; | ||
import java.time.LocalDate; | ||
import java.util.UUID; | ||
|
||
@Data | ||
public class MetadataResponseDto implements MetadataDto { | ||
public class MetadataResponseDto { | ||
|
||
private UUID layoutId; | ||
private String name; | ||
private String group; | ||
private String screenshot; | ||
private String user; | ||
private Date created; | ||
private Date updated; | ||
|
||
@JsonUnwrapped | ||
BaseMetadata baseMetadata; | ||
|
||
private LocalDate created; | ||
private LocalDate updated; | ||
} |
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
19 changes: 19 additions & 0 deletions
19
layout-server/src/main/java/org/finos/vuu/layoutserver/model/BaseMetadata.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,19 @@ | ||
package org.finos.vuu.layoutserver.model; | ||
|
||
import lombok.Data; | ||
|
||
import javax.persistence.Embeddable; | ||
import javax.persistence.Lob; | ||
|
||
@Data | ||
@Embeddable | ||
public class BaseMetadata { | ||
|
||
private String name; | ||
private String group; | ||
|
||
@Lob | ||
private String screenshot; | ||
|
||
private String user; | ||
} |
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
8 changes: 6 additions & 2 deletions
8
layout-server/src/main/java/org/finos/vuu/layoutserver/repository/LayoutRepository.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,13 @@ | ||
package org.finos.vuu.layoutserver.repository; | ||
|
||
import java.util.UUID; | ||
import org.finos.vuu.layoutserver.model.Layout; | ||
import org.springframework.data.repository.CrudRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.UUID; | ||
|
||
@Repository | ||
public interface LayoutRepository extends CrudRepository<Layout, UUID> {} | ||
public interface LayoutRepository extends CrudRepository<Layout, UUID> { | ||
|
||
Layout findLayoutByMetadataId(UUID id); | ||
} |
3 changes: 2 additions & 1 deletion
3
layout-server/src/main/java/org/finos/vuu/layoutserver/repository/MetadataRepository.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,10 @@ | ||
package org.finos.vuu.layoutserver.repository; | ||
|
||
import java.util.UUID; | ||
import org.finos.vuu.layoutserver.model.Metadata; | ||
import org.springframework.data.repository.CrudRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.UUID; | ||
|
||
@Repository | ||
public interface MetadataRepository extends CrudRepository<Metadata, UUID> {} |
Oops, something went wrong.