IRPCPropertyDefs.GetObjectClass

View as Markdown

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

Gets one class by ID, with the property definitions associated with it.

ServiceProperty definitions and classes MFiles.IRPCPropertyDefs
gRPC method/MFiles.IRPCPropertyDefs/GetObjectClass
HTTP (mf-http-grpc)POST /grpc/v1/get-object-class
RequestGetObjectClassRequest
ResponseGetObjectClassResponse
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

Request: GetObjectClassRequest

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

FieldTypeDescription
class_idint32The ID of the class (an item ID in value list 1, Classes). 0 is the Document class; some built-in classes have negative IDs.
allow_deletedboolTrue to return the class even if it has been deleted.

Response: GetObjectClassResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page. Fields marked (recursive) refer to a type already on their path.

FieldTypeDescription
object_classObjectClassThe class. See ObjectClass.
object_class.base_infoValueListItemThe class as an item of value list 1 (Classes). The class ID is base_info.item_info.obj_id.item_id.internal_id and its name base_info.item_info.name.
object_class.base_info.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.
object_class.base_info.has_parentboolTrue if the item has a parent item in the same (hierarchical) list.
object_class.base_info.has_ownerboolTrue if the item belongs to an item of the owner list (ValueList.owner_object_type).
object_class.base_info.parent_idint32With has_parent, the item ID of the parent item; otherwise ignored.
object_class.base_info.owner_idint32With has_owner, the item ID of the owner item in the owner list.
object_class.base_info.owner_namestringThe name of the owner item.
object_class.base_info.automatic_permissionsAutomaticPermissionsIf set, specifies the automatic permissions for an object for which the user selects this item.
object_class.base_info.iconBytesIf set, contains the icon of this item in .ICO format.
object_class.associated_property_defs[]repeated AssociatedPropertyDefThe properties of objects of this class, each with is_required. Lists only property definitions the caller can see, and includes the built-in properties that every object has (such as 20 Created and 25 Created by).
object_class.associated_property_defs[].property_defint32The ID of the property definition.
object_class.associated_property_defs[].is_requiredboolTrue if objects of the class must have a value for this property.
object_class.default_workflowint32The default workflow of the document class, or zero if there is no default workflow.
object_class.object_typeint32The ID of the object type the class belongs to.
object_class.name_property_defint32The property definition whose value is the object's name: 0 (Name or title) unless the class names its objects by another property.
object_class.force_workflowboolTrue if objects of this class must use default_workflow.
object_class.aclAccessControlListSpecifies the ACL that defines the visibility and other permission settings of this class. Also specifies who can attach objects to this class.
object_class.acl.checked_out_to_userint32Specifies the ID of the user who has extended rights because of the checkout operation performed by her. 0 if such user does not exist.
object_class.acl.is_fully_authoritativeboolSpecifies whether this access control list is set to ignore the secondary permissions that come from the latest checked in version.
object_class.acl.custom_componentAccessControlListComponentAccesses the custom component of this ACL.
object_class.acl.restrictive_components[]repeated AccessControlListComponentMapEntryAccesses the restrictive automatic components of this ACL.
object_class.acl.secondary_access_control_listAccessControlList (recursive)Secondary ACL used for latest version ACL. Not used for access check if null.
object_class.acl.additive_components[]repeated AccessControlListComponentMapEntryAccesses the additive automatic components of this ACL.
object_class.current_user_permissionsClassPermissionsForClientIf set, specifies the permissions for current user that defines the visibility and other permission settings of this class.
object_class.current_user_permissions.can_user_seeboolThe class is visible for the current user.
object_class.current_user_permissions.can_user_attach_objectsboolThe current user can attach new objects to this class.
object_class.object_type_class_contentObjectTypeSpecificClassContentUnionSettings that only some object types have; set for the assignment classes of object type 10 (Assignment).
object_class.object_type_class_content.assignmentAssignmentClassInfo (oneof data)Assignment-specific class settings.
object_class.is_object_type_default_classboolTrue if this is the default class of its object type.