public abstract class AbstractAnyDAO<A extends org.apache.syncope.core.persistence.api.entity.Any<?>> extends AbstractDAO<A> implements org.apache.syncope.core.persistence.api.dao.AnyDAO<A>
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationEventPublisher |
publisher |
LOG
Constructor and Description |
---|
AbstractAnyDAO() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.syncope.core.persistence.api.entity.AnyUtils |
anyUtils() |
A |
authFind(String key) |
void |
delete(String key) |
protected org.apache.syncope.core.persistence.api.dao.DynRealmDAO |
dynRealmDAO() |
A |
find(String key) |
<S extends org.apache.syncope.core.persistence.api.entity.Schema> |
findAllowedSchemas(A any,
Class<S> reference) |
List<A> |
findByDerAttrValue(org.apache.syncope.core.persistence.api.entity.DerSchema schema,
String value) |
A |
findByPlainAttrUniqueValue(org.apache.syncope.core.persistence.api.entity.PlainSchema schema,
org.apache.syncope.core.persistence.api.entity.PlainAttrValue attrUniqueValue) |
List<A> |
findByPlainAttrValue(org.apache.syncope.core.persistence.api.entity.PlainSchema schema,
org.apache.syncope.core.persistence.api.entity.PlainAttrValue attrValue) |
List<A> |
findByResource(org.apache.syncope.core.persistence.api.entity.resource.ExternalResource resource) |
A |
findByWorkflowId(String workflowId) |
List<String> |
findDynRealms(String key) |
protected String |
findKey(String name,
String table) |
protected Date |
findLastChange(String key,
String table) |
org.apache.syncope.core.persistence.api.dao.search.SearchCond |
getAllMatchingCond() |
protected abstract org.apache.syncope.core.persistence.api.entity.AnyUtils |
init() |
A |
save(A any) |
protected abstract void |
securityChecks(A any) |
clear, detach, entityManager, flush, refresh
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@Autowired protected org.springframework.context.ApplicationEventPublisher publisher
protected org.apache.syncope.core.persistence.api.dao.DynRealmDAO dynRealmDAO()
protected abstract org.apache.syncope.core.persistence.api.entity.AnyUtils init()
protected org.apache.syncope.core.persistence.api.entity.AnyUtils anyUtils()
protected abstract void securityChecks(A any)
@Transactional(readOnly=true) public A authFind(String key)
authFind
in interface org.apache.syncope.core.persistence.api.dao.AnyDAO<A extends org.apache.syncope.core.persistence.api.entity.Any<?>>
@Transactional(readOnly=true) public A find(String key)
find
in interface org.apache.syncope.core.persistence.api.dao.AnyDAO<A extends org.apache.syncope.core.persistence.api.entity.Any<?>>
public A findByWorkflowId(String workflowId)
findByWorkflowId
in interface org.apache.syncope.core.persistence.api.dao.AnyDAO<A extends org.apache.syncope.core.persistence.api.entity.Any<?>>
public List<A> findByPlainAttrValue(org.apache.syncope.core.persistence.api.entity.PlainSchema schema, org.apache.syncope.core.persistence.api.entity.PlainAttrValue attrValue)
findByPlainAttrValue
in interface org.apache.syncope.core.persistence.api.dao.AnyDAO<A extends org.apache.syncope.core.persistence.api.entity.Any<?>>
public A findByPlainAttrUniqueValue(org.apache.syncope.core.persistence.api.entity.PlainSchema schema, org.apache.syncope.core.persistence.api.entity.PlainAttrValue attrUniqueValue)
findByPlainAttrUniqueValue
in interface org.apache.syncope.core.persistence.api.dao.AnyDAO<A extends org.apache.syncope.core.persistence.api.entity.Any<?>>
public List<A> findByDerAttrValue(org.apache.syncope.core.persistence.api.entity.DerSchema schema, String value)
findByDerAttrValue
in interface org.apache.syncope.core.persistence.api.dao.AnyDAO<A extends org.apache.syncope.core.persistence.api.entity.Any<?>>
public List<A> findByResource(org.apache.syncope.core.persistence.api.entity.resource.ExternalResource resource)
findByResource
in interface org.apache.syncope.core.persistence.api.dao.AnyDAO<A extends org.apache.syncope.core.persistence.api.entity.Any<?>>
public org.apache.syncope.core.persistence.api.dao.search.SearchCond getAllMatchingCond()
getAllMatchingCond
in interface org.apache.syncope.core.persistence.api.dao.AnyDAO<A extends org.apache.syncope.core.persistence.api.entity.Any<?>>
@Transactional(propagation=REQUIRES_NEW, readOnly=true) public <S extends org.apache.syncope.core.persistence.api.entity.Schema> org.apache.syncope.core.persistence.api.dao.AllowedSchemas<S> findAllowedSchemas(A any, Class<S> reference)
findAllowedSchemas
in interface org.apache.syncope.core.persistence.api.dao.AnyDAO<A extends org.apache.syncope.core.persistence.api.entity.Any<?>>
public A save(A any)
save
in interface org.apache.syncope.core.persistence.api.dao.AnyDAO<A extends org.apache.syncope.core.persistence.api.entity.Any<?>>
public void delete(String key)
delete
in interface org.apache.syncope.core.persistence.api.dao.AnyDAO<A extends org.apache.syncope.core.persistence.api.entity.Any<?>>
Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.