return Either.left(status.left().value().getAttributes());
}
- public boolean isAttributeUsedByOperation(Component component,
- AttributeDefinition propertyDefinitionEntry) {
- // TODO - do we need this one
- return false;
-
-// // Component's own interfaces
-// Map<String, InterfaceDefinition> interfaces = component.getInterfaces();
-// if(MapUtils.isNotEmpty(interfaces)){
-// for(Map.Entry<String, InterfaceDefinition> interfaceEntry : interfaces.entrySet()) {
-// if (isPropertyExistInOperationInterface(propertyDefinitionEntry, interfaceEntry.getValue())) {
-// return true;
-// }
-// }
-// }
-//
-// // Component's child's component interfaces
-// if(isPropertyUsedInCIInterfaces(component.getComponentInstancesInterfaces(), propertyDefinitionEntry)){
-// return true;
-// }
-//
-// // Component's parent's component interfaces
-// Either<List<Component>, StorageOperationStatus> componentList = toscaOperationFacade.getParentComponents(component.getUniqueId());
-// if(componentList.isLeft()){
-// for (Component parentComponent : componentList.left().value()) {
-// if(isPropertyUsedInCIInterfaces(parentComponent.getComponentInstancesInterfaces(), propertyDefinitionEntry)){
-// return true;
-// }
-// }
-// }
-//
-// return false;
- }
-
-
}