deleteCtgItem script operation
Delete the catalog item itm in the source
catalog. An exception is thrown if this script op is called from items in
collaboration areas or items in a source catalog that are currently checked
out.
getAvailableLocations script operation
Returns CategorySet of locations in the
item that are either a match for the given location or are in the given CategoryTree.
getCatalog script operation
If Object is an item then the Catalog
that the item belongs to is returned. If Object is a SearchResultSet then
the value at the given column index in the current row is returned as a catalog.
getCtgItemAttrib script operation
Returns the value of the attribute sAttribPath
(spec_name/attribute_name) of this item, only when the Attribute is included
in the View or Attribute Collection, otherwise it will return null.
getCtgItemAttribByPk script operation
Returns the value of the attribute sAttribPath
(spec_name/attribute_name) of the item with the given primary key.
getCtgItemAttribNamesList script operation
Returns an array of String containing
the attribute name of all the attributes of this item (optional parameter
allows option exclude categorySpecificAttribute - true by default).
getCtgItemAttribsForKeys script operation
Gets the attributes for an item based
upon the passed Object[] (declared: var aAttribs = [];) of attribute keys
(paths). The resultant values are loaded into the value pair of the aAttribs
mapping. By specifying the delimiter parameter, in addition to populating
aAttribs mapping the operation returns a CSV string representation of the
retrieved values separated by the delimiter character.
getCtgItemCategories script operation
Returns the categories this
item is mapped to. If catTreeName is given, returns the categories within
that ctr only (use the default category tree if no category tree is passed).
Also, can use an optional CategoryCache passed in catCache
getCtgItemCategoryPaths script operation
Returns an array of delimited strings
of the category paths this item belongs to. If ctr is given, returns the paths
of the categories within that ctr only.
getCtgItemCategoryPathsForPrimaryKey script operation
Returns an array of delimited strings of the category paths for the item with sPrimaryKey in Catalog. If ctr is given, returns the paths of the categories within that ctr only
getCtgItemMappedAttrib script operation
Returns the value of the item's attribute
mapped to or from the given attribute path (mapped_spec_name/attribute_name).
getCtgItemMappedAttribs script operation
Returns a HashMap with the mapped attributes values from the given item, indexed by their path (mapped_spec_name/attribute_name).
getExitValue script operation
Returns the exit value, if set,
of an entry in a workflow step. Can be called in an OUT(), or TIMEOUT()
step script function. Can also be called in pre-processing, post-processing,
or post-save scripts. If the entries' exitValue is not set, this script
op returns null. This script operation will return a wrong exit value
if called from a previous step where more that one exit value is defined.
If for that particular step customer has multiple exit values set,
then calling the getExitValue() script operation from IN() returns
an arbitrary value out of its multiple exit values.
getGlobalErrors script operation
Returns the validation errors for the global attributes. Will return an empty array if no such errors exists.
getItemXMLRepresentation script operation
Returns the XML representation of this
item which is specific to the given spec. This representation can be consumed
by the XML parser in the WebSphere® Portal Server portion of the InfoSphere
Master Data Management Collaboration Server and WebSphere Portal
Server integration
getLinkedItems script operation
Returns a HashMap for each item linked to this item's primary key. Keys in the HashMap include "item_key","item_id","catalog_id", and "catalog_name".
getLocationErrors script operation
Returns the locations errors for locations having validation errors. Will return an empty array if no such errors exists.
getLocationsHavingData script operation
Returns the category set of locations
for which this entry has location specific attributes defined under the specified
location or category tree.
isCtgItemMappedToCategories script operation
Returns true if the item is mapped to categories. If the optional argument ctr is given, returns true if the item is mapped to a category in ctr.
makeItemAvailableInLocation script operation
Makes this item available in a given
location. Available means that an item can have location data for the given
location. If bRecursive is true than make item available in all descendent
locations.
makeItemAvailableInLocations script operation
Makes this item available in the given
locations. Available means that an item can have location data for the given
location. If bRecursive is true than make item available in all descendent
locations.
mapCtgItemToCategory script operation
Map this item to this category.
If optional boolean addToPicture is false,
the secondary spec will not be associated and cannot be set; useful
for performance. If optional boolean validateCategory is true and
the categories hierarchy does not have the VALIDATION_RULES option
disabled, the mapping will only occur if the category passes validation.
Validation is false by default.
mapCtgItemToOrganizations script operation
Maps the item to all the organizations
provided. If bAdd is true, the old mappings are added to; otherwise
they are overwritten to be the new set of organizations.
new$CtgItem script operation
Returns a new item object. The argument
can be a catalog name or a catalog object. The argument being a catalog object
allows the propagation of attribute collections to process settings etc. to
new items being built with this operation. If no catalog name/object is provided,
then the default catalog from the current script context is used. bRunEntryBuildScript
or bBuildNonPersisted should be set to false to disable the default behavior
of this script operation to run the entry build script or build the non-persisted
attributes respectively for this new item.
saveCtgItem script operation
Saves the item and returns the
EntryValidationErrors object. Use operations EntryValidationErrors::getGlobalErrors()
and EntryValidationErrors::getLocationErrors() to get the validation
errors that may have prevented the save.
setCtgItemAttrib script operation
Sets the attribute sAttribPath (spec_name/attribute_name)
of this item to sValue. Returns true if it was set successfully.
Returns false if operation failed to set, or if old and new values are same.
setCtgItemMappedAttribs script operation
Set the attributes of this item: hmPathValue should contain (path_y, value_x)'s; the item attribute path_x receives value_x if path_y is mapped to path_x in the spec map. If no spec map is specified, the specmap of the import is used.
setCtgItemRelationshipAttrib script operation
Sets the attribute sAttribPath (spec_name/attribute_path)
of type RELATIONSHIP of this item to the related item represented by the given
catalog and primary key.
setExitValue script operation
Set the exit value of an entry in a workflow step. Assumed to be called from an IN(), OUT(), or TIMEOUT() step script function.
setItemAttributesFromXMLRepresentation script operation
Updates this item based upon an XML representation
which is created by the XML parser in the WebSphere Portal Server portion of
the InfoSphere Master Data Management Collaboration Server
and WebSphere Portal
Server integration.