Class JPADelegationDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<Delegation>
-
- org.apache.syncope.core.persistence.jpa.dao.JPADelegationDAO
-
- All Implemented Interfaces:
DAO<Delegation>
,DelegationDAO
public class JPADelegationDAO extends AbstractDAO<Delegation> implements DelegationDAO
-
-
Field Summary
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
-
Constructor Summary
Constructors Constructor Description JPADelegationDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(String key)
void
delete(Delegation delegation)
Delegation
find(String key)
List<Delegation>
findAll()
List<Delegation>
findByDelegated(User user)
List<Delegation>
findByDelegating(User user)
List<Delegation>
findByRole(Role role)
List<String>
findValidDelegating(String delegated)
Optional<String>
findValidFor(String delegating, String delegated)
Delegation
save(Delegation delegation)
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Method Detail
-
find
public Delegation find(String key)
- Specified by:
find
in interfaceDelegationDAO
-
findValidFor
public Optional<String> findValidFor(String delegating, String delegated)
- Specified by:
findValidFor
in interfaceDelegationDAO
-
findValidDelegating
public List<String> findValidDelegating(String delegated)
- Specified by:
findValidDelegating
in interfaceDelegationDAO
-
findByDelegating
public List<Delegation> findByDelegating(User user)
- Specified by:
findByDelegating
in interfaceDelegationDAO
-
findByDelegated
public List<Delegation> findByDelegated(User user)
- Specified by:
findByDelegated
in interfaceDelegationDAO
-
findByRole
public List<Delegation> findByRole(Role role)
- Specified by:
findByRole
in interfaceDelegationDAO
-
findAll
public List<Delegation> findAll()
- Specified by:
findAll
in interfaceDelegationDAO
-
save
public Delegation save(Delegation delegation)
- Specified by:
save
in interfaceDelegationDAO
-
delete
public void delete(Delegation delegation)
- Specified by:
delete
in interfaceDelegationDAO
-
delete
public void delete(String key)
- Specified by:
delete
in interfaceDelegationDAO
-
-