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
-
Method Summary
Modifier and TypeMethodDescriptionaddPrivateMessage
(String subject, String message, User from, User to, User owner, boolean isContactRequest, Long userContactId) long
count()
Count the number of instances ofIDataProviderDao
long
Count the number of instances ofIDataProviderDao
int
delete
(Collection<Long> ids) void
delete
(PrivateMessage entity, Long userId) Delete an instance ofIDataProviderDao
get
(long first, long count) Get a list of instances ofIDataProviderDao
Get an instance of anIDataProviderDao
get
(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> order) Get a list of instances ofIDataProviderDao
int
moveMailsToFolder
(Collection<Long> ids, Long folderId) update
(PrivateMessage entity, Long userId) Update an instance ofIDataProviderDao
int
updateReadStatus
(Collection<Long> ids, Boolean isRead) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.openmeetings.db.dao.IDataProviderDao
get
-
Constructor Details
-
PrivateMessageDao
public PrivateMessageDao()
-
-
Method Details
-
addPrivateMessage
-
get
Description copied from interface:IDataProviderDao
Get a list of instances ofIDataProviderDao
- Specified by:
get
in 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:IDataProviderDao
Get an instance of anIDataProviderDao
- Specified by:
get
in interfaceIDataProviderDao<PrivateMessage>
- Parameters:
id
- - id of instance to retrieve- Returns:
- instance with the id gived
-
update
Description copied from interface:IDataProviderDao
Update an instance ofIDataProviderDao
- Specified by:
update
in 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:IDataProviderDao
Get a list of instances ofIDataProviderDao
- Specified by:
get
in 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:IDataProviderDao
Count the number of instances ofIDataProviderDao
- Specified by:
count
in interfaceIDataProviderDao<PrivateMessage>
- Returns:
- count of instances
-
count
Description copied from interface:IDataProviderDao
Count the number of instances ofIDataProviderDao
- Specified by:
count
in interfaceIDataProviderDao<PrivateMessage>
- Parameters:
search
- - string search criteria to filter entities- Returns:
- count of instances satisfying given search criteria
-
delete
Description copied from interface:IDataProviderDao
Delete an instance ofIDataProviderDao
- Specified by:
delete
in interfaceIDataProviderDao<PrivateMessage>
- Parameters:
entity
- - entity to be deleteduserId
- - user performed delete
-