|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.hci.AuthenticateUserOp
public class AuthenticateUserOp
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.
listAuthorizations flag is set to true, the operation response
AuthenticateUserResult will contain the list of user authorizations.
listFailures flag or the toolName attribute is specifiedt, the
operation response will contain the list of failed authentication attempts since the last connection.
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.
AuthenticateUserResult).
AuthenticationFailedException with the reason
session_already_exists will be thrown.
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.
UserModel,
AuthorizationModel,
DisconnectUserOp AuthenticateUserResult AuthenticationFailedExceptionThe 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>
You can send this operation request in HCI messages to the following final target types of instances in the connected SAP CC system:
| Edition | Final Target Instances | |||||
| rater | updater | guider | bulkLoader | taxer | dispatcher | |
| charge | No | Yes | No | No | No | Yes |
| 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 |
|---|
public static final java.lang.String OPERATION_NAME
| Constructor Detail |
|---|
public AuthenticateUserOp()
| Method Detail |
|---|
public java.lang.String getName()
MessageOperationJava 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
getName in interface MessageOperationpublic java.lang.String getLoginID()
SAP CC user that is to be authenticated.
public void setLoginID(java.lang.String id)
SAP CC user that is to be authenticated.
id - The login of the SAP CC user that is to be authenticatedpublic void setPassword(java.lang.String password)
SAP CC user that is to be authenticated.
password - The password of the SAP CC user that is to be authenticatedpublic java.lang.String getPassword()
SAP CC user that is to be authenticated.
public void setToolName(java.lang.String toolName)
toolName - The name of the tool sending the operationpublic java.lang.String getToolName()
public java.lang.String getVersion()
public void setListFailures(boolean listFailures)
listFailures - Flag: true if the operation must list the failed authentication attempts, false otherwisepublic boolean getListFailures()
true if the operation must list the failed authentication attempts, false otherwisepublic boolean getListAuthorizations()
authorizations
true if the operation must list the authorizations, false otherwisepublic void setListAuthorizations(boolean listAuthorizations)
authorizations
listAuthorizations - true if the operation must list the authorizations, false otherwisepublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be added
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||