| Package | Description |
|---|---|
| dmv.spring.demo.model.entity |
Persistence layer entities
|
| dmv.spring.demo.model.entity.apidocs |
Swagger (API documenting tool) for entities
|
| dmv.spring.demo.model.entity.security |
Security related entities
|
| dmv.spring.demo.model.repository |
Persistence layer interfaces
|
| dmv.spring.demo.model.repository.jdbc |
JDBC implementors of Persistence layer interfaces
|
| dmv.spring.demo.rest.representation |
DTO or entity representational objects
|
| dmv.spring.demo.rest.representation.assembler |
DTO assemblers
|
| Modifier and Type | Method and Description |
|---|---|
Role |
Role.copy()
For polymorphic defensive copying.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Role> |
User.getRoles() |
| Modifier and Type | Method and Description |
|---|---|
void |
User.setRoles(Set<Role> roles) |
| Constructor and Description |
|---|
Role(Role role)
Copies over fields from given Role
|
| Modifier and Type | Method and Description |
|---|---|
void |
UserApiDocs.setRoles(Set<Role> roles) |
| Modifier and Type | Class and Description |
|---|---|
class |
CustomGrantedAuthority
Comparable
Role wrapper with GrantedAuthority flavor. |
| Constructor and Description |
|---|
CustomGrantedAuthority(Role role)
Create GrantedAuthority object from given
Role |
| Modifier and Type | Method and Description |
|---|---|
Role |
RoleRepository.findByShortName(String shortName)
Find and return Role object with given short name (case insensitive).
|
| Modifier and Type | Method and Description |
|---|---|
Set<User> |
RoleRepository.getUsers(Role role)
Return all users that share given Role, or an empty Set if no such users.
|
| Modifier and Type | Field and Description |
|---|---|
static org.springframework.jdbc.core.RowMapper<Role> |
Mappers.ROLE_MAPPER
Map
Role fields |
| Modifier and Type | Method and Description |
|---|---|
Role |
RoleRepositoryJDBC.findByShortName(String shortName) |
| Modifier and Type | Method and Description |
|---|---|
Set<User> |
RoleRepositoryJDBC.getUsers(Role role) |
| Constructor and Description |
|---|
RoleDTO(Role role) |
| Modifier and Type | Method and Description |
|---|---|
RoleDTO |
RoleDTOAsm.toResource(Role role) |
RoleLinkResource |
RoleLinkResourceAsm.toResource(Role role) |