AMT Help Files
homeAMT Developer StudioCode ManagementLionRepository ModuleInterfacesILionObject

ILionObject

This section details the functions and properties of the AMT Repository Module Object interface.

Properties

Name Type Access Description
Kind LionObjectType Read only Returns the kind of the Lion object.
See the LionObjectType enumeration below for possible values.
Name String Read only Returns the name of the Lion object.

Functions

Function name Return type Parameters Description
Name Type
GetRevision ILionRevision Object Revision String Locates the specified revision id in the object e.g. "1.2" or "1.2.1.3".
Returns an ILionRevision Object, or null when the revision is not found.
GetRevisions List of
ILionRevision Objects
Returns a list of revisions of this object as ILionRevision Objects.
GetRevisions2 Array of
ILionRevision Objects
Returns an array of revisions of this object as ILionRevision Objects.

Enumerations

Name Type Enumeration
LionObjectType
Namespace:
Asysco.Lion.Repository.Model
Integer
  • Unknown = 0
  • ApplicationOld = 202
  • GlobalDefinition = 233
  • GlobalDictionary = 234
  • Table = 210
  • Sequencer = 211
  • Index = 216
  • StoredProcedure = 218
  • GlobalFileDefinition = 220
  • GlobalInsertable = 213
  • GlobalPerformable = 214
  • GlobalDll = 215
  • GlobalIncludable = 223
  • ImageList = 225
  • FormUser = 205
  • FormInsertable = 204
  • FormPopup = 226
  • FormTemplate = 206
  • ReportInsertable = 207
  • ReportUser = 208
  • ReportTemplate = 209
  • Classes = 221
  • ScriptFile = 263
  • ScriptTemplate = 264
  • WebServiceConsumable = 180
  • WebServiceProvided = 181
  • WebServiceConsumableNew = 183
  • WebServiceProvidedNew = 184
  • RestApiProvided = 185
  • RestApiConsumable = 186
  • View = 257
  • ApplicationCobolOld = 300
  • CobolProgram = 310
  • CobolSubprogram = 311
  • CobolCopy = 312
  • CobolForm = 313
  • CobolFormIncludable = 314
  • XGenProgram = 317
  • XGenCopy = 318
  • DMS2200Table = 330
  • DMS2200SubSchema = 331
  • DMS2200Set = 332
  • DMS2200Area = 333
  • DMS2200Schema = 334
  • ExternalInterface = 341
  • ImsDbd = 355
  • ImsPsb = 361
  • DataComTable = 363
  • Schema = 371
  • ApplicationKindLionASeries = 901
  • ApplicationKindLionOS2200 = 903
  • ApplicationKindLionUnix = 909
  • ApplicationKindCobolASeries = 911
  • ApplicationKindCobolIbm = 912
  • ApplicationKindCobolOS2200 = 913
  • ApplicationKindCobolMiFoUnix = 919
  • ApplicationKindCobolMiFoWindows = 920

Example

C#

ILionObject report = app.GetLionObject("KOREP", LionObjectType.ReportUser);

foreach (ILionRevision rev in report.GetRevisions()) {
  Log("Revision: " + rev.Revision);
}

ILionRevision rev2 = report.GetRevision("1.3");
Log("Single revision: " + rev2.Revision);

PowerShell

$O_Report = $O_App.GetLionObject("KOREP", 208)

foreach ($O_Rev in $O_Report.GetRevisions()) {
  Write-Host("Revision: " + $O_Rev.Revision)
}

$O_Rev2 = $O_Report.GetRevision("1.3")
Write-Host("Single revision: " + $O_Rev2.Revision)

Contents

 Go to top