IRPCVault.GetMetadataStructure

View as Markdown

Vault API / core read session or assertion idempotent returns metadata structure version

Gets the vault's real object types (not value lists), with icons, in one call.

ServiceVault information MFiles.IRPCVault
gRPC method/MFiles.IRPCVault/GetMetadataStructure
HTTP (mf-http-grpc)POST /grpc/v1/get-metadata-structure
RequestGetMetadataStructureRequest
ResponseGetMetadataStructureResponse
Book and levelVault API, core
Kindread
SessionRequired: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
Idempotentyes
Returns metadata structure versionyes (in the mfiles-metadata-version-bin trailer)
Streamingnone (unary)

Remarks

Set object_type_and_value_list_request.include_real_object_types to true; with false, or with no request part set, the lists come back empty. Value lists are not returned by this method; use the object types and value lists services for those. The administrative request part requires the right to see the full metadata structure and fails with E_MFILES_ACCESS_DENIED otherwise.

Request: GetMetadataStructureRequest

A structure that specifies the request type for the GetMetadataStructure method.

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
object_type_and_value_list_requestObjectTypeAndValueListStructureRequestRequests the specified object types and value lists from the server when set.
object_type_and_value_list_request.include_real_object_typesboolRequests real object types from the vault.
object_type_and_value_list_admin_requestObjectTypeAndValueListAdminStructureRequestRequests the specified administrative object types and value lists from the server when set.
object_type_and_value_list_admin_request.include_real_object_typesboolRequests real administrative object types from the vault.

Response: GetMetadataStructureResponse

