Interface IdentityDAO
- All Superinterfaces:
org.exoplatform.commons.api.persistence.GenericDAO<IdentityEntity,Long>
- All Known Implementing Classes:
IdentityDAOImpl
public interface IdentityDAO
extends org.exoplatform.commons.api.persistence.GenericDAO<IdentityEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptionlongcountIdentityByProvider(String providerId) org.exoplatform.commons.utils.ListAccess<Map.Entry<IdentityEntity, ConnectionEntity>> findAllIdentitiesWithConnections(long identityId, String sortField, String sortDirection) findByProviderAndRemoteId(String providerId, String remoteId) default LongfindIdByProviderAndRemoteId(String providerId, String remoteId) org.exoplatform.commons.utils.ListAccess<IdentityEntity> findIdentities(ExtendProfileFilter filter) getAllIds(int offset, int limit) getAllIdsByProvider(String providerId, int offset, int limit) getAllIdsByProviderSorted(String providerId, String sortField, String sortDirection, boolean enabled, String userType, Boolean isConnected, String enrollmentStatus, long offset, long limit) Deprecated, for removal: This API element is subject to removal in a future version.The old getAllIdsByProviderSorted method without remoteIds no longer exists, use getAllIdsByProviderSorted with the remoteIds parameter instead.getAllIdsByProviderSorted(String providerId, String sortField, String sortDirection, boolean enabled, String userType, Boolean isConnected, String enrollmentStatus, List<String> remoteIds, long offset, long limit) default intgetAllIdsCountByProvider(String providerId, String userType, Boolean isConnected, boolean enabled, String enrollmentStatus) Deprecated, for removal: This API element is subject to removal in a future version.The old getAllIdsCountByProvider method without remoteIds no longer exists, use getAllIdsCountByProvider with the remoteIds parameter instead.default intgetAllIdsCountByProvider(String providerId, String userType, Boolean isConnected, boolean enabled, String enrollmentStatus, List<String> remoteIds) getIdentityIdsByProviderSorted(String providerId, String sortField, String sortDirection, boolean isEnabled, String userType, Boolean isConnected, String enrollmentStatus, long offset, long limit) Deprecated, for removal: This API element is subject to removal in a future version.The old getIdentityIdsByProviderSorted method without remoteIds no longer exists, use getIdentityIdsByProviderSorted with the remoteIds parameter instead.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 interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
-
Method Details
-
findByProviderAndRemoteId
-
countIdentityByProvider
-
findIdentities
-
getAllIds
-
getAllIdsByProvider
-
findAllIdentitiesWithConnections
org.exoplatform.commons.utils.ListAccess<Map.Entry<IdentityEntity,ConnectionEntity>> findAllIdentitiesWithConnections(long identityId, String sortField, String sortDirection) -
setAsDeleted
void setAsDeleted(long identityId) set the DELETED flag to true- Parameters:
identityId- the identity Id
-
hardDeleteIdentity
void hardDeleteIdentity(long identityId) delete definitely an identity- Parameters:
identityId- the identity Id
-
getAllIdsByProviderSorted
@Deprecated(forRemoval=true, since="7.2.0") default List<String> getAllIdsByProviderSorted(String providerId, String sortField, String sortDirection, boolean enabled, String userType, Boolean isConnected, String enrollmentStatus, long offset, long limit) Deprecated, for removal: This API element is subject to removal in a future version.The old getAllIdsByProviderSorted method without remoteIds no longer exists, use getAllIdsByProviderSorted with the remoteIds parameter instead.Get all identities by providerId sorted by sortField- Parameters:
providerId-sortField-sortDirection-enabled-userType-isConnected-enrollmentStatus-offset-limit-- Returns:
-
getAllIdsByProviderSorted
-
getIdentityIdsByProviderSorted
@Deprecated(forRemoval=true, since="7.2.0") default List<Long> getIdentityIdsByProviderSorted(String providerId, String sortField, String sortDirection, boolean isEnabled, String userType, Boolean isConnected, String enrollmentStatus, long offset, long limit) Deprecated, for removal: This API element is subject to removal in a future version.The old getIdentityIdsByProviderSorted method without remoteIds no longer exists, use getIdentityIdsByProviderSorted with the remoteIds parameter instead.Get identity ids by providerId sorted by sortField- Parameters:
providerId-sortField-sortDirection-isEnabled-userType-isConnected-enrollmentStatus-offset-limit-- Returns:
-
getIdentityIdsByProviderSorted
-
getAllIdsCountByProvider
@Deprecated(forRemoval=true, since="7.2.0") default int getAllIdsCountByProvider(String providerId, String userType, Boolean isConnected, boolean enabled, String enrollmentStatus) Deprecated, for removal: This API element is subject to removal in a future version.The old getAllIdsCountByProvider method without remoteIds no longer exists, use getAllIdsCountByProvider with the remoteIds parameter instead.Count identities by providerId- Parameters:
providerId-userType-isConnected-enabled-- Returns:
-
getAllIdsCountByProvider
-
findIdByProviderAndRemoteId
-