The Atg.DotNet.WebService.RepositoryItem
class is designed to manage XML serialization and deserialization for easy interoperability with the .NET Web services framework.
To serialize or deserialize a RepositoryItem
, you need only to pass in the RepositoryName
and RepositoryId
. When you are working with content for the first time, you also need to call setPropertyType
to instruct the deserializer/serializer to use a specific output data type.
Properties
Dirty
Determines the overall dirtiness of an object by specifying whether all properties are clean (false
) or one of more properties are dirty (true
).
ItemDescriptorName
Name of the item descriptor associated with the object’s RepositoryItem
.
Properties
List of properties for this RepositoryItem
.
RepositoryId
ID provided to the object’s RepositoryItem
representation.
RepositoryName
Name of the repository that the RepositoryItem
is part of.
Constructors
RepositoryItem()
Constructs a new, empty RepositoryItem
object. When you serialize or deserialize a property with a value that is a pointer to a RepositoryItem
, be sure to supply it a RepositoryName
, RepositoryId
, and ItemDescriptorName
when you invoke the setRepositoryItem
method.
RepositoryItem(string)
Constructs a new RepositoryItem
in the ATG platform, populating it with values parsed from the XML instance of the Web service call.
The XML instance is a by-product from the Web service call generation.
Methods
clearPropertyValues
Clears all property values for a given RepositoryItem
. Before using RepositoryItemSerializer.deserialize
, it’s a good idea to use this method to clear all previous values.
isPropertyDirty
Determines whether a given property value is dirty (true
) or clean (false
).
setPropertyDirty
Designates a given property as dirty.
getPropertyValue
Returns the value provided for a property in the ATG platform. If the property does not exist in the ATG platform, an error of type ATGWS.NoSuchPropertyException
is thrown.
setPropertyValue
Sets a value for a property in the ATG platform.
getPropertyType
Returns the property’s XML data type.
setPropertyType
Specifies the XML data type for the property value.
serialize
Creates a string representation of an XML document for the RepositoryItem
.