public static class SearchUserSessionResult.UserSessionModel extends java.lang.Object implements XMLMarshallable
Java class represents a user session.
A user session contains the following information:
sessionId: the identifier of the user sessionuserLogin: the logon of the SAP CC user associated to this user sessiontoolName: the name of the tool associated to this user sessioncreationDate: the creation date of the user sessionlastActivityDate: the date of the last activity on the user sessionThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="userSession">
<xs:complexType>
<xs:attribute name="sessionId" type="xs:string" />
<xs:attribute name="userLogin" type="xs:string" />
<xs:attribute name="toolName" type="xs:string" />
<xs:attribute name="creationDate" type="xs:dateTime" />
<xs:attribute name="lastActivityDate" type="xs:dateTime" />
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_NAME
The XML tag name of this data model:
TAG_NAME |
| Constructor and Description |
|---|
UserSessionModel()
Builds an empty UserSessionModel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String data)
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. |
java.util.Date |
getCreationDate()
Gets the creation date of the user session.
|
java.util.Date |
getLastActivityDate()
Gets the date of the last activity on the user session.
|
java.lang.String |
getSessionId()
Gets the identifier of the user session.
|
java.lang.String |
getToolName()
Gets the name of the user interface associated to the user session.
|
java.lang.String |
getUserLogin()
Gets the logon of the SAP CC user associated to the user session.
|
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 |
setCreationDate(java.util.Date creationDate)
Sets the creation date of the user session.
|
void |
setLastActivityDate(java.util.Date lastActivity)
Sets the date of the last activity on the user session.
|
void |
setSessionId(java.lang.String sessionId)
Sets the identifier of the user session.
|
void |
setToolName(java.lang.String toolName)
Sets the name of the tool associated to the user session.
|
void |
setUserLogin(java.lang.String userLogin)
Sets the logon of the SAP CC user associated to the user session.
|
public static final java.lang.String TAG_NAME
TAG_NAMEpublic java.lang.String getSessionId()
public void setSessionId(java.lang.String sessionId)
sessionId - The identifier of the user sessionpublic java.lang.String getUserLogin()
public void setUserLogin(java.lang.String userLogin)
userLogin - The logon of the user associated to the user sessionpublic java.lang.String getToolName()
public void setToolName(java.lang.String toolName)
toolName - The name of the tool associated to the user sessionpublic java.util.Date getCreationDate()
public void setCreationDate(java.util.Date creationDate)
creationDate - The creation date of the user sessionpublic java.util.Date getLastActivityDate()
public void setLastActivityDate(java.util.Date lastActivity)
lastActivity - The date of the last activity on the user sessionpublic void addCharacterData(java.lang.String data)
XMLMarshallableaddCharacterData in interface XMLMarshallabledata - The character data to be addedpublic 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)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object intopublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current element