Show / Hide Table of Contents

Interface IReplicationAgent

Interface for the Replication Agent Replication/Travel administration

Online Restricted: This agent is not available in Online by default. Not available in Online. Only used on-site.
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
[Agent("Replication Agent", "Interface for the Replication Agent. Replication/Travel administration")]
public interface IReplicationAgent : IAgent
Examples
  using SuperOffice;
  using SuperOffice.CRM.Services;

  using (SoSession mySession = SoSession.Authenticate("user", "pass"))
  {
     using (ReplicationAgent agent = new ReplicationAgent())
     {
        // call methods on agent here...
     }
  }

Methods

CreateDefaultSatellite()

Loading default values into a new Satellite. NetServer calculates default values (e.g. Country) on the entity, which is required when creating/storing a new instance

Online Restricted: The Replication agent is not available in Online by default. Not available in Online. Only used on-site.
Declaration
Satellite CreateDefaultSatellite()
Returns
Type Description
Satellite

New Satellite with default values

Examples
  using SuperOffice;
  using SuperOffice.CRM.Services;

  using (SoSession mySession = SoSession.Authenticate("user", "pass"))
  {
     using (ReplicationAgent agent = new ReplicationAgent())
     {
        // call methods on agent here...
     }
  }

GetArea(Int32)

Gets a Area object.

Online Restricted: The Replication agent is not available in Online by default. Not available in Online. Only used on-site.
Declaration
Area GetArea(int areaId)
Parameters
Type Name Description
Int32 areaId

The identifier of the Area object

Returns
Type Description
Area

Area

Examples
  using SuperOffice;
  using SuperOffice.CRM.Services;

  using (SoSession mySession = SoSession.Authenticate("user", "pass"))
  {
     using (ReplicationAgent agent = new ReplicationAgent())
     {
        // call methods on agent here...
     }
  }

GetAreaList(Int32[])

Gets an array of Area objects.

Online Restricted: The Replication agent is not available in Online by default. Not available in Online. Only used on-site.
Declaration
Area[] GetAreaList(int[] areaIds)
Parameters
Type Name Description
Int32[] areaIds

The identifiers of the Area object

Returns
Type Description
Area[]

Array of Area objects

Examples
  using SuperOffice;
  using SuperOffice.CRM.Services;

  using (SoSession mySession = SoSession.Authenticate("user", "pass"))
  {
     using (ReplicationAgent agent = new ReplicationAgent())
     {
        // call methods on agent here...
     }
  }

GetCentralLicense()

Online Restricted: The Replication agent is not available in Online by default. Not available in Online. Only used on-site.
Declaration
LicenseOwner[] GetCentralLicense()
Returns
Type Description
LicenseOwner[]
Examples
  using SuperOffice;
  using SuperOffice.CRM.Services;

  using (SoSession mySession = SoSession.Authenticate("user", "pass"))
  {
     using (ReplicationAgent agent = new ReplicationAgent())
     {
        // call methods on agent here...
     }
  }

GetSatellite(Int32)

Gets a Satellite object.

Online Restricted: The Replication agent is not available in Online by default. Not available in Online. Only used on-site.
Declaration
Satellite GetSatellite(int satelliteId)
Parameters
Type Name Description
Int32 satelliteId

The identifier of the Satellite object

Returns
Type Description
Satellite

Satellite

Examples
  using SuperOffice;
  using SuperOffice.CRM.Services;

  using (SoSession mySession = SoSession.Authenticate("user", "pass"))
  {
     using (ReplicationAgent agent = new ReplicationAgent())
     {
        // call methods on agent here...
     }
  }

SaveCentralLicense(LicenseOwner[])

Online Restricted: The Replication agent is not available in Online by default. Not available in Online. Only used on-site.
Declaration
LicenseOwner[] SaveCentralLicense(LicenseOwner[] license)
Parameters
Type Name Description
LicenseOwner[] license
Returns
Type Description
LicenseOwner[]
Examples
  using SuperOffice;
  using SuperOffice.CRM.Services;

  using (SoSession mySession = SoSession.Authenticate("user", "pass"))
  {
     using (ReplicationAgent agent = new ReplicationAgent())
     {
        // call methods on agent here...
     }
  }

SaveSatellite(Satellite)

Updates the existing Satellite or creates a new Satellite if the id parameter is empty

Online Restricted: The Replication agent is not available in Online by default. Not available in Online. Only used on-site.
Declaration
Satellite SaveSatellite(Satellite satellite)
Parameters
Type Name Description
Satellite satellite

The Satellite that is saved.

Returns
Type Description
Satellite

New or updated Satellite

Examples
  using SuperOffice;
  using SuperOffice.CRM.Services;

  using (SoSession mySession = SoSession.Authenticate("user", "pass"))
  {
     using (ReplicationAgent agent = new ReplicationAgent())
     {
        // call methods on agent here...
     }
  }

SetFreetextSearchEnabledOnArea(Int32, Boolean)

Enable freetext search on this area

Online Restricted: The Replication agent is not available in Online by default. Not available in Online. Only used on-site.
Declaration
void SetFreetextSearchEnabledOnArea(int areaId, bool freetextEnabled)
Parameters
Type Name Description
Int32 areaId

The id of the area

Boolean freetextEnabled

True if freetextSearch on this area shall be enabled

Examples
  using SuperOffice;
  using SuperOffice.CRM.Services;

  using (SoSession mySession = SoSession.Authenticate("user", "pass"))
  {
     using (ReplicationAgent agent = new ReplicationAgent())
     {
        // call methods on agent here...
     }
  }
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top