Class SupplierAgreement


public class SupplierAgreement extends ShadowAgreement
Supplier agreement object.
Since:
15.0
Author:
mv
  • Constructor Details

    • SupplierAgreement

      public SupplierAgreement(Entry agreement, Entry state, IsodeDirectorySession ds) throws ConfigOpFailedException
      Construct from the entry object.
      Parameters:
      agreement - Entry representing the agreement, must not be null
      state - Entry representing the state, can be null if not read
      ds - Isode directory session, must not be null
      Throws:
      ConfigOpFailedException - if mandatory attributes are not loaded
  • Method Details

    • load

      public void load(Entry entry) throws ConfigOpFailedException
      Description copied from class: ManagedObject
      Load values from an entry. No directory operation should be done in this method.

      Mandatory variables are assigned only after everything is ok. This is done so during re-loading, if there are exceptions and even then the object is used, there is no crash by using mandatory variables that are assumed to have non-null values.

      Specified by:
      load in class ManagedObject
      Parameters:
      entry - Entry representing the object, could be null if the existing entry has to be reloaded
      Throws:
      ConfigOpFailedException - if mandatory attributes are not loaded
    • create

      public static SupplierAgreement create(IsodeDirectorySession ds, DN dsa_dn, Integer id, Integer version, DN prefix_dn, Boolean enabled) throws ConfigOpFailedException, ReadFailedException
      Create a basic on change agreement.
      Parameters:
      ds - Isode directory session.
      dsa_dn - DSA DN.
      id - Agreement ID.
      version - Agreement version.
      prefix_dn - Prefix DN.
      enabled - Agreement enabled flag.
      Returns:
      The created agreement.
      Throws:
      ReadFailedException - if there is a problem on reading the committed entry back.
      ConfigOpFailedException - if there is any other problem on applying the changes.
    • getShadowArea

      public BAC.SubtreeSpecification getShadowArea()
      Get the shadow area.
      Returns:
      Shadow area.
    • setShadowArea

      public void setShadowArea(BAC.SubtreeSpecification area)
      Set the shadow area.
      Parameters:
      area - Shadow area.
    • getAttributeSelection

      public MS.AttributeSelection getAttributeSelection()
      Get the attribute selection.
      Returns:
      Attribute Selection.
    • setAttributeSelection

      public void setAttributeSelection(MS.AttributeSelection selection)
      Set the attribute selection.
      Parameters:
      selection - Attribute Selection.
    • getForbidAutoTotal

      public Boolean getForbidAutoTotal()
      Get the forbid auto total flag.
      Returns:
      Forbid Auto Flag
    • setForbidAutoTotal

      public void setForbidAutoTotal(Boolean forbid)
      Set the forbid auto total flag.
      Parameters:
      forbid - Forbid Auto Flag
    • toString

      public String toString()
      Overrides:
      toString in class ShadowAgreement