br.com.anteros.commons.services.rest.service.impl.ResourceServiceImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Anteros-Services-RestSQL Show documentation
Show all versions of Anteros-Services-RestSQL Show documentation
Anteros Services REST SQL for Java.
The newest version!
package br.com.anteros.commons.services.rest.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import br.com.anteros.commons.services.rest.repository.ResourceRepository;
import br.com.anteros.commons.services.rest.service.ResourceService;
import br.com.anteros.persistence.dsl.osql.types.OrderSpecifier;
import br.com.anteros.persistence.session.repository.Page;
import br.com.anteros.persistence.session.repository.PageRequest;
import br.com.anteros.security.store.sql.domain.Resource;
import br.com.anteros.spring.service.SpringSQLService;
/**
* Generated by Anteros Generator Maven Plugin at 23/10/2019 10:25:34
**/
@Service("resourceService")
@Scope("prototype")
public class ResourceServiceImpl extends SpringSQLService implements ResourceService {
@Autowired
private ResourceRepository resourceRepository;
@Override
public Page getResourcesBySystem(String system,PageRequest pageRequest, String fieldsToForceLazy, String sort) {
return resourceRepository.getResourcesBySystem(system, pageRequest,fieldsToForceLazy,sort);
}
}