IRPCPropertyDefsAdmin.AddObjectClass

View as Markdown

Administration API / specialized admin session

Creates a class with its property associations.

ServiceProperty definition and class administration MFiles.IRPCPropertyDefsAdmin
gRPC method/MFiles.IRPCPropertyDefsAdmin/AddObjectClass
HTTP (mf-http-grpc)POST /grpc/v1/add-object-class
RequestAddObjectClassRequest
ResponseAddObjectClassResponse
Book and levelAdministration API, specialized
Kindadmin
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentno
Returns metadata structure versionno
Streamingnone (unary)

Remarks

Request: AddObjectClassRequest

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

FieldTypeDescription
doc_classDocClassThe new class. The item ID and GUID in value_list_item are ignored and assigned by the server; object_type sets the object type of the class.
doc_class.value_list_itemValueListItemValue list item representing this document class.
doc_class.value_list_item.item_infoItemInfoThe item's identity and name: obj_id.type is the value list ID, obj_id.item_id.internal_id the item ID (unique within the list only), plus name, guid, external_id and flags. options.is_deleted marks a deleted item.
doc_class.value_list_item.has_parentboolTrue if the item has a parent item in the same (hierarchical) list.
doc_class.value_list_item.has_ownerboolTrue if the item belongs to an item of the owner list (ValueList.owner_object_type).
doc_class.value_list_item.parent_idint32With has_parent, the item ID of the parent item; otherwise ignored.
doc_class.value_list_item.owner_idint32With has_owner, the item ID of the owner item in the owner list.
doc_class.value_list_item.owner_namestringThe name of the owner item.
doc_class.value_list_item.automatic_permissionsAutomaticPermissionsIf set, specifies the automatic permissions for an object for which the user selects this item.
doc_class.value_list_item.iconBytesIf set, contains the icon of this item in .ICO format.
doc_class.workflowint32The default workflow of the document class, or zero if there is no default workflow.
doc_class.object_typeint32The object type with which this class is used.
doc_class.is_predefinedboolTrue if this is a predefined class (cannot be deleted, editing is restricted).
doc_class.force_workflowboolTrue if the use of the workflow with this class is enforced.
doc_class.name_property_defint32The ID of the property definition that represents the name of the document or other object. Typically PROPERTYDEF_TITLE (0).
doc_class.object_type_specific_propertiesObjectTypeSpecificClassContentUnionAdditional object type specific class content.
doc_class.object_type_specific_properties.assignmentAssignmentClassInfo (oneof data)Assignment-specific class settings.
doc_class.signature_settings_for_new_objectsElectronicSignatureSettingsThe electronic signature settings for creating an electronic signature for new objects. Reserved for future improvements.
doc_class.signature_settings_for_new_objects.is_requiredboolTrue if this transition requires an electronic signature.
doc_class.signature_settings_for_new_objects.prompt_modeElectronicSignaturePromptModeOption 1: static reason/meaning.Values: ELECTRONIC_SIGNATURE_PROMPT_MODE_FIXED (0), ELECTRONIC_SIGNATURE_PROMPT_MODE_SELECTABLE (1).
doc_class.signature_settings_for_new_objects.fixed_prompt_detailsElectronicSignaturePromptInfoOption 2: Pre-defined reason
doc_class.signature_settings_for_new_objects.selectable_prompt_details[]repeated ElectronicSignaturePromptInfoOption 3: Metadata-based reason/meaning.
doc_class.signature_settings_for_new_objects.user_selectable_reason_meaning_items_property_defint32A property definition that represents items in value list. Used if the prompt mode is eesrmpmPromptModeMetadataBasedUserSelectable.
doc_class.signature_settings_for_new_objects.user_selectable_reason_property_defint32A property definition that indicates the reason property. PROPERTYDEF_UNINITIALIZED if no reason is specified. Used if the prompt mode is eesrmpmPromptModeMetadataBasedUserSelectable.
doc_class.signature_settings_for_new_objects.user_selectable_meaning_property_defint32A property definition that indicates the meaning property. PROPERTYDEF_UNINITIALIZED if no meaning is specified. Used if the prompt mode is eesrmpmPromptModeMetadataBasedUserSelectable.
doc_class.signature_settings_for_new_objects.add_metadata_reference_to_reason_meaning_itemboolCommon prompt details.
doc_class.signature_settings_for_new_objects.prompt_free_form_textboolTrue if a free-form text is prompted with the signature.
doc_class.signature_settings_for_new_objects.free_form_text_property_defint32Signature details. boolean bFillReasonPropertyText; //!< Optional? boolean bFillMeaningPropertyText; //!< Optional?
doc_class.signature_settings_for_new_objects.manifestation_additional_infostringAdditional information for the manifestation text for the signature. This is not shown to the user when signing.
doc_class.signature_settings_for_new_objects.create_separate_signature_objectboolTrue if the electronic signature shall be stored as a separate signature object. False to store as an embedded signature in a multi-line text property.
doc_class.signature_settings_for_new_objects.manifestation_property_defint32Property definition to be used for storing the signature manifestation on the object. Ignored if bCreateSeparateSignatureObject is true.
doc_class.signature_settings_for_new_objects.signature_identifierstringSignature identifier. Required if bCreateSeparateSignatureObject is true.
doc_class.aliasesstringSemicolon-separated list of semantic aliases.
property_defs[]repeated AssociatedPropertyDefThe properties of the class and whether each is required.
property_defs[].property_defint32The ID of the property definition.
property_defs[].is_requiredboolTrue if objects of the class must have a value for this property.

Response: AddObjectClassResponse

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

FieldTypeDescription
idint32The ID of the new class.