Search in sources :

Example 6 with UserContact

use of org.apache.openmeetings.db.entity.user.UserContact in project openmeetings by apache.

the class UserContactDao method updateContactStatus.

public Long updateContactStatus(Long id, boolean pending) {
    try {
        UserContact uc = get(id);
        uc.setPending(pending);
        update(uc);
        return id;
    } catch (Exception e) {
        log.error("[updateContactStatus]", e);
    }
    return null;
}
Also used : UserContact(org.apache.openmeetings.db.entity.user.UserContact)

Aggregations

UserContact (org.apache.openmeetings.db.entity.user.UserContact)6 User (org.apache.openmeetings.db.entity.user.User)3 MailHandler (org.apache.openmeetings.core.mail.MailHandler)2 PrivateMessageDao (org.apache.openmeetings.db.dao.user.PrivateMessageDao)2 UserContactDao (org.apache.openmeetings.db.dao.user.UserContactDao)2 Date (java.util.Date)1 UserConverter (org.apache.openmeetings.backup.converter.UserConverter)1 Test (org.junit.Test)1 Serializer (org.simpleframework.xml.Serializer)1 Registry (org.simpleframework.xml.convert.Registry)1 RegistryStrategy (org.simpleframework.xml.convert.RegistryStrategy)1 Persister (org.simpleframework.xml.core.Persister)1 Strategy (org.simpleframework.xml.strategy.Strategy)1