ITK Function Reference

(V10000.1.0.60_20160308.00)
Modules | Data Structures | Macros | Typedefs | Enumerations | Functions
Object Import and Export

Modules

 OBJIO Errors
 
 Backup Import Export Recovery Errors
 
 Teamcenter Engineering Export Record Errors
 
 Global Organization
 
 OBJIO Storage Media
 
 OBJIO Storage Media Errors
 
 OBJIO Storage Media Messages
 
 Teamcenter/PART21 Translator Functions
 
 Teamcenter/STEP Translator Functions
 

Data Structures

struct  OBJIO_report_s
 

Macros

#define OBJIO_abort_if_checked_out   4
 
#define OBJIO_all_released_revs_only   37
 
#define OBJIO_archive_type   3
 
#define OBJIO_assume_ownership   3
 
#define OBJIO_backup_type   5
 
#define OBJIO_bom_pf_option   47
 
#define OBJIO_completion_report   29
 
#define OBJIO_continue_on_error   30
 
#define OBJIO_dataset_all_versions   1
 
#define OBJIO_defer_bulk_data_xfer   44
 
#define OBJIO_error_report   48
 
#define OBJIO_exclude_no_xfr_comp   19
 
#define OBJIO_exclude_protected_comp   20
 
#define OBJIO_exclude_protected_wso   18
 
#define OBJIO_exclude_variant_expressions   42
 
#define OBJIO_export_BOM_components   16
 
#define OBJIO_export_dataset_refs   15
 
#define OBJIO_export_for_remote_checkin   40
 
#define OBJIO_export_recovery_mode   51
 
#define OBJIO_export_type   1
 
#define OBJIO_force_import_export   31
 
#define OBJIO_import_for_remote_checkin   41
 
#define OBJIO_import_type   2
 
#define OBJIO_include_bomchanges   38
 
#define OBJIO_include_contents   5
 
#define OBJIO_include_modified_only   17
 
#define OBJIO_include_pfmembers   45
 
#define OBJIO_include_pftemplates   46
 
#define OBJIO_include_supercedures   39
 
#define OBJIO_is_background_mode   33
 
#define OBJIO_IS_OPTIONAL   1
 
#define OBJIO_is_remote_operation   27
 
#define OBJIO_is_remote_send   52
 
#define OBJIO_IS_REQUIRED   0
 
#define OBJIO_is_retrieving_distributed_comp   36
 
#define OBJIO_is_synchronizing   26
 
#define OBJIO_is_variant_background_mode   43
 
#define OBJIO_item_all_revisions   2
 
#define OBJIO_latest_released_rev_only   24
 
#define OBJIO_latest_rev_only   22
 
#define OBJIO_latest_working_any_only   25
 
#define OBJIO_latest_working_rev_only   23
 
#define OBJIO_preview_mode   28
 
#define OBJIO_recover_type   6
 
#define OBJIO_remote_transfer_from_type   7
 
#define OBJIO_remote_transfer_to_type   8
 
#define OBJIO_restore_type   4
 
#define OBJIO_rev_rule_different_at_remote_site   2
 
#define OBJIO_rev_rule_non_identical_with_same_name   3
 
#define OBJIO_rev_rule_not_defined_at_remote_site   1
 
#define OBJIO_same_as_last_export   34
 
#define OBJIO_selected_revs_only   21
 
#define OBJIO_specific_rev_rule_only   49
 
#define OBJIO_specific_status_only   32
 
#define OBJIO_synchronous_remote_transfer   35
 
#define OBJIO_synchronous_site_transfer   50
 
#define OBJIO_xcl_manif_atth   13
 
#define OBJIO_xcl_ref_atth   11
 
#define OBJIO_xcl_req_atth   12
 
#define OBJIO_xcl_spec_atth   14
 
#define OBJIO_xfr_top_lvl_only   6
 
#define OBJIO_xfr_xcl_manif_atth   9
 
#define OBJIO_xfr_xcl_ref_atth   7
 
#define OBJIO_xfr_xcl_req_atth   8
 
#define OBJIO_xfr_xcl_spec_atth   10
 

Typedefs

typedef struct OBJIO_report_s OBJIO_report_t
 

Enumerations

enum  ORGExpType {
  PERSON_EXP = 0, ROLE_EXP, GROUP_EXP, USER_EXP,
  ROLE_IN_HIERACHY
}
 

Functions

OBJIO_API int OBJIO__make_temp_staging_dir (char **directory)
 
OBJIO_API int OBJIO_abort_sst_export (tag_t export_bier_tag)
 
OBJIO_API int OBJIO_abort_sst_export_post_write (tag_t main_object_tag)
 
OBJIO_API int OBJIO_abort_sst_import (tag_t obj_tag)
 
OBJIO_API int OBJIO_ask_contents (tag_t manager_tag, int *n_objects, tag_t **objects)
 
OBJIO_API int OBJIO_ask_error_report_info (tag_t manager_tag, int *n_info, OBJIO_report_t **info_list)
 
OBJIO_API int OBJIO_ask_failures (tag_t manager_tag, int *n_failures, tag_t **failing_objects, int **failures)
 
OBJIO_API int OBJIO_ask_metafile (tag_t manager_tag, tag_t *metafile_tag)
 
OBJIO_API int OBJIO_ask_receiving_group (tag_t manager_tag, char receiving_group[SS_MAXPATHLEN+1])
 
OBJIO_API int OBJIO_ask_receiving_group2 (tag_t manager_tag, char **receiving_group)
 
