public class UserModel extends java.lang.Object implements XMLMarshallable
Java class represents a user of SAP Convergent Charging software; A user is any person (individual) or machine (service) allowed to
work with SAP CC according to his assigned roles
and resulting authorizations.
Each message sent via HCI must include a header with
the identifier of an SAP CC user as originator of the message.
A user is identified by a login/password.
If the advanced password management feature is enabled, each password has to conform to the complexity rules that have been defined by the administrator. Passwords may also have an expiration date after which they must be changed. A user can also be locked and thus prevented to do any operation if his password is wrongly entered several times.
SAP CC users are divided into two categories: individual (human) and service (non-human) users:
Caution
Consult the SAP CC Security Guide about the role and authorization concept of SAP Convergent Charging.
AuthenticateUserOp,
RoleModel,
AuthorizationModel,
CreateUserOp,
SearchUserOp,
ModifyUserOp,
DeleteUserOpThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="user">
<xs:complexType>
<xs:sequence>
<xs:element name="permission" minOccurs="0" maxOccurs="unbounded"> <!-- i.e. a role -->
<xs:complexType>
<xs:attribute name="value" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="login" type="xs:string"/>
<xs:attribute name="password" type="xs:string"/>
<xs:attribute name="catalogName" type="xs:string"/>
<xs:attribute name="locked" type="xs:boolean"/>
<xs:attribute name="human" type="xs:boolean" use="optional" default="true" /> <!-- deprecated -->
<xs:attribute name="technical" type="xs:boolean" use="optional" default="false" />
<xs:attribute name="passwordRevoked" type="xs:boolean" use="optional" default="false" />
<xs:attribute name="creationDate" type="xs:dateTime"/>
<xs:attribute name="lastModificationDate" type="xs:dateTime"/>
<xs:attribute name="validFrom" type="xs:dateTime"/>
<xs:attribute name="validTo" type="xs:dateTime"/>
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PASSWORD_REVOKED_ATTRIBUTE_NAME
The XML node tag name for the user model
|
static java.lang.String |
TAG_NAME
The XML node tag name for the user model: "user"
|
| Constructor and Description |
|---|
UserModel()
Constructs an empty user for SAP CC.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
java.lang.String |
getCatalogName()
Returns the name of the pricing catalog associated to this SAP CC user.
|
java.util.Date |
getCreationDate()
Returns the date when this SAP CC user has been created.
|
java.util.Date |
getLastModificationDate()
Returns the date of the last modification of this SAP CC user through the
modify user operation. |
java.lang.String |
getLoginID()
Returns the login of this SAP CC user.
|
java.lang.String |
getPassword()
Returns the password of this SAP CC user.
|
java.util.List<java.lang.String> |
getPermissions()
Returns the list of role(s)/permission(s) assigned to this SAP CC user.
|
java.util.Date |
getValidFrom()
Returns the start date of the validity period for this SAP CC user.
|
java.util.Date |
getValidTo()
Returns the end date of the validity period for this SAP CC user.
|
boolean |
isHuman()
Deprecated.
Use
isTechnical() instead. |
boolean |
isLocked()
Returns whether the SAP CC user is locked.
|
boolean |
isPasswordRevoked()
Tells whether or not this SAP CC user must change his password on next login.
|
boolean |
isTechnical()
Gets whether the SAP CC user is a technical user (service user).
|
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 |
setCatalogName(java.lang.String catalogName)
Sets the name of the catalog associated to this SAP CC user.
|
void |
setCreationDate(java.util.Date creationDate)
Sets the creation date for this SAP CC user.
|
void |
setHuman(boolean human)
Deprecated.
Use
setTechnical(boolean) instead. |
void |
setLastModificationDate(java.util.Date lastModificationDate)
Sets the last modification date for this SAP CC user.
|
void |
setLocked(boolean locked)
Sets whether the SAP CC user is locked.
|
void |
setLoginID(java.lang.String id)
Sets the login for this SAP CC user.
|
void |
setPassword(java.lang.String pw)
Sets the password for this SAP CC user.
|
void |
setPasswordRevoked(boolean passwordRevoked)
Sets the flag that force this SAP CC user to change his password.
|
void |
setTechnical(boolean technical)
Sets whether the SAP CC user is a technical user.
|
void |
setValidFrom(java.util.Date validFrom)
Sets the validity period start date for this SAP CC user.
|
void |
setValidTo(java.util.Date validTo)
Sets the validity period end date for this SAP CC user.
|
public static final java.lang.String TAG_NAME
public static final java.lang.String PASSWORD_REVOKED_ATTRIBUTE_NAME
public java.lang.String getLoginID()
public void setLoginID(java.lang.String id)
id - The login for this SAP CC userpublic java.lang.String getPassword()
public void setPassword(java.lang.String pw)
pw - The password for this SAP CC userpublic java.util.List<java.lang.String> getPermissions()
public java.lang.String getCatalogName()
null if the user is not associated to a catalogpublic void setCatalogName(java.lang.String catalogName)
catalogName - The name of the catalog associated to this SAP CC user, or null if the user is not associated to a catalogpublic boolean isLocked()
public void setLocked(boolean locked)
locked - Whether the SAP CC user is locked@Deprecated public boolean isHuman()
isTechnical() instead.true if the user is not a technical user, false otherwise@Deprecated public void setHuman(boolean human)
setTechnical(boolean) instead.human - Whether the user is not a technical userpublic boolean isTechnical()
true if the user is a technical user, false otherwisepublic void setTechnical(boolean technical)
technical - Whether the SAP CC user is a technical userpublic boolean isPasswordRevoked()
true if this SAP CC user must change his passwordpublic void setPasswordRevoked(boolean passwordRevoked)
passwordRevoked - true if this user must change his passwordpublic java.util.Date getCreationDate()
public void setCreationDate(java.util.Date creationDate)
creationDate - the creation date.public java.util.Date getLastModificationDate()
modify user operation.public void setLastModificationDate(java.util.Date lastModificationDate)
lastModificationDate - the last modification date.public java.util.Date getValidFrom()
public void setValidFrom(java.util.Date validFrom)
validFrom - the validity period start date, could be null.public java.util.Date getValidTo()
public void setValidTo(java.util.Date validTo)
validTo - the validity period end date, could be null.public void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic 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 addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into