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) getAllIdsByProviderSorted(String providerId, String sortField, String sortDirection, boolean enabled, String userType, Boolean isConnected, String enrollmentStatus, List<String> remoteIds, List<String> groupIds, String membershipType, boolean includeInheritedMemberships, long offset, long limit) getAllIdsByProviderSorted(String providerId, String sortField, String sortDirection, boolean enabled, String userType, Boolean isConnected, String enrollmentStatus, List<String> remoteIds, List<String> groupIds, String membershipType, 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) default intgetAllIdsCountByProvider(String providerId, String userType, Boolean isConnected, boolean enabled, String enrollmentStatus, List<String> remoteIds, List<String> groupIds, String membershipType) default intgetAllIdsCountByProvider(String providerId, String userType, Boolean isConnected, boolean enabled, String enrollmentStatus, List<String> remoteIds, List<String> groupIds, String membershipType, boolean includeInheritedMemberships) getEnabledRemoteIdsAfter(String providerId, boolean internalsOnly, String afterRemoteId, int limit) 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) getIdentityIdsByProviderSorted(String providerId, String sortField, String sortDirection, boolean isEnabled, String userType, Boolean isConnected, String enrollmentStatus, List<String> remoteIds, List<String> groupIds, String membershipType, boolean includeInheritedMemberships, long offset, long limit) getIdentityIdsByProviderSorted(String providerId, String sortField, String sortDirection, boolean isEnabled, String userType, Boolean isConnected, String enrollmentStatus, List<String> remoteIds, List<String> groupIds, String membershipType, long offset, long limit) getIdsByProviderAfterId(String providerId, long lastId, int 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
-
getIdsByProviderAfterId
- Returns:
- the non-deleted identity ids of a provider strictly greater than lastId, disabled ones included, in ascending id order — keyset iteration that never skips a row even when identities are soft-deleted while iterating
-
getEnabledRemoteIdsAfter
List<String> getEnabledRemoteIdsAfter(String providerId, boolean internalsOnly, String afterRemoteId, int limit) - Parameters:
providerId- the identity providerinternalsOnly- whether the identities marked external are left outafterRemoteId- the remote id after which the list starts, excluded, or null to start from the first onelimit- the maximum number of remote ids returned, 0 for all- Returns:
- the remote ids of the enabled, non-deleted identities of a provider, in ascending remote id order — keyset iteration over the provider's unique remote ids
-
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
-
getAllIdsByProviderSorted
-
getAllIdsByProviderSorted
default List<String> getAllIdsByProviderSorted(String providerId, String sortField, String sortDirection, boolean enabled, String userType, Boolean isConnected, String enrollmentStatus, List<String> remoteIds, List<String> groupIds, String membershipType, boolean includeInheritedMemberships, long offset, long limit) -
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
-
getIdentityIdsByProviderSorted
-
getIdentityIdsByProviderSorted
default List<Long> getIdentityIdsByProviderSorted(String providerId, String sortField, String sortDirection, boolean isEnabled, String userType, Boolean isConnected, String enrollmentStatus, List<String> remoteIds, List<String> groupIds, String membershipType, boolean includeInheritedMemberships, long offset, long limit) -
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
-
getAllIdsCountByProvider
-
getAllIdsCountByProvider
-
findIdByProviderAndRemoteId
-