OBJIO_API int OBJIO_ask_receiving_user (tag_t manager_tag, char receiving_user[SA_user_size_c+1])
 
OBJIO_API int OBJIO_ask_receiving_user2 (tag_t manager_tag, char **receiving_user)
 
OBJIO_API int OBJIO_ask_report_info (tag_t manager_tag, int *n_info, OBJIO_report_t **info_list)
 
OBJIO_API int OBJIO_ask_sending_group (tag_t manager_tag, char sending_group[SS_MAXPATHLEN+1])
 
OBJIO_API int OBJIO_ask_sending_group2 (tag_t manager_tag, char **sending_group)
 
OBJIO_API int OBJIO_ask_sending_user (tag_t manager_tag, char sending_user[SA_user_size_c+1])
 
OBJIO_API int OBJIO_ask_sending_user2 (tag_t manager_tag, char **sending_user)
 
OBJIO_API int OBJIO_create (int type, char *area_name, tag_t *manager_tag)
 
OBJIO_API int OBJIO_delete (tag_t manager_tag)
 
OBJIO_API int OBJIO_delete_replica_objects (tag_t replica_object, int n_objects, const tag_t *dependents, const char *optionset, logical delete_unref_pomstubs, logical delete_export_records)
 
OBJIO_API int OBJIO_delete_staging_dir (const char *directory)
 
OBJIO_API int OBJIO_end_remote_transfer (tag_t manager_tag, int error_code)
 
OBJIO_API int OBJIO_exclude_objects (tag_t manager_tag, int n_objects, tag_t *objects)
 
OBJIO_API int OBJIO_exclude_relation_types (tag_t manager_tag, int count, tag_t *relation_types)
 
OBJIO_API int OBJIO_find_export_sites_by_tag (tag_t object_tag, int *nSites, tag_t **site_tags, char **export_sites_as_string, logical *isSiteStrNull)
 
OBJIO_API int OBJIO_find_import_record_by_tag (tag_t object_tag, tag_t *gsidentity_tag)
 
OBJIO_API int OBJIO_free_memory (tag_t manager_tag)
 
OBJIO_API int OBJIO_get_bg_report_file (char *reportStr, char **report_file_name)
 
OBJIO_API int OBJIO_get_report_file (char **report_file_name)
 
OBJIO_API int OBJIO_include_objects (tag_t manager_tag, int n_objects, tag_t *objects)
 
OBJIO_API int OBJIO_read (tag_t manager_tag)
 
OBJIO_API int OBJIO_record_being_imported (tag_t manager_tag)
 
OBJIO_API int OBJIO_release_and_replicate (EPM_action_message_t msg)
 
OBJIO_API int OBJIO_remove_excluded_reltype (tag_t manager_tag, tag_t relation_type)
 
OBJIO_API int OBJIO_restore_objects (tag_t manager_tag, int n_objects, tag_t *objects)
 
OBJIO_API int OBJIO_retrieve (tag_t manager_tag, tag_t source_site)
 
OBJIO_API int OBJIO_send (tag_t manager_tag, tag_t destination_site)
 
OBJIO_API int OBJIO_set_attribute (tag_t manager_tag, int attribute_flag, int value)
 
OBJIO_API int OBJIO_set_export_reason (tag_t manager_tag, const char *export_reason)
 
OBJIO_API int OBJIO_set_owning_site (tag_t manager_tag, tag_t site_tag)
 
OBJIO_API int OBJIO_set_receiving_group (tag_t manager_tag, const char receiving_user[SA_group_name_size_c+1])
 
OBJIO_API int OBJIO_set_receiving_group2 (tag_t manager_tag, const char *receiving_user)
 
OBJIO_API int OBJIO_set_receiving_user (tag_t manager_tag, const char receiving_user[SA_user_size_c+1])
 
OBJIO_API int OBJIO_set_receiving_user2 (tag_t manager_tag, const char *receiving_user)
 
OBJIO_API int OBJIO_set_release_status (tag_t manager_tag, const char status_type[WSO_name_size_c+1])
 
OBJIO_API int OBJIO_set_release_status2 (tag_t manager_tag, const char *status_type)
 
OBJIO_API int OBJIO_set_revision_rule (tag_t manager_tag, const char status_type[WSO_name_size_c+1])
 
OBJIO_API int OBJIO_set_revision_rule2 (tag_t manager_tag, const char *status_type)
 
OBJIO_API int OBJIO_set_script (tag_t manager_tag, const char script[SS_MAXPATHLEN+1])
 
OBJIO_API int OBJIO_set_script2 (tag_t manager_tag, const char *script)
 
OBJIO_API int OBJIO_set_sending_group (tag_t manager_tag, const char sending_group[SS_MAXPATHLEN+1])
 
OBJIO_API int OBJIO_set_sending_group2 (tag_t manager_tag, const char *sending_group)
 
OBJIO_API int OBJIO_set_sending_user (tag_t manager_tag, const char sending_user[SA_user_size_c+1])
 
OBJIO_API int OBJIO_set_sending_user2 (tag_t manager_tag, const char *sending_user)
 
OBJIO_API int OBJIO_set_site_based_attribute (tag_t manager_tag, tag_t remote_site, int attribute_flag, int value)
 
OBJIO_API int OBJIO_set_target_sites (tag_t manager_tag, int site_count, tag_t *site_list)
 
OBJIO_API int OBJIO_store_objects (tag_t manager_tag, int n_objects, tag_t *objects)
 
OBJIO_API int OBJIO_write (tag_t manager_tag)
 

Global Organization Project

Options, set by OBJIO_set_attribute

