 |
|
|
|
|
mezObject Class
The mezObject class is used to represent a single object in a
Content Services library. The class contains a collection of mezProperty
objects, each of which represents a single property of the mezObject and
can be retrieved using the GetPropertyByID()
or GetPropertyByIndex()
method. An action list is also included in the class and is used to identify
the actions a specific user can perform on the mezObject, such as "Delete"
or "Copy". The GetActionListItem()
method can be used to retrieve an individual action.
A mezObject can be in one of several states, the most common of
which are full and partial. Full mezObjects contain all of their properties.
Partial mezObjects only contain some of their properties and these are
the result of mezProperty child expansion via the mezProperty.Expand()
method. Partial mezObjects can be converted to full by using the GetData()
method.
The Update()
method can be used to store changes to a mezObject to the server.
The Update method performs a cascading update, in which any child object
contained by a list mezProperty object (described later in this
document) are updated along with the parent mezObject.
Methods
Copy
|
returns a new mezObject, created by copying the current object
|
Delete
|
delete an existing object from a CS library
|
GetActionListItem
|
retrieves an individual action item for an object
|
GetData
|
convert an object from partial to full by populating
all of the property values for the object
|
GetPropertyByID
|
retrieve a single mezProperty of the object using the property
identifier
|
GetPropertyByIndex
|
retrieve a single mezProperty of the object using the property
index in the object
|
RefreshData
|
refresh the properties for an object from the server
|
Rename
|
rename an object
|
SetDeleteFlag
|
set the delete flag of an object to either Boolean True or False
|
SetupNewObject
|
used to create an object of a particular type (generally used to
get information about a particular object type)
|
Update
|
store the data contained in an object (and child objects of its
properties) to the server
|
Properties
|