Class SecurityAccessResource


  • @RestController
    @RequestMapping("/v1/securityAccess")
    public class SecurityAccessResource
    extends br.com.anteros.spring.web.resource.AbstractSQLResourceRest<br.com.anteros.security.store.sql.domain.SecurityAccess,​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.SecurityAccess> createConcreteList​(List<br.com.anteros.security.store.sql.domain.SecurityAccess> result)  
      protected br.com.anteros.persistence.session.repository.Page<br.com.anteros.security.store.sql.domain.SecurityAccess> createConcretePage​(List<br.com.anteros.security.store.sql.domain.SecurityAccess> 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.SecurityAccess,​Long> getService()  
      List<br.com.anteros.security.store.sql.domain.SecurityAccess> getSessionsBySystem​(String system)
      Busca os terminais/horário de acesso de um usuário em 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

      • SecurityAccessResource

        public SecurityAccessResource()
    • Method Detail

      • getService

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

        protected br.com.anteros.persistence.session.repository.Page<br.com.anteros.security.store.sql.domain.SecurityAccess> createConcretePage​(List<br.com.anteros.security.store.sql.domain.SecurityAccess> 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.SecurityAccess,​Long>
      • createConcreteList

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

        @RequestMapping(value="/getSecurityAccessBySystem/{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.SecurityAccess> getSessionsBySystem​(@PathVariable("system")
                                                                                                 String system)
                                                                                          throws Exception
        Busca os terminais/horário de acesso de um usuário em um sistema
        Parameters:
        system - Sistema
        Returns:
        Lista
        Throws:
        Exception