com.highdeal.hci
Class AuthenticateUserOp

java.lang.Object
  extended by com.highdeal.hci.AuthenticateUserOp
All Implemented Interfaces:
MessageOperation, XMLMarshallable

public class AuthenticateUserOp
extends java.lang.Object
implements MessageOperation

This operation allows you to check the login and password of an SAP CC user and to retrieve the assigned roles and granted authorization objects resulting from the merge of all the roles assigned to the user.

User Session Management

To implement the user session managment, you specify the name of the user interface that sends this operation (see the toolName option). If the user session management function is enabled, the SAP CC system checks if the maximum number of concurrent running sessions has been reached for this user and this tool.

The returned session identifier can be used later in the MessageOriginator of an envelope to specify that it belongs to the user session.

A user session opened with this operation can be closed using the Disconnect User operation.

Other Related Operation

See Also:
UserModel, AuthorizationModel, DisconnectUserOp

Operation Result

AuthenticateUserResult

Operation Failure Exception

AuthenticationFailedException

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:element name="authenticateUser">
   <xs:complexType>
     <xs:attribute name="login" type="xs:string" use="required"/>
     <xs:attribute name="password" type="xs:string" use="required"/>
     <xs:attribute name="toolName" type="xs:string" use="optional"/>
     <xs:attribute name="version" type="xs:string" use="optional"/>
     <xs:attribute name="listFailures" type="xs:boolean" use="optional" default="false"/>
     <xs:attribute name="listAuthorizations" type="xs:boolean" use="optional" default="false"/>
   </xs:complexType>
 </xs:element>

Operation Availability

You can send this operation request in HCI messages to the following final target types of instances in the connected SAP CC system:

EditionFinal Target Instances
raterupdaterguiderbulkLoadertaxerdispatcher
chargeNoYesNoNoNoYes

Field Summary
static java.lang.String OPERATION_NAME
          The value of this constant is the XML tag name of this operation: "authenticateUser".
 
Constructor Summary
AuthenticateUserOp()
          Creates an authentication operation.
 
Method Summary
 void addCharacterData(java.lang.String cData)
          Adds character data to the content element.
 void addChild(java.lang.String tagName, XMLMarshallable child)
          Adds a child to the object, the child representing the marshallable object which must be added to the element.
 boolean getListAuthorizations()
          Gets whether the operation must list the authorizations
 boolean getListFailures()
          Gets whether the operation must list the failed authentication attempts.
 java.lang.String getLoginID()
          Returns the login of the SAP CC user that is to be authenticated.
 java.lang.String getName()
          Gets the XML name of the service operation.
 java.lang.String getPassword()
          Returns the password of the SAP CC user that is to be authenticated.
 java.lang.String getToolName()
          Gets the name of the tool (user interface) sending the operation.
 java.lang.String getVersion()
          Gets the version of the client sending the operation.
 void marshal(XMLOutputter output)
          Gives an XML representation of this object, including its children.
 void setAttributes(XMLAttributes atts)
          Sets the attributes of the XML representation of the element being processed.
 void setListAuthorizations(boolean listAuthorizations)
          Sets whether the operation must list the authorizations
 void setListFailures(boolean listFailures)
          Sets whether the operation must list the failed authentication attempts.
 void setLoginID(java.lang.String id)
          Sets the login of the SAP CC user that is to be authenticated.
 void setPassword(java.lang.String password)
          Sets the password of the SAP CC user that is to be authenticated.
 void setToolName(java.lang.String toolName)
          Sets the name of the tool (user interface) sending the operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPERATION_NAME

public static final java.lang.String OPERATION_NAME
The value of this constant is the XML tag name of this operation: "authenticateUser".

See Also:
Constant Field Values
Constructor Detail

AuthenticateUserOp

public AuthenticateUserOp()
Creates an authentication operation.

Method Detail

getName

public java.lang.String getName()
Description copied from interface: MessageOperation
Gets the XML name of the service operation. This name identifies the operation request in the HCI messages. It is used to marshal the Java object representing an HCI operation into an XML representation that can be exchanged via the HCI communication interface between your client application and the SAP CC system.

Example

  • activateAll
  • ping

Specified by:
getName in interface MessageOperation
Returns:
The technical name of the HCI operation

getLoginID

public java.lang.String getLoginID()
Returns the login of the SAP CC user that is to be authenticated.

Returns:
The login of the SAP CC user that is to be authenticated

setLoginID

public void setLoginID(java.lang.String id)
Sets the login of the SAP CC user that is to be authenticated.

Parameters:
id - The login of the SAP CC user that is to be authenticated

setPassword

public void setPassword(java.lang.String password)
Sets the password of the SAP CC user that is to be authenticated.

Parameters:
password - The password of the SAP CC user that is to be authenticated

getPassword

public java.lang.String getPassword()
Returns the password of the SAP CC user that is to be authenticated.

Returns:
The password of the SAP CC user that is to be authenticated

setToolName

public void setToolName(java.lang.String toolName)
Sets the name of the tool (user interface) sending the operation.

Parameters:
toolName - The name of the tool sending the operation

getToolName

public java.lang.String getToolName()
Gets the name of the tool (user interface) sending the operation.

Returns:
The name of the tool sending the operation

getVersion

public java.lang.String getVersion()
Gets the version of the client sending the operation.

Returns:
The version of the client sending the operation

setListFailures

public void setListFailures(boolean listFailures)
Sets whether the operation must list the failed authentication attempts.

Parameters:
listFailures - Flag: true if the operation must list the failed authentication attempts, false otherwise

getListFailures

public boolean getListFailures()
Gets whether the operation must list the failed authentication attempts.

Returns:
true if the operation must list the failed authentication attempts, false otherwise

getListAuthorizations

public boolean getListAuthorizations()
Gets whether the operation must list the authorizations

Returns:
true if the operation must list the authorizations, false otherwise

setListAuthorizations

public void setListAuthorizations(boolean listAuthorizations)
Sets whether the operation must list the authorizations

Parameters:
listAuthorizations - true if the operation must list the authorizations, false otherwise

setAttributes

public void setAttributes(XMLAttributes atts)
Description copied from interface: XMLMarshallable
Sets the attributes of the XML representation of the element being processed.

Specified by:
setAttributes in interface XMLMarshallable
Parameters:
atts - The XML attributes of the current element

addCharacterData

public void addCharacterData(java.lang.String cData)
Description copied from interface: XMLMarshallable
Adds character data to the content element.

Specified by:
addCharacterData in interface XMLMarshallable
Parameters:
cData - The character data to be added

addChild

public void addChild(java.lang.String tagName,
                     XMLMarshallable child)
Description copied from interface: XMLMarshallable
Adds a child to the object, the child representing the marshallable object which must be added to the element.

Specified by:
addChild in interface XMLMarshallable
Parameters:
tagName - The name of tag for the child
child - The child to be added

marshal

public void marshal(XMLOutputter output)
Description copied from interface: XMLMarshallable
Gives an XML representation of this object, including its children.

Specified by:
marshal in interface XMLMarshallable
Parameters:
output - The XML output to marshal the object into

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)