new RecordTypesLibraryFactory()
Note: The constructor is not accessible from the client
code. Instances of the factory are created by module's
createLibraryFactory()
function.
Methods
-
addExtension(extension)
-
Add record types library extension to the factory.
Parameters:
Name Type Description extension
module:x2node-records.Extension The extension. Returns:
This factory. -
buildLibrary(libraryDef)
-
Build record types library using the provided definitions.
Parameters:
Name Type Description libraryDef
Object Library definition object including record type definitions. Throws:
-
If any record type definitions are found invalid.
Returns:
Record types library. -