Class IntegrationModel
java.lang.Object
com._1c.g5.v8.dt.supply.internal.integration.IntegrationModel
Integration model contains information on library objects to be integrated in the course of the library integration.
Data are organized by top objects, each record contains full definition of the object/containments integration policies.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addModuleIntegrationPolicy
(String moduleFqn, ModuleIntegrationPolicy moduleIntegrationPolicy) Adds a new module integration policy to the model.void
addObjectIntegrationPolicy
(String objectFqn, ObjectIntegrationPolicy objectIntegrationPolicy) Adds integration policy for the object to the model.void
addProtectedObjects
(Set<String> protectedObjects) Adds the set of protected object FQNs to the model.void
addSuppliedWithFilterTask
(String namespace, ContainmentIntegrationPolicy containmentIntegrationPolicy) Adds a task for post-filteing of the supplied content based on the 'supplied with' rule.void
addSuppliedWithFilterTask
(String namespace, ObjectIntegrationPolicy objectIntegrationPolicy) Adds a task for post-filteing of the supplied content based on the 'supplied with' rule.void
addSuppliedWithFilterTask
(String namespace, PropertyIntegrationPolicy propertyIntegrationPolicy) Adds a task for post-filteing of the supplied content based on the 'supplied with' rule.void
confirmNamespaceIntegration
(String namespace) "Supply with" rule can remove objects from integraiton but cannot add them in case if owner policy states exclusion.getModuleIntegrationPolicy
(String moduleFqn) getObjectIntegrationPolicy
(String objectFqn) Provides the collection of integration policies for top objectsboolean
boolean
isProtected
(String topObjectFqn) boolean
void
TODO JavaDocvoid
markMainTopObjectForRemoval
(String objectFqn) Marks the object in the left project for the removal.void
setIntegrateObjectsByDefault
(boolean includeObjectsByDefault) Sets the default integration policy for supplied objects.void
setSupplyObjectsByDefault
(boolean includeObjectsByDefault) Sets the default supplement policy for supplied objects.boolean
shouldBeRemovedFromMain
(String objectFqn) Checks if the object from the MAIN configuration should be removed.
-
Constructor Details
-
IntegrationModel
public IntegrationModel()Constructs an instance of the model.
-
-
Method Details
-
addModuleIntegrationPolicy
public void addModuleIntegrationPolicy(String moduleFqn, ModuleIntegrationPolicy moduleIntegrationPolicy) Adds a new module integration policy to the model.- Parameters:
moduleFqn
- The module FQN, cannot benull
moduleIntegrationPolicy
- The module integration policy model. Cannot benull
-
addObjectIntegrationPolicy
public void addObjectIntegrationPolicy(String objectFqn, ObjectIntegrationPolicy objectIntegrationPolicy) Adds integration policy for the object to the model.- Parameters:
objectFqn
- The object FQN, cannot benull
moduleIntegrationPolicy
- The object integration policy model. Cannot benull
-
addProtectedObjects
Adds the set of protected object FQNs to the model.- Parameters:
protectedObjects
- The set of protected object FQNs. Cannot benull
, can be empty
-
addSuppliedWithFilterTask
public void addSuppliedWithFilterTask(String namespace, ContainmentIntegrationPolicy containmentIntegrationPolicy) Adds a task for post-filteing of the supplied content based on the 'supplied with' rule.- Parameters:
namespace
- The namespace the filter is defined for. Cannot benull
containmentIntegrationPolicy
- The corresponding containment integraiton policy. Cannot benull
-
addSuppliedWithFilterTask
public void addSuppliedWithFilterTask(String namespace, ObjectIntegrationPolicy objectIntegrationPolicy) Adds a task for post-filteing of the supplied content based on the 'supplied with' rule.- Parameters:
namespace
- The namespace the filter is defined for. Cannot benull
objectIntegrationPolicy
- The corresponding object integraiton policy. Cannot benull
-
addSuppliedWithFilterTask
public void addSuppliedWithFilterTask(String namespace, PropertyIntegrationPolicy propertyIntegrationPolicy) Adds a task for post-filteing of the supplied content based on the 'supplied with' rule.- Parameters:
namespace
- The namespace the filter is defined for. Cannot benull
propertyIntegrationPolicy
- The corresponding property integraiton policy. Cannot benull
-
confirmNamespaceIntegration
"Supply with" rule can remove objects from integraiton but cannot add them in case if owner policy states exclusion. So any confirmed namespace integration simply confirms previously collected policies- Parameters:
namespace
- The namespace to confirm integration for
-
getModuleIntegrationPolicy
-
getObjectIntegrationPolicy
-
isIntegrateSuppliedObjectsByDefault
public boolean isIntegrateSuppliedObjectsByDefault() -
isProtected
-
isSupplyObjectsByDefault
public boolean isSupplyObjectsByDefault() -
markAllUnconfirmedNamespaceIntegrationsAsExcluded
public void markAllUnconfirmedNamespaceIntegrationsAsExcluded()TODO JavaDoc -
markMainTopObjectForRemoval
Marks the object in the left project for the removal. It's always a top object due to the nature of namespaces.- Parameters:
objectFqn
- The FQN to mark for the removal. Cannot benull
-
setIntegrateObjectsByDefault
public void setIntegrateObjectsByDefault(boolean includeObjectsByDefault) Sets the default integration policy for supplied objects.- Parameters:
includeObjectsByDefault
- The default integration policy
-
setSupplyObjectsByDefault
public void setSupplyObjectsByDefault(boolean includeObjectsByDefault) Sets the default supplement policy for supplied objects.- Parameters:
includeObjectsByDefault
- The default supplement policy
-
shouldBeRemovedFromMain
Checks if the object from the MAIN configuration should be removed. Used during the integration of namespaces- Parameters:
objectFqn
- The FQN of the target object- Returns:
- True if the object should be removed
-
getTopObjectIntegrationPolicies
Provides the collection of integration policies for top objects- Returns:
- the map of integration policies for top objects, key is top object FQN, neve
null
, can be empty
-