Class UserRepoExtImpl
java.lang.Object
org.apache.syncope.core.persistence.neo4j.dao.AbstractDAO
org.apache.syncope.core.persistence.neo4j.dao.repo.AbstractAnyRepoExt<User,Neo4jUser>
org.apache.syncope.core.persistence.neo4j.dao.repo.UserRepoExtImpl
- All Implemented Interfaces:
AnyRepoExt<User>,UserRepoExt
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AccessTokenDAOprotected final DelegationDAOprotected final FIQLQueryDAOprotected final GroupDAOprotected final NodeValidatorprotected final RoleDAOprotected final SecurityPropertiesprotected final javax.cache.Cache<EntityCacheKey, Neo4jUser> Fields inherited from class org.apache.syncope.core.persistence.neo4j.dao.repo.AbstractAnyRepoExt
anyTypeClassDAO, anyTypeDAO, anyUtils, derSchemaDAO, dynRealmDAO, plainSchemaDAOFields inherited from class org.apache.syncope.core.persistence.neo4j.dao.AbstractDAO
LOG, neo4jClient, neo4jTemplateFields inherited from interface org.apache.syncope.core.persistence.neo4j.dao.repo.AnyRepoExt
REGEX_CHARSFields inherited from interface org.apache.syncope.core.persistence.neo4j.dao.repo.UserRepoExt
CACHE -
Constructor Summary
ConstructorsConstructorDescriptionUserRepoExtImpl(AnyUtilsFactory anyUtilsFactory, AnyTypeDAO anyTypeDAO, AnyTypeClassDAO anyTypeClassDAO, PlainSchemaDAO plainSchemaDAO, DerSchemaDAO derSchemaDAO, DynRealmDAO dynRealmDAO, RoleDAO roleDAO, AccessTokenDAO accessTokenDAO, GroupDAO groupDAO, DelegationDAO delegationDAO, FIQLQueryDAO fiqlQueryDAO, SecurityProperties securityProperties, org.springframework.data.neo4j.core.Neo4jTemplate neo4jTemplate, org.springframework.data.neo4j.core.Neo4jClient neo4jClient, NodeValidator nodeValidator, javax.cache.Cache<EntityCacheKey, Neo4jUser> userCache) -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.cache.Cache<EntityCacheKey, Neo4jUser> cache()protected <T extends Attributable>
voidcheckBeforeSave(T user) voidvoiddeleteMembership(UMembership membership) protected Pair<User, GroupDAO.DynMembershipInfo> findAllGroupKeys(User user) findAllGroupNames(User user) findAllGroups(User user) findAllResources(User user) findAllRoles(User user) findBySecurityQuestion(SecurityQuestion securityQuestion) findByToken(String token) findDynGroups(String key) findDynRoles(String key) findLastChange(String key) Optional<? extends LinkedAccount> findLinkedAccount(ExternalResource resource, String connObjectKeyValue) findLinkedAccounts(String userKey) findLinkedAccountsByResource(ExternalResource resource) findMembership(String key) booleanlinkedAccountExists(String userKey, String connObjectKeyValue) <S extends User>
Ssave(S user) saveAndGetDynGroupMembs(User user) voidsecurityChecks(Set<String> authRealms, String key, String realm, Collection<String> groups) protected voidsecurityChecks(User user) Methods inherited from class org.apache.syncope.core.persistence.neo4j.dao.repo.AbstractAnyRepoExt
authFind, deleteById, findAllowedSchemas, findById, findByKeys, findByResourcesContaining, findDynRealms, findLastChange, splitMethods inherited from class org.apache.syncope.core.persistence.neo4j.dao.AbstractDAO
cascadeDelete, deleteRelationship, findById, findByRelationship, findByRelationship, toList, toOptionalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.syncope.core.persistence.neo4j.dao.repo.AnyRepoExt
authFind, deleteById, findAllowedSchemas, findByKeys, findByResourcesContaining, findDynRealms
-
Field Details
-
roleDAO
-
accessTokenDAO
-
groupDAO
-
delegationDAO
-
fiqlQueryDAO
-
securityProperties
-
nodeValidator
-
userCache
-
-
Constructor Details
-
UserRepoExtImpl
public UserRepoExtImpl(AnyUtilsFactory anyUtilsFactory, AnyTypeDAO anyTypeDAO, AnyTypeClassDAO anyTypeClassDAO, PlainSchemaDAO plainSchemaDAO, DerSchemaDAO derSchemaDAO, DynRealmDAO dynRealmDAO, RoleDAO roleDAO, AccessTokenDAO accessTokenDAO, GroupDAO groupDAO, DelegationDAO delegationDAO, FIQLQueryDAO fiqlQueryDAO, SecurityProperties securityProperties, org.springframework.data.neo4j.core.Neo4jTemplate neo4jTemplate, org.springframework.data.neo4j.core.Neo4jClient neo4jClient, NodeValidator nodeValidator, javax.cache.Cache<EntityCacheKey, Neo4jUser> userCache)
-
-
Method Details
-
cache
- Specified by:
cachein classAbstractAnyRepoExt<User,Neo4jUser>
-
findByToken
- Specified by:
findByTokenin interfaceUserRepoExt
-
findBySecurityQuestion
- Specified by:
findBySecurityQuestionin interfaceUserRepoExt
-
findLastChange
- Specified by:
findLastChangein interfaceAnyRepoExt<User>
-
securityChecks
@Transactional(readOnly=true) public void securityChecks(Set<String> authRealms, String key, String realm, Collection<String> groups) - Specified by:
securityChecksin interfaceUserRepoExt
-
securityChecks
- Specified by:
securityChecksin classAbstractAnyRepoExt<User,Neo4jUser>
-
countByRealm
- Specified by:
countByRealmin interfaceUserRepoExt
-
countByStatus
- Specified by:
countByStatusin interfaceUserRepoExt
-
findMembership
- Specified by:
findMembershipin interfaceUserRepoExt
-
deleteMembership
- Specified by:
deleteMembershipin interfaceUserRepoExt
-
checkBeforeSave
- Overrides:
checkBeforeSavein classAbstractAnyRepoExt<User,Neo4jUser>
-
doSave
-
save
- Specified by:
savein interfaceAnyRepoExt<User>- Specified by:
savein interfaceUserRepoExt
-
saveAndGetDynGroupMembs
- Specified by:
saveAndGetDynGroupMembsin interfaceUserRepoExt
-
delete
- Specified by:
deletein interfaceAnyRepoExt<User>- Specified by:
deletein interfaceUserRepoExt
-
findAllRoles
@Transactional(propagation=REQUIRES_NEW, readOnly=true) public Collection<Role> findAllRoles(User user) - Specified by:
findAllRolesin interfaceUserRepoExt
-
findDynRoles
- Specified by:
findDynRolesin interfaceUserRepoExt
-
findDynGroups
@Transactional(propagation=REQUIRES_NEW, readOnly=true) public List<Group> findDynGroups(String key) - Specified by:
findDynGroupsin interfaceUserRepoExt
-
findAllGroups
@Transactional(propagation=REQUIRES_NEW, readOnly=true) public Collection<Group> findAllGroups(User user) - Specified by:
findAllGroupsin interfaceUserRepoExt
-
findAllGroupKeys
@Transactional(propagation=REQUIRES_NEW, readOnly=true) public Collection<String> findAllGroupKeys(User user) - Specified by:
findAllGroupKeysin interfaceUserRepoExt
-
findAllGroupNames
@Transactional(propagation=REQUIRES_NEW, readOnly=true) public Collection<String> findAllGroupNames(User user) - Specified by:
findAllGroupNamesin interfaceUserRepoExt
-
findAllResources
@Transactional(propagation=REQUIRES_NEW, readOnly=true) public Collection<ExternalResource> findAllResources(User user) - Specified by:
findAllResourcesin interfaceUserRepoExt
-
findAllResourceKeys
- Specified by:
findAllResourceKeysin interfaceAnyRepoExt<User>
-
linkedAccountExists
@Transactional(readOnly=true) public boolean linkedAccountExists(String userKey, String connObjectKeyValue) - Specified by:
linkedAccountExistsin interfaceUserRepoExt
-
findLinkedAccount
public Optional<? extends LinkedAccount> findLinkedAccount(ExternalResource resource, String connObjectKeyValue) - Specified by:
findLinkedAccountin interfaceUserRepoExt
-
findLinkedAccounts
- Specified by:
findLinkedAccountsin interfaceUserRepoExt
-
findLinkedAccountsByResource
- Specified by:
findLinkedAccountsByResourcein interfaceUserRepoExt
-