Name

global.SPMUtilsFactory

Description

Factory object that encapsulates the instantiation of the SPMUtil extension point.

Script

var SPMUtilsFactory = Class.create();
SPMUtilsFactory.prototype = {
  initialize: function() {
  	
  },
  
  getUtils: function() {
  	if (typeof GlideScriptedExtensionPoint == "undefined") {
  		gs.info(gs.getMessage("Scripted extension points are not enabled", epName));
  		return false;
  	}
  	try {
  		var ep = new GlideScriptedExtensionPoint().getExtensions('SPMUtils');
  		if (ep.length > 0) {
  			ep[0].initialize();
  			return ep[0];
  		}
  	} catch (ex) {
  		gs.error("global.SPMUtilsFactory: Error fetching extension point - "+ex);
  	}

  	return false;
  },
  type: 'SPMUtilsFactory'
};

Sys ID

4e23fe59b3403300f224a72256a8dc26

Offical Documentation

Official Docs: