Package com.highdeal.hci
Class ObjectAccessRuleModel
java.lang.Object
com.highdeal.hci.ObjectAccessRuleModel
- All Implemented Interfaces:
XMLMarshallable
This
Java class represents an Object Access Rule. An Object Access Rule defines the rights to access to catalog objects.- See Also:
-
CreateObjectAccessRuleOpDeleteObjectAccessRuleOpAuthenticateUserOpUserModel
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="objectAccessRule">
<xs:complexType>
<xs:sequence>
<xs:element ref="additionalInformation" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="reference" type="xs:long"/>
<xs:attribute name="isReadWriteLevel" type="xs:boolean" 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.Returns theAdditional Infoto filter the catalog objects, if any.longGets the reference of the Object Access Rule.booleanGets the flag that identify if the rule is for read/write access or only for read access.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAddInfo(AdditionalInfoModel addInfo) Sets theAdditional Infoto filter the catalog objects.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetIsReadWriteLevel(boolean isReadWriteLevel) Sets the flag that identify if the rule is for read/write access or only for read access.voidsetReference(long ref) Sets the reference of the Object Access Rule.
-
Field Details
-
TAG_NAME
The XML tag name of this data model: "objectAccessRule"- See Also:
-
-
Constructor Details
-
ObjectAccessRuleModel
public ObjectAccessRuleModel()Constructs an empty Object Access Rule.
-
-
Method Details
-
getAddInfo
Returns theAdditional Infoto filter the catalog objects, if any.- Returns:
- the
Additional Infoif any
-
setAddInfo
Sets theAdditional Infoto filter the catalog objects.- Parameters:
addInfo- theAdditional Infoto filter the catalog objects
-
setReference
public void setReference(long ref) Sets the reference of the Object Access Rule.- Parameters:
ref- the reference of the Object Access Rule
-
getReference
public long getReference()Gets the reference of the Object Access Rule.- Returns:
- the reference of the Object Access Rule
-
setIsReadWriteLevel
public void setIsReadWriteLevel(boolean isReadWriteLevel) Sets the flag that identify if the rule is for read/write access or only for read access.- Parameters:
isReadWriteLevel- the flag that identify if the rule is for read/write access or only for read access
-
isReadWriteLevel
public boolean isReadWriteLevel()Gets the flag that identify if the rule is for read/write access or only for read access.- Returns:
trueif the rule is for read/write access,falseotherwise
-
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
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-