|
SAP CC 3.0 Core API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.highdeal.hci.UserModel
public class UserModel
This class represents a user of HTTP Communication Interface.
A User is any person who is authorized to work with SAP Convergent Charging
and who is assigned one or more roles in the organization.
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.
Users are divided into 2 categories: human and non-human users. Human users are dialog users as
opposed to service users. They have different policies regarding passwords. Dialog users can be
locked because of a number of failed authentication attempts, and must modify their password
regularly. On the other hand, service users cannot be locked for unsuccessful login attempts and
their password never expire. The latter category of is intended for automated processes where
such restrictions could cause an interruption of service.
Role Name | ID | Authorized domain | Main authorized actions |
Transactive Administrator | "admin" | all | all |
User Administrator | "useradmin" | Users | Manage the users and their rights |
Customer Sale Representative (CSR) | "csr" | Subscriptions (Price & Rate) | Manage subscriptions. |
Marketing | "marketing" |
|
Manage :
|
XML Schema Fragment |
<xs:element name="user"> <xs:complexType> <xs:sequence> <xs:element name="permission" minOccurs="0" maxOccurs="unbounded"> <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:complexType> </xs:element> |
Field Summary | |
---|---|
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 |
Constructor Summary | |
---|---|
UserModel()
Constructs an empty user. |
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. |
java.lang.String |
getCatalogName()
Returns the name of the catalog associated to this user. |
java.lang.String |
getLoginID()
Returns the login of this user. |
java.lang.String |
getPassword()
Returns the password of this user. |
java.util.Vector<java.lang.String> |
getPermissions()
Returns the list of role(s)/permission(s) allowed to this user. |
boolean |
isHuman()
Deprecated. Use isTechnical() instead. |
boolean |
isLocked()
Returns whether the user is locked. |
boolean |
isPasswordRevoked()
Tells whether or not this user must change is password on next login. |
boolean |
isTechnical()
Gets whether the user is a technical user. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, and of 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 user. |
void |
setHuman(boolean human)
Deprecated. Use setTechnical(boolean) instead. |
void |
setLocked(boolean locked)
Sets whether the user is locked. |
void |
setLoginID(java.lang.String id)
Sets the login for this user. |
void |
setPassword(java.lang.String pw)
Sets the password for this user. |
void |
setPasswordRevoked(boolean passwordRevoked)
Sets the flag that force this user to change its password. |
void |
setTechnical(boolean technical)
Sets whether the user is a technical user. |
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 TAG_NAME
public static final java.lang.String PASSWORD_REVOKED_ATTRIBUTE_NAME
Constructor Detail |
---|
public UserModel()
Method Detail |
---|
public java.lang.String getLoginID()
public void setLoginID(java.lang.String id)
id
- the login for this user.public java.lang.String getPassword()
public void setPassword(java.lang.String pw)
pw
- the password for this user.public java.util.Vector<java.lang.String> getPermissions()
public java.lang.String getCatalogName()
null
if the user is not associated to a catalog.public void setCatalogName(java.lang.String catalogName)
catalogName
- the name of the catalog associated to this user, or null
if the user is not associated to a catalog.public boolean isLocked()
public void setLocked(boolean locked)
locked
- whether the 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 user is a technical userpublic boolean isPasswordRevoked()
public void setPasswordRevoked(boolean passwordRevoked)
passwordRevoked
- true if this user must change is password.public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes
in interface XMLMarshallable
atts
- the XML attributes of the current element.public void addChild(java.lang.String tagName, XMLMarshallable child)
XMLMarshallable
child
representing
the marshallable object which must be added to the element.
addChild
in interface XMLMarshallable
tagName
- the name of tag for the child.child
- the child to be added.public void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData
in interface XMLMarshallable
cData
- the character data to be added.public void marshal(XMLOutputter output)
XMLMarshallable
marshal
in interface XMLMarshallable
output
- the XML output to marshall the object into.
|
SAP CC 3.0 Core API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Document Version: SP04 and later
(c) Copyright 2011 SAP AG. All rights reserved.