Class UsmMIB.UsmTableRow

All Implemented Interfaces:
Comparable<MOTableRow>, MOMutableRow2PC<SubRequest<?>>, MOMutableTableRow, MOTableRow
Enclosing class:
UsmMIB

public class UsmMIB.UsmTableRow extends DefaultMOMutableRow2PC
  • Constructor Details

    • UsmTableRow

      public UsmTableRow(UsmMIB.UsmTableModel model, org.snmp4j.smi.OID index, org.snmp4j.smi.Variable[] values)
  • Method Details

    • setCloned

      public void setCloned(boolean cloned)
    • isCloned

      public boolean isCloned()
    • getIndexDef

      public MOTableIndex getIndexDef()
    • getAuthProtocol

      public org.snmp4j.security.AuthenticationProtocol getAuthProtocol(MOTableRow changeSet)
    • getPrivProtocol

      public org.snmp4j.security.PrivacyProtocol getPrivProtocol(MOTableRow changeSet)
    • getPrivProtocolOID

      public org.snmp4j.smi.OID getPrivProtocolOID(MOTableRow preparedChanges)
      Gets the OID of the privacy protocol defined by the given change set. If the change set defines UsmMIB.noPrivProtocol null is returned.
      Parameters:
      preparedChanges - a TableRow instance with UsmTableRow values.
      Returns:
      a privacy protocol OID or null if no privacy protocol is defined by changeSet.
    • prepare

      public void prepare(SubRequest<?> subRequest, MOTableRow preparedChanges, int column)
      Description copied from interface: MOMutableRow2PC
      Prepares changing a single column.
      Specified by:
      prepare in interface MOMutableRow2PC<SubRequest<?>>
      Overrides:
      prepare in class DefaultMOMutableRow2PC
      Parameters:
      subRequest - the sub-request that corresponds to the column change. This object can be used to deny the commit phase by setting its error status.
      preparedChanges - a MOTableRow instance that represents the state of the row if all changes have been applied successfully.
      column - the column index of the column to be changed.
    • commitRow

      public void commitRow(SubRequest<?> subRequest, MOTableRow changeSet)
      Description copied from interface: MOMutableRow2PC
      Commits a row as described by the supplied change set. If the modification cannot be successfully committed, the error status of the supplied subRequest should be set to commitFailed. Setting this error should be avoided under any circumstances.

      This method is called only once per modified row.

      Specified by:
      commitRow in interface MOMutableRow2PC<SubRequest<?>>
      Overrides:
      commitRow in class DefaultMOMutableRow2PC
      Parameters:
      subRequest - the sub-request that triggered the row change and that can be used to trigger the undo phase by setting its error status.
      changeSet - a MOTableRow instance that represents the state of the row if all changes have been applied successfully.
    • getAuthProtocolOID

      public org.snmp4j.smi.OID getAuthProtocolOID(MOTableRow changeSet)
      Gets the OID of the authentication protocol defined by the given change set. If the change set defines UsmMIB.noAuthProtocol null is returned.
      Parameters:
      changeSet - a TableRow instance with UsmTableRow values.
      Returns:
      an authentication protocol OID or null if no authentication protocol is defined by changeSet.
    • cleanupRow

      public void cleanupRow(SubRequest<?> subRequest, DefaultMOTable.ChangeSet changeSet)
      Description copied from interface: MOMutableRow2PC
      Cleans up resources for a row.

      This method is called only once per modified row.

      Specified by:
      cleanupRow in interface MOMutableRow2PC<SubRequest<?>>
      Overrides:
      cleanupRow in class DefaultMOMutableRow2PC
      Parameters:
      subRequest - the sub-request that triggered the row change.
      changeSet - a MOTableRow instance that represents the state of the row if all changes have been applied successfully.
    • undoRow

      public void undoRow(SubRequest<?> subRequest, DefaultMOTable.ChangeSet changeSet)
      Description copied from interface: MOMutableRow2PC
      Undoes changes to a row.

      This method is called only once per modified row.

      Specified by:
      undoRow in interface MOMutableRow2PC<SubRequest<?>>
      Overrides:
      undoRow in class DefaultMOMutableRow2PC
      Parameters:
      subRequest - the sub-request that triggered the row change.
      changeSet - a MOTableRow instance that represents the state of the row if all changes have been applied successfully.
    • getValue

      public org.snmp4j.smi.Variable getValue(int column)
      Description copied from interface: MOTableRow
      Gets the value at the specified column index.
      Specified by:
      getValue in interface MOTableRow
      Overrides:
      getValue in class DefaultMOMutableRow2PC
      Parameters:
      column - the zero-based column index.
      Returns:
      the value at the specified index.
    • containsHiddenValues

      public boolean containsHiddenValues()
    • clearKeyChangeObjects

      public void clearKeyChangeObjects()