QCResource Object
Represents a file or folder stored in the Quality Center repository.

A resource is either a folder or a file stored in the project database. A resource is any material used by another entity, for example, an object repository or function library. 

A resource can have a "used by" relation to any number of other entities. For example, several Tests may use the same resources.

Where a resource must be used with other resources or other entities, the dependency can be modeled with a "uses" relation.

The relations are modeled with an AssetRelation Object. Where this resource has a "uses" relation to another entity, create the relation with this relation's factory, ISupportAssetRelations.AssetRelationFactory.

The QCResource object handles one resource. The object has no knowledge of the type of the resource or how it is used.

Get a reference from QCResourceFactory.

For version control, use the IVersionedEntity interface.

Implemented Interface Description
IBaseField2 Represents a basic data field or entity, such as an attachment.
IBaseField3 Represents a basic data field or entity, such as an attachment.
IBaseField4 Represents a basic data field or entity, such as an attachment.
IMailableEntity Mail support for entities.
IResourceStorage Services to manage resource storage.
ISubtypedEntity Represents an entity with support for subtypes.
ISupportAssetRelations Services for managing relations between Quality Center entities.
ISupportAssetRelations2 Services for managing relations between Quality Center entities.
ISupportAssetRepositoryItems Services for managing asset repository items.
ISupportAssets Services for managing user assets.
ISysTreeNode2 Represents a tree node.
IVersionedEntity Represents an entity that can have versions.
Public Methods
Public Method AddNode Adds a new child node.
Public Method Clean Remove the resource files from the server repository and the client cache.
Public Method Download Downloads an asset and its related assets.
Public Method DownloadResource Downloads the specified resource to the client.
Public Method FindChildNode Finds a child node by node name.
Public Method FindChildren Finds node children according to specified search pattern.
Public Method HasDependencies Returns asset relation dependencies status.
Public Method LockObject Locks the object. Returns True if the object has been changed on the server.
Public Method Mail Mails the IBaseFieldExMail field item.
Public Method MailEx Mails the IMailableEntity field item.
Public Method NewList Gets a list of the node's immediate children.
Public Method Post Posts all changed values into database.
Public Method Refresh Reads saved values, overwriting values in memory.
Public Method RemoveNode Deletes the specified node.
Public Method Undo Undoes changes to field values that have not been posted.
Public Method UnLockObject Unlocks the object.
Public Method UploadResource Uploads the specified resource to the server.
Public Properties
Public Property AssetRelationFactory The asset's AssetRelationsFactory object.
Public Property AssetRepositoryItemFactory The asset's AssetRepositoryItemFactory object.
Public Property Attachments Not implemented for QCResource. Do not access this property.
Public Property Attribute Gets the node attribute.
Public Property AutoPost If true, the database is updated immediately when the field value changes.
Public Property AutoUnlock Indicates whether to make the item changeable to other users automatically after a Refresh or Post.
Public Property Child Gets a sub-folder of the current folder.
Public Property ContainsBrokenRelation Returns true if the object is linked to an asset but the asset does not exist.
Public Property Count The number of child nodes.
Public Property Creator The user name of the creator of the resource.
Public Property DepthType The sub-tree depth type.
Public Property Description The description of the resource.
Public Property EntitySubtype The current subtype of the entity.
Public Property ExtendedStorage For QCResource, it is preferable to use the IResourceStorage Implemented Interface. The ExtendedStorage property is the generic ExtendedStorage object for any resource.
Public Property Father The current folder's parent folder.
Public Property Field The value of the specified field.
Public Property FieldMultiValue The MultiValue object of the specified field.
Public Property FileName The folder or file name of the resource.
Public Property HasAttachment Not implemented for QCResource. Do not access this property.
Public Property ID The item ID.
Public Property IsLocked Checks if object is locked for editing.
Public Property Modified Checks if the item has been modified since last refresh or post operation. If true, the field properties on the server side are not up to date.
Public Property Name The name of the resource as displayed in the user interface.
Public Property NodeID The node ID number.
Public Property ParentId The ID of the resource's parent folder.
Public Property Path The folder tree path starting from the tree root.
Public Property ResourceType The type of the resource.
Public Property Type The node's type.
Public Property TypeName The field's type.
Public Property UsedBy Returns the list of relations to assets that are using this asset or that are using user assets owned by this asset.
Public Property UserAssetFactory The asset's UserAssetFactory object.
Public Property Using Returns the list of relations to assets used by this asset or by user assets owned by this asset.
Public Property VC The version control object for the entity.
Public Property VersionData The IVersionData of the entity.
Public Property Virtual Checks if this is a virtual item, that is, an item that does not have a corresponding database record.
See Also