A structure that specifies the response type for the GetzMetadataStructure method.

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
object_type_and_value_list_responseObjectTypeAndValueListStructureResponseReceives the object types and value lists if they were requested.
object_type_and_value_list_response.object_types_and_value_lists[]repeated ValueListThe object type and value list entries.
object_type_and_value_list_response.object_types_and_value_lists[].idint32The ID of the object type or value list. Object types and value lists share one ID space; property definition IDs and item IDs are separate spaces.
object_type_and_value_list_response.object_types_and_value_lists[].name_singularstringThe singular name, for example "Customer". Empty if the caller is not allowed to see the list.
object_type_and_value_list_response.object_types_and_value_lists[].name_pluralstringThe plural name, for example "Customers". Empty if the caller is not allowed to see the list.
object_type_and_value_list_response.object_types_and_value_lists[].iconbytesThe icon in .ICO format. Filled only by GetObjectTypes and GetObjectType, and only for real object types; empty in GetValueLists and GetValueList.
object_type_and_value_list_response.object_types_and_value_lists[].is_real_object_typeboolTrue for an object type, whose items are objects (documents, customers); false for a plain value list (Country, Classes, Users).
object_type_and_value_list_response.object_types_and_value_lists[].is_hierarchicalboolTrue if items can have a parent item in the same list (ValueListItem.has_parent).
object_type_and_value_list_response.object_types_and_value_lists[].has_ownerboolTrue if every item belongs to an item of another list, the owner list (owner_object_type). For example, contact persons are owned by customers.
object_type_and_value_list_response.object_types_and_value_lists[].owner_object_typeint32With has_owner, the ID of the owner list or object type.
object_type_and_value_list_response.object_types_and_value_lists[].owner_property_defint32Owner property def. Subobjects of objects of this object type have this property in their meta data for describing owner relationships.
object_type_and_value_list_response.object_types_and_value_lists[].optionsOBJTYPEFLAGSFlags of the list, for example can_add_items and is_external. See OBJTYPEFLAGS.
object_type_and_value_list_response.object_types_and_value_lists[].default_property_defint32The ID of the lookup property definition that refers to items of this list by default, for example 1079 (Customer) for the Customer object type.
object_type_and_value_list_response.object_types_and_value_lists[].read_only_properties_during_insert[]repeated int32The propertydef IDs of those properties that cannot be entered during the creation of a new object because they are not included in the INSERT INTO statement.
object_type_and_value_list_response.object_types_and_value_lists[].read_only_properties_during_update[]repeated int32The propertydef IDs of those properties that cannot be entered during the editing of an existing object because they are not included in the UPDATE statement.
object_type_and_value_list_response.object_types_and_value_lists[].targets_for_browsing[]repeated ObjectTypeTargetForBrowsingObject type targets for browsing.
object_type_and_value_list_response.object_types_and_value_lists[].aclAccessControlListSpecifies the ACL that defines the visibility and other permission settings of this object type. Also specifies who can add new items to this object type.
object_type_and_value_list_response.object_types_and_value_lists[].object_type_permissionsObjectTypePermissionsForClientWhat the caller may do with the list: see it (can_user_see) and add items or objects (can_user_add_new_items). Filled by the read calls of IRPCObjectTypes and IRPCValueLists.
object_type_and_value_list_response.object_types_and_value_lists[].default_acl_for_objectsAccessControlListDefault ACL for new items/objects of this type. If unset, the global default is used (vlitems: read access to all internal users; real objects: full control for all internal users).
object_type_and_value_list_response.object_types_and_value_lists[].vl_sorting_type_reservedVLSortingTypeThe sorting type of value list items. NOTE: This value is not currently used but is reserved for future use. Currently, sorting order is specified on the property definition level only.Values: VLSORTING_TYPE_BY_DISPLAY_NAME (0), VLSORTING_TYPE_BY_EXTERNAL_ID (1).
object_type_and_value_list_response.object_types_and_value_lists[].sort_ascending_reservedboolTrue to sort in ascending order, false to sort in descending order. NOTE: This value is not currently used but is reserved for future use. Currently, sorting order is specified on the property definition level only.
object_type_and_value_list_response.object_types_and_value_lists[].guidstringThe GUID of the object type or value list, with braces. Resolve it to the vault's ID with GetMetadataStructureItemIdByGUID.
object_type_and_value_list_response.object_types_and_value_lists[].preferred_title_property_def_idint32Property definition ID of the title property for the user's preferred language.
object_type_and_value_list_response.object_types_and_value_lists[].search_characteristicsObjectTypeSearchCharacteristicsIf set, specifies search characteristics of the object type.
object_type_and_value_list_response.object_types_and_value_lists[].indexing_definitionObjectTypeIndexingDefinitionIf set, defines the indexed value lists and properties of the object type. Used for searching from Master Storage.
object_type_and_value_list_response.object_types_and_value_lists[].view_idint32The ID of the object type specific view.
object_type_and_value_list_admin_responseObjectTypeAndValueListAdminStructureResponseReceives the administrative object types and value lists if they were requested.
object_type_and_value_list_admin_response.object_types_and_value_lists[]repeated ValueListAdminThe object type and value list entries.
object_type_and_value_list_admin_response.object_types_and_value_lists[].object_typeValueListBasic data.
object_type_and_value_list_admin_response.object_types_and_value_lists[].database_connection_stringstringOLE DB connection string to the external database that contains the objects (and their properties) of this object type.
object_type_and_value_list_admin_response.object_types_and_value_lists[].database_select_all_statementstringSQL statement that retrieves the objects from an external database.
object_type_and_value_list_admin_response.object_types_and_value_lists[].database_select_one_statementstringSQL statement that retrieves a specific object from an external database.
object_type_and_value_list_admin_response.object_types_and_value_lists[].database_insert_statementstringSQL statement that inserts a new object to an external database.
object_type_and_value_list_admin_response.object_types_and_value_lists[].database_select_latest_id_statementstringSQL statement that retrieves the ID of the just inserted record in the external database.
object_type_and_value_list_admin_response.object_types_and_value_lists[].database_update_statementstringSQL statement that updates an existing object in an external database.
object_type_and_value_list_admin_response.object_types_and_value_lists[].database_delete_statementstringSQL statement that deletes an object in an external database.
object_type_and_value_list_admin_response.object_types_and_value_lists[].database_column_mappings[]repeated ObjectTypeColumnMappingColumn mappings.
object_type_and_value_list_admin_response.object_types_and_value_lists[].automatic_acl_for_objectsAutomaticPermissionsThe default automatic permissions for items and objects.
object_type_and_value_list_admin_response.object_types_and_value_lists[].aliasesstringSemicolon-separated list of semantic aliases.
object_type_and_value_list_admin_response.object_types_and_value_lists[].tags[]repeated NamedValueNamespaceNames value namespaces related to the object type.
object_type_and_value_list_admin_response.object_types_and_value_lists[].version_numberuint32Object type version number, used for OT modification conflicts tracking.