IP Export Control Methods

IP Export Control methods provide elements that help you navigate through the classification model. You can use the following methods on the existing pre-commit triggers.

This page discusses:

getConnectedExportClasses

This method allows you to retrieve a list of export control, IP control, and security control classes connected to a protected item.

Signature

getConnectedExportClasses() : List

ReturnType

List

Example

let ToObject (BusinessType)
let testObject (BusinessType)
let FromObject (`Export Control Class`)
let FromObjectTitle (String)
let classes (List)
let subclasses (List)
let testClasses (List)
let classTitles (List)
let classTitle (String)
let ecls (List)

let i (Integer)
let class (`Export Control Class`)
let parentClass (`Export Control Class`)
let testClass (`Export Control Class`)
let gl (`Export Control Library`)
let isClassFound (Boolean)

// Classified Item
Set ToObject = ThisObject.GetTo()
// Class
Set FromObject = ThisObject.GetFrom()
Set FromObjectTitle = FromObject.Title

if (NULL <> ToObject) {
	// List of classes where ToObject i.e. Protected Item is protected
	Set classes = ToObject.getConnectedExportClasses()	
} else {
	ReportUXMessage("ToObject is null")
	Validation = false
}

getParentExportLibrary

This method allows you to retrieve the parent export control library of the corresponding export control class.

Signature

getParentExportLibrary() : Export Control Library

ReturnType

Export Control Library

Example

let ToObject (BusinessType)
let testObject (BusinessType)
let FromObject (`Export Control Class`)
let FromObjectTitle (String)
let classes (List)
let subclasses (List)
let testClasses (List)
let classTitles (List)
let classTitle (String)
let ecls (List)

let i (Integer)
let class (`Export Control Class`)
let parentClass (`Export Control Class`)
let testClass (`Export Control Class`)
let gl (`Export Control Library`)
let isClassFound (Boolean)

// Classified Item
Set ToObject = ThisObject.GetTo()

// Class
Set FromObject = ThisObject.GetFrom()
Set FromObjectTitle = FromObject.Title

if (NULL <> ToObject) {
	// List of classes where ToObject i.e. Protected Item is protected
	Set classes = ToObject.getConnectedExportClasses()
	
	// List of libraries which are associated with classes
	i = 1
	for i while i <= classes.Size() {
		Set class = classes.GetItem(i)
		// Get the library associated with the class and add to list
		Set library = class.getParentExportLibrary()
		libraries.AddItem(library, i)
	}	
} else {
	ReportUXMessage("ToObject is null")
	Validation = false
}

getParentExportClass

This method allows you to retrieve the parent export control class of the corresponding export control class.

Signature

getParentExportClass() : Export Control Class

ReturnType

Export Control Class

Example

let ToObject (BusinessType)
let testObject (BusinessType)
let FromObject (`Export Control Class`)
let FromObjectTitle (String)
let classes (List)
let subclasses (List)
let testClasses (List)
let classTitles (List)
let classTitle (String)
let ecls (List)

let i (Integer)
let class (`Export Control Class`)
let parentClass (`Export Control Class`)
let testClass (`Export Control Class`)
let gl (`Export Control Library`)
let isClassFound (Boolean)

// Classified Item
Set ToObject = ThisObject.GetTo()

// Class
Set FromObject = ThisObject.GetFrom()
Set FromObjectTitle = FromObject.Title

if (NULL <> ToObject) {
	// List of classes where ToObject i.e. Protected Item is protected
	Set classes = ToObject.getConnectedExportClasses()
// List of libraries which are associated with classes
	i = 1
	for i while i <= classes.Size() {
		Set class = classes.GetItem(i)
		// Get the library associated with the class and add to list
		Set library = class.getParentExportLibrary()
		libraries.AddItem(library, i)
	}
	
	// Get Parent Class
	Set parentClass = FromObject.getParentExportClass()	
} else {
	ReportUXMessage("ToObject is null")
	Validation = false
}

getExportSubclasses

This method allows you to retrieve a list of first-level export control subclasses of the corresponding export control class.

Signature

getExportSubclasses() : List

ReturnType

List

Example

let ToObject (BusinessType)
let testObject (BusinessType)
let FromObject (`Export Control Class`)
let FromObjectTitle (String)
let classes (List)
let subclasses (List)
let testClasses (List)
let classTitles (List)
let classTitle (String)
let ecls (List)

let i (Integer)
let class (`Export Control Class`)
let parentClass (`Export Control Class`)
let testClass (`Export Control Class`)
let gl (`Export Control Library`)
let isClassFound (Boolean)

// Classified Item
Set ToObject = ThisObject.GetTo()

// Class
Set FromObject = ThisObject.GetFrom()
Set FromObjectTitle = FromObject.Title

if (NULL <> ToObject) {
	// List of classes where ToObject i.e. Protected Item is protected
	Set classes = ToObject.getConnectedExportClasses()
	
	// List of libraries which are associated with classes
	i = 1
	for i while i <= classes.Size() {
Set class = classes.GetItem(i)
		// Get the library associated with the class and add to list
		Set library = class.getParentExportLibrary()
		libraries.AddItem(library, i)
	}
	
	// Get Parent Class
	Set parentClass = FromObject.getParentExportClass()
	
	// Get subclasses
	Set subclasses = FromObject.getExportSubclasses()
	
} else {
	ReportUXMessage("ToObject is null")
	Validation = false
}