Building Blocks > Domain-Specific Building Blocks > Material Master Building Block > Key Services (Material Master Building Block)
Key Services (Material Master Building Block)
The material master building block contains CRUD services for the material master database tables. The following additional services on the PTC.MaterialMasterImpl.Manager_TT validate the data before it is inserted into the database tables.
AddMaterialMasterSiteLinks—Adds an entry in the materialMasterSiteLinks table.
DeleteMaterialMasterSiteLink—Deletes an entry from the materialMasterSiteLinks table.
GetMaterialMasterSiteLinks—Retrieves site links from the materialMasterSiteLinks table.
GetMaterialMasterWithSites—Retrieves the site associations for a material.
MaterialClassMasterLinksPreCreate—Performs pre-create validation of material class master link relationships by calling the ValidateMaterialClassMasterLinks service.
MaterialClassMasterLinksPreUpdate—Performs pre-update validation of material class master link relationships by calling the ValidateMaterialClassMasterLinks service.
MaterialMasterLinksPreCreate—Performs pre-create validation of material master link relationships by calling the ValidateMaterialMasterLinks service.
MaterialMasterLinksPreUpdate—Performs pre-update validation of material master link relationships by calling the ValidateMaterialMasterLinks.
MaterialMasterToClassLinksPreCreate—Performs pre-create validation of material master-to-class link relationships by calling the ValidateMaterialMasterToClassLinks service.
RegisterActionListeners—Registers the create and update action listeners for PTC.MaterialMaster.MaterialMasterToClassLink, PTC.MaterialMaster.MaterialMasterLink, and PTC.MaterialMaster.MaterialClassMasterLink. The action listeners are triggered when the database tables are created or updated. For more information, see Pre-, On-, and Post-Action Event Dispatching and Validation.
UpdateMaterialMasterSiteLinks—Updates one or more site links in the materialMasterSiteLinks table.
ValidateMaterialClassMasterLinks—Validates that the parent material class master and child material class master for the material class master link both belong to the same site.
ValidateMaterialMasterLinks—Validates that the parent material master and child material master for the material master link belong to the same site.
ValidateMaterialMasterToClassLinks—Validates that the material master and material master class for the material master-to-class link belong to the same site.
Was this helpful?