T
- The User which is the incomingO
- The UserResource which is the finalpublic class UserResourceConverter<T extends User,O extends UserResource> extends DataAccessBlogConverter<T,O>
User
to a UserResource
Constructor and Description |
---|
UserResourceConverter(Locale locale)
Constructor of
UserResourceConverter |
Modifier and Type | Method and Description |
---|---|
boolean |
convert(T source,
O target)
Converts the temporary object of the query to a list object
|
O |
create()
Creates a new pageable list object to fill
|
getBlog, getBlogDao
convert, convertCollection
public UserResourceConverter(Locale locale)
UserResourceConverter
locale
- current user localepublic boolean convert(T source, O target)
QueryResultConverter
convert
in class QueryResultConverter<T extends User,O extends UserResource>
source
- The temporary object returned by the executed querytarget
- The converted list objectpublic O create()
QueryResultConverter
create
in class QueryResultConverter<T extends User,O extends UserResource>
Copyright © 2019 Communote team. All rights reserved.