@Repository public class JPARoleDAO extends AbstractDAO<Role> implements RoleDAO
Modifier and Type | Field and Description |
---|---|
static String |
DYNMEMB_TABLE |
LOG
Constructor and Description |
---|
JPARoleDAO() |
Modifier and Type | Method and Description |
---|---|
void |
clearDynMembers(Role role) |
int |
count() |
void |
delete(Role role) |
void |
delete(String key) |
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) |
clear, detach, entityManager, entityManagerFactory, refresh
public static final String DYNMEMB_TABLE
public List<Role> findByRealm(Realm realm)
findByRealm
in interface RoleDAO
public List<Role> findByPrivilege(Privilege privilege)
findByPrivilege
in interface RoleDAO
public Role saveAndRefreshDynMemberships(Role role)
saveAndRefreshDynMemberships
in interface RoleDAO
public List<String> findDynMembers(Role role)
findDynMembers
in interface RoleDAO
public void clearDynMembers(Role role)
clearDynMembers
in interface RoleDAO
@Transactional public void refreshDynMemberships(User user)
refreshDynMemberships
in interface RoleDAO
public void removeDynMemberships(String key)
removeDynMemberships
in interface RoleDAO
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.