|
Teamcenter C++ API Reference
2312
|
#include <LisfmwrkUtils.hxx>
Static Public Member Functions | |
| static int | createHttpRequestInput (const std::string &url, const RequestMethod method, const std::string &postData, const tag_t userAuthentication, const ResponseFormat &format, HttpRequestInputS *requestInput) |
| static int | findAllPrimaryObjForRemoteObj (const tag_t serviceProviderType, const std::string &remoteObjectType, std::vector< tag_t > &supportedPrimaryObjTypes) |
| static int | findExactMatchOfPrimaryObjectList (const tag_t primaryObjType, const std::vector< tag_t > &supportedPrimaryObjTypes, std::vector< tag_t > &exactListOfprimaryObjTypes) |
| static int | getAuthorizationURLFromRootServices (const std::string &responseString, std::string &accessTokenUrl, std::string &requestTokenUrl, std::string &userAuthorizaitonUrl, std::string &consumerKeyUrl) |
| static int | getOAuthAuthorizationURL (const tag_t serviceProvider, char **userAuthorizationUrl) |
| static int | getRelationTypes (const std::string &uidContextObj, const std::string &remoteObjType, const std::string &uidServiceProvider, std::vector< std::string > &relationNames) |
| static int | getRelationTypesTags (const std::string &uidContextObj, const std::string &remoteObjType, const std::string &uidServiceProvider, std::vector< tag_t > &relationNames) |
| static int | getSSOParamsFromRootsvc (const std::string &responseString, std::string &ssoAppId, std::string &ssoSvcUrl) |
| static int | parseCatalogContent (const std::string &responseContent, std::vector< ServiceProviderInfo > &providerInfoList) |
| static int | parseResourceContent (const std::string &responseContent, LIS_resource_info_t &resourceInfo) |
| static int | parseRootServiceContent (const std::string &responseContent, LIS_rootservice_response_extend_t &responseInfo) |
| static int | parseServiceContent (const std::string &responseContent, LIS_service_info_extend_t &serviceInfo) |
| static int | queryAllRelationTypeRevise (const tag_t serviceProviderType, const tag_t primaryObjType, const std::string &remoteObjectType, std::vector< tag_t > &relationNames, bool &isRelTypeExist) |
| static int | queryAllRelationTypeRevise2 (const tag_t serviceProviderType, const tag_t primaryObjType, const std::string &remoteObjectType, std::vector< tag_t > &relationNames) |
| static int | requestHttps (const bool isRequestTokenUrl, const HttpRequestInputS &requestInput, std::string &responseString, long &responseCode, std::string &eTagString, int getResponseHeader=0) |
| static int | requestHttps (const HttpRequestInputS &requestInput, std::string &responseString) |
| static int | requestHttps (const HttpRequestInputS &requestInput, std::string &responseString, long &responseCode, std::string &eTagString, int getResponseHeader=0) |
| static int | validateLicense (const char *licensePackage) |
Definition at line 151 of file LisfmwrkUtils.hxx.
|
static |
Creates request input information from a given HTTP URL.
url provided URL is not properly formatted. postData is invalid. userAuthentication is not a valid User. | url | (I) The HTTP URL |
| method | (I) The request method type |
| postData | (I) The request body of POST request |
| userAuthentication | (I) The User Authentication |
| format | (I) The response format for a given URL |
| requestInput | (O) The output request by a given HTTP URL |
|
static |
Retrieves the list of supported primary objects from a given service provider type and remote object type.
serviceProvider is invalid type. remoteObject is invalid type. | serviceProviderType | (I) The service provider |
| remoteObjectType | (I) The remote object |
| supportedPrimaryObjTypes | (O) The list of supported primary object |
|
static |
Retrieves the list of matched primary objects from a given primary type.
primaryObjType is invalid type. supportedPrimaryObjTypes are invalid types. | primaryObjType | (I) The type tag of primary object |
| supportedPrimaryObjTypes | (I) The list of supported primary object types |
| exactListOfprimaryObjTypes | (O) The list of exact primary object types |
|
static |
Retrieves Access,Request and Auhtorization Tokens Url parameters from the rootservice response.
responseString has invalid structure. | responseString | (I) Rootservice response string |
| accessTokenUrl | (0) AccessTokenUrl |
| requestTokenUrl | (0) RequestTokenUrl |
| userAuthorizaitonUrl | (0) UserAuthorizationUrl |
|
static |
Retrieves the User Authorization URL from a given Service Provider.
serviceProvider is invalid type. | serviceProvider | (I) The service provider tag |
| userAuthorizationUrl | (O) The user authorization URL |
|
static |
Retrieves the list of Relations from a given Context Object and Remote Object. – add one more
uidContextObject is invalid UID. remoteObjectType is invalid type. uidServiceProvider is invalid UID. | uidContextObj | (I) The UID of the context object |
| remoteObjType | (I) The tag of the remote object |
| uidServiceProvider | (I) The UID of the service provider |
| relationNames | (O) The list of relation names |
|
static |
Retrieves the list of Relation Types from a given context object UID, remote object and service provider UID.
uidContextObject is invalid UID. remoteObjectType is invalid type. uidServiceProvider is invalid UID. | uidContextObj | (I) The UID of the context object |
| remoteObjType | (I) The remote object type |
| uidServiceProvider | (I) The UID of the Service Provider |
| relationNames | (O) The list of relation names |
|
static |
Retrieves SSO parameters from the rootservice response.
responseString has invalid structure. | responseString | (I) Rootservice response string. |
| ssoAppId | (O) AppID parameter. |
| ssoSvcUrl | (O) Service URL parameter. |
|
static |
Parses and retrieves the information of catalog services from a given response content.
responseContent is invalid HTTP response. | responseContent | (I) The response content of catalog services |
| providerInfoList | (O) The information of catalog services |
|
static |
Parse and Retrives the information of Resource by a given Response Content.
responseContent is invalid HTTP response. | responseContent | (I) The response content of ResourceShape. |
| resourceInfo | (O) The information of resource. |
|
static |
Retrieves the list of service provider catalog and authentication information from a given response content.
responseContent is invalid HTTP response. | responseContent | (I) The response content of root services |
| responseInfo | (O) The list of service provider catalogs and authentication information |
|
static |
Parses and retrieves the list of dialogs of services from a given response content.
responseContent is invalid HTTP response. | responseContent | (I) The response content of services |
| serviceInfo | (O) The list of dialogs of a given services |
|
static |
Checks that the relation names exist for a given service provider, primary and remote objects.
It also retrieves the list of Relation types.
serviceProviderType is invalid type. primaryObjType is invalid type. remoteObjectType is invalid type. | serviceProviderType | (I) The service provider type |
| primaryObjType | (I) The primary object type |
| remoteObjectType | (I) The remote object type |
| relationNames | (O) The list of relation |
| isRelTypeExist | (O) The relation type exist |
|
static |
Retrieves the list of relations from a given service provider, primary and remote objects.
serviceProviderType is invalid type. primaryObjType is invalid type. remoteObjectType is invalid type. | serviceProviderType | (I) The service provider type |
| primaryObjType | (I) The primary object type |
| remoteObjectType | (I) The remote object type |
| relationNames | (O) The list of relation names |
|
static |
Retrieves the response and timestamp of authorization by a given HTTP connection URL.
isRequestTokenUrl url cannot be accessed because of authorization issues. isRequestTokenUrl. isRequestTokenUrl is not properly formatted. requestInput is invalid. | isRequestTokenUrl | (I) Specifies if this HTTP Request is authorizised. |
| requestInput | (I) The input HTTP URL |
| responseString | (O) The response of requested HTPP URL |
| responseCode | (O) Status of request URL |
| eTagString | (O) TimeStamp of authorization |
| getResponseHeader | (I) Response header with etag |
|
static |
Retrieves the response from a given HTTP Request Input .
requestInput is invalid. | requestInput | (I) The HTTP request. |
| responseString | (O) The response of HTTP request. |
|
static |
Requests an https connection and outputs the response code along with with its timestamp.
requestInput is invalid. | requestInput | (I) The HTTP Request |
| responseString | (O) The response of requested HTTP |
| responseCode | (O) The response Code of Requested HTTP |
| eTagString | (O) TimeStamp of request |
| getResponseHeader | (I) The response header with etag |
|
static |
Validates the License Feature Package
licensePackage is not available. | licensePackage | (I) The License Feature Package |