@PermitAll public class JpaSecurityRoleDao extends com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<SecurityRole,Long> implements SecurityRoleDao
SecurityRoleDao DAO interface.| Constructor and Description |
|---|
JpaSecurityRoleDao()
Creates new instance.
|
JpaSecurityRoleDao(javax.persistence.EntityManager em,
List<SecurityRoleChangePlugin> changePlugins)
Creates new instance of
JpaSecurityRoleDao. |
| Modifier and Type | Method and Description |
|---|---|
SecurityRole |
find(String securityRoleName)
|
Collection<SecurityRole> |
findAll()
Returns a collection of all
SecurityRole instances that exist in
the persistent storage or an empty collection if there is no such
instance. |
protected javax.persistence.EntityManager |
getEntityManager() |
void |
remove(Right right)
Removes a security right.
|
void |
remove(SecurityRole instance) |
clear, contains, findById, findById, findByIds, flush, getColName, getEntityClass, getEntityName, getReferenceById, merge, persist, refresh, refresh, setEntityClass, setLockModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic JpaSecurityRoleDao()
public JpaSecurityRoleDao(javax.persistence.EntityManager em,
List<SecurityRoleChangePlugin> changePlugins)
JpaSecurityRoleDao.em - the entity managerchangePlugins - protected javax.persistence.EntityManager getEntityManager()
getEntityManager in class com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<SecurityRole,Long>public void remove(SecurityRole instance)
remove in interface com.whitestein.lsps.common.BasicDao<SecurityRole,Long>remove in class com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<SecurityRole,Long>public SecurityRole find(String securityRoleName)
SecurityRoleDaofind in interface SecurityRoleDaosecurityRoleName - The name of the security role to find.SecurityRole instance with given securityRoleName or
null if there is no such instance.public Collection<SecurityRole> findAll()
SecurityRoleDaoSecurityRole instances that exist in
the persistent storage or an empty collection if there is no such
instance.findAll in interface SecurityRoleDaoSecurityRole instances that exist in
the persistent storage or an empty collection if there is no such
instance.public void remove(Right right)
SecurityRoleDaoremove in interface SecurityRoleDaoCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.