Class JPAAnyMatchDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<Any<?>>
-
- org.apache.syncope.core.persistence.jpa.dao.JPAAnyMatchDAO
-
- All Implemented Interfaces:
AnyMatchDAO,DAO<Any<?>>
public class JPAAnyMatchDAO extends AbstractDAO<Any<?>> implements AnyMatchDAO
-
-
Field Summary
Fields Modifier and Type Field Description protected AnyObjectDAOanyObjectDAOprotected AnyUtilsFactoryanyUtilsFactoryprotected GroupDAOgroupDAOprotected PlainSchemaDAOplainSchemaDAOprotected RealmDAOrealmDAOprotected UserDAOuserDAOprotected PlainAttrValidationManagervalidator-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
-
Constructor Summary
Constructors Constructor Description JPAAnyMatchDAO(UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO, RealmDAO realmDAO, PlainSchemaDAO plainSchemaDAO, AnyUtilsFactory anyUtilsFactory, PlainAttrValidationManager validator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanmatches(List<? extends PlainAttrValue> anyAttrValues, PlainAttrValue attrValue, PlainSchema schema, AttrCond cond)protected booleanmatches(Any<?> any, AnyCond cond, boolean not)protected booleanmatches(Any<?> any, AnyTypeCond cond, boolean not)protected booleanmatches(Any<?> any, AttrCond cond, boolean not)protected booleanmatches(Any<?> any, DynRealmCond cond, boolean not)protected booleanmatches(Any<?> any, ResourceCond cond, boolean not)protected booleanmatches(Group group, MemberCond cond, boolean not)protected booleanmatches(GroupableRelatable<?,?,?,?,?> any, MembershipCond cond, boolean not)protected booleanmatches(GroupableRelatable<?,?,?,?,?> any, RelationshipCond cond, boolean not)protected booleanmatches(GroupableRelatable<?,?,?,?,?> any, RelationshipTypeCond cond, boolean not)protected booleanmatches(User user, RoleCond cond, boolean not)<T extends Any<?>>
booleanmatches(T any, SearchCond cond)Verify if any matches the given search condition.-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Field Detail
-
userDAO
protected final UserDAO userDAO
-
groupDAO
protected final GroupDAO groupDAO
-
anyObjectDAO
protected final AnyObjectDAO anyObjectDAO
-
realmDAO
protected final RealmDAO realmDAO
-
plainSchemaDAO
protected final PlainSchemaDAO plainSchemaDAO
-
anyUtilsFactory
protected final AnyUtilsFactory anyUtilsFactory
-
validator
protected final PlainAttrValidationManager validator
-
-
Constructor Detail
-
JPAAnyMatchDAO
public JPAAnyMatchDAO(UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO, RealmDAO realmDAO, PlainSchemaDAO plainSchemaDAO, AnyUtilsFactory anyUtilsFactory, PlainAttrValidationManager validator)
-
-
Method Detail
-
matches
@Transactional(readOnly=true) public <T extends Any<?>> boolean matches(T any, SearchCond cond)
Verify if any matches the given search condition.- Specified by:
matchesin interfaceAnyMatchDAO- Type Parameters:
T- any- Parameters:
any- to be checkedcond- to be verified- Returns:
- true if any matches cond
-
matches
protected boolean matches(Any<?> any, AnyTypeCond cond, boolean not)
-
matches
protected boolean matches(GroupableRelatable<?,?,?,?,?> any, RelationshipTypeCond cond, boolean not)
-
matches
protected boolean matches(GroupableRelatable<?,?,?,?,?> any, RelationshipCond cond, boolean not)
-
matches
protected boolean matches(GroupableRelatable<?,?,?,?,?> any, MembershipCond cond, boolean not)
-
matches
protected boolean matches(Any<?> any, DynRealmCond cond, boolean not)
-
matches
protected boolean matches(Group group, MemberCond cond, boolean not)
-
matches
protected boolean matches(Any<?> any, ResourceCond cond, boolean not)
-
matches
protected boolean matches(List<? extends PlainAttrValue> anyAttrValues, PlainAttrValue attrValue, PlainSchema schema, AttrCond cond)
-
-