Class BaseObjectPolicy

java.lang.Object
com._1c.g5.v8.dt.supply.internal.integration.BaseObjectPolicy
Direct Known Subclasses:
ContainmentIntegrationPolicy, ObjectIntegrationPolicy

public abstract class BaseObjectPolicy extends Object
Base integration policy implementation that contains internal representation of integration settings for business objects of the DT
  • Constructor Details

    • BaseObjectPolicy

      public BaseObjectPolicy()
      Constructs an instance of the policy
  • Method Details

    • addProperty

      public void addProperty(String name, PropertyIntegrationPolicy propertyIntegrationPolicy)
      Adds a property policy to this container.
      Parameters:
      name - The name of the property. Cannot be null
      propertyIntegrationPolicy - The property integration policy internal representation. Cannot be null
    • getPolicy

      public IntegrationPolicy getPolicy()
      Gets the integration policy.
      Returns:
      The integration policy. Can be null in case if the specific policy is not defined (e.g. container for finer-grained policies)
    • getProperty

      public PropertyIntegrationPolicy getProperty(String targetFeatureName)
      Gets the property integration policy, if any
      Parameters:
      targetFeatureName - The name of the target feature/path to the target feature
      Returns:
      The property integration policy, if any. null otherwise
    • isIntegratedReferencesOnlyRule

      public boolean isIntegratedReferencesOnlyRule(String collectionPropertyName)
      Checks if this policy contains the integrated reference only rule being defined for the specified property.
      Parameters:
      collectionPropertyName - The name of the target property. Cannot be null
      Returns:
    • setIntegratedReferencesOnlyRule

      public void setIntegratedReferencesOnlyRule(String propertyName)
      Sets the integrated referencens only rule for the given property.
      Parameters:
      propertyName - The name of the property. Cannot be null
    • setPolicy

      public void setPolicy(IntegrationPolicy policy)
      Sets the integration policy.
      Parameters:
      policy - The policy. Cannot be null