get_object_storing_location method

get_object_storing_location

Determines where object should be stored. This method is called once for each object id. It is not guaranteed that there won’t be two objects with same data, semanticName and contentType but with different id.

Returns

Decision

def get_object_storing_location(self, id, entity_data, semantic_name, content_type, recomended_extension):
    ...
ParameterTypeDescription
idintObject id. This id is saving operation-wide unique.
entity_databytesObject binary data. This parameter can be null, if object binary data is not generated yet.
semantic_namestrSome short text, describing meaning of object. Controller may use this as a part of external object name, but it is up to dispatcher to ensure that names will be unique and contain only allowed characters.
content_typestrMIME type of object.
recomended_extensionstrFile name extension, recommended for this MIME type.

See Also