Class IdentityDAOImpl
java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<IdentityEntity,Long>
org.exoplatform.social.core.jpa.storage.dao.jpa.IdentityDAOImpl
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<IdentityEntity,,Long> IdentityDAO
public class IdentityDAOImpl
extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<IdentityEntity,Long>
implements IdentityDAO
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic class -
Field Summary
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcountIdentityByProvider(String providerId) create(IdentityEntity entity) org.exoplatform.commons.utils.ListAccess<Map.Entry<IdentityEntity, ConnectionEntity>> findAllIdentitiesWithConnections(long identityId, String sortField, String sortDirection) findByProviderAndRemoteId(String providerId, String remoteId) findIdByProviderAndRemoteId(String providerId, String remoteId) org.exoplatform.commons.utils.ListAccess<IdentityEntity> findIdentities(ExtendProfileFilter filter) findIdentitiesByIDs(List<Long> ids) getAllIds(int offset, int limit) getAllIdsByProvider(String providerId, int offset, int limit) getAllIdsByProviderSorted(String providerId, String sortField, String sortDirection, boolean isEnabled, String userType, Boolean isConnected, String enrollmentStatus, List<String> remoteIds, long offset, long limit) intgetAllIdsCountByProvider(String providerId, String userType, Boolean isConnected, boolean isEnabled, String enrollmentStatus, List<String> remoteIds) <T> List<T> getFromOracleDB(jakarta.persistence.TypedQuery<T> query, List<Long> ids) in ORACLE, maximum number of expressions in a list is 1000.getIdentityIdsByProviderSorted(String providerId, String sortField, String sortDirection, boolean isEnabled, String userType, Boolean isConnected, String enrollmentStatus, List<String> remoteIds, long offset, long limit) voidhardDeleteIdentity(long identityId) delete definitely an identityvoidsetAsDeleted(long identityId) set the DELETED flag to trueMethods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAllMethods inherited from interface org.exoplatform.social.core.jpa.storage.dao.IdentityDAO
getAllIdsByProviderSorted, getAllIdsCountByProvider, getIdentityIdsByProviderSorted
-
Constructor Details
-
IdentityDAOImpl
public IdentityDAOImpl()
-
-
Method Details
-
create
- Specified by:
createin interfaceorg.exoplatform.commons.api.persistence.GenericDAO<IdentityEntity,Long> - Overrides:
createin classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<IdentityEntity,Long>
-
findByProviderAndRemoteId
- Specified by:
findByProviderAndRemoteIdin interfaceIdentityDAO
-
findIdByProviderAndRemoteId
- Specified by:
findIdByProviderAndRemoteIdin interfaceIdentityDAO
-
countIdentityByProvider
- Specified by:
countIdentityByProviderin interfaceIdentityDAO
-
getAllIds
- Specified by:
getAllIdsin interfaceIdentityDAO
-
getAllIdsByProvider
- Specified by:
getAllIdsByProviderin interfaceIdentityDAO
-
findAllIdentitiesWithConnections
public org.exoplatform.commons.utils.ListAccess<Map.Entry<IdentityEntity,ConnectionEntity>> findAllIdentitiesWithConnections(long identityId, String sortField, String sortDirection) - Specified by:
findAllIdentitiesWithConnectionsin interfaceIdentityDAO
-
findIdentities
public org.exoplatform.commons.utils.ListAccess<IdentityEntity> findIdentities(ExtendProfileFilter filter) - Specified by:
findIdentitiesin interfaceIdentityDAO
-
getAllIdsByProviderSorted
public List<String> getAllIdsByProviderSorted(String providerId, String sortField, String sortDirection, boolean isEnabled, String userType, Boolean isConnected, String enrollmentStatus, List<String> remoteIds, long offset, long limit) - Specified by:
getAllIdsByProviderSortedin interfaceIdentityDAO
-
getIdentityIdsByProviderSorted
public List<Long> getIdentityIdsByProviderSorted(String providerId, String sortField, String sortDirection, boolean isEnabled, String userType, Boolean isConnected, String enrollmentStatus, List<String> remoteIds, long offset, long limit) - Specified by:
getIdentityIdsByProviderSortedin interfaceIdentityDAO
-
getAllIdsCountByProvider
public int getAllIdsCountByProvider(String providerId, String userType, Boolean isConnected, boolean isEnabled, String enrollmentStatus, List<String> remoteIds) - Specified by:
getAllIdsCountByProviderin interfaceIdentityDAO
-
setAsDeleted
public void setAsDeleted(long identityId) Description copied from interface:IdentityDAOset the DELETED flag to true- Specified by:
setAsDeletedin interfaceIdentityDAO- Parameters:
identityId- the identity Id
-
hardDeleteIdentity
public void hardDeleteIdentity(long identityId) Description copied from interface:IdentityDAOdelete definitely an identity- Specified by:
hardDeleteIdentityin interfaceIdentityDAO- Parameters:
identityId- the identity Id
-
findIdentitiesByIDs
-
getFromOracleDB
in ORACLE, maximum number of expressions in a list is 1000. so we need to send more than one request if the number of ids is more than 1000 (1000 ids per request).- Type Parameters:
T- This is the type parameter- Parameters:
query- The query.ids- The ids of users.- Returns:
-