Service - Services Template

From Izara Wiki
Revision as of 12:55, 2 January 2026 by Sven the Barbarian (talk | contribs) (Created page with "= Overview = Same as Service - Inventory Template but for services. = Repository = ... = Object Schemas = ; Additional Information: Per Service Schemas == servicesTemplate == <syntaxhighlight lang="JavaScript"> { objectType: "servicesTemplate", canDelete: false, belongTo: { serviceTag: "user", objectType: "user" }, addOnDataStructure: [ { type: "attributeTree", attributeTreeTag: "servicesTemplateDefault" }, { type: "attributeT...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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: "user",
		objectType: "user"
	},
	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