-
Notifications
You must be signed in to change notification settings - Fork 10
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 #21 from CoreMedia/develop
Release: updates for 2.1.0
- Loading branch information
Showing
85 changed files
with
985 additions
and
674 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
description: "The sample schema used by the CaaS React fragments" | ||
linkBuilders: | ||
default: !LinkBuilder "simpleLinkBuilder" |
1 change: 0 additions & 1 deletion
1
headless-pd/headless-pd-sample/src/main/resources/link/link.yml
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
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
82 changes: 82 additions & 0 deletions
82
headless-server-core/src/main/java/com/coremedia/caas/server/CaasServiceConfig.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,82 @@ | ||
package com.coremedia.caas.server; | ||
|
||
import com.coremedia.caas.service.ServiceConfig; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@Component | ||
@ConfigurationProperties(prefix = "caas") | ||
public class CaasServiceConfig implements ServiceConfig { | ||
|
||
private boolean isPreview; | ||
private boolean isLogRequests; | ||
private boolean isPrettyPrintOutput; | ||
private Map<String, Long> cacheCapacities; | ||
private AccessControlConfig accessControlConfig; | ||
|
||
|
||
@Override | ||
public boolean isPreview() { | ||
return isPreview; | ||
} | ||
|
||
public void setPreview(boolean preview) { | ||
isPreview = preview; | ||
} | ||
|
||
public boolean isLogRequests() { | ||
return isLogRequests; | ||
} | ||
|
||
public void setLogRequests(boolean logRequests) { | ||
isLogRequests = logRequests; | ||
} | ||
|
||
public boolean isPrettyPrintOutput() { | ||
return isPrettyPrintOutput; | ||
} | ||
|
||
public void setPrettyPrintOutput(boolean prettyPrintOutput) { | ||
isPrettyPrintOutput = prettyPrintOutput; | ||
} | ||
|
||
public Map<String, Long> getCacheCapacities() { | ||
return cacheCapacities; | ||
} | ||
|
||
public void setCacheCapacities(Map<String, Long> cacheCapacities) { | ||
this.cacheCapacities = cacheCapacities; | ||
} | ||
|
||
public AccessControlConfig getAccessControl() { | ||
return accessControlConfig; | ||
} | ||
|
||
public void setAccessControl(AccessControlConfig accessControlConfig) { | ||
this.accessControlConfig = accessControlConfig; | ||
} | ||
|
||
|
||
@Override | ||
public List<String> getDefaultValidators() { | ||
return accessControlConfig.getDefaultValidators(); | ||
} | ||
|
||
|
||
public static class AccessControlConfig { | ||
|
||
private List<String> defaultValidators; | ||
|
||
public List<String> getDefaultValidators() { | ||
return defaultValidators; | ||
} | ||
|
||
public void setDefaultValidators(List<String> defaultValidators) { | ||
this.defaultValidators = defaultValidators; | ||
} | ||
} | ||
} |
Oops, something went wrong.