Interface BatchTrans


public interface BatchTrans
Batch operations support to create/update/delete principal accounts in a transaction.
  • Method Summary

    Modifier and Type
    Method
    Description
    addIdentity(org.apache.kerby.kerberos.kerb.request.KrbIdentity identity)
    Add an identity, and return the newly created result.
    void
    Commit this transaction, releasing any associated resources.
    deleteIdentity(String principalName)
    Delete the identity specified by principal name
    void
    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.KrbException
      Commit this transaction, releasing any associated resources.
      Throws:
      org.apache.kerby.kerberos.kerb.KrbException
    • rollback

      void rollback() throws org.apache.kerby.kerberos.kerb.KrbException
      Give 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

      BatchTrans deleteIdentity(String principalName) throws org.apache.kerby.kerberos.kerb.KrbException
      Delete the identity specified by principal name
      Parameters:
      principalName - The principal name
      Returns:
      BatchTrans
      Throws:
      org.apache.kerby.kerberos.kerb.KrbException - e