#define OBJIO_all_roles   53
 
#define OBJIO_all_subgroups   54
 
#define OBJIO_all_groupmembers   55
 
#define OBJIO_org_exp_flag   56
 
#define OBJIO_org_exp_type   57
 
#define OBJIO_org_migrate_mode   58
 
#define OBJIO_transfer_shared_effectivity   59
 
#define OBJIO_batch_transfer_of_ve   60
 

options_token values for OBJIO_set_sync_options

#define OBJIO_auto_sync   1
 
#define OBJIO_batch_sync   2
 
#define OBJIO_do_not_sync   3
 
#define OBJIO_auto_sync_and_notify   101
 
#define OBJIO_batch_sync_but_notify   102
 
#define OBJIO_do_not_sync_but_notify   103
 
#define OBJIO_notify_and_sync_unchanged   104
 
#define OBJIO_no_notify_and_sync_unchanged   105
 

Multi-Site Collaboration Functions

OBJIO_API int OBJIO_set_sync_options (tag_t owning_site, int options_token, int n_obj_tags, const tag_t *obj_tags, int **failure_codes)
 
OBJIO_API int OBJIO_ask_distributed_assy_info (tag_t manager_tag, int *n_dist_components, tag_t **dist_component_list, int **owning_site_list)
 
OBJIO_API int OBJIO_ask_assembly_components_owned_by_exporting_site (tag_t manager_tag, int *n_components, tag_t **component_list, int **owning_site_list)
 
OBJIO_API int OBJIO_set_incremental_bvr_changes (tag_t manager_tag, tag_t bvr_tag, int n_modified_or_added_occs, const tag_t *modified_or_added_occs, int n_deleted_occs, const tag_t *deleted_occs)
 

Detailed Description

The Object Import/Export (OBJIO) module facilitates the movement of data associated with Teamcenter objects between Teamcenter sites with either "read-only" or "write" privileges.

The object types, including all their internal supporting data, that can be imported or exported are:

Folders When exporting, you may choose to export any general folder. You may not export pseudo folders.
DatasetsWhen exporting, you may choose to export either all versions, the latest version, or a specific version.
Forms When exporting, you may choose to export a Form. The definition of the form (UIL) must be identical at both sites.
Items When exporting, if you choose an Item, then the Item and all its related data (such as the Item Revisions, BOM View and BOM View Revisions, associated Item Master and Item Revision master forms, and also any exportable Requirement, Specification, Manifestation or Reference objects) are exported. Additionally, if the selected Item has an assembly (structure), then all the items that make up the assembly are exported.

You cannot choose part of an Item to be exported. For example, you cannot choose an Item Revision alone to be exported. You need to select the Item which contains this Item Revision, in order to export the Item. Similarly, the same would be true with BOMView and BOMViewRevision objects.

Note
You can export any forms, datasets or any other exportable objects associated with the Item. These will be as independent objects, rather than being part of the Item.

All the Teamcenter files that the dataset represents will be exported, including the operating system files that these encapsulate, and the dataset's revision anchor.

When exporting, there is an option to transfer the ownership to another site. If the ownership is transferred to a particular site, then, when the same objects are imported at that particular site, they will be imported with a read/write privilege. If the ownership is not transferred, then the ownership of the objects still belongs to the export site. When these objects are imported at another site, they will be imported with read only privilege. Any modifications attempted on them would not be allowed.

Common Return Values

Return Value Description
BIER_invalid_for_remote_bier_typemanager_tag was not created with the proper type.
IDSM_client_access_denied The local site is not a permitted client of the remote site.
IDSM_no_connect Unable to connect to remote site.
OBJIO_cannot_reuse_dir area_name has already been used for object export.
OBJIO_dir_not_found area_name does not exist.
OBJIO_invalid_attribute_flag The attribute flag given for the import/export area is not supported. See objio.h for valid attribute flags.
OBJIO_invalid_dir_contents Cannot read the import data. Most likely due to out-of-date or missing POM transmit files.
OBJIO_invalid_site The given target site is not defined in the database.
OBJIO_invalid_tag The given tag for the import/export manager is not valid.
OBJIO_unsupported_type The type given for the import/export area is not supported. See objio.h for valid types.

Macro Definition Documentation

#define OBJIO_abort_if_checked_out   4

Definition at line 103 of file objio.h.

#define OBJIO_all_groupmembers   55

Definition at line 160 of file objio.h.

#define OBJIO_all_released_revs_only   37

Definition at line 136 of file objio.h.

#define OBJIO_all_roles   53

Definition at line 158 of file objio.h.

#define OBJIO_all_subgroups   54

Definition at line 159 of file objio.h.

#define OBJIO_archive_type   3

Definition at line 93 of file objio.h.

#define OBJIO_assume_ownership   3

Definition at line 102 of file objio.h.

#define OBJIO_auto_sync   1

Definition at line 233 of file objio.h.

#define OBJIO_auto_sync_and_notify   101

Definition at line 236 of file objio.h.

#define OBJIO_backup_type   5

Definition at line 95 of file objio.h.

#define OBJIO_batch_sync   2

Definition at line 234 of file objio.h.

#define OBJIO_batch_sync_but_notify   102

Definition at line 237 of file objio.h.

#define OBJIO_batch_transfer_of_ve   60

Indicates this is a batch transfer of variant expressions from one site to another

Definition at line 167 of file objio.h.

#define OBJIO_bom_pf_option   47

Definition at line 146 of file objio.h.

#define OBJIO_completion_report   29

Definition at line 128 of file objio.h.

