public class AuthorizationModel extends HCIModelAdapter implements XMLMapping
Java class represents an authorization that can be assigned to a role for SAP CC users; It contains the permissions for
executable activities. Authorizations cannot be customized in the SAP CC system.
An activity is:
Example
The activity Create a Charge Plan will include the following operations:
Note
There is an activity for each HCI and Web Services operation.
Caution
Consult the SAP CC Security Guide about the role and authorization concept of SAP Convergent Charging.
AuthenticateUserOp,
UserModel,
RoleModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="authorization">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="DescriptionType" minOccurs="0" maxOccurs="1" />
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
<xs:attribute name="activityId" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_NAME
The XML tag name of this data model: "authorization"
|
| Constructor and Description |
|---|
AuthorizationModel() |
| 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 |
getActivityId()
Gets the identifier of the activity for this authorization
|
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 identifier of the authorization
|
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 |
setActivityId(java.lang.String activityId)
Sets the identifier of the activity of this authorization
|
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 visible by a user administrator of SAP CC
Allow a better understanding about the role
|
void |
setId(java.lang.String id)
Sets the identifier of the authorization
|
marshalpublic static final java.lang.String TAG_NAME
public java.lang.String getId()
public void setId(java.lang.String id)
id - The ID of the authorizationpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description of the rolepublic java.lang.String getActivityId()
public void setActivityId(java.lang.String activityId)
activityId - The ID of the activitypublic 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