Class SecuritySessionResource


  • @RestController
    @RequestMapping("/v1/securitySession")
    public class SecuritySessionResource
    extends br.com.anteros.spring.web.resource.AbstractSQLResourceRest<br.com.anteros.security.store.sql.domain.SecuritySession,​Long>
    Generated by Anteros Generator Maven Plugin at 29/12/2019 08:16:42
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected br.com.anteros.security.spring.AnterosSecurityManager anterosSecurityManager  
      • Fields inherited from class br.com.anteros.spring.web.resource.AbstractSQLResourceRest

        log
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected List<br.com.anteros.security.store.sql.domain.SecuritySession> createConcreteList​(List<br.com.anteros.security.store.sql.domain.SecuritySession> result)  
      protected br.com.anteros.persistence.session.repository.Page<br.com.anteros.security.store.sql.domain.SecuritySession> createConcretePage​(List<br.com.anteros.security.store.sql.domain.SecuritySession> content, br.com.anteros.persistence.session.repository.PageRequest pageRequest, long totalElements)  
      br.com.anteros.persistence.session.service.SQLService<br.com.anteros.security.store.sql.domain.SecuritySession,​Long> getService()  
      List<br.com.anteros.security.store.sql.domain.SecuritySession> getSessionsBySystem​(String system)
      Busca as sessões de um sistema
      • Methods inherited from class br.com.anteros.spring.web.resource.AbstractSQLResourceRest

        addInstanceOfExpression, addRelationShipExpression, convertToSortExpression, count, exists, exists, find, find, find, find, findAll, findAll, findAll, findAll, findAllByRelationShip, findByNamedQuery, findByNamedQuery, findByNamedQuery, findByNamedQuery, findCode, findOne, getEntityPath, removeAll, removeById, save, validate, validateGroup
    • Field Detail

      • anterosSecurityManager

        @Autowired
        @Lazy
        protected br.com.anteros.security.spring.AnterosSecurityManager anterosSecurityManager
    • Constructor Detail

      • SecuritySessionResource

        public SecuritySessionResource()
    • Method Detail

      • getService

        public br.com.anteros.persistence.session.service.SQLService<br.com.anteros.security.store.sql.domain.SecuritySession,​Long> getService()
        Specified by:
        getService in class br.com.anteros.spring.web.resource.AbstractSQLResourceRest<br.com.anteros.security.store.sql.domain.SecuritySession,​Long>
      • createConcretePage

        protected br.com.anteros.persistence.session.repository.Page<br.com.anteros.security.store.sql.domain.SecuritySession> createConcretePage​(List<br.com.anteros.security.store.sql.domain.SecuritySession> content,
                                                                                                                                                  br.com.anteros.persistence.session.repository.PageRequest pageRequest,
                                                                                                                                                  long totalElements)
        Overrides:
        createConcretePage in class br.com.anteros.spring.web.resource.AbstractSQLResourceRest<br.com.anteros.security.store.sql.domain.SecuritySession,​Long>
      • createConcreteList

        protected List<br.com.anteros.security.store.sql.domain.SecuritySession> createConcreteList​(List<br.com.anteros.security.store.sql.domain.SecuritySession> result)
        Overrides:
        createConcreteList in class br.com.anteros.spring.web.resource.AbstractSQLResourceRest<br.com.anteros.security.store.sql.domain.SecuritySession,​Long>
      • getSessionsBySystem

        @RequestMapping(value="/getSessionsBySystem/{system}",
                        method=GET)
        @ResponseStatus(OK)
        @ResponseBody
        @Transactional(rollbackFor=java.lang.Throwable.class,
                       propagation=REQUIRED,
                       readOnly=true,
                       transactionManager="transactionManagerSQL")
        public List<br.com.anteros.security.store.sql.domain.SecuritySession> getSessionsBySystem​(@PathVariable("system")
                                                                                                  String system)
                                                                                           throws Exception
        Busca as sessões de um sistema
        Parameters:
        system - Sistema
        Returns:
        Lista de sessões
        Throws:
        Exception