Changes

InstanceReplication

1,987 bytes added, 13:15, 22 October 2015
Created page with "An instance replicatoin configuratoin defines how to replicate (copy) a single instance. The instance replication configuration is used as general starting point of the execut..."
An instance replicatoin configuratoin defines how to replicate (copy) a single instance.
The instance replication configuration is used as general starting point of the execution, it can be enabled/disabled.[[BR]]
{{Version/ServerSince|2.5.1}}

== Configuration Types ==
A template provides possibility to configure what information to be replicated:
* Properties to be copied
* Referencing objects to be copied
* Relations to be copied


== Properties ==
{| class="wikitable" | width = "50%"
|-
! Property !! Type !! Purpose
|-
| ''Enabled''|| Boolean || Gives the possibility to enable/disable an instance replication configuration. If not enabled, the process cannot be executed.
|-
| ''TargetMetaClass''|| MetaClass || The reference to the MetaClass of the instances the configuration is valid for.
|-
|}



== Configurable Members ==

=== InstanceReplicationEnabled ===
Determines whether the replication of the given source object is allowed.
This member can be overwritten if a specific implementation is needed.

<source lang="csharp">
protected override System.Boolean InstanceReplicationEnabled(UBIK.Kernel.RelationalObject source)
{
</source>


=== PropertyReplicationEnabled ===
Determines as copying a propertyvalue to the target is enabled.
This member can be overwritten if a specific implementation is needed.

<source lang="csharp">
protected override System.Boolean PropertyReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, UBIK.Kernel.BaseProperty property)
{
</source>


=== ReferenceReplicationEnabled ===
Determines as replicating the given reference to the target is enabled.
This member can be overwritten if a specific implementation is needed.

<source lang="csharp">
protected override System.Boolean ReferenceReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, System.String referenceName, System.Boolean reverse, UBIK.Kernel.MetaClass referenceTargetMetaClass)
{
</source>
1,579
edits