public abstract class ComponentInstanceBusinessLogic extends BaseBusinessLogic
applicationDataTypeCache, artifactOperation, attributeOperation, componentsUtils, elementDao, graphLockOperation, groupTypeOperation, productOperation, resourceOperation, serviceOperation, titanGenericDao, userAdmin
Constructor and Description |
---|
ComponentInstanceBusinessLogic() |
Modifier and Type | Method and Description |
---|---|
protected fj.data.Either<ActionStatus,ResponseFormat> |
addComponentInstanceArtifacts(Component containerComponent,
ComponentInstance componentInstance,
String userId,
boolean inTransaction,
Map<String,String> existingEnvVersions)
addResourceInstanceArtifacts - add artifacts (HEAT_ENV) to resource instance The instance artifacts are generated from the resource's artifacts
|
fj.data.Either<RequirementCapabilityRelDef,ResponseFormat> |
associateRIToRI(String componentId,
String userId,
RequirementCapabilityRelDef requirementDef,
ComponentTypeEnum componentTypeEnum) |
fj.data.Either<RequirementCapabilityRelDef,ResponseFormat> |
associateRIToRI(String componentId,
String userId,
RequirementCapabilityRelDef requirementDef,
ComponentTypeEnum componentTypeEnum,
boolean inTransaction,
boolean needLock,
boolean createNewTransaction) |
fj.data.Either<RequirementCapabilityRelDef,ResponseFormat> |
associateRIToRIOnGraph(String componentId,
RequirementCapabilityRelDef requirementDef,
ComponentTypeEnum componentTypeEnum,
boolean inTransaction) |
fj.data.Either<ComponentInstance,ResponseFormat> |
changeComponentInstanceVersion(String containerComponentParam,
String containerComponentId,
String componentInstanceId,
String userId,
ComponentInstance newComponentInstance) |
fj.data.Either<CreateAndAssotiateInfo,ResponseFormat> |
createAndAssociateRIToRI(String containerComponentParam,
String containerComponentId,
String userId,
CreateAndAssotiateInfo createAndAssotiateInfo) |
fj.data.Either<ComponentInstance,ResponseFormat> |
createComponentInstance(String containerComponentParam,
String containerComponentId,
String userId,
ComponentInstance resourceInstance) |
fj.data.Either<ComponentInstance,ResponseFormat> |
createComponentInstance(String containerComponentParam,
String containerComponentId,
String userId,
ComponentInstance resourceInstance,
boolean inTransaction,
boolean needLock,
boolean createNewTransaction) |
fj.data.Either<ComponentInstance,ResponseFormat> |
createComponentInstanceOnGraph(String containerComponentParam,
Component containerComponent,
Component origComponent,
ComponentInstance componentInstance,
String userId,
boolean needLock,
boolean inTransaction) |
fj.data.Either<ComponentInstanceAttribute,ResponseFormat> |
createOrUpdateAttributeValue(ComponentTypeEnum componentTypeEnum,
String componentId,
String resourceInstanceId,
ComponentInstanceAttribute attribute,
String userId)
Create Or Updates Attribute Instance
|
fj.data.Either<ComponentInstanceInput,ResponseFormat> |
createOrUpdateInputValue(ComponentTypeEnum componentTypeEnum,
String componentId,
String resourceInstanceId,
ComponentInstanceInput inputProperty,
String userId) |
fj.data.Either<ComponentInstanceProperty,ResponseFormat> |
createOrUpdatePropertyValue(ComponentTypeEnum componentTypeEnum,
String componentId,
String resourceInstanceId,
ComponentInstanceProperty property,
String userId) |
fj.data.Either<ComponentInstance,ResponseFormat> |
deleteComponentInstance(String containerComponentParam,
String containerComponentId,
String resourceInstanceId,
String userId) |
fj.data.Either<ComponentInstanceProperty,ResponseFormat> |
deletePropertyValue(ComponentTypeEnum componentTypeEnum,
String serviceId,
String resourceInstanceId,
String propertyValueId,
String userId) |
fj.data.Either<RequirementCapabilityRelDef,ResponseFormat> |
dissociateRIFromRI(String componentId,
String userId,
RequirementCapabilityRelDef requirementDef,
ComponentTypeEnum componentTypeEnum) |
protected abstract ComponentOperation |
getCompInstOriginComponentOperation() |
protected abstract ComponentTypeEnum |
getComponentTypeOfComponentInstance() |
protected abstract ComponentOperation |
getContainerComponentOperation() |
protected abstract NodeTypeEnum |
getNodeTypeOfComponentInstanceOrigin() |
fj.data.Either<ComponentInstance,ResponseFormat> |
updateComponentInstance(String containerComponentParam,
Component containerComponent,
Component origComponent,
String componentInstanceId,
ComponentInstance componentInstance,
boolean needLock,
boolean inTransaction) |
fj.data.Either<List<ComponentInstance>,ResponseFormat> |
updateComponentInstance(String containerComponentParam,
String containerComponentId,
String userId,
List<ComponentInstance> componentInstanceList,
boolean needLock,
boolean createNewTransaction) |
fj.data.Either<ComponentInstance,ResponseFormat> |
updateComponentInstance(String containerComponentParam,
String containerComponentId,
String componentInstanceId,
String userId,
ComponentInstance componentInstance) |
fj.data.Either<ComponentInstance,ResponseFormat> |
updateComponentInstance(String containerComponentParam,
String containerComponentId,
String componentInstanceId,
String userId,
ComponentInstance componentInstance,
boolean inTransaction,
boolean needLock,
boolean createNewTransaction) |
protected abstract fj.data.Either<Boolean,ResponseFormat> |
validateAllowedToContainCompInstances(Component containerComponent) |
protected void |
validateIncrementCounter(String resourceInstanceId,
GraphPropertiesDictionary counterType,
Wrapper<Integer> instaceCounterWrapper,
Wrapper<ResponseFormat> errorWrapper) |
commitOrRollback, getAllDataTypes, getComponentOperation, getComponentOperationByParentComponentType, getComponentTypeByParentComponentType, getIComponentOperation, getResource, getType, handleDefaultValue, lockComponent, lockComponent, lockComponentByName, setComponentsUtils, setGraphLockOperation, setTitanGenericDao, setUserAdmin, unlockComponent, unlockComponent, validateCanWorkOnComponent, validateCanWorkOnComponent, validateComponentExists, validateComponentExists, validateComponentExistsByFilter, validateComponentLock, validateComponentType, validateComponentTypeEnum, validateJsonBody, validatePropertyDefaultValue, validateUserExist, validateUserExists, validateUserExists, validateUserExistsActionStatus, validateUserNotEmpty, validateUserRole
public fj.data.Either<ComponentInstance,ResponseFormat> createComponentInstance(String containerComponentParam, String containerComponentId, String userId, ComponentInstance resourceInstance)
public fj.data.Either<ComponentInstance,ResponseFormat> createComponentInstance(String containerComponentParam, String containerComponentId, String userId, ComponentInstance resourceInstance, boolean inTransaction, boolean needLock, boolean createNewTransaction)
public fj.data.Either<CreateAndAssotiateInfo,ResponseFormat> createAndAssociateRIToRI(String containerComponentParam, String containerComponentId, String userId, CreateAndAssotiateInfo createAndAssotiateInfo)
public fj.data.Either<ComponentInstance,ResponseFormat> createComponentInstanceOnGraph(String containerComponentParam, Component containerComponent, Component origComponent, ComponentInstance componentInstance, String userId, boolean needLock, boolean inTransaction)
protected fj.data.Either<ActionStatus,ResponseFormat> addComponentInstanceArtifacts(Component containerComponent, ComponentInstance componentInstance, String userId, boolean inTransaction, Map<String,String> existingEnvVersions)
componentInstance
- userId
- existingEnvVersions
- containerComponentId
- public fj.data.Either<ComponentInstance,ResponseFormat> updateComponentInstance(String containerComponentParam, String containerComponentId, String componentInstanceId, String userId, ComponentInstance componentInstance)
public fj.data.Either<ComponentInstance,ResponseFormat> updateComponentInstance(String containerComponentParam, String containerComponentId, String componentInstanceId, String userId, ComponentInstance componentInstance, boolean inTransaction, boolean needLock, boolean createNewTransaction)
public fj.data.Either<List<ComponentInstance>,ResponseFormat> updateComponentInstance(String containerComponentParam, String containerComponentId, String userId, List<ComponentInstance> componentInstanceList, boolean needLock, boolean createNewTransaction)
public fj.data.Either<ComponentInstance,ResponseFormat> updateComponentInstance(String containerComponentParam, Component containerComponent, Component origComponent, String componentInstanceId, ComponentInstance componentInstance, boolean needLock, boolean inTransaction)
public fj.data.Either<ComponentInstance,ResponseFormat> deleteComponentInstance(String containerComponentParam, String containerComponentId, String resourceInstanceId, String userId)
public fj.data.Either<RequirementCapabilityRelDef,ResponseFormat> associateRIToRI(String componentId, String userId, RequirementCapabilityRelDef requirementDef, ComponentTypeEnum componentTypeEnum)
public fj.data.Either<RequirementCapabilityRelDef,ResponseFormat> associateRIToRI(String componentId, String userId, RequirementCapabilityRelDef requirementDef, ComponentTypeEnum componentTypeEnum, boolean inTransaction, boolean needLock, boolean createNewTransaction)
public fj.data.Either<RequirementCapabilityRelDef,ResponseFormat> associateRIToRIOnGraph(String componentId, RequirementCapabilityRelDef requirementDef, ComponentTypeEnum componentTypeEnum, boolean inTransaction)
public fj.data.Either<RequirementCapabilityRelDef,ResponseFormat> dissociateRIFromRI(String componentId, String userId, RequirementCapabilityRelDef requirementDef, ComponentTypeEnum componentTypeEnum)
public fj.data.Either<ComponentInstanceAttribute,ResponseFormat> createOrUpdateAttributeValue(ComponentTypeEnum componentTypeEnum, String componentId, String resourceInstanceId, ComponentInstanceAttribute attribute, String userId)
componentTypeEnum
- componentId
- resourceInstanceId
- attribute
- userId
- public fj.data.Either<ComponentInstanceProperty,ResponseFormat> createOrUpdatePropertyValue(ComponentTypeEnum componentTypeEnum, String componentId, String resourceInstanceId, ComponentInstanceProperty property, String userId)
public fj.data.Either<ComponentInstanceInput,ResponseFormat> createOrUpdateInputValue(ComponentTypeEnum componentTypeEnum, String componentId, String resourceInstanceId, ComponentInstanceInput inputProperty, String userId)
public fj.data.Either<ComponentInstanceProperty,ResponseFormat> deletePropertyValue(ComponentTypeEnum componentTypeEnum, String serviceId, String resourceInstanceId, String propertyValueId, String userId)
public fj.data.Either<ComponentInstance,ResponseFormat> changeComponentInstanceVersion(String containerComponentParam, String containerComponentId, String componentInstanceId, String userId, ComponentInstance newComponentInstance)
protected abstract fj.data.Either<Boolean,ResponseFormat> validateAllowedToContainCompInstances(Component containerComponent)
protected abstract NodeTypeEnum getNodeTypeOfComponentInstanceOrigin()
protected abstract ComponentTypeEnum getComponentTypeOfComponentInstance()
protected abstract ComponentOperation getContainerComponentOperation()
protected abstract ComponentOperation getCompInstOriginComponentOperation()
protected void validateIncrementCounter(String resourceInstanceId, GraphPropertiesDictionary counterType, Wrapper<Integer> instaceCounterWrapper, Wrapper<ResponseFormat> errorWrapper)
Copyright © 2017. All rights reserved.