Commit 1f031420 authored by Nicola Fulvio Calabria's avatar Nicola Fulvio Calabria
Browse files

removed immutable service

parent 30c3bb86
Loading
Loading
Loading
Loading
Loading
+0 −40
Original line number Diff line number Diff line
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package it.inaf.oats.vospace;

import it.inaf.ia2.aa.data.User;
import it.inaf.oats.vospace.persistence.NodeDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author Nicola Fulvio Calabria <nicola.calabria at inaf.it>
 */
@Service
@EnableTransactionManagement
public class ImmutableService {

    @Autowired
    protected NodeDAO nodeDao;

    @Value("${vospace-authority}")
    protected String authority;

    @Transactional(rollbackFor = {Exception.class}, isolation = Isolation.REPEATABLE_READ)
    public void setBranchImmutable(String rootNodeURI, boolean setImmutable, User user) {
        
        String rootNodeVosPath = URIUtils.returnVosPathFromNodeURI(rootNodeURI, authority);
        
        // Check if branch is busy
        
    }

}