@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.
|
br.com.anteros.security.store.sql.domain.User |
getUserByLogin2(String login)
Busca um objeto pelo seu ID.
|
br.com.anteros.security.store.sql.domain.User |
save(br.com.anteros.security.store.sql.domain.User object)
Insere ou atualiza um objeto.
|
addInstanceOfExpression, addRelationShipExpression, convertToSortExpression, count, exists, exists, find, find, find, find, findAll, findAll, findAll, findAll, findAllByRelationShip, findByNamedQuery, findByNamedQuery, findByNamedQuery, findByNamedQuery, findCode, findOne, getEntityPath, removeAll, removeById, validate, validateGroup@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="/",
method={POST,PUT})
@ResponseStatus(value=OK)
@ResponseBody
@Transactional(rollbackFor=java.lang.Throwable.class,
propagation=REQUIRED,
readOnly=false,
transactionManager="transactionManagerSQL")
public br.com.anteros.security.store.sql.domain.User save(@RequestBody
br.com.anteros.security.store.sql.domain.User object)
throws Exception
@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.Exception@RequestMapping(value="/getUserByLogin",
method=POST)
@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 getUserByLogin2(@RequestBody
String login)
throws Exception
id - Identificador do objeto.ExceptionCopyright © 2021 Anteros Tecnologia. All rights reserved.