@Component(value="component-instance-operation") public class ComponentInstanceOperation extends AbstractOperation implements IComponentInstanceOperation
applicationDataTypeCache, dataTypeValidatorConverter, EMPTY_VALUE, gson
Constructor and Description |
---|
ComponentInstanceOperation() |
Modifier and Type | Method and Description |
---|---|
fj.data.Either<ComponentInstanceAttribute,StorageOperationStatus> |
addAttributeValueToResourceInstance(ComponentInstanceAttribute resourceInstanceAttribute,
String resourceInstanceId,
Integer index,
boolean inTransaction)
Adds Attribute to resource instance
|
fj.data.Either<Map<CapabilityInstData,List<PropertyValueData>>,TitanOperationStatus> |
addCapabilityPropertyValuesToResourceInstance(String resourceInstanceId,
CapabilityDefinition capability,
boolean isNewlyCreatedResourceInstance)
add capability property values to resource instance
|
TitanOperationStatus |
addCapabilityPropertyValuesToResourceInstance(com.thinkaurelius.titan.core.TitanVertex resourceInstanceVertex,
String resourceInstanceId,
CapabilityDefinition capability,
boolean isNewlyCreatedResourceInstance) |
fj.data.Either<ComponentInstance,TitanOperationStatus> |
addComponentInstanceToContainerComponent(String containerComponentId,
NodeTypeEnum containerNodeType,
String instanceNumber,
boolean isCreateLogicaName,
ComponentInstance componentInstance,
NodeTypeEnum compInstNodeType,
boolean allowDeleted) |
fj.data.Either<com.thinkaurelius.titan.core.TitanVertex,TitanOperationStatus> |
addComponentInstanceToContainerComponent(String containerComponentId,
NodeTypeEnum containerNodeType,
String instanceNumber,
boolean isCreateLogicaName,
ComponentInstance componentInstance,
NodeTypeEnum compInstNodeType,
boolean allowDeleted,
com.thinkaurelius.titan.core.TitanVertex metadataVertex) |
fj.data.Either<InputValueData,TitanOperationStatus> |
addInputToResourceInstance(ComponentInstanceInput resourceInstanceInput,
String resourceInstanceId,
Integer index)
add property to resource instance
|
fj.data.Either<ComponentInstanceInput,StorageOperationStatus> |
addInputValueToResourceInstance(ComponentInstanceInput resourceInstanceInput,
String resourceInstanceId,
Integer index,
boolean inTransaction) |
fj.data.Either<PropertyValueData,TitanOperationStatus> |
addPropertyToResourceInstance(ComponentInstanceProperty resourceInstanceProperty,
String resourceInstanceId,
boolean isValidate,
Integer index)
add property to resource instance
|
fj.data.Either<ComponentInstanceProperty,TitanOperationStatus> |
addPropertyToResourceInstance(ComponentInstanceProperty resourceInstanceProperty,
com.thinkaurelius.titan.core.TitanVertex resourceInstanceVertex,
boolean isValidate,
Integer index,
String resourceInstanceId) |
fj.data.Either<ComponentInstanceProperty,StorageOperationStatus> |
addPropertyValueToResourceInstance(ComponentInstanceProperty resourceInstanceProperty,
String resourceInstanceId,
boolean isValidate,
Integer index,
boolean inTransaction) |
fj.data.Either<ComponentInstanceProperty,StorageOperationStatus> |
addPropertyValueToResourceInstance(ComponentInstanceProperty resourceInstanceProperty,
String resourceInstanceId,
Integer index,
boolean inTransaction) |
fj.data.Either<RequirementCapabilityRelDef,StorageOperationStatus> |
associateResourceInstances(String componentId,
NodeTypeEnum nodeType,
RequirementCapabilityRelDef relation) |
fj.data.Either<RequirementCapabilityRelDef,StorageOperationStatus> |
associateResourceInstances(String componentId,
NodeTypeEnum nodeType,
RequirementCapabilityRelDef relation,
boolean inTransaction)
associate 2 resource instances for a given requirement
|
fj.data.Either<org.apache.commons.lang3.tuple.ImmutablePair<List<ComponentInstance>,Map<String,String>>,StorageOperationStatus> |
cloneAllComponentInstancesFromContainerComponent(String componentIdFrom,
Component component,
NodeTypeEnum containerNodeType,
NodeTypeEnum compInstNodeType,
LifecycleStateEnum targetLifecycle,
Map<String,List<ComponentInstanceInput>> inputsValuesMap) |
fj.data.Either<org.apache.commons.lang3.tuple.ImmutablePair<List<ComponentInstance>,Map<String,String>>,StorageOperationStatus> |
cloneAllComponentInstancesFromContainerComponent(String componentIdFrom,
String componentIdTo,
NodeTypeEnum containerNodeType,
NodeTypeEnum compInstNodeType,
LifecycleStateEnum targetLifecycle,
com.thinkaurelius.titan.core.TitanVertex metadataVertex,
Resource prevResource,
Resource newResource,
Map<String,List<ComponentInstanceProperty>> inputsPropMap) |
fj.data.Either<RelationshipInstData,TitanOperationStatus> |
connectResourcesInService(String componentId,
NodeTypeEnum nodeType,
String fromResInstanceUid,
String toResInstanceUid,
RequirementAndRelationshipPair relationPair) |
fj.data.Either<ComponentInstance,StorageOperationStatus> |
createComponentInstance(String containerComponentId,
NodeTypeEnum containerNodeType,
String instanceNumber,
ComponentInstance componentInstance,
NodeTypeEnum instNodeType)
add resource instance to service with internal transaction
|
fj.data.Either<ComponentInstance,StorageOperationStatus> |
createComponentInstance(String parentComponentId,
NodeTypeEnum nodeType,
String instanceNumber,
ComponentInstance componentInstance,
NodeTypeEnum compInstNodeType,
boolean inTransaction)
add resource instance to service
|
String |
createComponentInstLogicalName(String instanceNumber,
String componentInstanceName) |
fj.data.Either<AttributeValueData,TitanOperationStatus> |
createOrUpdateAttributeOfResourceInstance(ComponentInstanceAttribute attributeInstanceProperty,
String resourceInstanceId) |
fj.data.Either<List<ComponentInstance>,StorageOperationStatus> |
deleteAllComponentInstances(String containerComponentId,
NodeTypeEnum nodeType) |
fj.data.Either<List<ComponentInstance>,StorageOperationStatus> |
deleteAllComponentInstances(String containerComponentId,
NodeTypeEnum containerNodeType,
boolean inTransaction) |
fj.data.Either<List<ComponentInstance>,TitanOperationStatus> |
deleteAllComponentInstancesInternal(String componentId,
NodeTypeEnum nodeType) |
fj.data.Either<ComponentInstance,StorageOperationStatus> |
deleteComponentInstance(NodeTypeEnum containerNodeType,
String containerComponentId,
String resourceInstUid) |
fj.data.Either<ComponentInstance,StorageOperationStatus> |
deleteComponentInstance(NodeTypeEnum containerNodeType,
String containerComponentId,
String resourceInstUid,
boolean inTransaction)
delete resource instance from component
|
fj.data.Either<CapabilityInstData,TitanOperationStatus> |
deletePropertyValuesOfCapabilityFromResourceInstance(String capabilityId,
String resourceInstanceId)
delete property values of capability from resource instance
|
fj.data.Either<List<RelationshipInstData>,TitanOperationStatus> |
disconnectResourcesInService(String componentId,
NodeTypeEnum nodeType,
RequirementCapabilityRelDef requirementDef) |
fj.data.Either<RequirementCapabilityRelDef,StorageOperationStatus> |
dissociateResourceInstances(String serviceId,
NodeTypeEnum nodeType,
RequirementCapabilityRelDef requirementDef) |
fj.data.Either<RequirementCapabilityRelDef,StorageOperationStatus> |
dissociateResourceInstances(String componentId,
NodeTypeEnum nodeType,
RequirementCapabilityRelDef requirementDef,
boolean inTransaction)
dissociate the relation between 2 resource instances for a given
requirement
|
fj.data.Either<Map<String,ArtifactDefinition>,StorageOperationStatus> |
fetchCIEnvArtifacts(String componentInstanceId) |
fj.data.Either<Map<String,Map<String,ComponentInstanceProperty>>,TitanOperationStatus> |
findAllPropertyValueOnInstances(Map<String,org.apache.commons.lang3.tuple.ImmutablePair<ComponentInstance,Integer>> processedInstances) |
fj.data.Either<List<ComponentInstance>,TitanOperationStatus> |
findInstancesUnderParentOfInstance(OriginTypeEnum originType,
String resourceUid) |
fj.data.Either<org.apache.commons.lang3.tuple.ImmutablePair<List<ComponentInstance>,List<RequirementCapabilityRelDef>>,StorageOperationStatus> |
getAllComponentInstances(String componentId,
NodeTypeEnum containerNodeType,
NodeTypeEnum compInstNodeType,
boolean inTransaction)
get all resource instances of a given service and the relations between
the resource instances
|
fj.data.Either<List<ComponentInstance>,StorageOperationStatus> |
getAllComponentInstancesMetadataOnly(String componentId,
NodeTypeEnum containerNodeType) |
fj.data.Either<List<String>,StorageOperationStatus> |
getAllComponentInstancesNames(String componentId,
NodeTypeEnum nodeType) |
fj.data.Either<List<String>,StorageOperationStatus> |
getAllComponentInstancesNames(String serviceId,
NodeTypeEnum nodeType,
boolean inTransaction) |
fj.data.Either<List<org.apache.commons.lang3.tuple.ImmutablePair<CapabilityData,GraphEdge>>,TitanOperationStatus> |
getCapabilities(ComponentInstance compInstance,
NodeTypeEnum nodeTypeEnum) |
fj.data.Either<List<ComponentInstanceProperty>,TitanOperationStatus> |
getComponentInstanceProperties(ComponentInstance resourceInstance,
Map<String,List<PropertyDefinition>> alreadyProcessedResources,
Map<String,List<ComponentInstanceProperty>> alreadyProcessedInstances,
Map<String,org.apache.commons.lang3.tuple.ImmutablePair<ComponentInstance,Integer>> processedInstances,
List<String> path) |
fj.data.Either<org.apache.commons.lang3.tuple.ImmutablePair<List<ComponentInstance>,List<RequirementCapabilityRelDef>>,TitanOperationStatus> |
getComponentInstancesOfComponent(String componentId,
NodeTypeEnum containerNodeType,
NodeTypeEnum compInstNodeType)
find resource instances and the relationships between the relationships of a given resource
|
fj.data.Either<List<ComponentInstanceProperty>,TitanOperationStatus> |
getComponentInstancesProperties(List<ComponentInstance> resourceInstances,
Map<String,List<PropertyDefinition>> alreadyProcessedResources,
Map<String,List<ComponentInstanceProperty>> resourceInstancesProperties,
Map<String,org.apache.commons.lang3.tuple.ImmutablePair<ComponentInstance,Integer>> processedInstances,
List<String> path) |
ComponentOperation |
getComponentOperation(NodeTypeEnum componentType) |
<Data> fj.data.Either<List<org.apache.commons.lang3.tuple.ImmutablePair<Data,GraphEdge>>,TitanOperationStatus> |
getDataFromGraph(org.openecomp.sdc.be.model.operations.impl.ComponentInstanceOperation.DataNodeCollector<Data> dataCollector) |
fj.data.Either<ComponentInstance,StorageOperationStatus> |
getFullComponentInstance(ComponentInstance componentInstance,
NodeTypeEnum compInstNodeType) |
fj.data.Either<List<org.apache.commons.lang3.tuple.ImmutablePair<RequirementData,GraphEdge>>,TitanOperationStatus> |
getRequirements(ComponentInstance compInstance,
NodeTypeEnum nodeTypeEnum) |
fj.data.Either<ComponentInstance,StorageOperationStatus> |
getResourceInstanceById(String resourceId)
get resource instance from id
|
fj.data.Either<Integer,StorageOperationStatus> |
increaseAndGetResourceInstanceSpecificCounter(String resourceInstanceId,
GraphPropertiesDictionary counterType,
boolean inTransaction) |
fj.data.Either<Integer,StorageOperationStatus> |
increaseAndGetResourceInstanceSpecificCounter(com.thinkaurelius.titan.core.TitanVertex resourceInstanceVertex,
GraphPropertiesDictionary counterType) |
fj.data.Either<Boolean,StorageOperationStatus> |
isAvailableCapabilty(ComponentInstance toResInstance,
RequirementAndRelationshipPair relationPair) |
fj.data.Either<Boolean,StorageOperationStatus> |
isAvailableRequirement(ComponentInstance fromResInstance,
RequirementAndRelationshipPair relationPair) |
fj.data.Either<Boolean,StorageOperationStatus> |
isComponentInstanceNameExist(String parentComponentId,
NodeTypeEnum nodeType,
String compInstId,
String componentInstName) |
fj.data.Either<ComponentInstance,TitanOperationStatus> |
removeComponentInstanceFromComponent(NodeTypeEnum containerNodeType,
String containerComponentId,
String componentInstanceUid) |
protected StorageOperationStatus |
setCompInstArtifactsFromGraph(ComponentInstance resourceInstance) |
void |
setResourceOperation(ResourceOperation resourceOperation)
FOR TEST ONLY
|
void |
setTitanGenericDao(TitanGenericDao titanGenericDao)
FOR TEST ONLY
|
fj.data.Either<ComponentInstanceAttribute,StorageOperationStatus> |
updateAttributeValueInResourceInstance(ComponentInstanceAttribute resourceInstanceAttribute,
String resourceInstanceId,
boolean inTransaction)
Updates Attribute on resource instance
|
fj.data.Either<List<PropertyValueData>,TitanOperationStatus> |
updateCapabilityPropertyValuesOfResourceInstance(String resourceInstanceId,
String capabilityId,
List<ComponentInstanceProperty> propertyValues)
update capability property values of capability
|
fj.data.Either<List<CapabilityDefinition>,TitanOperationStatus> |
updateCapDefPropertyValues(ComponentInstance componentInstance,
List<CapabilityDefinition> capabilityDefList) |
fj.data.Either<InputValueData,TitanOperationStatus> |
updateInputOfResourceInstance(ComponentInstanceInput resourceInstanceProerty,
String resourceInstanceId)
update value of attribute on resource instance
|
fj.data.Either<ComponentInstanceInput,StorageOperationStatus> |
updateInputValueInResourceInstance(ComponentInstanceInput input,
String resourceInstanceId,
boolean b) |
fj.data.Either<PropertyValueData,TitanOperationStatus> |
updatePropertyOfResourceInstance(ComponentInstanceProperty resourceInstanceProerty,
String resourceInstanceId,
boolean isValidate)
update value of attribute on resource instance
|
fj.data.Either<ComponentInstanceProperty,StorageOperationStatus> |
updatePropertyValueInResourceInstance(ComponentInstanceProperty resourceInstanceProperty,
String resourceInstanceId,
boolean inTransaction) |
fj.data.Either<ComponentInstance,StorageOperationStatus> |
updateResourceInstance(String serviceId,
NodeTypeEnum nodeType,
String resourceInstanceName,
ComponentInstance resourceInstance) |
fj.data.Either<ComponentInstance,StorageOperationStatus> |
updateResourceInstance(String serviceId,
NodeTypeEnum nodeType,
String resourceInstanceUid,
ComponentInstance resourceInstance,
boolean inTransaction)
update the properties of a given resource instance
|
fj.data.Either<ComponentInstance,TitanOperationStatus> |
updateResourceInstanceInService(String serviceId,
String resourceInstanceUid,
ComponentInstance resourceInstance) |
<ElementData extends GraphNode> |
validateElementExistInGraph(String elementUniqueId,
NodeTypeEnum elementNodeType,
Supplier<Class<ElementData>> elementClassGen,
Wrapper<ElementData> elementDataWrapper,
Wrapper<TitanOperationStatus> errorWrapper) |
fj.data.Either<Boolean,StorageOperationStatus> |
validateParent(String parentId,
String uniqId,
boolean inTransaction) |
fj.data.Either<Boolean,TitanOperationStatus> |
validateParentonGraph(String parentId,
String uniqId,
boolean inTransaction) |
protected TitanOperationStatus |
validateTheTargetResourceInstance(String fetchedRequirementNodeName,
String resourceUid) |
addDefinitionToNodeType, addDefinitionToNodeType, convertConstraints, convertConstraintsToString, findAllResourceElementsDefinitionRecursively, getElementType, getInnerType, getType, getValueFromJsonElement, handleTransactionCommitRollback, isEmptyValue, isNullParam, isValidValue, updateValue, validateAndUpdateComplexValue, validateAndUpdateProperty
public void setTitanGenericDao(TitanGenericDao titanGenericDao)
titanGenericDao
- public fj.data.Either<ComponentInstance,StorageOperationStatus> createComponentInstance(String parentComponentId, NodeTypeEnum nodeType, String instanceNumber, ComponentInstance componentInstance, NodeTypeEnum compInstNodeType, boolean inTransaction)
IComponentInstanceOperation
createComponentInstance
in interface IComponentInstanceOperation
parentComponentId
- - component idinstanceNumber
- - instance number of the component instancepublic fj.data.Either<ComponentInstance,StorageOperationStatus> createComponentInstance(String containerComponentId, NodeTypeEnum containerNodeType, String instanceNumber, ComponentInstance componentInstance, NodeTypeEnum instNodeType)
IComponentInstanceOperation
createComponentInstance
in interface IComponentInstanceOperation
public fj.data.Either<ComponentInstance,StorageOperationStatus> deleteComponentInstance(NodeTypeEnum containerNodeType, String containerComponentId, String resourceInstUid, boolean inTransaction)
IComponentInstanceOperation
deleteComponentInstance
in interface IComponentInstanceOperation
containerComponentId
- - containerComponent idresourceInstUid
- - resource instance uidpublic fj.data.Either<ComponentInstance,StorageOperationStatus> deleteComponentInstance(NodeTypeEnum containerNodeType, String containerComponentId, String resourceInstUid)
deleteComponentInstance
in interface IComponentInstanceOperation
public fj.data.Either<Boolean,StorageOperationStatus> validateParent(String parentId, String uniqId, boolean inTransaction)
validateParent
in interface IComponentInstanceOperation
public fj.data.Either<Boolean,TitanOperationStatus> validateParentonGraph(String parentId, String uniqId, boolean inTransaction)
public fj.data.Either<ComponentInstance,TitanOperationStatus> addComponentInstanceToContainerComponent(String containerComponentId, NodeTypeEnum containerNodeType, String instanceNumber, boolean isCreateLogicaName, ComponentInstance componentInstance, NodeTypeEnum compInstNodeType, boolean allowDeleted)
public fj.data.Either<com.thinkaurelius.titan.core.TitanVertex,TitanOperationStatus> addComponentInstanceToContainerComponent(String containerComponentId, NodeTypeEnum containerNodeType, String instanceNumber, boolean isCreateLogicaName, ComponentInstance componentInstance, NodeTypeEnum compInstNodeType, boolean allowDeleted, com.thinkaurelius.titan.core.TitanVertex metadataVertex)
containerComponentId
- containerNodeType
- instanceNumber
- isCreateLogicaName
- componentInstance
- compInstNodeType
- allowDeleted
- metadataVertex
- public String createComponentInstLogicalName(String instanceNumber, String componentInstanceName)
createComponentInstLogicalName
in interface IComponentInstanceOperation
public fj.data.Either<ComponentInstance,TitanOperationStatus> removeComponentInstanceFromComponent(NodeTypeEnum containerNodeType, String containerComponentId, String componentInstanceUid)
public fj.data.Either<List<RelationshipInstData>,TitanOperationStatus> disconnectResourcesInService(String componentId, NodeTypeEnum nodeType, RequirementCapabilityRelDef requirementDef)
public fj.data.Either<RequirementCapabilityRelDef,StorageOperationStatus> dissociateResourceInstances(String componentId, NodeTypeEnum nodeType, RequirementCapabilityRelDef requirementDef, boolean inTransaction)
IComponentInstanceOperation
dissociateResourceInstances
in interface IComponentInstanceOperation
public fj.data.Either<RequirementCapabilityRelDef,StorageOperationStatus> dissociateResourceInstances(String serviceId, NodeTypeEnum nodeType, RequirementCapabilityRelDef requirementDef)
dissociateResourceInstances
in interface IComponentInstanceOperation
public fj.data.Either<RelationshipInstData,TitanOperationStatus> connectResourcesInService(String componentId, NodeTypeEnum nodeType, String fromResInstanceUid, String toResInstanceUid, RequirementAndRelationshipPair relationPair)
protected TitanOperationStatus validateTheTargetResourceInstance(String fetchedRequirementNodeName, String resourceUid)
public fj.data.Either<ComponentInstance,StorageOperationStatus> updateResourceInstance(String serviceId, NodeTypeEnum nodeType, String resourceInstanceUid, ComponentInstance resourceInstance, boolean inTransaction)
IComponentInstanceOperation
updateResourceInstance
in interface IComponentInstanceOperation
public fj.data.Either<ComponentInstance,StorageOperationStatus> updateResourceInstance(String serviceId, NodeTypeEnum nodeType, String resourceInstanceName, ComponentInstance resourceInstance)
updateResourceInstance
in interface IComponentInstanceOperation
public fj.data.Either<ComponentInstance,TitanOperationStatus> updateResourceInstanceInService(String serviceId, String resourceInstanceUid, ComponentInstance resourceInstance)
public fj.data.Either<org.apache.commons.lang3.tuple.ImmutablePair<List<ComponentInstance>,List<RequirementCapabilityRelDef>>,StorageOperationStatus> getAllComponentInstances(String componentId, NodeTypeEnum containerNodeType, NodeTypeEnum compInstNodeType, boolean inTransaction)
IComponentInstanceOperation
getAllComponentInstances
in interface IComponentInstanceOperation
public fj.data.Either<Boolean,StorageOperationStatus> isComponentInstanceNameExist(String parentComponentId, NodeTypeEnum nodeType, String compInstId, String componentInstName)
isComponentInstanceNameExist
in interface IComponentInstanceOperation
public fj.data.Either<org.apache.commons.lang3.tuple.ImmutablePair<List<ComponentInstance>,List<RequirementCapabilityRelDef>>,TitanOperationStatus> getComponentInstancesOfComponent(String componentId, NodeTypeEnum containerNodeType, NodeTypeEnum compInstNodeType)
componentId
- public fj.data.Either<ComponentInstance,StorageOperationStatus> getFullComponentInstance(ComponentInstance componentInstance, NodeTypeEnum compInstNodeType)
getFullComponentInstance
in interface IComponentInstanceOperation
protected StorageOperationStatus setCompInstArtifactsFromGraph(ComponentInstance resourceInstance)
public void setResourceOperation(ResourceOperation resourceOperation)
resourceOperation
- public fj.data.Either<RequirementCapabilityRelDef,StorageOperationStatus> associateResourceInstances(String componentId, NodeTypeEnum nodeType, RequirementCapabilityRelDef relation, boolean inTransaction)
IComponentInstanceOperation
associateResourceInstances
in interface IComponentInstanceOperation
public fj.data.Either<RequirementCapabilityRelDef,StorageOperationStatus> associateResourceInstances(String componentId, NodeTypeEnum nodeType, RequirementCapabilityRelDef relation)
associateResourceInstances
in interface IComponentInstanceOperation
public fj.data.Either<List<ComponentInstance>,StorageOperationStatus> deleteAllComponentInstances(String containerComponentId, NodeTypeEnum containerNodeType, boolean inTransaction)
deleteAllComponentInstances
in interface IComponentInstanceOperation
public fj.data.Either<List<ComponentInstance>,StorageOperationStatus> deleteAllComponentInstances(String containerComponentId, NodeTypeEnum nodeType)
deleteAllComponentInstances
in interface IComponentInstanceOperation
public fj.data.Either<List<ComponentInstance>,TitanOperationStatus> deleteAllComponentInstancesInternal(String componentId, NodeTypeEnum nodeType)
public fj.data.Either<org.apache.commons.lang3.tuple.ImmutablePair<List<ComponentInstance>,Map<String,String>>,StorageOperationStatus> cloneAllComponentInstancesFromContainerComponent(String componentIdFrom, Component component, NodeTypeEnum containerNodeType, NodeTypeEnum compInstNodeType, LifecycleStateEnum targetLifecycle, Map<String,List<ComponentInstanceInput>> inputsValuesMap)
public fj.data.Either<org.apache.commons.lang3.tuple.ImmutablePair<List<ComponentInstance>,Map<String,String>>,StorageOperationStatus> cloneAllComponentInstancesFromContainerComponent(String componentIdFrom, String componentIdTo, NodeTypeEnum containerNodeType, NodeTypeEnum compInstNodeType, LifecycleStateEnum targetLifecycle, com.thinkaurelius.titan.core.TitanVertex metadataVertex, Resource prevResource, Resource newResource, Map<String,List<ComponentInstanceProperty>> inputsPropMap)
public fj.data.Either<Integer,StorageOperationStatus> increaseAndGetResourceInstanceSpecificCounter(String resourceInstanceId, GraphPropertiesDictionary counterType, boolean inTransaction)
increaseAndGetResourceInstanceSpecificCounter
in interface IComponentInstanceOperation
public fj.data.Either<Integer,StorageOperationStatus> increaseAndGetResourceInstanceSpecificCounter(com.thinkaurelius.titan.core.TitanVertex resourceInstanceVertex, GraphPropertiesDictionary counterType)
public fj.data.Either<List<String>,StorageOperationStatus> getAllComponentInstancesNames(String serviceId, NodeTypeEnum nodeType, boolean inTransaction)
getAllComponentInstancesNames
in interface IComponentInstanceOperation
public fj.data.Either<List<String>,StorageOperationStatus> getAllComponentInstancesNames(String componentId, NodeTypeEnum nodeType)
getAllComponentInstancesNames
in interface IComponentInstanceOperation
public fj.data.Either<ComponentInstance,StorageOperationStatus> getResourceInstanceById(String resourceId)
IComponentInstanceOperation
getResourceInstanceById
in interface IComponentInstanceOperation
public fj.data.Either<List<org.apache.commons.lang3.tuple.ImmutablePair<CapabilityData,GraphEdge>>,TitanOperationStatus> getCapabilities(ComponentInstance compInstance, NodeTypeEnum nodeTypeEnum)
public fj.data.Either<List<org.apache.commons.lang3.tuple.ImmutablePair<RequirementData,GraphEdge>>,TitanOperationStatus> getRequirements(ComponentInstance compInstance, NodeTypeEnum nodeTypeEnum)
public fj.data.Either<Boolean,StorageOperationStatus> isAvailableRequirement(ComponentInstance fromResInstance, RequirementAndRelationshipPair relationPair)
isAvailableRequirement
in interface IComponentInstanceOperation
public fj.data.Either<Boolean,StorageOperationStatus> isAvailableCapabilty(ComponentInstance toResInstance, RequirementAndRelationshipPair relationPair)
isAvailableCapabilty
in interface IComponentInstanceOperation
public <Data> fj.data.Either<List<org.apache.commons.lang3.tuple.ImmutablePair<Data,GraphEdge>>,TitanOperationStatus> getDataFromGraph(org.openecomp.sdc.be.model.operations.impl.ComponentInstanceOperation.DataNodeCollector<Data> dataCollector)
public ComponentOperation getComponentOperation(NodeTypeEnum componentType)
public fj.data.Either<ComponentInstanceProperty,StorageOperationStatus> updatePropertyValueInResourceInstance(ComponentInstanceProperty resourceInstanceProperty, String resourceInstanceId, boolean inTransaction)
updatePropertyValueInResourceInstance
in interface IComponentInstanceOperation
public fj.data.Either<AttributeValueData,TitanOperationStatus> createOrUpdateAttributeOfResourceInstance(ComponentInstanceAttribute attributeInstanceProperty, String resourceInstanceId)
createOrUpdateAttributeOfResourceInstance
in interface IComponentInstanceOperation
public fj.data.Either<PropertyValueData,TitanOperationStatus> updatePropertyOfResourceInstance(ComponentInstanceProperty resourceInstanceProerty, String resourceInstanceId, boolean isValidate)
resourceInstanceProerty
- resourceInstanceId
- public fj.data.Either<InputValueData,TitanOperationStatus> updateInputOfResourceInstance(ComponentInstanceInput resourceInstanceProerty, String resourceInstanceId)
resourceInstanceProerty
- resourceInstanceId
- public <ElementData extends GraphNode> void validateElementExistInGraph(String elementUniqueId, NodeTypeEnum elementNodeType, Supplier<Class<ElementData>> elementClassGen, Wrapper<ElementData> elementDataWrapper, Wrapper<TitanOperationStatus> errorWrapper)
public fj.data.Either<PropertyValueData,TitanOperationStatus> addPropertyToResourceInstance(ComponentInstanceProperty resourceInstanceProperty, String resourceInstanceId, boolean isValidate, Integer index)
resourceInstanceProperty
- resourceInstanceId
- index
- public fj.data.Either<ComponentInstanceProperty,TitanOperationStatus> addPropertyToResourceInstance(ComponentInstanceProperty resourceInstanceProperty, com.thinkaurelius.titan.core.TitanVertex resourceInstanceVertex, boolean isValidate, Integer index, String resourceInstanceId)
public fj.data.Either<InputValueData,TitanOperationStatus> addInputToResourceInstance(ComponentInstanceInput resourceInstanceInput, String resourceInstanceId, Integer index)
resourceInstanceProperty
- resourceInstanceId
- index
- public fj.data.Either<ComponentInstanceAttribute,StorageOperationStatus> addAttributeValueToResourceInstance(ComponentInstanceAttribute resourceInstanceAttribute, String resourceInstanceId, Integer index, boolean inTransaction)
IComponentInstanceOperation
addAttributeValueToResourceInstance
in interface IComponentInstanceOperation
resourceInstanceAttribute
- * @param resourceInstanceId * @param index * @param
inTransactionpublic fj.data.Either<ComponentInstanceAttribute,StorageOperationStatus> updateAttributeValueInResourceInstance(ComponentInstanceAttribute resourceInstanceAttribute, String resourceInstanceId, boolean inTransaction)
IComponentInstanceOperation
updateAttributeValueInResourceInstance
in interface IComponentInstanceOperation
public fj.data.Either<ComponentInstanceProperty,StorageOperationStatus> addPropertyValueToResourceInstance(ComponentInstanceProperty resourceInstanceProperty, String resourceInstanceId, Integer index, boolean inTransaction)
addPropertyValueToResourceInstance
in interface IComponentInstanceOperation
public fj.data.Either<ComponentInstanceProperty,StorageOperationStatus> addPropertyValueToResourceInstance(ComponentInstanceProperty resourceInstanceProperty, String resourceInstanceId, boolean isValidate, Integer index, boolean inTransaction)
addPropertyValueToResourceInstance
in interface IComponentInstanceOperation
public fj.data.Either<ComponentInstanceInput,StorageOperationStatus> addInputValueToResourceInstance(ComponentInstanceInput resourceInstanceInput, String resourceInstanceId, Integer index, boolean inTransaction)
addInputValueToResourceInstance
in interface IComponentInstanceOperation
public fj.data.Either<List<ComponentInstanceProperty>,TitanOperationStatus> getComponentInstancesProperties(List<ComponentInstance> resourceInstances, Map<String,List<PropertyDefinition>> alreadyProcessedResources, Map<String,List<ComponentInstanceProperty>> resourceInstancesProperties, Map<String,org.apache.commons.lang3.tuple.ImmutablePair<ComponentInstance,Integer>> processedInstances, List<String> path)
public fj.data.Either<List<ComponentInstanceProperty>,TitanOperationStatus> getComponentInstanceProperties(ComponentInstance resourceInstance, Map<String,List<PropertyDefinition>> alreadyProcessedResources, Map<String,List<ComponentInstanceProperty>> alreadyProcessedInstances, Map<String,org.apache.commons.lang3.tuple.ImmutablePair<ComponentInstance,Integer>> processedInstances, List<String> path)
public fj.data.Either<List<ComponentInstance>,TitanOperationStatus> findInstancesUnderParentOfInstance(OriginTypeEnum originType, String resourceUid)
public fj.data.Either<Map<String,Map<String,ComponentInstanceProperty>>,TitanOperationStatus> findAllPropertyValueOnInstances(Map<String,org.apache.commons.lang3.tuple.ImmutablePair<ComponentInstance,Integer>> processedInstances)
public fj.data.Either<Map<CapabilityInstData,List<PropertyValueData>>,TitanOperationStatus> addCapabilityPropertyValuesToResourceInstance(String resourceInstanceId, CapabilityDefinition capability, boolean isNewlyCreatedResourceInstance)
resourceInstanceId
- capability
- isNewlyCreatedResourceInstance
- public TitanOperationStatus addCapabilityPropertyValuesToResourceInstance(com.thinkaurelius.titan.core.TitanVertex resourceInstanceVertex, String resourceInstanceId, CapabilityDefinition capability, boolean isNewlyCreatedResourceInstance)
public fj.data.Either<List<PropertyValueData>,TitanOperationStatus> updateCapabilityPropertyValuesOfResourceInstance(String resourceInstanceId, String capabilityId, List<ComponentInstanceProperty> propertyValues)
resourceInstanceId
- capabilityId
- propertyValues
- public fj.data.Either<CapabilityInstData,TitanOperationStatus> deletePropertyValuesOfCapabilityFromResourceInstance(String capabilityId, String resourceInstanceId)
capabilityId
- resourceInstanceId
- public fj.data.Either<List<ComponentInstance>,StorageOperationStatus> getAllComponentInstancesMetadataOnly(String componentId, NodeTypeEnum containerNodeType)
public fj.data.Either<List<CapabilityDefinition>,TitanOperationStatus> updateCapDefPropertyValues(ComponentInstance componentInstance, List<CapabilityDefinition> capabilityDefList)
public fj.data.Either<ComponentInstanceInput,StorageOperationStatus> updateInputValueInResourceInstance(ComponentInstanceInput input, String resourceInstanceId, boolean b)
updateInputValueInResourceInstance
in interface IComponentInstanceOperation
public fj.data.Either<Map<String,ArtifactDefinition>,StorageOperationStatus> fetchCIEnvArtifacts(String componentInstanceId)
fetchCIEnvArtifacts
in interface IComponentInstanceOperation
Copyright © 2017. All rights reserved.