ManageLogicalDeploymentImpl.java 文件源码

java
阅读 16 收藏 0 点赞 0 评论 0

项目:elpaaso-core 作者:
@Override
@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, rollbackForClassName = { "BusinessException" })
public LogicalDeployment checkOverallConsistencyAndUpdateLogicalDeployment(LogicalDeployment logicalDeployment) throws BusinessException {
    // First check logical deployment has been persisted
    LogicalDeployment persisted = logicalDeploymentRepository.findOne(logicalDeployment.getId());
    if (persisted == null) {
        String message = "LogicalDeployment[" + logicalDeployment.getName() + "] does not exist";
        log.error(message);
        throw new ObjectNotFoundException(message);
    }

    // check consistency and update any model element which might be
    // generated/modified during check
    // typically resolved maven references are updated on execution nodes
    // and logical services
    checkOverallConsistency(logicalDeployment, true);

    // if no error, then persist our updates
    return logicalDeploymentRepository.save(logicalDeployment);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号