Package com.dassault_systemes.enovaultclientjava.vdk0vaultclient

   
Class ENOVIVaultSessionFactory

 
Class Hierarchy
java.lang.Object
  |
  +-com.dassault_systemes.enovaultclientjava.vdk0vaultclient.ENOVIVaultSessionFactory
Class Location

Framework : ENOVaultClientJAVA

Module : VDK0VaultClient

Class Description

public class ENOVIVaultSessionFactory

This class supplies methods to manage VaultSession object.

Version:
V5R8
Field Summary
public static boolean _isInBrowser
protected static Vector _VaultSessions

Constructor Summary
ENOVIVaultSessionFactory()

Method Summary
protected static synchronized ENOVIVaultSession createVaultSession(String iTransactionMasterServerMarker, String iTransactionMasterHostName, int iTransactionMasterListenPort, boolean iIsTransactionMaster)
Create the VaultSession object pertainning to the given parameters.
public static synchronized void endVaultSession(ENOVIVaultSession Isession)
public static synchronized void endVaultSession(ENOVIVaultSession Isession, boolean ibvIsTransPropagate)
Ends the VaultSession
public static synchronized void endVaultSessionProxy(ENOVIVaultSession Isession)
Ends the Vault Session proxy object
public static synchronized String getDefaultAliasName()
Supplies the default Vault Server Alias Name.
public static synchronized Enumeration getVaultAliasNames()
Supplies the Vault Server Alias Name enumeration.
public static synchronized ENOVIVaultSession getVaultSession(byte[] ibvVaultSessionOId, boolean iIsTransactionMaster)
Supplies the VaultSession object pertainning to the given parameters.
public static synchronized ENOVIVaultSession getVaultSession(ServerTokenProvider iIServerTokenProvider, boolean iIsTransactionMaster)
Supplies the VaultSession object pertainning to the given parameters.
public static synchronized ENOVIVaultSession getVaultSession(String iTransactionMasterServerMarker, String iTransactionMasterHostName, int iTransactionMasterListenPort, boolean iIsTransactionMaster)
Supplies the VaultSession object pertainning to the given parameters.
public static synchronized ENOVIVaultSession getVaultSession(String iSessionName, String iTransactionMasterServerMarker, String iTransactionMasterHostName, int iTransactionMasterListenPort, boolean iIsTransactionMaster)
Supplies the VaultSession object pertainning to the given parameters.
protected static synchronized void removeVaultSession(VaultSession ipVaultSession)
Remove a VaultSession object.


Field Detail

_isInBrowser

    public static boolean _isInBrowser


_VaultSessions

    protected static Vector _VaultSessions


Constructor Detail

ENOVIVaultSessionFactory

    ENOVIVaultSessionFactory()


Method Detail

createVaultSession

    protected static synchronized ENOVIVaultSession createVaultSession(String iTransactionMasterServerMarker, String iTransactionMasterHostName, int iTransactionMasterListenPort, boolean iIsTransactionMaster)

Create the VaultSession object pertainning to the given parameters.

Parameters:
iTransactionMasterHostName
Hostname of the transaction manager process.
iTransactionMasterListenPort
Listen port on which call the transaction manager process.
iIsTransactionMaster
specifies if this process is transaction master.
iSessionOId
Session Object Identifier.
Return:
oppVaultSession VaultSession Object.
Throws:
ENOVIVaultError -
Since:
V5R7

endVaultSession

    public static synchronized void endVaultSession(ENOVIVaultSession Isession)


endVaultSession

    public static synchronized void endVaultSession(ENOVIVaultSession Isession, boolean ibvIsTransPropagate)

Ends the VaultSession

Parameters:
session
specifies the ENOVIVaultSession
Throws:
ENOVIVaultError -
Since:
V5R7

endVaultSessionProxy

    public static synchronized void endVaultSessionProxy(ENOVIVaultSession Isession)

Ends the Vault Session proxy object

Parameters:
session
specifies the ENOVIVaultSession
Throws:
ENOVIVaultError -
Since:
V5R11

getDefaultAliasName

    public static synchronized String getDefaultAliasName()

Supplies the default Vault Server Alias Name.

Return:
the default Vault Server Alias Name.
Throws:
ENOVIVaultError -
Since:
V5R7

getVaultAliasNames

    public static synchronized Enumeration getVaultAliasNames()

Supplies the Vault Server Alias Name enumeration.

Return:
the Vault Server Alias Name enumeration.
Throws:
ENOVIVaultError -
Since:
V5R7

getVaultSession

    public static synchronized ENOVIVaultSession getVaultSession(byte[] ibvVaultSessionOId, boolean iIsTransactionMaster)

Supplies the VaultSession object pertainning to the given parameters. If the VaultSession Object doesn't exist yet, it will be created.

Parameters:
ibvVaultSessionOId
VaultSession Object Identifier.
iIsTransactionMaster
specifies if this process is transaction master.
Return:
ENOVIVaultSession Object.
Throws:
ENOVIVaultError -
Since:
V5R11

getVaultSession

    public static synchronized ENOVIVaultSession getVaultSession(ServerTokenProvider iIServerTokenProvider, boolean iIsTransactionMaster)

Supplies the VaultSession object pertainning to the given parameters. If the VaultSession Object doesn't exist yet, it will be created.

Parameters:
iIServerTokenProvider
interface server token provider.
iIsTransactionMaster
specifies if this process is transaction master.
Return:
ENOVIVaultSession Object.
Throws:
ENOVIVaultError -
Since:
V5R11

getVaultSession

    public static synchronized ENOVIVaultSession getVaultSession(String iTransactionMasterServerMarker, String iTransactionMasterHostName, int iTransactionMasterListenPort, boolean iIsTransactionMaster)

Supplies the VaultSession object pertainning to the given parameters. If the VaultSession Object doesn't exist yet, it will be created.

Parameters:
iTransactionMasterHostName
Hostname of the transaction manager process.
iTransactionMasterListenPort
Listen port on which call the transaction manager process.
iIsTransactionMaster
specifies if this process is transaction master.
iSessionOId
Session Object Identifier.
Return:
ENOVIVaultSession Object.
Throws:
ENOVIVaultError -
Since:
V5R7 deprecated V5R11

getVaultSession

    public static synchronized ENOVIVaultSession getVaultSession(String iSessionName, String iTransactionMasterServerMarker, String iTransactionMasterHostName, int iTransactionMasterListenPort, boolean iIsTransactionMaster)

Supplies the VaultSession object pertainning to the given parameters. If the VaultSession Object doesn't exist yet, it will be created.

Parameters:
iSessionName
Vault Session Name.
iTransactionMasterHostName
Hostname of the transaction manager process.
iTransactionMasterListenPort
Listen port on which call the transaction manager process.
iIsTransactionMaster
specifies if this process is transaction master.
iSessionOId
Session Object Identifier.
Return:
ENOVIVaultSession Object.
Throws:
ENOVIVaultError -
Since:
V5R7

removeVaultSession

    protected static synchronized void removeVaultSession(VaultSession ipVaultSession)

Remove a VaultSession object.

Parameters:
ipVaultSession
Vault Session Object to remove.
Throws:
ENOVIVaultError -
Since:
V5R7


Copyright © 2000, Dassault Systèmes. All rights reserved