Class NSReplicationAgent
Replication/Travel administration.
Syntax
Examples
NSReplicationAgent agent;
agent.callMethod(arg1, arg2);
Constructors
NSReplicationAgent()
Replication/Travel administration.
Introduced or updated in version: 7
Declaration
NSReplicationAgent
Examples
NSReplicationAgent agent;
agent.callMethod(arg1, arg2);
Methods
CreateDefaultSatellite()
Sets default values into a new NSSatellite.
Introduced or updated in version: 7
Declaration
NSSatellite CreateDefaultSatellite()
Returns
Type | Description |
---|---|
NSSatellite |
Remarks
NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
Examples
NSReplicationAgent agent;
NSSatellite thing = agent.CreateDefaultSatellite();
thing = agent.SaveSatellite(thing);
GetArea(Integer)
Gets an NSArea object.
Introduced or updated in version: 7
Declaration
NSArea GetArea(Integer areaId)
Parameters
Type | Name | Description |
---|---|---|
Integer | areaId |
Returns
Type | Description |
---|---|
NSArea |
Examples
NSReplicationAgent agent;
NSArea thing = agent.GetArea(123);
GetAreaList(Integer[])
Gets an array of NSArea objectsGets an array of NSArea objects.
Introduced or updated in version: 7
Declaration
NSArea[] GetAreaList(Integer[] areaIds)
Parameters
Type | Name | Description |
---|---|---|
Integer[] | areaIds | The identifiers of the NSArea objects. |
Returns
Type | Description |
---|---|
Examples
Integer[] ids;
NSReplicationAgent agent;
agent.GetAreaList(ids);
GetCentralLicense()
Introduced or updated in version: 7
Declaration
NSLicenseOwner[] GetCentralLicense()
Returns
Type | Description |
---|---|
NSLicenseOwner[] |
GetSatellite(Integer)
Gets an NSSatellite object.
Introduced or updated in version: 7
Declaration
NSSatellite GetSatellite(Integer satelliteId)
Parameters
Type | Name | Description |
---|---|---|
Integer | satelliteId |
Returns
Type | Description |
---|---|
NSSatellite |
Examples
NSReplicationAgent agent;
NSSatellite thing = agent.GetSatellite(123);
SaveCentralLicense(NSLicenseOwner[])
Introduced or updated in version: 7
Declaration
NSLicenseOwner[] SaveCentralLicense(NSLicenseOwner[] license)
Parameters
Type | Name | Description |
---|---|---|
NSLicenseOwner[] | license |
Returns
Type | Description |
---|---|
NSLicenseOwner[] |
SaveSatellite(NSSatellite)
Updates the existing NSSatellite or creates a new NSSatellite if the ID parameter is 0.
Introduced or updated in version: 7
Declaration
NSSatellite SaveSatellite(NSSatellite satellite)
Parameters
Type | Name | Description |
---|---|---|
NSSatellite | satellite |
Returns
Type | Description |
---|---|
NSSatellite | The new or updated NSSatellite. |
Examples
NSReplication agent;
NSSatellite thing = agent.CreateDefaultSatellite();
thing = agent.SaveSatellite(thing);
SetFreetextSearchEnabledOnArea(Integer,Bool)
Enables free-text search on this area
Introduced or updated in version: 7.5
Declaration
Void SetFreetextSearchEnabledOnArea(Integer areaId, Bool freetextEnabled)
Parameters
Type | Name | Description |
---|---|---|
Integer | areaId | |
Bool | freetextEnabled |
Returns
Type | Description |
---|---|
Void |
Examples
NSReplicationAgent agent;
Integer areaId;
Bool freetextEnabled;
agent.SetFreetextSearchEnabledOnArea(areaId, freetextEnabled);