#define OBJIO_continue_on_error   30

Definition at line 129 of file objio.h.

#define OBJIO_dataset_all_versions   1

Definition at line 100 of file objio.h.

#define OBJIO_defer_bulk_data_xfer   44

Definition at line 143 of file objio.h.

#define OBJIO_do_not_sync   3

Definition at line 235 of file objio.h.

#define OBJIO_do_not_sync_but_notify   103

Definition at line 238 of file objio.h.

#define OBJIO_error_report   48

Definition at line 147 of file objio.h.

#define OBJIO_exclude_no_xfr_comp   19

Definition at line 118 of file objio.h.

#define OBJIO_exclude_protected_comp   20

Definition at line 119 of file objio.h.

#define OBJIO_exclude_protected_wso   18

Definition at line 117 of file objio.h.

#define OBJIO_exclude_variant_expressions   42

Definition at line 141 of file objio.h.

#define OBJIO_export_BOM_components   16

Definition at line 115 of file objio.h.

#define OBJIO_export_dataset_refs   15

Definition at line 114 of file objio.h.

#define OBJIO_export_for_remote_checkin   40

Definition at line 139 of file objio.h.

#define OBJIO_export_recovery_mode   51

Definition at line 150 of file objio.h.

#define OBJIO_export_type   1

Definition at line 91 of file objio.h.

#define OBJIO_force_import_export   31

Definition at line 130 of file objio.h.

#define OBJIO_import_for_remote_checkin   41

Definition at line 140 of file objio.h.

#define OBJIO_import_type   2

Definition at line 92 of file objio.h.

#define OBJIO_include_bomchanges   38

Definition at line 137 of file objio.h.

#define OBJIO_include_contents   5

Definition at line 104 of file objio.h.

#define OBJIO_include_modified_only   17

Definition at line 116 of file objio.h.

#define OBJIO_include_pfmembers   45

Definition at line 144 of file objio.h.

#define OBJIO_include_pftemplates   46

Definition at line 145 of file objio.h.

#define OBJIO_include_supercedures   39

Definition at line 138 of file objio.h.

#define OBJIO_is_background_mode   33

Definition at line 132 of file objio.h.

#define OBJIO_IS_OPTIONAL   1

Definition at line 215 of file objio.h.

#define OBJIO_is_remote_operation   27

Definition at line 126 of file objio.h.

#define OBJIO_is_remote_send   52

Definition at line 151 of file objio.h.

#define OBJIO_IS_REQUIRED   0

Definition at line 214 of file objio.h.

#define OBJIO_is_retrieving_distributed_comp   36

Definition at line 135 of file objio.h.

#define OBJIO_is_synchronizing   26

Definition at line 125 of file objio.h.

#define OBJIO_is_variant_background_mode   43

Definition at line 142 of file objio.h.

#define OBJIO_item_all_revisions   2

Definition at line 101 of file objio.h.

#define OBJIO_latest_released_rev_only   24

Definition at line 123 of file objio.h.

#define OBJIO_latest_rev_only   22

Definition at line 121 of file objio.h.

#define OBJIO_latest_working_any_only   25

Definition at line 124 of file objio.h.

#define OBJIO_latest_working_rev_only   23

Definition at line 122 of file objio.h.

#define OBJIO_no_notify_and_sync_unchanged   105

Definition at line 240 of file objio.h.

#define OBJIO_notify_and_sync_unchanged   104

Definition at line 239 of file objio.h.

#define OBJIO_org_exp_flag   56

Definition at line 161 of file objio.h.

#define OBJIO_org_exp_type   57

Definition at line 162 of file objio.h.

#define OBJIO_org_migrate_mode   58

Definition at line 163 of file objio.h.

#define OBJIO_preview_mode   28

Definition at line 127 of file objio.h.

#define OBJIO_recover_type   6

Definition at line 96 of file objio.h.

#define OBJIO_remote_transfer_from_type   7

Definition at line 97 of file objio.h.

#define OBJIO_remote_transfer_to_type   8

Definition at line 98 of file objio.h.

#define OBJIO_restore_type   4

Definition at line 94 of file objio.h.

#define OBJIO_rev_rule_different_at_remote_site   2

Definition at line 245 of file objio.h.

#define OBJIO_rev_rule_non_identical_with_same_name   3

Definition at line 246 of file objio.h.

#define OBJIO_rev_rule_not_defined_at_remote_site   1

Definition at line 244 of file objio.h.

#define OBJIO_same_as_last_export   34

Definition at line 133 of file objio.h.

#define OBJIO_selected_revs_only   21

Definition at line 120 of file objio.h.

#define OBJIO_specific_rev_rule_only   49

Definition at line 148 of file objio.h.

#define OBJIO_specific_status_only   32

Definition at line 131 of file objio.h.

#define OBJIO_synchronous_remote_transfer   35

Definition at line 134 of file objio.h.

#define OBJIO_synchronous_site_transfer   50

Definition at line 149 of file objio.h.

#define OBJIO_transfer_shared_effectivity   59

Definition at line 164 of file objio.h.

#define OBJIO_xcl_manif_atth   13

Definition at line 112 of file objio.h.

#define OBJIO_xcl_ref_atth   11

Definition at line 110 of file objio.h.

#define OBJIO_xcl_req_atth   12

Definition at line 111 of file objio.h.

#define OBJIO_xcl_spec_atth   14

Definition at line 113 of file objio.h.

#define OBJIO_xfr_top_lvl_only   6

Definition at line 105 of file objio.h.

#define OBJIO_xfr_xcl_manif_atth   9

