Interface UserDAO
-
- All Known Implementing Classes:
JPAJSONUserDAO
,JPAUserDAO
public interface UserDAO extends AnyDAO<User>
-
-
Field Summary
-
Fields inherited from interface org.apache.syncope.core.persistence.api.dao.AnyDAO
DEFAULT_PAGE_SIZE
-
-
Method Summary
-
Methods inherited from interface org.apache.syncope.core.persistence.api.dao.AnyDAO
authFind, count, delete, delete, find, findAll, findAllKeys, findAllowedSchemas, findAllResourceKeys, findByDerAttrValue, findByKeys, findByPlainAttrUniqueValue, findByPlainAttrValue, findByResource, findDynRealms, findLastChange, getAllMatchingCond, save
-
-
-
-
Method Detail
-
securityChecks
void securityChecks(Set<String> authRealms, String key, String realm, Collection<String> groups)
Checks if the calling user is authorized to access the User matching the provided key, under the given realm.- Parameters:
authRealms
- realms for which the calling user owns entitlement(s) to checkkey
- User keyrealm
- User's realm full pathgroups
- group the User is member of
-
findBySecurityQuestion
List<User> findBySecurityQuestion(SecurityQuestion securityQuestion)
-
findMembership
UMembership findMembership(String key)
-
findAllRoles
Collection<Role> findAllRoles(User user)
-
findAllGroups
Collection<Group> findAllGroups(User user)
-
findAllGroupKeys
Collection<String> findAllGroupKeys(User user)
-
findAllGroupNames
Collection<String> findAllGroupNames(User user)
-
findAllResources
Collection<ExternalResource> findAllResources(User user)
-
findLinkedAccount
Optional<? extends LinkedAccount> findLinkedAccount(ExternalResource resource, String connObjectKeyValue)
-
findLinkedAccounts
List<LinkedAccount> findLinkedAccounts(String userKey)
-
findLinkedAccountsByResource
List<LinkedAccount> findLinkedAccountsByResource(ExternalResource resource)
-
findLinkedAccountsByPrivilege
List<LinkedAccount> findLinkedAccountsByPrivilege(Privilege privilege)
-
-