Class JPARoleDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<Role>
-
- org.apache.syncope.core.persistence.jpa.dao.JPARoleDAO
-
-
Field Summary
Fields Modifier and Type Field Description protected AnyMatchDAO
anyMatchDAO
protected AnySearchDAO
anySearchDAO
protected DelegationDAO
delegationDAO
static String
DYNMEMB_TABLE
protected ApplicationEventPublisher
publisher
protected SearchCondVisitor
searchCondVisitor
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
-
Constructor Summary
Constructors Constructor Description JPARoleDAO(AnyMatchDAO anyMatchDAO, ApplicationEventPublisher publisher, AnySearchDAO anySearchDAO, DelegationDAO delegationDAO, SearchCondVisitor searchCondVisitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearDynMembers(Role role)
int
count()
void
delete(String key)
void
delete(Role role)
Role
find(String key)
List<Role>
findAll()
List<Role>
findByPrivilege(Privilege privilege)
List<Role>
findByRealm(Realm realm)
List<String>
findDynMembers(Role role)
void
refreshDynMemberships(User user)
void
removeDynMemberships(String key)
Role
save(Role role)
Role
saveAndRefreshDynMemberships(Role role)
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Field Detail
-
DYNMEMB_TABLE
public static final String DYNMEMB_TABLE
- See Also:
- Constant Field Values
-
anyMatchDAO
protected final AnyMatchDAO anyMatchDAO
-
publisher
protected final ApplicationEventPublisher publisher
-
anySearchDAO
protected final AnySearchDAO anySearchDAO
-
delegationDAO
protected final DelegationDAO delegationDAO
-
searchCondVisitor
protected final SearchCondVisitor searchCondVisitor
-
-
Constructor Detail
-
JPARoleDAO
public JPARoleDAO(AnyMatchDAO anyMatchDAO, ApplicationEventPublisher publisher, AnySearchDAO anySearchDAO, DelegationDAO delegationDAO, SearchCondVisitor searchCondVisitor)
-
-
Method Detail
-
findByRealm
public List<Role> findByRealm(Realm realm)
- Specified by:
findByRealm
in interfaceRoleDAO
-
findByPrivilege
public List<Role> findByPrivilege(Privilege privilege)
- Specified by:
findByPrivilege
in interfaceRoleDAO
-
saveAndRefreshDynMemberships
public Role saveAndRefreshDynMemberships(Role role)
- Specified by:
saveAndRefreshDynMemberships
in interfaceRoleDAO
-
findDynMembers
public List<String> findDynMembers(Role role)
- Specified by:
findDynMembers
in interfaceRoleDAO
-
clearDynMembers
public void clearDynMembers(Role role)
- Specified by:
clearDynMembers
in interfaceRoleDAO
-
refreshDynMemberships
@Transactional public void refreshDynMemberships(User user)
- Specified by:
refreshDynMemberships
in interfaceRoleDAO
-
removeDynMemberships
public void removeDynMemberships(String key)
- Specified by:
removeDynMemberships
in interfaceRoleDAO
-
-