Class JPAJSONUserDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<A>
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractAnyDAO<User>
-
- org.apache.syncope.core.persistence.jpa.dao.JPAUserDAO
-
- org.apache.syncope.core.persistence.jpa.dao.JPAJSONUserDAO
-
-
Field Summary
Fields Modifier and Type Field Description protected JPAJSONAnyDAO
anyDAO
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.JPAUserDAO
accessTokenDAO, delegationDAO, fiqlQueryDAO, groupDAO, roleDAO, securityProperties
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractAnyDAO
anyUtilsFactory, derSchemaDAO, dynRealmDAO, plainSchemaDAO
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
Fields inherited from interface org.apache.syncope.core.persistence.api.dao.AnyDAO
DEFAULT_PAGE_SIZE
-
-
Constructor Summary
Constructors Constructor Description JPAJSONUserDAO(AnyUtilsFactory anyUtilsFactory, PlainSchemaDAO plainSchemaDAO, DerSchemaDAO derSchemaDAO, DynRealmDAO dynRealmDAO, RoleDAO roleDAO, AccessTokenDAO accessTokenDAO, GroupDAO groupDAO, DelegationDAO delegationDAO, FIQLQueryDAO fiqlQueryDAO, SecurityProperties securityProperties, JPAJSONAnyDAO anyDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Pair<User,Pair<Set<String>,Set<String>>>
doSave(User user)
List<User>
findByDerAttrValue(DerSchema schema, String value, boolean ignoreCaseMatch)
Find any objects by derived attribute value.Optional<User>
findByPlainAttrUniqueValue(PlainSchema schema, PlainAttrUniqueValue attrUniqueValue, boolean ignoreCaseMatch)
List<User>
findByPlainAttrValue(PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch)
User
save(User user)
Pair<Set<String>,Set<String>>
saveAndGetDynGroupMembs(User user)
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.JPAUserDAO
count, countByRealm, countByStatus, delete, findAll, findAllGroupKeys, findAllGroupNames, findAllGroups, findAllKeys, findAllResourceKeys, findAllResources, findAllRoles, findBySecurityQuestion, findByToken, findByUsername, findDynGroups, findDynRoles, findKey, findLastChange, findLinkedAccount, findLinkedAccounts, findLinkedAccountsByPrivilege, findLinkedAccountsByResource, findMembership, findUsername, init, linkedAccountExists, securityChecks, securityChecks
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractAnyDAO
anyUtils, authFind, delete, find, findAllKeys, findAllowedSchemas, findByKeys, findByResource, findDynRealms, findLastChange, getAllMatchingCond
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.syncope.core.persistence.api.dao.AnyDAO
authFind, delete, find, findAllowedSchemas, findByKeys, findByResource, findDynRealms, getAllMatchingCond
-
-
-
-
Field Detail
-
anyDAO
protected final JPAJSONAnyDAO anyDAO
-
-
Constructor Detail
-
JPAJSONUserDAO
public JPAJSONUserDAO(AnyUtilsFactory anyUtilsFactory, PlainSchemaDAO plainSchemaDAO, DerSchemaDAO derSchemaDAO, DynRealmDAO dynRealmDAO, RoleDAO roleDAO, AccessTokenDAO accessTokenDAO, GroupDAO groupDAO, DelegationDAO delegationDAO, FIQLQueryDAO fiqlQueryDAO, SecurityProperties securityProperties, JPAJSONAnyDAO anyDAO)
-
-
Method Detail
-
findByPlainAttrValue
public List<User> findByPlainAttrValue(PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch)
- Specified by:
findByPlainAttrValue
in interfaceAnyDAO<User>
- Overrides:
findByPlainAttrValue
in classAbstractAnyDAO<User>
-
findByPlainAttrUniqueValue
public Optional<User> findByPlainAttrUniqueValue(PlainSchema schema, PlainAttrUniqueValue attrUniqueValue, boolean ignoreCaseMatch)
- Specified by:
findByPlainAttrUniqueValue
in interfaceAnyDAO<User>
- Overrides:
findByPlainAttrUniqueValue
in classAbstractAnyDAO<User>
-
findByDerAttrValue
public List<User> findByDerAttrValue(DerSchema schema, String value, boolean ignoreCaseMatch)
Description copied from interface:AnyDAO
Find any objects by derived attribute value. This method could fail if one or more string literals contained into the derived attribute value provided derive from identifier (schema key) replacement. When you are going to specify a derived attribute expression you must be quite sure that string literals used to build the expression cannot be found into the attribute values used to replace attribute schema keys used as identifiers.- Specified by:
findByDerAttrValue
in interfaceAnyDAO<User>
- Overrides:
findByDerAttrValue
in classAbstractAnyDAO<User>
- Parameters:
schema
- derived schemavalue
- derived attribute valueignoreCaseMatch
- whether comparison for string values should take case into account or not- Returns:
- list of any objects
-
doSave
protected Pair<User,Pair<Set<String>,Set<String>>> doSave(User user)
- Overrides:
doSave
in classJPAUserDAO
-
save
public User save(User user)
- Specified by:
save
in interfaceAnyDAO<User>
- Overrides:
save
in classJPAUserDAO
-
saveAndGetDynGroupMembs
public Pair<Set<String>,Set<String>> saveAndGetDynGroupMembs(User user)
- Specified by:
saveAndGetDynGroupMembs
in interfaceUserDAO
- Overrides:
saveAndGetDynGroupMembs
in classJPAUserDAO
-
-