A container for a collection of assets presented as a single entity.
Inherits :
DAZ Script | |
---|---|
ProductMetadataType | { User, Vendor, UserAndVendor } |
DAZ Script | |
---|---|
Size | getDefaultStoreIconSize () |
DAZ Script | |
---|---|
void | cancelFromCloud () |
void | clearGroup () |
Array | getCategories ( ProductMetadataType metaType=UserAndVendor, Boolean installedAssets=true ) |
Size | getIconSize () |
Image | getImage () |
String | getMetadataXML ( ProductMetadataType metaType=UserAndVendor ) |
String | getMetadataXMLPath ( Boolean userData=false ) |
String | getRelativeInstallPath () |
Array | getSupportFiles ( Boolean forceRefresh=false ) |
String | getURL () |
void | installFromCloud () |
Boolean | isGroup ( Number group ) |
Boolean | loadDefaultIcon () |
Boolean | loadProductImage () |
Boolean | pushMetadata () |
Boolean | remove ( Boolean notify=true ) |
void | setIconSize ( Size size ) |
void | setImage ( Image img ) |
void | setURL ( String url ) |
void | uninstall () |
void | uninstallFromCloud () |
void | updateFromCloud () |
void | updateMetaDataFromCloud ( Boolean force=false ) |
The “Product” container type represents a collection of assets (and supporting files/metadata) that are presented as a single entity to the end-user. Each product is assigned a Globally Unique Identifier (GUID) that is used to identify that entity within the content ecosystem. Once a GUID has been assigned to a product (at creation), it does not (and should not) change.
While nearly all of the information that defines a product can be replicated into another, for logistical reasons a GUID can only be associated with one “Store” (source) at any single moment in its lifetime. This means that if more than one content package containing metadata that defines a given GUID is installed by an end-user, the last package installed will define the product in the database.
By default, all newly created assets are assigned to a “LOCAL USER” product. This product is represented by a GUID consisting entirely of zeros; i.e., “00000000-0000-0000-0000-000000000000”
The “LOCAL USER” product is associated with the “LOCAL USER” store (source); this cannot be modified.
See Also:
The different types of metadata for the product.
Holds the list of artist names associated with this product.
Since:
Holds the date this product was installed. Can be set (since 4.11.0.193) if isLocalUserStore is true
(except where isLocalUser is true
).
Since:
Holds the date this product was last updated. Can be set (since 4.11.0.193) if isLocalUserStore is true
(except where isLocalUser is true
).
Since:
Holds the date this product was purchased. Can be set (since 4.11.0.193) if isLocalUserStore is true
(except where isLocalUser is true
).
Since:
Holds the date this product was released. Can be set (since 4.11.0.193) if isLocalUserStore is true
(except where isLocalUser is true
).
Since:
Holds the vendor description of this product.
Holds the group identifier for the product. 0 = default, < 0 = app defined, > 0 = user defined.
Since:
Holds the Globally Unique Identifier (GUID) associated with this product. (Read Only)
Since:
Holds whether this product has metadata provided by the cloud. (Read Only)
Since:
Holds whether this product should be hidden in product views.
Since:
Holds the path of the icon for this product. (Read Only)
Since:
Holds whether this product can be installed from the cloud. (Read Only)
Since:
Holds whether this product is installed from the cloud. (Read Only)
Since:
Boolean : isCloudOperationInProgress
Holds whether a cloud operation is currently occurring for this product. (Read Only)
Since:
Holds whether this product is managed by the cloud. (Read Only)
Since:
Boolean : isDownloadingFromCloud
Holds whether this product is currently downloading from the cloud. (Read Only)
Since:
Holds whether this product is installed. (Read Only)
Since:
Holds whether this product is the special product that holds locally created assets. (Read Only)
Since:
Holds whether this product's store is the special store for locally created products. (Read Only)
Since:
Holds whether the metadata for this product is valid. (Read Only)
Since:
Return Value:
true
if the metadata is valid, otherwise false
.Since:
Holds whether this product is owned by a vendor or by the user. (Read Only)
Holds whether this product needs to be installed from the cloud. (Read Only)
Since:
Holds whether this product needs to be updated from the cloud. (Read Only)
Since:
Holds the name of the store for this product. (Read Only)
Since:
Holds the store id for this product. (Read Only)
Since:
Holds the title/name of this product.
Since:
Holds the token (i.e. SKU) for this product. (Read Only)
Since:
Holds the URL for this product.
Since:
void : cancelFromCloud()
Cancels any pending cloud operation on the product, if any.
Since:
void : clearGroup()
Sets the product as belonging to the default group identifier; 0.
Since:
Array : getCategories( ProductMetadataType metaType=UserAndVendor, Boolean installedAssets=true )
Parameter(s):
true
, only the categories of installed assets are included in the list, otherwise the categories of all assets regardless of installed state are included.Return Value:
Since:
Size : getIconSize()
Return Value:
Return Value:
Since:
String : getMetadataXML( ProductMetadataType metaType=UserAndVendor )
Parameter(s):
Return Value:
Since:
String : getMetadataXMLPath( Boolean userData=false )
Parameter(s):
true
, the basename of the file will reflect the user rather than the store.Return Value:
Since:
String : getRelativeInstallPath()
Return Value:
Since:
Array : getSupportFiles( Boolean forceRefresh=false )
Parameter(s):
true
, ignores any previously cached list of support files and causes the database to be queried explicitly.Return Value:
Since:
Return Value:
void : installFromCloud()
Installs a product from the cloud if it is not currently installed. The user will be prompted to authenticate if necessary.
Since:
Boolean : isGroup( Number group )
Return Value:
true
if the product is belongs to group
, otherwise false
.Attention:
Since:
Loads the default icon for this product.
Return Value:
true
if the icon was loaded, otherwise false
.Causes the product image to be loaded.
Return Value:
true
if the product image is loaded, otherwise false
.Boolean : pushMetadata()
Pushes the metadata information into the database.
Return Value:
true
if the metadata was successfully pushed to the database, otherwise false
.Attention:
Since:
Boolean : remove( Boolean notify=true )
Removes this product from the database.
Attention:
Parameter(s):
true
(default), calls DzAssetMgr::updateProductContainers() immediately following successful removal from the database. Use false
to suppress immediate notification - allows multiple products to be removed and notification to occur once all products to be removed, have been.Return Value:
true
if this product was successfully removed from the database, otherwise false
.See Also:
Since:
void : setIconSize( Size size )
Sets the icon size for this product container.
Parameter(s):
Sets the image that will be used to draw the icon for this product.
Parameter(s):
See Also:
Since:
Sets the URL for this product.
Parameter(s):
void : uninstall()
Uninstalls the product if it is currently installed.
Since:
void : uninstallFromCloud()
Uninstalls the product if it is currently installed.
Since:
void : updateFromCloud()
Updates the product if no other operations are currently being performed on it. The user will be prompted to authenticate if necessary.
Since:
void : updateMetaDataFromCloud( Boolean force=false )
Updates the metadata for this product. The user will be prompted to authenticate if necessary.
Parameter(s):
true
, any cached data will be discarded and force a connection to be made.Since: