Main Page | Modules | Files | Functions | Code Elements | Data Structures | Deprecated

Object Import and Export


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.

Modules

Data Structures

Multi-Site Collaboration Functions

options_token values for OBJIO_set_sync_options

Defines

Typedefs

Enumerations

Functions


Define Documentation

#define OBJIO_abort_if_checked_out   4

Definition at line 103 of file objio.h.

#define OBJIO_all_groupmembers   55

Definition at line 157 of file objio.h.

#define OBJIO_all_groupmembers_key   "AllGroupMembers"

Definition at line 167 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 155 of file objio.h.

#define OBJIO_all_roles_key   "AllRoles"

Definition at line 165 of file objio.h.

#define OBJIO_all_subgroups   54

Definition at line 156 of file objio.h.

#define OBJIO_all_subgroups_key   "AllSubGroups"

Definition at line 166 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 204 of file objio.h.

#define OBJIO_auto_sync_and_notify   101

Definition at line 207 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 205 of file objio.h.

#define OBJIO_batch_sync_but_notify   102

Definition at line 208 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 206 of file objio.h.

#define OBJIO_do_not_sync_but_notify   103

Definition at line 209 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 186 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 185 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 211 of file objio.h.

#define OBJIO_notify_and_sync_unchanged   104

Definition at line 210 of file objio.h.

#define OBJIO_org_exp_flag   56

Definition at line 158 of file objio.h.

#define OBJIO_org_exp_flag_key   "IsOrgImpExp"

Definition at line 168 of file objio.h.

#define OBJIO_org_exp_type   57

Definition at line 159 of file objio.h.

#define OBJIO_org_exp_type_key   "OrgExpType"

Definition at line 169 of file objio.h.

#define OBJIO_org_migrate_mode   58

Definition at line 160 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 216 of file objio.h.

#define OBJIO_rev_rule_non_identical_with_same_name   3

Definition at line 217 of file objio.h.

#define OBJIO_rev_rule_not_defined_at_remote_site   1

Definition at line 215 of file objio.h.

#define OBJIO_role_export_index   "RoleExpIndex"

Definition at line 172 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_top_export_tag   "TopExpObject"

Definition at line 170 of file objio.h.

#define OBJIO_top_migrate_tag   "TopMigrateTag"

Definition at line 171 of file objio.h.

#define OBJIO_transfer_shared_effectivity   59

Definition at line 161 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

Enumerator:
PERSON_EXP 
ROLE_EXP 
GROUP_EXP 
USER_EXP 
ROLE_IN_HIERACHY 

Definition at line 175 of file objio.h.


Function Documentation

OBJIO_API int OBJIO__make_temp_staging_dir ( char **  directory  ) 

Parameters:
directory  (OF)

OBJIO_API int OBJIO_abort_sst_export ( tag_t  export_bier_tag  ) 

Parameters:
export_bier_tag  (I)

OBJIO_API int OBJIO_abort_sst_export_post_write ( tag_t  main_object_tag  ) 

Parameters:
main_object_tag  (I)

OBJIO_API int OBJIO_abort_sst_import ( tag_t  obj_tag  ) 

Parameters:
obj_tag  (I)

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 
)

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)
metafile_tag  (O)

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)
receiving_group  (O)

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)
receiving_group  (OF)

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)
receiving_user  (O)

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)
receiving_user  (OF)

OBJIO_API int OBJIO_ask_report_info ( tag_t  manager_tag,
int *  n_info,
OBJIO_report_t **  info_list 
)

Parameters:
manager_tag  (I)
n_info  (O)
info_list  (O)

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)
sending_group  (O)

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)
sending_group  (OF)

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)
sending_user  (O)

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)
sending_user  (OF)

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_staging_dir ( const char *  directory  ) 

Parameters:
directory  (I)

OBJIO_API int OBJIO_end_remote_transfer ( tag_t  manager_tag,
int  error_code 
)

Parameters:
manager_tag  (I)
error_code  (I)

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)
count  (I)
relation_types  (I) count

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_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 
)

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)

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)
relation_type  (I)

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)
receiving_user  (I)

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)
receiving_user  (I)

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)
receiving_user  (I)

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)
receiving_user  (I)

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

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] 
)

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)
sending_group  (I)

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)
sending_group  (I)

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)
sending_user  (I)

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)
sending_user  (I)

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