@Component(value="product-operation") public class ProductOperation extends ComponentOperation implements IProductOperation
additionalInformationOperation, applicationDataTypeCache, artifactOperation, capabilityOperation, componentInstanceOperation, elementOperation, groupOperation, inputOperation, inputsOperation, prettyJson, requirementOperation, titanGenericDao
Constructor and Description |
---|
ProductOperation() |
___setComponentInstancesPropertiesFromGraph, __getLastVersion, addAdditionalInformation, addAdditionalInformation, addComponentInternalFields, associateArtifactsToComponent, associateGroupingsToComponent, associateInputsToComponent, associateInputsToComponent, associateMetadataToComponent, buildFullName, cloneComponent, collectDataFromComponentsInstances, convertDataToDefComponentLevel, createNewTagsList, createSpecificArtifactList, createTagNodesOnGraph, createTagsForComponent, deleteAdditionalInformation, deleteGroups, fetchByCategoryOrSubCategoryName, fetchByCategoryOrSubCategoryUid, findCategory, findGrouping, findGroupingsForComponent, findSubCategory, findUser, findUserVertex, generateUUID, getAllComponentInstncesMetadata, getAllComponentsMarkedForDeletion, getCapabilities, getComponentArtifactsForDelete, getComponentByLabelAndId, getComponentCatalogData, getComponentFromCacheIfUpToDate, getComponentInstanceCoutner, getComponentsFromCacheForCatalog, getComponentsFromCacheForCatalog, getFollowedComponent, getInvariantUUID, getLastVersion, getLastVersion, getLatestComponentByUuid, getLatestComponentMetadataByUuid, getLatestVersionNotAbstractComponents, getLatestVersionNotAbstractComponentsMetadataOnly, getListOfHighestComponents, getRequirements, getTesterFollowedComponent, getVersionList, getVersionList, handleNode, increaseAndGetComponentInstanceCounter, internalMarkComponentToDelete, isComponentExist, isComponentInUse, moveCategoryEdge, removeArtifactsFromComponent, removeInputsFromComponent, retrieveComponentsFromNodes, setArtifactFromGraph, setCapabilitiesFromGraph, setComponentCreatorFromGraph, setComponentInputsFromGraph, setComponentInstanceCounter, setComponentInstancesFromGraph, setComponentInstancesInputsFromGraph, setComponentInstancesPropertiesFromGraph, setComponentLastModifierFromGraph, setGroupsFromGraph, setRequirementsFromGraph, updateComponent, updateComponentFilterResult, validateComponentNameUniqueness, validateResourceNameUniqueness, validateServiceNameUniqueness, validateToscaResourceNameUniqueness
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentArtifactsForDelete, getComponentByLabelAndId
protected ComponentMetadataData getMetaDataFromComponent(Component component)
getMetaDataFromComponent
in class ComponentOperation
public <T> fj.data.Either<T,StorageOperationStatus> getComponent(String id, boolean inTransaction)
getComponent
in interface IComponentOperation
getComponent
in class ComponentOperation
protected <T> fj.data.Either<T,StorageOperationStatus> getComponentByNameAndVersion(String name, String version, Map<String,Object> additionalParams, boolean inTransaction)
getComponentByNameAndVersion
in class ComponentOperation
public <T> fj.data.Either<T,StorageOperationStatus> getLightComponent(String id, boolean inTransaction)
getLightComponent
in interface IComponentOperation
getLightComponent
in class ComponentOperation
public <T> fj.data.Either<List<T>,StorageOperationStatus> getFilteredComponents(Map<FilterKeyEnum,String> filters, boolean inTransaction)
getFilteredComponents
in interface IComponentOperation
getFilteredComponents
in class ComponentOperation
public <T> fj.data.Either<T,StorageOperationStatus> updateComponent(T component, boolean inTransaction)
updateComponent
in class ComponentOperation
public fj.data.Either<Component,StorageOperationStatus> deleteComponent(String id, boolean inTransaction)
deleteComponent
in class ComponentOperation
public fj.data.Either<List<ArtifactDefinition>,StorageOperationStatus> getAdditionalArtifacts(String resourceId, boolean recursively, boolean inTransaction)
getAdditionalArtifacts
in class ComponentOperation
public <T extends Component> fj.data.Either<T,StorageOperationStatus> getComponent(String id, Class<T> clazz)
getComponent
in interface IComponentOperation
public fj.data.Either<Product,StorageOperationStatus> deleteProduct(String productId, boolean inTransaction)
deleteProduct
in interface IProductOperation
public fj.data.Either<List<Product>,StorageOperationStatus> getProductCatalogData(boolean inTransaction)
getProductCatalogData
in interface IProductOperation
public fj.data.Either<Product,StorageOperationStatus> createProduct(Product product)
createProduct
in interface IProductOperation
public fj.data.Either<Product,StorageOperationStatus> createProduct(Product product, boolean inTransaction)
createProduct
in interface IProductOperation
public boolean isComponentExist(String id)
isComponentExist
in class ComponentOperation
public <T> fj.data.Either<T,StorageOperationStatus> cloneComponent(T other, String version, LifecycleStateEnum targetLifecycle, boolean inTransaction)
cloneComponent
in class ComponentOperation
public Product getDefaultComponent()
getDefaultComponent
in class ComponentOperation
protected <T extends Component> StorageOperationStatus updateDerived(Component component, Component currentComponent, ComponentMetadataData componentData, Class<T> clazz)
updateDerived
in class ComponentOperation
public fj.data.Either<Integer,StorageOperationStatus> increaseAndGetComponentInstanceCounter(String componentId, boolean inTransaction)
increaseAndGetComponentInstanceCounter
in class ComponentOperation
protected StorageOperationStatus validateCategories(Component currentComponent, Component component, ComponentMetadataData componentData, NodeTypeEnum type)
validateCategories
in class ComponentOperation
public fj.data.Either<List<Product>,StorageOperationStatus> getFollowed(String userId, Set<LifecycleStateEnum> lifecycleStates, Set<LifecycleStateEnum> lastStateStates, boolean inTransaction)
getFollowed
in interface IProductOperation
public fj.data.Either<Component,StorageOperationStatus> getMetadataComponent(String id, boolean inTransaction)
getMetadataComponent
in class ComponentOperation
public fj.data.Either<Boolean,StorageOperationStatus> validateComponentNameExists(String productName)
validateComponentNameExists
in class ComponentOperation
public fj.data.Either<Component,StorageOperationStatus> markComponentToDelete(Component componentToDelete, boolean inTransaction)
markComponentToDelete
in class ComponentOperation
public void rollback()
rollback
in interface IProductOperation
public void commit()
commit
in interface IProductOperation
public fj.data.Either<Boolean,StorageOperationStatus> isComponentInUse(String componentId)
isComponentInUse
in class ComponentOperation
public fj.data.Either<List<String>,StorageOperationStatus> getAllComponentsMarkedForDeletion()
getAllComponentsMarkedForDeletion
in class ComponentOperation
public fj.data.Either<Product,StorageOperationStatus> getProductByNameAndVersion(String productName, String productVersion, boolean inTransaction)
public <T> fj.data.Either<T,StorageOperationStatus> getComponent(String id, ComponentParametersView componentParametersView, boolean inTransaction)
getComponent
in class ComponentOperation
public fj.data.Either<Product,StorageOperationStatus> updateProduct(Product product, boolean inTransaction, ComponentParametersView filterResultView)
protected <T> fj.data.Either<T,StorageOperationStatus> updateComponentFilterResult(T component, boolean inTransaction, ComponentParametersView filterResultView)
updateComponentFilterResult
in class ComponentOperation
Copyright © 2017. All rights reserved.