All Frameworks Class Hierarchy This Framework Previous Next Indexes
System.IUnknown | +---System.IDispatch | +---System.CATBaseUnknown | +---CATIVpmSCLogin
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIVpmSCLogin
CATIVpmSCLogin is one of the Security Management interfaces.
It is used to :
Usage Notes:
// Suppose the exact role id (format: name.org)is provided there: CATUnicodeString sRoleId = a role; HRESULT hr = S_OK; VPMSession * pSession = VPMSession::OpenSession(); if (pSession) { // Retrieves main factory CATIVpmFactoryManager_var vFM; if (pSession->getVPMObjectFactory(vFM)==S_OK && !!vFM) { // Retrieves security login (extension of factory) CATIVpmSCLogin_var vLogin = vFM; if (!!vLogin) { // Login procedure CATUnicodeString sNone; hr = vLogin->Login(sNone, sNone, VPMLoginEXACT_ROLE, sRoleId); if (FAILED(hr)) { aborting session... } } } } |
public virtual HRESULT GetLoginInfos( | CATUnicodeString& | oUserId, |
CATUnicodeString& | oCtxId, | |
CATUnicodeString& | oCtxRoleId, | |
CATUnicodeString& | oCtxOrgId, | |
CATUnicodeString& | oCtxProjectId) = 0 |
public virtual int IsAuthenticated( | )= 0 |
When database is authenticated (also named SERVER mode), User and Password must be used while connecting to the database, unless the database is using a single connection user (which is the default mode at installation).
public virtual HRESULT Login( | CATUnicodeString | iUser, |
CATUnicodeString | iPwd, | |
VPMLoginPolicy | iRoleChoicePolicy, | |
CATUnicodeString | iRoleName)= 0 |
See example.
public virtual HRESULT SetLoginParameters( | CATListOfCATUnicodeString& | iParameterNames, |
CATListOfCATUnicodeString& | iParameterValues) = 0 |
Copyright © 2003, Dassault Systèmes. All rights reserved.