.left()
.on(err -> logGroupsNotFound(fileName));
- if (MapUtils.isNotEmpty(foundGroups)) {
+ if (MapUtils.isNotEmpty(foundGroups) && matcheKey(foundGroups)) {
Map<String, GroupDefinition> groups = foundGroups
.entrySet()
.stream()
return new HashMap<>();
}
+ private boolean matcheKey(Map<String, Object> foundGroups){
+ if (foundGroups!=null && !foundGroups.isEmpty()) {
+ for (Map.Entry<String, Object> stringObjectEntry : foundGroups.entrySet()) {
+ String key = stringObjectEntry.getKey();
+ if (key.contains("group")) {
+ if (foundGroups.get(key) instanceof Map) {
+ return true;
+ }
+ }
+ }
+ }
+ return false;
+ }
+
private Map<String, Object> logGroupsNotFound(String fileName) {
log.debug("#logGroupsNotFound - Groups were not found in the yaml template {}.", fileName);
return new HashMap<>();
}
}
- public void populateRealServiceMetadata(UploadServiceInfo serviceMetaData, Service service) {
- if (service != null && serviceMetaData != null) {
- service.setTags(serviceMetaData.getTags());
- service.setContactId(serviceMetaData.getContactId());
- service.setName(serviceMetaData.getName());
- }
- }
-
public synchronized void init(ServletContext servletContext) {
if (this.servletContext == null) {
this.servletContext = servletContext;
if (ResourceTypeEnum.CVFC == resourceType ) {
return false;
}
+ if (component.getComponentMetadataDefinition()!=null && component.getComponentMetadataDefinition().getMetadataDataDefinition()!=null
+ && component.getComponentMetadataDefinition().getMetadataDataDefinition().getDescription()!=null){
+ if(component.getComponentMetadataDefinition().getMetadataDataDefinition().getDescription().equalsIgnoreCase("Nested VF in service")){
+ return false;
+ }
+ }
}
return true;
}