@Transactional public class PrivateMessageDao extends Object implements IDataProviderDao<PrivateMessage>
Constructor and Description |
---|
PrivateMessageDao() |
Modifier and Type | Method and Description |
---|---|
Long |
addPrivateMessage(String subject,
String message,
Long parentMessageId,
User from,
User to,
User owner,
Boolean bookedRoom,
Room room,
Boolean isContactRequest,
Long userContactId) |
long |
count()
Count the number of instances of
T |
Long |
count(Long ownerId,
Long folderId,
String search) |
long |
count(String search)
Count the number of instances of
T |
int |
delete(Collection<Long> ids) |
void |
delete(PrivateMessage entity,
Long userId)
Delete an instance of
T |
List<PrivateMessage> |
get(int first,
int count)
Get a list of instances of
T |
PrivateMessage |
get(Long id)
Get an instance of an
T |
List<PrivateMessage> |
get(Long ownerId,
Long folderId,
String search,
String orderBy,
boolean asc,
int start,
int max) |
List<PrivateMessage> |
get(String search,
int start,
int count,
String order)
Get a list of instances of
T |
List<PrivateMessage> |
getByRoom(Long roomId) |
Integer |
moveMailsToFolder(Collection<Long> ids,
Long folderId) |
PrivateMessage |
update(PrivateMessage entity,
Long userId)
Update an instance of
T |
int |
updateReadStatus(Collection<Long> ids,
Boolean isRead) |
public Long addPrivateMessage(String subject, String message, Long parentMessageId, User from, User to, User owner, Boolean bookedRoom, Room room, Boolean isContactRequest, Long userContactId)
public List<PrivateMessage> get(int first, int count)
IDataProviderDao
T
get
in interface IDataProviderDao<PrivateMessage>
first
- - the start to range to retrievecount
- - maximum instance count to retrievepublic PrivateMessage get(Long id)
IDataProviderDao
T
get
in interface IDataProviderDao<PrivateMessage>
id
- - id of instance to retrievepublic PrivateMessage update(PrivateMessage entity, Long userId)
IDataProviderDao
T
update
in interface IDataProviderDao<PrivateMessage>
entity
- - entity to be updateduserId
- - user performed updatepublic List<PrivateMessage> get(Long ownerId, Long folderId, String search, String orderBy, boolean asc, int start, int max)
public int updateReadStatus(Collection<Long> ids, Boolean isRead)
public Integer moveMailsToFolder(Collection<Long> ids, Long folderId)
public int delete(Collection<Long> ids)
public List<PrivateMessage> getByRoom(Long roomId)
public List<PrivateMessage> get(String search, int start, int count, String order)
IDataProviderDao
T
get
in interface IDataProviderDao<PrivateMessage>
search
- - string search criteria to filter entitiesstart
- - the start to range to retrievecount
- - maximum instance count to retrieveorder
- - column and sort orderpublic long count()
IDataProviderDao
T
count
in interface IDataProviderDao<PrivateMessage>
public long count(String search)
IDataProviderDao
T
count
in interface IDataProviderDao<PrivateMessage>
search
- - string search criteria to filter entitiespublic void delete(PrivateMessage entity, Long userId)
IDataProviderDao
T
delete
in interface IDataProviderDao<PrivateMessage>
entity
- - entity to be deleteduserId
- - user performed deleteCopyright © 2012–2016 Apache Software Foundation. All rights reserved.