This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see Why Migrate to InterSystems IRIS?

SYS.Advertising.Advertisements

persistent class SYS.Advertising.Advertisements extends %Library.Persistent

SQL Table Name: SYS_Advertising.Advertisements

Manages the advertisement of instance services TODO: Needs a better name so as not to conflict with %Service.Advertisement

Property Inventory

Method Inventory

Properties

property Active as Predicate;
Property methods: ActiveGet(), ActiveGetObject(), ActiveGetObjectId(), ActiveGetStored(), ActiveGetSwizzled(), ActiveIsValid(), ActiveNewObject(), ActiveSet(), ActiveSetObject(), ActiveSetObjectId(), ActiveUnSwizzle()
property AdvertisementGenerator as AdvertisementGenerator;
Property methods: AdvertisementGeneratorGet(), AdvertisementGeneratorGetObject(), AdvertisementGeneratorGetObjectId(), AdvertisementGeneratorGetStored(), AdvertisementGeneratorGetSwizzled(), AdvertisementGeneratorIsValid(), AdvertisementGeneratorNewObject(), AdvertisementGeneratorSet(), AdvertisementGeneratorSetObject(), AdvertisementGeneratorSetObjectId(), AdvertisementGeneratorUnSwizzle()
property AdvertiserGenerator as AdvertiserGenerator;
Property methods: AdvertiserGeneratorGet(), AdvertiserGeneratorGetObject(), AdvertiserGeneratorGetObjectId(), AdvertiserGeneratorGetStored(), AdvertiserGeneratorGetSwizzled(), AdvertiserGeneratorIsValid(), AdvertiserGeneratorNewObject(), AdvertiserGeneratorSet(), AdvertiserGeneratorSetObject(), AdvertiserGeneratorSetObjectId(), AdvertiserGeneratorUnSwizzle()

Methods

Generate an Advertisement from the AdvertisementGenerator and advertise or delist it with an Advertiser generated from the AdvertiserGenerator based on the current value of the Active predicate
classmethod AdvertiseAll()
Advertise or delist all saved instances of this class. See the Advertise() method for details
classmethod Server(seconds As %Integer = 3)
Meant to be run as a job, this method refreshes all advertisements every given number of seconds (default is 3)
classmethod SimpleServiceAdvertisement(advertisementGenerator As AdvertisementGenerator, requiredService As %String, advertiserClassName As %String) as Advertisements
Creates a "standard" advertisement object

Indexes

index (IDKEY on ) [IdKey, Type = key];
Index methods: IDKEYCheck(), IDKEYDelete(), IDKEYExists(), IDKEYOpen(), IDKEYSQLCheckUnique(), IDKEYSQLExists(), IDKEYSQLFindPKeyByConstraint(), IDKEYSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods

Storage

Storage Model: CacheStorage (SYS.Advertising.Advertisements)

^SYS.Adverti14DF.AdvertisementsD(ID)
=
%%CLASSNAME
AdvertisementGenerator
AdvertiserGenerator
Active
Feedback