Skip to content
Snippets Groups Projects
Commit 1f031420 authored by Nicola Fulvio Calabria's avatar Nicola Fulvio Calabria
Browse files

removed immutable service

parent 30c3bb86
No related branches found
No related tags found
No related merge requests found
Pipeline #13894 passed
/*
* 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
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment