com.sap.mdm.session
Class RepositorySessionContext

java.lang.Object
  extended bycom.sap.mdm.session.AbstractSessionContext
      extended bycom.sap.mdm.session.ServerSessionContext
          extended bycom.sap.mdm.session.RepositorySessionContext
All Implemented Interfaces:
MdmSessionContext, Serializable
Direct Known Subclasses:
UserSessionContext

public class RepositorySessionContext
extends ServerSessionContext

This class represents the context of the repository session. The context includes: all elements of ServerSessionContext plus repository identifier (or name) and repository user name.

See Also:
ServerSessionContext, UserSessionContext, Serialized Form

Field Summary
 
Fields inherited from class com.sap.mdm.session.ServerSessionContext
DEFAUL_USER_NAME, DEFAULT_USER_NAME
 
Constructor Summary
RepositorySessionContext()
          Empty constructor For internal use only.
RepositorySessionContext(RepositorySessionContext ctx)
          Copy constructor
RepositorySessionContext(String serverName, RepositoryIdentifier repository, String userName)
          Constructor
RepositorySessionContext(String serverName, String serverUserName, RepositoryIdentifier repository, String userName)
          Constructor
RepositorySessionContext(String serverName, String repositoryName, String userName)
          Constructor
 
Method Summary
 boolean equals(Object obj)
           
 RepositoryIdentifier getRepository()
          Returns the repository identifier
 String getRepositoryName()
          Returns the repository name
 int getUnicodeNormalizationType()
          Returns the type of Unicode normalization
 String getUserName()
          Returns the user name of MDM repository
 int hashCode()
           
 void setUnicodeNormalizationType(int unicodeNormalizationType)
          Sets the type of Unicode normalization
 void setUserName(String userName)
          Sets the user name of MDM repository
 String toString()
           
 
Methods inherited from class com.sap.mdm.session.ServerSessionContext
getFullyQualifiedServerName, getServerName, getServerUserName, setServerUserName, setSocketFactory
 
Methods inherited from class com.sap.mdm.session.AbstractSessionContext
getApplicationId, getApplicationName, getConnectionType, getContextIdentifier, getSocketFactory, isTrustedConnection, isWebServiceContext, readFromString, setApplicationId, setApplicationName, setConnectionType, setContextIdentifier, setHashCode, setTrustedConnection, writeToString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepositorySessionContext

public RepositorySessionContext(String serverName,
                                RepositoryIdentifier repository,
                                String userName)
Constructor


RepositorySessionContext

public RepositorySessionContext(String serverName,
                                String serverUserName,
                                RepositoryIdentifier repository,
                                String userName)
Constructor


RepositorySessionContext

public RepositorySessionContext(RepositorySessionContext ctx)
Copy constructor


RepositorySessionContext

public RepositorySessionContext(String serverName,
                                String repositoryName,
                                String userName)
                         throws SessionException
Constructor


RepositorySessionContext

public RepositorySessionContext()
Empty constructor For internal use only. Used by serialization mechanism.

Method Detail

getUserName

public String getUserName()
Returns the user name of MDM repository

Returns:
the user name of MDM repository

setUserName

public void setUserName(String userName)
Sets the user name of MDM repository

Parameters:
userName - the user name of MDM repository

getRepositoryName

public String getRepositoryName()
Returns the repository name

Returns:
the repository name

getRepository

public RepositoryIdentifier getRepository()
Returns the repository identifier

Returns:
the repository identifier

getUnicodeNormalizationType

public int getUnicodeNormalizationType()
Returns the type of Unicode normalization

Returns:
the Unicode normalization type

setUnicodeNormalizationType

public void setUnicodeNormalizationType(int unicodeNormalizationType)
Sets the type of Unicode normalization

Parameters:
unicodeNormalizationType - the Unicode normalization type

hashCode

public int hashCode()
Overrides:
hashCode in class ServerSessionContext

equals

public boolean equals(Object obj)
Overrides:
equals in class ServerSessionContext

toString

public String toString()
Overrides:
toString in class ServerSessionContext
See Also:
Object.toString()


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.