Jump to: navigation, search

Difference between revisions of "InstanceReplication"


(InstanceReplicationEnabled)
m
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Version/ServerSince|2.5.1}}  
+
An instance replication configuration defines how a single instance of a content object is replicated (copied). It serves as the general starting point of a replication process and can be easily enabled / disabled. {{Version/ServerSince|2.5.1}}
  
An instance replication configuration 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.
 
 
 
 
== Configuration Types ==
 
 
A template provides possibility to configure what information to be replicated:
 
A template provides possibility to configure what information to be replicated:
 
* Properties to be copied
 
* Properties to be copied
 
* Referencing objects to be copied
 
* Referencing objects to be copied
 
* Relations to be copied
 
* Relations to be copied
 
  
 
== Properties ==
 
== Properties ==
Line 19: Line 11:
 
! Property !! Type !! Purpose
 
! Property !! Type !! Purpose
 
|-
 
|-
| ''Enabled''|| Boolean || Gives the possibility to enable/disable an instance replication configuration. If not enabled, the process cannot be executed.
+
| ''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.
+
| ''TargetMetaClass''|| {{MetaClass}} || The reference to the MetaClass of the instances the configuration is valid for.
 
|-
 
|-
 
|}
 
|}
 
 
  
 
== Configurable Members ==
 
== Configurable Members ==
 
 
=== InstanceReplicationEnabled ===
 
=== InstanceReplicationEnabled ===
 
Determines whether the replication of the given source object is allowed.
 
Determines whether the replication of the given source object is allowed.
Line 45: Line 34:
 
<source lang="csharp">
 
<source lang="csharp">
 
protected override System.Boolean PropertyReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, UBIK.Kernel.BaseProperty property)
 
protected override System.Boolean PropertyReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, UBIK.Kernel.BaseProperty property)
{
+
{...}
 
</source>
 
</source>
  
Line 55: Line 44:
 
<source lang="csharp">
 
<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)
 
protected override System.Boolean ReferenceReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, System.String referenceName, System.Boolean reverse, UBIK.Kernel.MetaClass referenceTargetMetaClass)
{
+
{...}
 
</source>
 
</source>
 +
 +
== See also ==
 +
* [[ReplicationConfiguration|Replication configuration]]
 +
* [[DocumentReplication|Replication of a Document]]
 +
* [[ReferenceReplication|Replication of a Reference]]
 +
* [[RelationReplication|Replication of a Relation]]
 +
 +
{{Category/Version|2.5.1}}
 +
 +
[[Category:2.5.1|InstanceReplication]]
 +
[[Category:Replicating|InstanceReplication]]
 +
[[Category:UBIK Object|InstanceReplication]]

Latest revision as of 15:18, 2 May 2016

An instance replication configuration defines how a single instance of a content object is replicated (copied). It serves as the general starting point of a replication process and can be easily enabled / disabled.

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

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.

protected override System.Boolean InstanceReplicationEnabled(UBIK.Kernel.RelationalObject source)
{...}


PropertyReplicationEnabled

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

protected override System.Boolean PropertyReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, UBIK.Kernel.BaseProperty property)
{...}


ReferenceReplicationEnabled

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

protected override System.Boolean ReferenceReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, System.String referenceName, System.Boolean reverse, UBIK.Kernel.MetaClass referenceTargetMetaClass)
{...}

See also