This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > %SYS namespace > SYS.Advertising.Advertisements

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

Inherited Members

Inherited Methods

Storage

Storage Model: CacheStorage (SYS.Advertising.Advertisements)

^SYS.Adverti14DF.AdvertisementsD(ID)
=
%%CLASSNAME
AdvertisementGenerator
AdvertiserGenerator
Active
FeedbackOpens in a new window