package net.conselldemallorca.helium.v3.core.ejb; import javax.annotation.security.RolesAllowed; import javax.ejb.Stateless; import javax.interceptor.Interceptors; import net.conselldemallorca.helium.v3.core.api.service.TascaProgramadaService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor; @Stateless @Interceptors(SpringBeanAutowiringInterceptor.class) public class TascaProgramadaServiceBean implements TascaProgramadaService { @Autowired TascaProgramadaService delegate; @Override @RolesAllowed({"HEL_ADMIN", "HEL_USER", "TOTHOM", "tothom"}) public void comprovarExecucionsMassives() { delegate.comprovarExecucionsMassives(); } @Override @RolesAllowed({"HEL_ADMIN", "HEL_USER", "TOTHOM", "tothom"}) public void comprovarReindexacioAsincrona() { delegate.comprovarReindexacioAsincrona(); } }