public class RoleModel extends HCIModelAdapter implements XMLMapping
Java class represents a role that can be assigned to the SAP CC users;
It contains a set of authorizations to allow or not the execution of certain operations by the connected SAP CC system.
Predefined roles are configured in the SAP CC system.
Roles are customized levels of combined authorizations that grant the SAP CC users with specific
access and control rights within the system. An SAP CC user can have several roles.
Each operation API requires an authorization that must belong to the SAP CC user specified as message originator of the corresponding operation request.
Caution
Consult the SAP CC Security Guide about the role and authorization concept of SAP Convergent Charging.
Consult the product documentation of SAP Convergent Charging:
UserModel,
AuthorizationModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="role">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="DescriptionType" minOccurs="0" maxOccurs="1" />
<xs:element name="authorizationId" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="value" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_NAME
The value of that constant is the XML tag name of the role:
role. |
| Constructor and Description |
|---|
RoleModel()
Initialize a role model.
|
| 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.util.List<java.lang.String> |
getAuthorizationIds()
Gets the list of authorization identifiers of the role
|
java.lang.Class<?> |
getClass(java.lang.String nsUri,
java.lang.String tag,
XMLAttributes atts)
Returns the
Java class for a specified XML tag and its attributes in a namespace. |
java.lang.String |
getDescription()
Gets the description of the role
|
java.lang.String |
getId()
Gets the unique identifier of the role
|
java.lang.String |
getTagName()
Gets the XML tag name of the HCI model.
|
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
marshalChildren(XMLOutputter output)
Gives an XML representation of the child objects of an object.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setDescription(java.lang.String description)
Sets the description of the role
|
void |
setId(java.lang.String id)
Sets the ID of the role; this ID is unique in the system.
|
marshalpublic static final java.lang.String TAG_NAME
role.public java.lang.String getId()
public void setId(java.lang.String id)
id - The identifier of the rolepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description of the rolepublic java.util.List<java.lang.String> getAuthorizationIds()
public void marshalAttributes(XMLOutputter output)
IXMLMarshallablemarshalAttributes in interface IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallablemarshalChildren in interface IXMLMarshallableoutput - The XML output to marshal the child objects intopublic 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 java.lang.String getTagName()
ITagNameProvidergetTagName in interface ITagNameProviderpublic java.lang.Class<?> getClass(java.lang.String nsUri,
java.lang.String tag,
XMLAttributes atts)
XMLMappingJava class for a specified XML tag and its attributes in a namespace.getClass in interface XMLMappingnsUri - The unique resource identifier of the namespace of the XML tagtag - The local part of the XML tagatts - The attributes of the XML tagJava class with a default constructor