Interface BatchTrans
public interface BatchTrans
Batch operations support to create/update/delete principal accounts
in a transaction.
-
Method Summary
Modifier and TypeMethodDescriptionaddIdentity(org.apache.kerby.kerberos.kerb.request.KrbIdentity identity) Add an identity, and return the newly created result.voidcommit()Commit this transaction, releasing any associated resources.deleteIdentity(String principalName) Delete the identity specified by principal namevoidrollback()Give up this transaction, releasing any associated resources.updateIdentity(org.apache.kerby.kerberos.kerb.request.KrbIdentity identity) Update an identity, and return the updated result.
-
Method Details
-
commit
void commit() throws org.apache.kerby.kerberos.kerb.KrbExceptionCommit this transaction, releasing any associated resources.- Throws:
org.apache.kerby.kerberos.kerb.KrbException
-
rollback
void rollback() throws org.apache.kerby.kerberos.kerb.KrbExceptionGive up this transaction, releasing any associated resources.- Throws:
org.apache.kerby.kerberos.kerb.KrbException
-
addIdentity
BatchTrans addIdentity(org.apache.kerby.kerberos.kerb.request.KrbIdentity identity) throws org.apache.kerby.kerberos.kerb.KrbException Add an identity, and return the newly created result.- Parameters:
identity- The identity- Returns:
- BatchTrans
- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
updateIdentity
BatchTrans updateIdentity(org.apache.kerby.kerberos.kerb.request.KrbIdentity identity) throws org.apache.kerby.kerberos.kerb.KrbException Update an identity, and return the updated result.- Parameters:
identity- The identity- Returns:
- BatchTrans
- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
deleteIdentity
Delete the identity specified by principal name- Parameters:
principalName- The principal name- Returns:
- BatchTrans
- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-