Package com.highdeal.admin.hci
Class RoleModel
java.lang.Object
com.highdeal.hci.HCIModelAdapter
com.highdeal.admin.hci.RoleModel
- All Implemented Interfaces:
ITagNameProvider,IXMLMarshallable,XMLMapping,XMLMarshallable
This
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.
Additional Information
Consult the product documentation of SAP Convergent Charging:
- See the SAP CC Security Guide about the default roles provided in the software
- See the SAP CC Authorization Reference about the complete reference of existing authorizations
- See Also:
XML API for HCI
The 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>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Gets the list of authorization identifiers of the roleClass<?>getClass(String nsUri, String tag, XMLAttributes atts) Returns theJava classfor a specifiedXML tagand its attributes in a namespace.Gets the description of the rolegetId()Gets the unique identifier of the roleGets the XML tag name of the HCI model.voidmarshalAttributes(XMLOutputter output) Gives an XML representation of the attributes of an object.voidmarshalChildren(XMLOutputter output) Gives an XML representation of the child objects of an object.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetDescription(String description) Sets the description of the rolevoidSets the ID of the role; this ID is unique in the system.Methods inherited from class com.highdeal.hci.HCIModelAdapter
marshal
-
Field Details
-
TAG_NAME
The value of that constant is the XML tag name of the role:role.- See Also:
-
-
Constructor Details
-
RoleModel
public RoleModel()Initialize a role model.
-
-
Method Details
-
getId
Gets the unique identifier of the role- Returns:
- The identifier of the role
-
setId
Sets the ID of the role; this ID is unique in the system.- Parameters:
id- The identifier of the role
-
getDescription
Gets the description of the role- Returns:
- The description of the role
-
setDescription
Sets the description of the role- Parameters:
description- The description of the role
-
getAuthorizationIds
Gets the list of authorization identifiers of the role- Returns:
- The list of authorization identifiers of the role
-
marshalAttributes
Description copied from interface:IXMLMarshallableGives an XML representation of the attributes of an object.- Specified by:
marshalAttributesin interfaceIXMLMarshallable- Parameters:
output- TheXML outputto marshal the object attributes into
-
marshalChildren
Description copied from interface:IXMLMarshallableGives an XML representation of the child objects of an object.- Specified by:
marshalChildrenin interfaceIXMLMarshallable- Parameters:
output- TheXML outputto marshal the child objects into
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
getTagName
Description copied from interface:ITagNameProviderGets the XML tag name of the HCI model.- Specified by:
getTagNamein interfaceITagNameProvider- Returns:
- The XML tag name
-
getClass
Description copied from interface:XMLMappingReturns theJava classfor a specifiedXML tagand its attributes in a namespace.- Specified by:
getClassin interfaceXMLMapping- Parameters:
nsUri- The unique resource identifier of the namespace of the XML tagtag- The local part of the XML tagatts- The attributes of the XML tag- Returns:
- A
Java classwith a default constructor
-