Jump to: navigation, search

Difference between revisions of "DocumentReplication"


(InstanceReplicationEnabled)
m
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Version/ServerSince|2.5.1}}  
+
A document replication configuration specializes the definition of an instance replication. {{Version/ServerSince|2.5.1}}  
  
A document replication configuration specializes the definition of an instance replication.<BR>
+
A document replication configuration may only be used for file documents. It will replicate the referenced file document (referenced by the source) as well.
A document replication configuration may onlny be used for file documents. It will replicate the referenced file document (referenced by the source) as well. <BR>
+
  
 
{{Hint|If you need to replicate the document object but not its referenced file, use a normal instance replication instead.}}
 
{{Hint|If you need to replicate the document object but not its referenced file, use a normal instance replication instead.}}
Line 11: Line 10:
 
* Referencing objects to be copied
 
* Referencing objects to be copied
 
* Relations to be copied
 
* Relations to be copied
 
  
 
== Properties ==
 
== Properties ==
Line 23: Line 21:
 
|-
 
|-
 
|}
 
|}
 
 
  
 
== Configurable Members ==
 
== Configurable Members ==
 
  
 
=== DocumentReplicationEnabled ===
 
=== DocumentReplicationEnabled ===
Line 65: Line 60:
 
<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]]
 +
* [[InstanceReplication]]
 +
* [[ReferenceReplication]]
 +
* [[RelationReplication]]
 +
 +
{{Category/Version|2.5.1}}

Latest revision as of 15:11, 2 May 2016

A document replication configuration specializes the definition of an instance replication.

A document replication configuration may only be used for file documents. It will replicate the referenced file document (referenced by the source) as well.

IC Hint square.pngIf you need to replicate the document object but not its referenced file, use a normal instance replication instead.

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

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

DocumentReplicationEnabled

Determines whether the replication of the referenced source file document is allowed. This member can be overwritten if a specific implementation is needed.

protected virtual bool DocumentReplicationEnabled(Document.DocumentClass source)
{...}


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