CATPLMIntegrationAccess CATAdpVersioningServices

Usage: you must use this class as is. You should never derive it.


public class CATAdpVersioningServices

Class of services enabling to manage versioning of components in the database.

Role: Provides a set of services enabling the user to manage versioning of components in the database.


Method Index


o GetAllVersions(CATIAdpPLMIdentificator*,CATLISTP(CATAdpQueryResult)&,CATIAdpPLMErrorReviewer*)
Gets the available versions of a component.
o NewVersion(CATIAdpPLMIdentificator*,CATTime&,CATIAdpPLMIdentificator*&,CATIAdpPLMErrorReviewer*)
Creates a new version of a component.

Methods


o GetAllVersions
public static GetAllVersions( iComponent,
oQueryResults,
iopErrorReviewer= NULL )
Gets the available versions of a component.
Role: Retrieves in the database all the available versions of a reference or a representation reference.
Parameters:
iComponent
[in] The identifier of the component which versions are required. The component must be a reference or a representation reference. If not, result will be E_INVALIDARG.
oQueryResults
[out] Returned list with all retrieved objects given access through
contract.
  • The list is emptied by the beginning of the method.
  • You must delete the elements of the list when useless.
  • These objects are not loaded in a session.
  • Objects are identified through by using the method.
  • The attributes obtained through the method are PLM_ExternalID and V_Version.
iopErrorReviewer
[inout] The ErrorReviewer dedicated to store and handle all PLM Errors raised during the execution of this service.
Returns:
  • S_OK if the all the versions of the component could be retrieved in the database.
  • E_INVALIDARG if iComponent is not a reference or is null.
  • E_FAIL if the operation failed. The returned list is empty. The blocking error can be accessed through method.
o NewVersion
public static NewVersion( iObjectToTreat,
iApplicabilityDate,
oVersioned,
iopErrorReviewer= NULL )
Creates a new version of a component.
Role: Creates a new version of a reference or representation reference in the database. This operation is not available if the corresponding component is loaded in the session, nor if the component is not the last version of a version family.
Parameters:
iObjectToTreat
[in] The identifier of the component to version.
  • The component must not be loaded in a session. If so, result will be E_FAIL.
  • The component must be a reference or a representation reference. If not, result will be E_INVALIDARG.
  • The component must be the last version of a version family. If not, the call will result in a server error.
iApplicabilityDate
[in] The applicability date of the new version of the component.
oVersioned
[out] The identifier of the new version of the component.
iopErrorReviewer
[inout] The ErrorReviewer dedicated to store and handle all PLM Errors raised during the execution of this service.
Returns:
  • S_OK if the new version of the component was created in the database.
  • E_INVALIDARG if iObjectToTreat is not a reference or is null.
  • E_FAIL if the new version could not be created in the database. Nothing was done during the operation. The blocking error can be accessed through method.

This object is included in the file: CATAdpVersioningServices.h
If needed, your Imakefile.mk should include the module: CATPLMIntegrationAccess

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.