com.sap.mdm.publishing.commands
Class CreateLayoutServerSessionCommand

java.lang.Object
  extended bycom.sap.mdm.commands.AbstractCommandBase
      extended bycom.sap.mdm.commands.AbstractCommandSessionless
          extended bycom.sap.mdm.publishing.commands.CreateLayoutServerSessionCommand
All Implemented Interfaces:
Command, PassportSupport

public class CreateLayoutServerSessionCommand
extends AbstractCommandSessionless

This command creates a Session with a certain MDM repository NOTE: This command requires connection already established.

Since:
7.1
See Also:
ConnectionPool, ConnectionPoolFactory

Constructor Summary
CreateLayoutServerSessionCommand(ConnectionAccessor connection)
          Creates a new instance of this command.
 
Method Summary
 String getDataRegionCode()
          Returns the data region code.
 com.sap.mdm.internal.Region getInterfaceLangId()
          Returns the interface language Id.
 String getPassword(String newPassword)
          Returns the password.
 RegionProperties getRegionProperties()
          Returns the region properties.
 RepositoryIdentifier getRepositoryIdentifier()
          Returns the repository identifier.
 String getServerName()
          Returns the server name.
 String getSessionId()
          Returns the SessionId.
 String getUserName()
          Returns the user name.
 void setDataRegionCode(String dataRegionCode)
          Sets a data region code (required).
 void setInterfaceLangId(com.sap.mdm.internal.Region interfaceLangId)
          Sets a interfaceLangId (required).
 void setPassword(String password)
          Sets a Password (required).
 void setRegionProperties(RegionProperties regionProperties)
          Sets a region properties (required).
 void setRepositoryIdentifier(RepositoryIdentifier repIdentifier)
          Sets a repository identifier (required).
 void setServerName(String serverName)
          Sets a serverName (required).
 void setUserName(String userName)
          Sets a userName (required).
 
Methods inherited from class com.sap.mdm.commands.AbstractCommandBase
execute, getPassport, isCommandComplete, setPassport
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateLayoutServerSessionCommand

public CreateLayoutServerSessionCommand(ConnectionAccessor connection)
Creates a new instance of this command.

Parameters:
connection - the connections to the server.
Method Detail

setServerName

public void setServerName(String serverName)
Sets a serverName (required).

Parameters:
serverName - which is used for authentication

getServerName

public String getServerName()
Returns the server name.

Returns:
a server name

setUserName

public void setUserName(String userName)
Sets a userName (required).

Parameters:
userName - which is used for authentication

getUserName

public String getUserName()
Returns the user name.

Returns:
a user name

setPassword

public void setPassword(String password)
Sets a Password (required).

Parameters:
password - which is used for authentication

getPassword

public String getPassword(String newPassword)
Returns the password.

Returns:
a password

setRepositoryIdentifier

public void setRepositoryIdentifier(RepositoryIdentifier repIdentifier)
Sets a repository identifier (required).

Parameters:
repIdentifier - repository identifier for establishing a connection

getRepositoryIdentifier

public RepositoryIdentifier getRepositoryIdentifier()
Returns the repository identifier.

Returns:
a repository identifier

setRegionProperties

public void setRegionProperties(RegionProperties regionProperties)
Sets a region properties (required).

Parameters:
regionProperties - used for character encoding

getRegionProperties

public RegionProperties getRegionProperties()
Returns the region properties.

Returns:
a region properties

setDataRegionCode

public void setDataRegionCode(String dataRegionCode)
Sets a data region code (required).

Parameters:
dataRegionCode - used for character encoding

getDataRegionCode

public String getDataRegionCode()
Returns the data region code.

Returns:
a data region code

setInterfaceLangId

public void setInterfaceLangId(com.sap.mdm.internal.Region interfaceLangId)
Sets a interfaceLangId (required).

Parameters:
interfaceLangId - used for protocol character encoding

getInterfaceLangId

public com.sap.mdm.internal.Region getInterfaceLangId()
Returns the interface language Id.

Returns:
a interface language Id

getSessionId

public String getSessionId()
Returns the SessionId.

Returns:
a SessionId to use it for commands inside the session


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.