public class KerberosPrincipalDAO extends Object
Constructor and Description |
---|
KerberosPrincipalDAO() |
Modifier and Type | Method and Description |
---|---|
void |
create(KerberosPrincipalEntity kerberosPrincipalEntity)
Make an instance managed and persistent.
|
KerberosPrincipalEntity |
create(String principalName,
boolean service)
Make an instance managed and persistent.
|
boolean |
exists(String principalName)
Tests the given principal name to see if it already exists.
|
KerberosPrincipalEntity |
find(String principalName)
Find a KerberosPrincipalEntity with the given principal name.
|
List<KerberosPrincipalEntity> |
findAll()
Find all kerberos principals.
|
KerberosPrincipalEntity |
merge(KerberosPrincipalEntity kerberosPrincipalEntity)
Merge the state of the given entity into the current persistence context.
|
void |
refresh(KerberosPrincipalEntity kerberosPrincipalEntity)
Refresh the state of the instance from the database,
overwriting changes made to the entity, if any.
|
void |
remove(KerberosPrincipalEntity kerberosPrincipalEntity)
Remove the entity instance.
|
void |
remove(List<KerberosPrincipalEntity> entities) |
void |
remove(String principalName)
Remove entity instance by primary key
|
boolean |
removeIfNotReferenced(KerberosPrincipalEntity kerberosPrincipalEntity)
Determines if there are any references to the
KerberosPrincipalEntity before attempting
to remove it. |
public void create(KerberosPrincipalEntity kerberosPrincipalEntity)
kerberosPrincipalEntity
- entity to persistpublic KerberosPrincipalEntity create(String principalName, boolean service)
principalName
- the principal name to use when creating a new KerberosPrincipalEntity to
storeservice
- a boolean value declaring whether the principal represents a service (true) or not )false).public KerberosPrincipalEntity merge(KerberosPrincipalEntity kerberosPrincipalEntity)
kerberosPrincipalEntity
- entity to mergepublic void remove(KerberosPrincipalEntity kerberosPrincipalEntity)
kerberosPrincipalEntity
- entity to removepublic void remove(String principalName)
principalName
- Primary key: kerberos principal namepublic void refresh(KerberosPrincipalEntity kerberosPrincipalEntity)
kerberosPrincipalEntity
- entity to refreshpublic KerberosPrincipalEntity find(String principalName)
principalName
- name of kerberos principal to findpublic List<KerberosPrincipalEntity> findAll()
public boolean exists(String principalName)
principalName
- name of kerberos principal to findpublic void remove(List<KerberosPrincipalEntity> entities)
public boolean removeIfNotReferenced(KerberosPrincipalEntity kerberosPrincipalEntity)
KerberosPrincipalEntity
before attempting
to remove it. If there are any references to it, the entity will be not be removed.kerberosPrincipalEntity
- the entitytrue
, if the entity was remove; false
otherwiseCopyright © 2022 Apache Software Foundation. All rights reserved.