Service - Services Template

From Izara Wiki
Jump to navigation Jump to search

Overview

Same as Service - Inventory Template but for services.

Repository

...

Object Schemas

Additional Information
Per Service Schemas

servicesTemplate

{
	objectType: "servicesTemplate",
	canDelete: false,
	belongTo: {
		serviceTag: "Business",
		objectType: "business"
	},
	addOnDataStructure: [
		{
		  type: "attributeTree",    
		  attributeTreeTag: "servicesTemplateDefault"
		},
		{
		  type: "attributeTree",    
		  attributeTreeTag: "servicesTemplateFixed"
		},
	],
	storageResources: {
		myGraph: {
			storageType: "graph",
			graphServerTag: "GraphHandler"
		}
    },
    fieldNames: {
		servicesTemplateId: {
			type: "string",
			randomOnCreate: true,
			storageResourceTags: ['myGraph']
		},
		servicesTemplateName: {
			type: "string",
			requiredOnCreate: true,
			canUpdate: true,
			userCanUpdate:true,
			storageResourceTags: ['myGraph']
		},
    },
    identifiers: [
		{
			type: "identifier",
			fieldName: "servicesTemplateId"
		}
    ]
}

Relationships

hasServicesTemplate

{
	hasServicesTemplate: {
		storageResources: {
			myGraph: {
				storageType: "graph",
				graphServerTag: "GraphHandler"			
			}
		},
		links: [
			{
				storageResourceTags: ["myGraph"],
				from: {
					objType: {
						serviceTag: "servicesManager",
						objectType: "services"
					},
					linkType: "many",
				},
				to: {
					objType: {
						serviceTag: "servicesTemplate",
						objectType: "servicesTemplate"
					},
					linkType: "many"
				}
			},
			{
				storageResourceTags: ["myGraph"],
				from: {
					objType: {
						serviceTag: "servicesTemplate",
						objectType: "servicesTemplate"
					},
					linkType: "many",
				},
				to: {
					objType: {
						serviceTag: "servicesTemplate",
						objectType: "servicesTemplate"
					},
					linkType: "many"
				}
			}
		]
	}
}

Working documents

Services Template