@RestController @RequestMapping(value="/v1/user") public class UserResource extends br.com.anteros.spring.web.resource.AbstractSQLResourceRest<br.com.anteros.security.store.sql.domain.User,Long>
| Modifier and Type | Field and Description |
|---|---|
protected br.com.anteros.security.spring.AnterosSecurityManager |
anterosSecurityManager |
| Constructor and Description |
|---|
UserResource() |
| Modifier and Type | Method and Description |
|---|---|
protected List<br.com.anteros.security.store.sql.domain.User> |
createConcreteList(List<br.com.anteros.security.store.sql.domain.User> result) |
protected br.com.anteros.persistence.session.repository.Page<br.com.anteros.security.store.sql.domain.User> |
createConcretePage(List<br.com.anteros.security.store.sql.domain.User> 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.User,Long> |
getService() |
br.com.anteros.security.store.sql.domain.User |
getUserByLogin(String login)
Busca um objeto pelo seu ID.
|
@Autowired @Lazy protected br.com.anteros.security.spring.AnterosSecurityManager anterosSecurityManager
public br.com.anteros.persistence.session.service.SQLService<br.com.anteros.security.store.sql.domain.User,Long> getService()
getService in class br.com.anteros.spring.web.resource.AbstractSQLResourceRest<br.com.anteros.security.store.sql.domain.User,Long>protected br.com.anteros.persistence.session.repository.Page<br.com.anteros.security.store.sql.domain.User> createConcretePage(List<br.com.anteros.security.store.sql.domain.User> content, br.com.anteros.persistence.session.repository.PageRequest pageRequest, long totalElements)
createConcretePage in class br.com.anteros.spring.web.resource.AbstractSQLResourceRest<br.com.anteros.security.store.sql.domain.User,Long>protected List<br.com.anteros.security.store.sql.domain.User> createConcreteList(List<br.com.anteros.security.store.sql.domain.User> result)
createConcreteList in class br.com.anteros.spring.web.resource.AbstractSQLResourceRest<br.com.anteros.security.store.sql.domain.User,Long>@RequestMapping(value="/getUserByLogin/{login}",
method=GET)
@ResponseStatus(value=OK)
@ResponseBody
@Transactional(rollbackFor=java.lang.Throwable.class,
propagation=REQUIRED,
readOnly=true,
transactionManager="transactionManagerSQL")
public br.com.anteros.security.store.sql.domain.User getUserByLogin(@PathVariable(value="login")
String login)
throws Exception
id - Identificador do objeto.ExceptionCopyright © 2020 Anteros Tecnologia. All rights reserved.