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 Summary
Constructors -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openmeetings.db.dao.IDataProviderDao
get
-
Constructor Details
-
PrivateMessageDao
public PrivateMessageDao()
-
-
Method Details
-
addPrivateMessage
-
get
Description copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
getin interfaceIDataProviderDao<PrivateMessage>- Parameters:
first- - the start to range to retrievecount- - maximum instance count to retrieve- Returns:
- list of instances in the range specified
-
get
Description copied from interface:IDataProviderDaoGet an instance of anIDataProviderDao- Specified by:
getin interfaceIDataProviderDao<PrivateMessage>- Parameters:
id- - id of instance to retrieve- Returns:
- instance with the id gived
-
update
Description copied from interface:IDataProviderDaoUpdate an instance ofIDataProviderDao- Specified by:
updatein interfaceIDataProviderDao<PrivateMessage>- Parameters:
entity- - entity to be updateduserId- - user performed update- Returns:
- - updated entity
-
count
-
get
-
updateReadStatus
-
moveMailsToFolder
-
delete
-
getByRoom
-
get
public 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 interfaceIDataProviderDao<PrivateMessage>- Parameters:
search- - string search criteria to filter entitiesstart- - the start to range to retrievecount- - maximum instance count to retrieveorder- - column and sort order- Returns:
- list of instances in the range specified
-
count
public long count()Description copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
countin interfaceIDataProviderDao<PrivateMessage>- Returns:
- count of instances
-
count
Description copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
countin interfaceIDataProviderDao<PrivateMessage>- Parameters:
search- - string search criteria to filter entities- Returns:
- count of instances satisfying given search criteria
-
delete
Description copied from interface:IDataProviderDaoDelete an instance ofIDataProviderDao- Specified by:
deletein interfaceIDataProviderDao<PrivateMessage>- Parameters:
entity- - entity to be deleteduserId- - user performed delete
-