Over the course of the next 12 months I will be adding functions to this page so bookmark it and come back regularly for new cool features and updates.
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: OrchestratorBaseService.ts
import { MissingRequiredParameterError } from "../Extensions";
import { BaseService } from "../BaseService";
export class PluginBaseService extends BaseService {
constructor(strProjectID: string) {
if (!strProjectID) {
throw new MissingRequiredParameterError('strProjectID');
}
super(strProjectID, "Orchestrator");
this.arrWorkflows = [];
}
protected serverFindAllForType<T>(strObjectTypeName: string, strQuery?: string, blnXPathQuery: boolean = true): T[] {
if (blnXPathQuery === true && strQuery) {
strQuery = `xpath:${strQuery}`;
}
let arrObjectType: T[] = Server.findAllForType(strObjectTypeName, strQuery) as T[];
return arrObjectType;
}
protected serverFindForType<T>(strObjectTypeName: string, strObjectID: string): T {
let objObjectType: T = Server.findForType(strObjectTypeName, strObjectID) as T;
return objObjectType;
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
