Class UserContactDao
- java.lang.Object
-
- org.apache.openmeetings.db.dao.user.UserContactDao
-
@Repository @Transactional public class UserContactDao extends Object
-
-
Constructor Summary
Constructors Constructor Description UserContactDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserContact
add(Long userId, Long ownerId, boolean pending)
long
count(long ownerId)
void
delete(Long id)
Integer
deleteAllUserContacts(Long ownerId)
List<UserContact>
get()
List<UserContact>
get(long ownerId, long first, long count)
UserContact
get(Long id)
UserContact
get(Long userId, Long ownerId)
List<UserContact>
getContactRequestsByUserAndStatus(Long userId, boolean pending)
List<UserContact>
getContactsByUserAndStatus(Long ownerId, boolean pending)
boolean
isContact(Long userId, Long ownerId)
UserContact
update(UserContact c)
Long
updateContactStatus(Long id, boolean pending)
-
-
-
Method Detail
-
add
public UserContact add(Long userId, Long ownerId, boolean pending)
-
delete
public void delete(Long id)
- Parameters:
id
- - id of item to delete
-
deleteAllUserContacts
public Integer deleteAllUserContacts(Long ownerId)
- Parameters:
ownerId
- - id of owner- Returns:
- rowcount of update
-
get
public UserContact get(Long userId, Long ownerId)
-
get
public List<UserContact> get(long ownerId, long first, long count)
-
count
public long count(long ownerId)
-
getContactsByUserAndStatus
public List<UserContact> getContactsByUserAndStatus(Long ownerId, boolean pending)
-
getContactRequestsByUserAndStatus
public List<UserContact> getContactRequestsByUserAndStatus(Long userId, boolean pending)
-
get
public UserContact get(Long id)
-
get
public List<UserContact> get()
-
update
public UserContact update(UserContact c)
-
-