Loading src/main/java/it/inaf/oats/vospace/ImmutableService.javadeleted 100644 → 0 +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 } } Loading
src/main/java/it/inaf/oats/vospace/ImmutableService.javadeleted 100644 → 0 +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 } }