@Component(value="serviceBusinessLogic") public class ServiceBusinessLogic extends ComponentBusinessLogic
artifactsBusinessLogic, componentCache
applicationDataTypeCache, artifactOperation, attributeOperation, componentsUtils, graphLockOperation, groupOperation, groupTypeOperation, productOperation, propertyOperation, resourceOperation, serviceOperation, titanGenericDao, userAdmin
Constructor and Description |
---|
ServiceBusinessLogic() |
checkComponentFieldsForOverrideAttempt, deleteMarkedComponents, getComponent, getLatestVersionNotAbstractComponents, getLatestVersionNotAbstractComponentsUidOnly, getRequirementsAndCapabilities, getToscaModelByComponentUuid, markComponentToDelete, populateToscaArtifacts, saveToscaArtifactPayload, setToscaArtifactsPlaceHolders, validateAndUpdateDescription, validateAndUpdateIcon, validateAndUpdateProjectCode, validateComponentDescription, validateComponentFieldsBeforeCreate, validateComponentName, validateComponentNameUnique, validateComponentTags, validateContactId, validateDescriptionAndCleanup, validateIcon, validateProjectCode, validateTagPattern, validateTagsListAndRemoveDuplicates, validateUser, validateUserRole
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<Service,ResponseFormat> changeServiceDistributionState(String serviceId, String state, LifecycleChangeInfoWithAction commentObj, User user)
public fj.data.Either<List<Map<String,Object>>,ResponseFormat> getComponentAuditRecords(String componentVersion, String componentUUID, String userId)
public fj.data.Either<Service,ResponseFormat> createService(Service service, User user)
service
- - Serviceuser
- - modifier data (userId)public fj.data.Either<Map<String,Boolean>,ResponseFormat> validateServiceNameExists(String serviceName, String userId)
public void setElementDao(IElementOperation elementDao)
public void setServiceOperation(ServiceOperation serviceOperation)
public void setCassandraAuditingDao(AuditCassandraDao auditingDao)
public ArtifactsBusinessLogic getArtifactBl()
public void setArtifactBl(ArtifactsBusinessLogic artifactBl)
public fj.data.Either<Service,ResponseFormat> updateServiceMetadata(String serviceId, Service serviceUpdate, User user)
public fj.data.Either<Boolean,ResponseFormat> validateServiceCategory(List<CategoryDefinition> list)
public ResponseFormat deleteService(String serviceId, User user)
public ResponseFormat deleteServiceByNameAndVersion(String serviceName, String version, User user)
public fj.data.Either<Service,ResponseFormat> getService(String serviceId, User user)
public fj.data.Either<Service,ResponseFormat> getServiceByNameAndVersion(String serviceName, String serviceVersion, String userId)
public fj.data.Either<Service,ResponseFormat> activateDistribution(String serviceId, String envName, User modifier, javax.servlet.http.HttpServletRequest request)
public fj.data.Either<Service,ResponseFormat> updateDistributionStatusForActivation(Service service, User user, DistributionStatusEnum state)
public fj.data.Either<Service,ResponseFormat> markDistributionAsDeployed(String serviceId, String did, User user)
public fj.data.Either<Service,ResponseFormat> generateVfModuleArtifacts(Service service, User modifier, boolean shouldLock)
public fj.data.Either<Service,ResponseFormat> generateHeatEnvArtifacts(Service service, User modifier, boolean shouldLock)
protected fj.data.Either<Boolean,ResponseFormat> checkDistributionSuccess(String did, User user, AuditingActionEnum auditAction, Service service)
public void setDeploymentArtifactsPlaceHolder(Component component, User user)
setDeploymentArtifactsPlaceHolder
in class ComponentBusinessLogic
public fj.data.Either<List<String>,ResponseFormat> deleteMarkedComponents()
deleteMarkedComponents
in class ComponentBusinessLogic
public ComponentInstanceBusinessLogic getComponentInstanceBL()
getComponentInstanceBL
in class ComponentBusinessLogic
public fj.data.Either<List<ComponentInstance>,ResponseFormat> getComponentInstancesFilteredByPropertiesAndInputs(String componentId, ComponentTypeEnum componentTypeEnum, String userId, String searchText)
getComponentInstancesFilteredByPropertiesAndInputs
in class ComponentBusinessLogic
public ICacheMangerOperation getCacheManagerOperation()
public void setCacheManagerOperation(ICacheMangerOperation cacheManagerOperation)
Copyright © 2017. All rights reserved.