Class JPAJSONAnyObjectDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<A>
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractAnyDAO<AnyObject>
-
- org.apache.syncope.core.persistence.jpa.dao.JPAAnyObjectDAO
-
- org.apache.syncope.core.persistence.jpa.dao.JPAJSONAnyObjectDAO
-
- All Implemented Interfaces:
AnyDAO<AnyObject>
,AnyObjectDAO
,DAO<AnyObject>
public class JPAJSONAnyObjectDAO extends JPAAnyObjectDAO
-
-
Field Summary
Fields Modifier and Type Field Description protected JPAJSONAnyDAO
anyDAO
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.JPAAnyObjectDAO
groupDAO, userDAO
-
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 JPAJSONAnyObjectDAO(AnyUtilsFactory anyUtilsFactory, PlainSchemaDAO plainSchemaDAO, DerSchemaDAO derSchemaDAO, DynRealmDAO dynRealmDAO, UserDAO userDAO, GroupDAO groupDAO, JPAJSONAnyDAO anyDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Pair<AnyObject,Pair<Set<String>,Set<String>>>
doSave(AnyObject anyObject)
List<AnyObject>
findByDerAttrValue(DerSchema schema, String value, boolean ignoreCaseMatch)
Find any objects by derived attribute value.Optional<AnyObject>
findByPlainAttrUniqueValue(PlainSchema schema, PlainAttrUniqueValue attrUniqueValue, boolean ignoreCaseMatch)
List<AnyObject>
findByPlainAttrValue(PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch)
AnyObject
save(AnyObject anyObject)
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.JPAAnyObjectDAO
count, countByRealm, countByType, delete, findAll, findAllGroupKeys, findAllGroups, findAllKeys, findAllRelationships, findAllResourceKeys, findAllResources, findARelationships, findByName, findByName, findDynGroups, findKey, findLastChange, findMembership, findURelationships, init, saveAndGetDynGroupMembs, 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
-
JPAJSONAnyObjectDAO
public JPAJSONAnyObjectDAO(AnyUtilsFactory anyUtilsFactory, PlainSchemaDAO plainSchemaDAO, DerSchemaDAO derSchemaDAO, DynRealmDAO dynRealmDAO, UserDAO userDAO, GroupDAO groupDAO, JPAJSONAnyDAO anyDAO)
-
-
Method Detail
-
findByPlainAttrValue
public List<AnyObject> findByPlainAttrValue(PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch)
- Specified by:
findByPlainAttrValue
in interfaceAnyDAO<AnyObject>
- Overrides:
findByPlainAttrValue
in classAbstractAnyDAO<AnyObject>
-
findByPlainAttrUniqueValue
public Optional<AnyObject> findByPlainAttrUniqueValue(PlainSchema schema, PlainAttrUniqueValue attrUniqueValue, boolean ignoreCaseMatch)
- Specified by:
findByPlainAttrUniqueValue
in interfaceAnyDAO<AnyObject>
- Overrides:
findByPlainAttrUniqueValue
in classAbstractAnyDAO<AnyObject>
-
findByDerAttrValue
public List<AnyObject> 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<AnyObject>
- Overrides:
findByDerAttrValue
in classAbstractAnyDAO<AnyObject>
- 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<AnyObject,Pair<Set<String>,Set<String>>> doSave(AnyObject anyObject)
- Overrides:
doSave
in classJPAAnyObjectDAO
-
-