Definition at line 108 of file objio.h.

#define OBJIO_xfr_xcl_ref_atth   7

Definition at line 106 of file objio.h.

#define OBJIO_xfr_xcl_req_atth   8

Definition at line 107 of file objio.h.

#define OBJIO_xfr_xcl_spec_atth   10

Definition at line 109 of file objio.h.

Typedef Documentation

Enumeration Type Documentation

enum ORGExpType

Indicates Type of org object

Enumerator
PERSON_EXP 
ROLE_EXP 
GROUP_EXP 
USER_EXP 
ROLE_IN_HIERACHY 

Definition at line 204 of file objio.h.

Function Documentation

OBJIO_API int OBJIO__make_temp_staging_dir ( char **  directory)
Parameters
directory(OF) Name of staging directory
OBJIO_API int OBJIO_abort_sst_export ( tag_t  export_bier_tag)
Parameters
export_bier_tag(I) Tag of the export object
OBJIO_API int OBJIO_abort_sst_export_post_write ( tag_t  main_object_tag)
Parameters
main_object_tag(I) Main object tag
OBJIO_API int OBJIO_abort_sst_import ( tag_t  obj_tag)
Parameters
obj_tag(I) Tag of the OBJIO area
OBJIO_API int OBJIO_ask_assembly_components_owned_by_exporting_site ( tag_t  manager_tag,
int *  n_components,
tag_t **  component_list,
int **  owning_site_list 
)

Retrieves information about components owned by the exporting site so that they can be remote-imported individually from the exporting site as part of a one-at-a-time Remote Import operation of assembly components.

Returns
  • ITK_ok on success
  • ifail number on error.
Parameters
manager_tag(I) Import manager tag
n_components(O) Number of components
component_list(OF) n_components Tags of the Assembly components
owning_site_list(OF) n_components Site ID of the exporting site
OBJIO_API int OBJIO_ask_contents ( tag_t  manager_tag,
int *  n_objects,
tag_t **  objects 
)

Lists the contents of the area specified by manager_tag.

You must call OBJIO_read before using this function, otherwise no objects will be listed.

The client is responsible for freeing objects with MEM_free.

Parameters
manager_tag(I) Tag of the OBJIO area
n_objects(O) Number of objects in the area
objects(OF) n_objects Tags of the objects in the area
OBJIO_API int OBJIO_ask_distributed_assy_info ( tag_t  manager_tag,
int *  n_dist_components,
tag_t **  dist_component_list,
int **  owning_site_list 
)

This function retrieves information regarding distributed components from the import/export metafile.

Parameters
manager_tag(I) Import manager tag
n_dist_components(O) Number of distributed components
dist_component_list(OF) n_dist_components Tags of distributed components
owning_site_list(OF) n_dist_components Site ID of corresponding owning site for each component tag
OBJIO_API int OBJIO_ask_error_report_info ( tag_t  manager_tag,
int *  n_info,
OBJIO_report_t **  info_list 
)
Parameters
manager_tag(I) Tag of the OBJIO area
n_info(O) Number of error information count
info_list(O) info_list contains error report information
OBJIO_API int OBJIO_ask_failures ( tag_t  manager_tag,
int *  n_failures,
tag_t **  failing_objects,
int **  failures 
)

Lists the objects which failed to be stored/restored by a call to OBJIO_store_objects or OBJIO_restore_objects. For example, an object will not be restored if it does not exist in the area.

The client is responsible for freeing failing_objects and failures with MEM_free.

Parameters
manager_tag(I) Tag of the OBJIO area
n_failures(O) Number of objects that failed to be stored/restored
failing_objects(OF) n_failures Tags of the objects which failed to be stored/restored
failures(OF) n_failures Reasons why the objects failed
OBJIO_API int OBJIO_ask_metafile ( tag_t  manager_tag,
tag_t metafile_tag 
)
Parameters
manager_tag(I) Tag of the OBJIO area
metafile_tag(O) Tag of the metafile
OBJIO_API int OBJIO_ask_receiving_group ( tag_t  manager_tag,
char  receiving_group[SS_MAXPATHLEN+1] 
)
Deprecated:
This function is deprecated and will be removed from Tc12. In Tc10 onwards, please use OBJIO_ask_receiving_group2

Used to get the receiving group of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
receiving_group(O) Name of receiving group
OBJIO_API int OBJIO_ask_receiving_group2 ( tag_t  manager_tag,
char **  receiving_group 
)

Used to get the receiving group of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
receiving_group(OF) Name of receiving group
OBJIO_API int OBJIO_ask_receiving_user ( tag_t  manager_tag,
char  receiving_user[SA_user_size_c+1] 
)
Deprecated:
This function is deprecated and will be removed from Tc12. In Tc10 onwards, please use OBJIO_ask_receiving_user2

Used to get the receiving user of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
receiving_user(O) Name of receiving user
OBJIO_API int OBJIO_ask_receiving_user2 ( tag_t  manager_tag,
char **  receiving_user 
)

Used to get the receiving user of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
receiving_user(OF) Name of receiving user
OBJIO_API int OBJIO_ask_report_info ( tag_t  manager_tag,
int *  n_info,
OBJIO_report_t **  info_list 
)
Parameters
manager_tag(I) Tag of the OBJIO area
n_info(O) Number of information count
info_list(O) info_list contains report information
OBJIO_API int OBJIO_ask_sending_group ( tag_t  manager_tag,
char  sending_group[SS_MAXPATHLEN+1] 
)
Deprecated:
This function is deprecated and will be removed from Tc12. In Tc10 onwards, please use OBJIO_ask_sending_group2

