com.sap.mdm.commands
Class AuthenticateRepositorySessionCommand

java.lang.Object
  extended bycom.sap.mdm.commands.AbstractCommandBase
      extended bycom.sap.mdm.commands.AbstractCommand
          extended bycom.sap.mdm.commands.AuthenticateRepositorySessionCommand
All Implemented Interfaces:
Command, PassportSupport

public class AuthenticateRepositorySessionCommand
extends AbstractCommand

A command to authenticate a repository session. A repository sessions needs to be authenticated before it is valid for use.

Note:
Pre-SP5
The user name was ignored. The user password was the password set on the MDM server.

SP5 and After
The user name is a real user from the repository. The user password is the password for the user in the repository.

See Also:
CreateRepositorySessionCommand, TrustedRepositorySessionCommand

Constructor Summary
AuthenticateRepositorySessionCommand(ConnectionAccessor connection)
          Creates a new instance of this command.
 
Method Summary
 String getNewUserPassword()
          Returns the new user password to set to.
 String getUserName()
          Returns the repository user name.
 String getUserPassword()
          Returns the repository user password.
 void setNewUserPassword(String newUserPassword)
          Set the new user password.
 void setUserName(String userName)
          Sets the repository user name (required).
 void setUserPassword(String userPassword)
          Sets the repository user password (required).
 
Methods inherited from class com.sap.mdm.commands.AbstractCommand
getSession, setSession
 
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

AuthenticateRepositorySessionCommand

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

Parameters:
connection - the connections to the server
Method Detail

getUserName

public String getUserName()
Returns the repository user name.

Returns:
the repository user name

setUserName

public void setUserName(String userName)
Sets the repository user name (required).

Parameters:
userName - a repository user name

getUserPassword

public String getUserPassword()
Returns the repository user password.

Returns:
the repository user password

setUserPassword

public void setUserPassword(String userPassword)
Sets the repository user password (required).

Parameters:
userPassword - a repository user password

getNewUserPassword

public String getNewUserPassword()
Returns the new user password to set to.

Returns:
a new user password
Since:
7.10

setNewUserPassword

public void setNewUserPassword(String newUserPassword)
Set the new user password. It mainly use for changing the user password because the password is initial or the password had been expired.

Parameters:
newUserPassword - a new user password;
Since:
7.10


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.