public class CallDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<CallEntity,String>
| Modifier and Type | Field and Description |
|---|---|
static int |
USER_CALL_DAYS_LIVETIME
The Constant USER_CALL_DAYS_LIVETIME.
|
| Constructor and Description |
|---|
CallDAO()
Instantiates a new call DAO.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the storage.
|
int |
deleteAllUsersCalls()
Delete all users calls older of 2 days.
|
CallEntity |
findGroupCallByOwnerId(String ownerId)
Find group call by owner id.
|
CallEntity |
findGroupCallByOwnerTypeId(String ownerId,
String ownerType)
Find group call by owner type and id.
|
List<CallEntity> |
findGroupCallsByOwnerTypeId(String ownerId,
String ownerType)
Find group calls by owner type and id.
|
List<CallEntity> |
findUserGroupCalls(String userId)
Find user group calls.
|
public static final int USER_CALL_DAYS_LIVETIME
public CallEntity findGroupCallByOwnerId(String ownerId) throws javax.persistence.PersistenceException, IllegalStateException, IllegalArgumentException
ownerId - the owner idnull if no call foundjavax.persistence.PersistenceException - the persistence exceptionIllegalStateException - the illegal state exceptionIllegalArgumentException - the illegal argument exceptionpublic CallEntity findGroupCallByOwnerTypeId(String ownerId, String ownerType) throws javax.persistence.PersistenceException, IllegalStateException, IllegalArgumentException
ownerId - the owner idownerType - the owner typejavax.persistence.PersistenceException - the persistence exceptionIllegalStateException - the illegal state exceptionIllegalArgumentException - the illegal argument exceptionpublic List<CallEntity> findGroupCallsByOwnerTypeId(String ownerId, String ownerType) throws javax.persistence.PersistenceException, IllegalStateException, IllegalArgumentException
ownerId - the owner idownerType - the owner typejavax.persistence.PersistenceException - the persistence exceptionIllegalStateException - the illegal state exceptionIllegalArgumentException - the illegal argument exceptionpublic List<CallEntity> findUserGroupCalls(String userId) throws javax.persistence.PersistenceException, IllegalStateException, IllegalArgumentException
userId - the user idjavax.persistence.PersistenceException - the persistence exceptionIllegalStateException - the illegal state exceptionIllegalArgumentException - the illegal argument exceptionpublic int deleteAllUsersCalls()
throws javax.persistence.PersistenceException,
IllegalStateException,
IllegalArgumentException
javax.persistence.PersistenceException - the persistence exceptionIllegalStateException - the illegal state exceptionIllegalArgumentException - the illegal argument exceptionpublic void clear()
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.