Used to get the sending group of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
sending_group(O) Name of sending group
OBJIO_API int OBJIO_ask_sending_group2 ( tag_t  manager_tag,
char **  sending_group 
)

Used to get the sending group of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
sending_group(OF) Name of sending group
OBJIO_API int OBJIO_ask_sending_user ( tag_t  manager_tag,
char  sending_user[SA_user_size_c+1] 
)
Deprecated:
This function is deprecated and will be removed from Tc12. In Tc10 onwards, please use OBJIO_ask_sending_user2

Used to get the sending user of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
sending_user(O) Name of sending user
OBJIO_API int OBJIO_ask_sending_user2 ( tag_t  manager_tag,
char **  sending_user 
)

Used to get the sending user of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
sending_user(OF) Name of sending user
OBJIO_API int OBJIO_create ( int  type,
char *  area_name,
tag_t manager_tag 
)

Creates an area to use when moving objects into or out of the database.

Restrictions:

type must be OBJIO_import_type or OBJIO_export_type.

Parameters
type(I) Type of area to create
area_name(I) Name of the area (for OBJIO_export_type, this is the name of the directory to be written to; for OBJIO_import_type, it is the name of the directory to be read from).
manager_tag(O) Tag of the newly created area
OBJIO_API int OBJIO_delete ( tag_t  manager_tag)

Deletes the area specified by manager_tag.

Parameters
manager_tag(I) Tag of the OBJIO area to be deleted
OBJIO_API int OBJIO_delete_replica_objects ( tag_t  replica_object,
int  n_objects,
const tag_t dependents,
const char *  optionset,
logical  delete_unref_pomstubs,
logical  delete_export_records 
)

Deletes the main replicated object and all its dependents objects.

Returns
Parameters
replica_object(I) A tag of main replica workspace object
n_objects(I) Number of dependent objects. This value can be set to zero(0).
If non-zero the input dependent_tags should match evaluated dependent objects using optionset.
dependents(I) n_objects The dependent objects
optionset(I) Name of the TransferOptionset used for traversal and evaluation of dependent objects.
This value can be set to NULL if internal TransferOptionset is to be used for traversal and evaluation of dependent objects.
delete_unref_pomstubs(I) Set it to "true" if the unreferenced POM stubs associated with dependent objects are to be deleted.
delete_export_records(I) Set it to "true if the owning site ImanExportRecords and ItemExportRecords associated with dependent objects is to be deleted.
OBJIO_API int OBJIO_delete_staging_dir ( const char *  directory)
Parameters
directory(I) Staging directory to be deleted
OBJIO_API int OBJIO_end_remote_transfer ( tag_t  manager_tag,
int  error_code 
)
Parameters
manager_tag(I) Tag of the OBJIO area
error_code(I) error code or ifail number
OBJIO_API int OBJIO_exclude_objects ( tag_t  manager_tag,
int  n_objects,
tag_t objects 
)

Specifies a number of objects to be excluded explicitly from operations on the area specified by manager_tag.

For example, when exporting a folder with many contents, you can conveniently export most of the contents by first setting the OBJIO_include_contents attribute to 1, and then using this function to specify the small number of objects that you do not wish to export.

This function must be called before OBJIO_store_objects or OBJIO_restore_objects.

You may call this function several times before calling OBJIO_store_objects or OBJIO_restore_objects.

Parameters
manager_tag(I) Tag of the OBJIO area
n_objects(I) Number of objects to exclude
objects(I) n_objects Tags of the objects to exclude
OBJIO_API int OBJIO_exclude_relation_types ( tag_t  manager_tag,
int  count,
tag_t relation_types 
)
Parameters
manager_tag(I) Tag of the OBJIO area
count(I) Number of relation types to exclude
relation_types(I) relation_types count Tags of the relation types to exlude
OBJIO_API int OBJIO_find_export_sites_by_tag ( tag_t  object_tag,
int *  nSites,
tag_t **  site_tags,
char **  export_sites_as_string,
logical isSiteStrNull 
)

The following is intended to be used while deleting replicated organization objects

OBJIO_API int OBJIO_find_import_record_by_tag ( tag_t  object_tag,
tag_t gsidentity_tag 
)

The following is intended to be used while deleting replicated organization objects

OBJIO_API int OBJIO_free_memory ( tag_t  manager_tag)

Frees up the memory used by POM to export or import data.

Note
This will NOT unload the C++ objects that are exported or imported.
Returns
  • ITK_ok on success.
  • ifail number on error.
Parameters
manager_tag(I) Tag of the OBJIO area
OBJIO_API int OBJIO_get_bg_report_file ( char *  reportStr,
char **  report_file_name 
)
Parameters
reportStr(I)
report_file_name(OF)
OBJIO_API int OBJIO_get_report_file ( char **  report_file_name)

The following is intended to be used by the Portal Report Service mechanism, and is intended to be called by users via user_exits

Parameters
report_file_name(OF)
OBJIO_API int OBJIO_include_objects ( tag_t  manager_tag,
int  n_objects,
tag_t objects 
)
Parameters
manager_tag(I) Tag of the OBJIO area
n_objects(I) Number of objects to include
objects(I) n_objects Tags of the objects to include
OBJIO_API int OBJIO_read ( tag_t  manager_tag)

Reads the objects that were written to the area specified by manager_tag, preparatory to listing those objects.

