Module org.apache.openmeetings.db
Class PrivateMessageDao
java.lang.Object
org.apache.openmeetings.db.dao.user.PrivateMessageDao
- All Implemented Interfaces:
- IDataProviderDao<PrivateMessage>
@Repository
@Transactional
public class PrivateMessageDao
extends Object
implements IDataProviderDao<PrivateMessage>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddPrivateMessage(String subject, String message, User from, User to, User owner, boolean isContactRequest, Long userContactId) longcount()Count the number of instances ofIDataProviderDaolongCount the number of instances ofIDataProviderDaointdelete(Collection<Long> ids) voiddelete(PrivateMessage entity, Long userId) Delete an instance ofIDataProviderDaoget(long first, long count) Get a list of instances ofIDataProviderDaoGet an instance of anIDataProviderDaoget(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> order) Get a list of instances ofIDataProviderDaointmoveMailsToFolder(Collection<Long> ids, Long folderId) update(PrivateMessage entity, Long userId) Update an instance ofIDataProviderDaointupdateReadStatus(Collection<Long> ids, Boolean isRead) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openmeetings.db.dao.IDataProviderDaoget
- 
Constructor Details- 
PrivateMessageDaopublic PrivateMessageDao()
 
- 
- 
Method Details- 
addPrivateMessage
- 
getDescription copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
- getin interface- IDataProviderDao<PrivateMessage>
- Parameters:
- first- - the start to range to retrieve
- count- - maximum instance count to retrieve
- Returns:
- list of instances in the range specified
 
- 
getDescription copied from interface:IDataProviderDaoGet an instance of anIDataProviderDao- Specified by:
- getin interface- IDataProviderDao<PrivateMessage>
- Parameters:
- id- - id of instance to retrieve
- Returns:
- instance with the id gived
 
- 
updateDescription copied from interface:IDataProviderDaoUpdate an instance ofIDataProviderDao- Specified by:
- updatein interface- IDataProviderDao<PrivateMessage>
- Parameters:
- entity- - entity to be updated
- userId- - user performed update
- Returns:
- - updated entity
 
- 
count
- 
get
- 
updateReadStatus
- 
moveMailsToFolder
- 
delete
- 
getByRoom
- 
getpublic List<PrivateMessage> get(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> order) Description copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
- getin interface- IDataProviderDao<PrivateMessage>
- Parameters:
- search- - string search criteria to filter entities
- start- - the start to range to retrieve
- count- - maximum instance count to retrieve
- order- - column and sort order
- Returns:
- list of instances in the range specified
 
- 
countpublic long count()Description copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
- countin interface- IDataProviderDao<PrivateMessage>
- Returns:
- count of instances
 
- 
countDescription copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
- countin interface- IDataProviderDao<PrivateMessage>
- Parameters:
- search- - string search criteria to filter entities
- Returns:
- count of instances satisfying given search criteria
 
- 
deleteDescription copied from interface:IDataProviderDaoDelete an instance ofIDataProviderDao- Specified by:
- deletein interface- IDataProviderDao<PrivateMessage>
- Parameters:
- entity- - entity to be deleted
- userId- - user performed delete
 
 
-