public class PrincipalDAO extends Object
Constructor and Description |
---|
PrincipalDAO() |
Modifier and Type | Method and Description |
---|---|
void |
create(List<PrincipalEntity> entities)
Make instances managed and persistent.
|
void |
create(PrincipalEntity entity)
Make an instance managed and persistent.
|
List<PrincipalEntity> |
findAll()
Find all principals.
|
PrincipalEntity |
findById(Long id)
Find a principal with the given id.
|
List<PrincipalEntity> |
findByPermissionId(Integer id)
Find principals having specified permission.
|
List<PrincipalEntity> |
findByPrincipalType(String name) |
PrincipalEntity |
merge(PrincipalEntity entity)
Merge the given entity.
|
void |
remove(PrincipalEntity entity)
Remove the entity instance.
|
public PrincipalEntity findById(Long id)
id
- type idpublic List<PrincipalEntity> findAll()
public List<PrincipalEntity> findByPermissionId(Integer id)
id
- permission idpublic List<PrincipalEntity> findByPrincipalType(String name)
public void create(PrincipalEntity entity)
entity
- entity to storepublic void create(List<PrincipalEntity> entities)
entities
- entities to storepublic PrincipalEntity merge(PrincipalEntity entity)
entity
- the entitypublic void remove(PrincipalEntity entity)
entity
- entity to removeCopyright © 2022 Apache Software Foundation. All rights reserved.