Parameters
manager_tag(I) Tag of the OBJIO area
OBJIO_API int OBJIO_record_being_imported ( tag_t  manager_tag)
Parameters
manager_tag(I) Tag of the OBJIO area
OBJIO_API int OBJIO_release_and_replicate ( EPM_action_message_t  msg)

The following is intended to be used as workflow handler for initating controlled replication

Parameters
msg(I)
OBJIO_API int OBJIO_remove_excluded_reltype ( tag_t  manager_tag,
tag_t  relation_type 
)
Parameters
manager_tag(I) Tag of the OBJIO area
relation_type(I) Tag of the relation type
OBJIO_API int OBJIO_restore_objects ( tag_t  manager_tag,
int  n_objects,
tag_t objects 
)

Restores the specified objects from the area specified by manager_tag.

You must call OBJIO_read before using this function, otherwise no objects will be restored.

You may call this function several times with the same manager_tag.

Parameters
manager_tag(I) Tag of the OBJIO area
n_objects(I) Number of objects to restore
objects(I) n_objects Tags of the objects to restore
OBJIO_API int OBJIO_retrieve ( tag_t  manager_tag,
tag_t  source_site 
)

Exports object(s) from the given remote site into a metafile within a local directory.

Before calling this function, the following functions must be called first with the appropriate parameters:

OBJIO_create This should be called to create the manager_tag, specifying a type of OBJIO_remote_transfer_from_type as well as the local directory where the metafile will go into.
OBJIO_store_objectsThis should be called to specify which remote object(s) to export.
OBJIO_set_attributeMay also be called before calling OBJIO_retrieve. If OBJIO_retrieve returns a successful status, it is recommended that you call OBJIO_ask_failures to determine if any error occurred.

Restrictions:

The local site must be a permitted client of the remote site.

Parameters
manager_tag(I) Export manager tag created via an earlier call to OBJIO_create
source_site(I) Tag of remote site to export from
OBJIO_API int OBJIO_send ( tag_t  manager_tag,
tag_t  destination_site 
)

Imports object(s) from a metafile within a local directory into a remote site.

Before calling this function, OBJIO_create must be called with a type of OBJIO_remote_transfer_to_type and with the local directory containing the metafile.

If OBJIO_send returns a successful status, it is recommended that you call OBJIO_ask_failures to determine if any error occurred.

Restrictions:

The local site must be a permitted client of the remote site.

Before calling this function, the metafile must already exist in the directory given in the OBJIO_create call. If the object to be sent has not been exported yet, then you need to create a separate manager area, store objects (via OBJIO_store_objects) and write the objects (via OBJIO_write). After the object is exported, create a second manager area for sending and then call OBJIO_send.

Parameters
manager_tag(I) Export manager tag created via an earlier call to OBJIO_create
destination_site(I) Tag of remote site to import into
OBJIO_API int OBJIO_set_attribute ( tag_t  manager_tag,
int  attribute_flag,
int  value 
)

Sets an attribute for the area specified by manager_tag.

Parameters
manager_tag(I) Tag of the OBJIO area
attribute_flag(I) Attribute flag to set or unset. Valid values are in objio.h. The following attribute flags show examples of the valid values:
OBJIO_dataset_all_versions If value is non-zero, include all revisions of any specified datasets.
OBJIO_include_contents If value is non-zero, include the contents of any specified folders.
value(I) Value to which to set the attribute
OBJIO_API int OBJIO_set_export_reason ( tag_t  manager_tag,
const char *  export_reason 
)

Sets the export reason for the particular export. This is optional.

Parameters
manager_tag(I) Tag of the OBJIO area to export data to
export_reason(I) Reason for the export. This can be up to 240 characters.
OBJIO_API int OBJIO_set_incremental_bvr_changes ( tag_t  manager_tag,
tag_t  bvr_tag,
int  n_modified_or_added_occs,
const tag_t modified_or_added_occs,
int  n_deleted_occs,
const tag_t deleted_occs 
)
OBJIO_API int OBJIO_set_owning_site ( tag_t  manager_tag,
tag_t  site_tag 
)

Sets the given site as the new owning site. Either this function or OBJIO_set_target_sites is required when exporting data.

Parameters
manager_tag(I) Tag of the OBJIO area to export data to
site_tag(I) Tag of the new owning site
OBJIO_API int OBJIO_set_receiving_group ( tag_t  manager_tag,
const char  receiving_user[SA_group_name_size_c+1] 
)
Deprecated:
This function is deprecated and will be removed from Tc12. In Tc10 onwards, please use OBJIO_set_receiving_group2

The following are used to set the owning group of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
receiving_user(I) Name of receiving user
OBJIO_API int OBJIO_set_receiving_group2 ( tag_t  manager_tag,
const char *  receiving_user 
)

The following are used to set the owning group of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
receiving_user(I) Name of receiving user
OBJIO_API int OBJIO_set_receiving_user ( tag_t  manager_tag,
const char  receiving_user[SA_user_size_c+1] 
)
Deprecated:
This function is deprecated and will be removed from Tc12. In Tc10 onwards, please use OBJIO_set_receiving_user2

Used to set the owning user of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
receiving_user(I) Name of receiving user
OBJIO_API int OBJIO_set_receiving_user2 ( tag_t  manager_tag,
const char *  receiving_user 
)

Used to set the owning user of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
receiving_user(I) Name of receiving user
OBJIO_API int OBJIO_set_release_status ( tag_t  manager_tag,
const char  status_type[WSO_name_size_c+1] 
)
Deprecated:
This function is deprecated and will be removed from Tc12. In Tc10 onwards, please use OBJIO_set_release_status2

Sets the release status type that will be used to select item revisions to be exported.

