Property definition and class administration (IRPCPropertyDefsAdmin)

View as Markdown

Administers property definitions and classes: reads their full definitions, adds, modifies and removes them, and starts recalculation of automatic values.

Use this interface to add, modify and remove property definitions.

gRPC serviceMFiles.IRPCPropertyDefsAdmin
Book and levelAdministration API, specialized
Methods14
Proto filemfiles/IRPCPropertyDefsAdmin.proto

Overview

This is the administrator's side of IRPCPropertyDefs. M-Files Admin and administrative tools call it; ordinary applications read property definitions and classes with the Vault API instead.

Vault API (read side) This service
Property definitions GetPropertyDefs: PropertyDef GetPropertyDefsAdmin: PropertyDefAdmin, adding automatic value and validation settings and aliases
Classes GetObjectClassesAndGroups GetObjectClasses: DocClass, with workflow, name property and aliases
Rights none see below

Metadata structure version. Adding, updating and removing a property definition increments both property_defs_version and the vault's metadata structure version (see GetMetadataStructureVersion); class changes increment the metadata structure version. The methods of this service do not send the mfiles-metadata-version-bin trailer. See Metadata structure version and caching.

Methods

MethodSummaryFacts
AddObjectClassCreates a class with its property associations.admin session
AddPropertyDefCreates a property definition.admin session
GetAssociatedPropertyDefsGets the properties of a class: the property definitions associated with it and whether each is required.admin session idempotent
GetLastUsedValueGets the last number used by an automatic numbering property.admin session idempotent
GetObjectClassesGets the administrative definitions of all classes.admin session idempotent
GetPropertyDefAdminGets the administrative definition of one property definition.admin session
GetPropertyDefsAdminGets the administrative definitions of all property definitions.admin session idempotent
IsPropertyFullTextSearchIndexableTells whether the values of a property definition are indexed for full-text search.admin session idempotent
ModifyObjectClassSaves a changed class and, optionally, its property associations.admin session idempotent
RecalculatePropertyStarts a server job that recalculates the automatic values of a property in all existing objects.admin session
RemoveObjectClassDeletes a class.admin session
RemovePropertyDefDeletes a property definition and its values from all objects, or only counts the values that would be removed.admin session
UpdateObjectNamesStarts a server job that recalculates the names of all objects of a class from the class's name property.admin session
UpdatePropertyDefSaves a changed property definition.admin session idempotent