Class ModelCheckObjectContext

java.lang.Object
com._1c.g5.v8.derived.context.BasicObjectContext
com.e1c.g5.v8.dt.internal.check.context.ModelCheckObjectContext
All Implemented Interfaces:
IObjectDerivedDataContext

public class ModelCheckObjectContext extends BasicObjectContext
Specific DD context implementation for checkIds validation stage. Allows arranging of arbitrary check set for a single model object.
  • Constructor Details

    • ModelCheckObjectContext

      public ModelCheckObjectContext(long bmObjectId, org.eclipse.emf.ecore.EClass eClass, String segmentId, Object computationCause)
      Constructs a new instance of the context
      Parameters:
      bmObjectId - The identifier of the top BM object this context corresponds to
      eClass - The EClass of the of the top BM object this context corresponds to
      segmentId - The identifier of DD segment this context belongs to
      computationCause - The identifier of the sync. session
  • Method Details

    • addCheck

      public void addCheck(String checkId)
      Adds a check to the context
      Parameters:
      checkId - The identifier of the check to add. May not be null
    • addCheckIds

      public void addCheckIds(Set<String> checkIds)
      Adds multiple checks to this check.
      Parameters:
      checkIds - The set of checks to schedule. May not be null
    • getCheckIds

      public Set<String> getCheckIds()
      Gets the set of check id's being collected within this context.
      Returns:
      The set of check id's scheduled for the re-computation. May not be null
    • getContainmentContext

      public CheckContainmentObjectContext getContainmentContext(IBmObject bmObject)
      Gets context for the containment object.
      Parameters:
      bmObject - The object to get context for. May not be null
      Returns:
      The specific containment context. May not be null
    • getContainmentContext

      public CheckContainmentObjectContext getContainmentContext(long bmObjectId)
      Gets context for the containment object.
      Parameters:
      bmObjectId - The BM object identifier to get context for.
      Returns:
      The specific containment context. May not be null
    • getContainmentContexts

      public Collection<CheckContainmentObjectContext> getContainmentContexts()
      Gets the collection of containment contexts being associated with this context.
      Returns:
      The collection of containment contexts. May not be null
    • getFullRebuildCheckIdFilter

      public Collection<String> getFullRebuildCheckIdFilter()
      Gets an associated full rebuild check filter for the direct definition of a specific checks that should be scheduled during the full rebuild process. Used during the mass re-check operations only
      Returns:
      The set check identifiers. May not be null
    • getAdditionalContext

      public Map<String,String> getAdditionalContext()
      Gets an additional context map. Custom check context collectors are able to add specific context during the context collection phase
      Returns:
      The additional context map, never null
    • mergeUpdates

      public boolean mergeUpdates(IObjectDerivedDataContext context)
      Description copied from interface: IObjectDerivedDataContext
      Merges updates into the context. The base version of this context is being updated according to the verison of the provided context
      Parameters:
      context - The source of updates. Cannot be null.
    • setFullRebuild

      public void setFullRebuild(boolean fullRebuild)
      Description copied from interface: IObjectDerivedDataContext
      Sets/resets the full rebuild designator for the context object DD.
      Specified by:
      setFullRebuild in interface IObjectDerivedDataContext
      Overrides:
      setFullRebuild in class BasicObjectContext
      Parameters:
      fullRebuild - Full rebuild flag.
    • saveData

      public void saveData(IContextDataOutput dataOutput) throws IOException
      Description copied from interface: IObjectDerivedDataContext
      Saves data of this context to an external storage
      Parameters:
      dataOutput - The output stream to write data into. May not be null
      Throws:
      IOException
    • loadData

      public void loadData(IContextDataInput dataInput) throws IOException
      Description copied from interface: IObjectDerivedDataContext
      Loads previously stored data into this context
      Throws:
      IOException