For the release status type to take effect, the attribute OBJIO_specific_status_only must be set through OBJIO_set_attribute.

Restrictions:

The given release status type must be defined in the database where the export is being performed.

Parameters
manager_tag(I) Export manager tag created via OBJIO_create
status_type(I) Valid release status type. Only revisions with this release status will be exported.
OBJIO_API int OBJIO_set_release_status2 ( tag_t  manager_tag,
const char *  status_type 
)

Sets the release status type that will be used to select item revisions to be exported.

For the release status type to take effect, the attribute OBJIO_specific_status_only must be set through OBJIO_set_attribute.

Restrictions:

The given release status type must be defined in the database where the export is being performed.

Parameters
manager_tag(I) Export manager tag created via OBJIO_create
status_type(I) Valid release status type. Only revisions with this release status will be exported.
OBJIO_API int OBJIO_set_revision_rule ( tag_t  manager_tag,
const char  status_type[WSO_name_size_c+1] 
)
Deprecated:
This function is deprecated and will be removed from Tc12. In Tc10 onwards, please use OBJIO_set_revision_rule2
Parameters
manager_tag(I) Tag of the OBJIO area
status_type(I) Name of status type
OBJIO_API int OBJIO_set_revision_rule2 ( tag_t  manager_tag,
const char *  status_type 
)
Parameters
manager_tag(I) Tag of the OBJIO area
status_type(I) Name of status type
OBJIO_API int OBJIO_set_script ( tag_t  manager_tag,
const char  script[SS_MAXPATHLEN+1] 
)

NOT intended for customer-written ITK programs

Deprecated:
This function is deprecated and will be removed from Tc12. In Tc10 onwards, please use OBJIO_set_script2
Parameters
manager_tag(I)
script(I)
OBJIO_API int OBJIO_set_script2 ( tag_t  manager_tag,
const char *  script 
)
Parameters
manager_tag(I)
script(I)
OBJIO_API int OBJIO_set_sending_group ( tag_t  manager_tag,
const char  sending_group[SS_MAXPATHLEN+1] 
)
Deprecated:
This function is deprecated and will be removed from Tc12. In Tc10 onwards, please use OBJIO_set_sending_group2

Used to set the sending group of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
sending_group(I) Name of sending group
OBJIO_API int OBJIO_set_sending_group2 ( tag_t  manager_tag,
const char *  sending_group 
)

Used to set the sending group of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
sending_group(I) Name of sending group
OBJIO_API int OBJIO_set_sending_user ( tag_t  manager_tag,
const char  sending_user[SA_user_size_c+1] 
)
Deprecated:
This function is deprecated and will be removed from Tc12. In Tc10 onwards, please use OBJIO_set_sending_user2

Used to set the sending user of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
sending_user(I) Name of sending user
OBJIO_API int OBJIO_set_sending_user2 ( tag_t  manager_tag,
const char *  sending_user 
)

Used to set the sending user of the imported objects

Parameters
manager_tag(I) Tag of the OBJIO area
sending_user(I) Name of sending user
OBJIO_API int OBJIO_set_site_based_attribute ( tag_t  manager_tag,
tag_t  remote_site,
int  attribute_flag,
int  value 
)

Sets an attribute for the area specified by manager_tag. The attribute may not be supported by all sites.

Parameters
manager_tag(I) Tag of the OBJIO area
remote_site(I) Tag of remote site
attribute_flag(I) Attribute flag to set or unset.
value(I) Value to which to set the attribute
OBJIO_API int OBJIO_set_sync_options ( tag_t  owning_site,
int  options_token,
int  n_obj_tags,
const tag_t obj_tags,
int **  failure_codes 
)

This function is called from the replica side to the owning site and is used to set synchronization options for the existing replica objects given in the obj_tags argument. The desired options are specified via the options_token argument.

Restrictions:

The given owning site must be running V7.0 or later and must enable Subscriptions.

Parameters
owning_site(I) Integer site id of the site that owns the objects given in object_tags
options_token(I) Integer value that indicates the sync options specified. Valid values are defined in objio.h.
n_obj_tags(I) Number of replica objects to apply sync options to
obj_tags(I) Replica objects tags to apply options to. All tags must be of the WorkspaceObject class.
failure_codes(OF) n_obj_tags Error code returned for each corresponding object in object_tags list
OBJIO_API int OBJIO_set_target_sites ( tag_t  manager_tag,
int  site_count,
tag_t site_list 
)

Identifies the sites that are authorized to import the data that will be exported without ownership transfer. Either this function or OBJIO_set_owning_site is required when exporting data.

Parameters
manager_tag(I) Tag of the OBJIO area to export data to
site_count(I) Number of target sites
site_list(I) site_count Tag of target sites
OBJIO_API int OBJIO_store_objects ( tag_t  manager_tag,
int  n_objects,
tag_t objects 
)

Stores the specified objects, ready for writing to the area specified by manager_tag.

You may call this function several times before calling OBJIO_write.

Restrictions:

You must have read access to all the objects.

Parameters
manager_tag(I) Tag of the OBJIO area
n_objects(I) Number of objects to store
objects(I) n_objects Tags of the objects to store
OBJIO_API int OBJIO_write ( tag_t  manager_tag)

Writes the objects, specified in calls to OBJIO_store_objects, to the area specified by manager_tag.

Restrictions:

You should not call this function more than once with the same manager_tag, as it is not cumulative; that is, each call will overwrite the result of the previous call.

Parameters
manager_tag(I) Tag of the OBJIO area to which to write objects