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. |
AddNode | Adds a new child node. |
Clean | Remove the resource files from the server repository and the client cache. |
Download | Downloads an asset and its related assets. |
DownloadResource | Downloads the specified resource to the client. |
FindChildNode | Finds a child node by node name. |
FindChildren | Finds node children according to specified search pattern. |
HasDependencies | Returns asset relation dependencies status. |
LockObject | Locks the object. Returns True if the object has been changed on the server. |
Mails the IBaseFieldExMail field item. | |
MailEx | Mails the IMailableEntity field item. |
NewList | Gets a list of the node's immediate children. |
Post | Posts all changed values into database. |
Refresh | Reads saved values, overwriting values in memory. |
RemoveNode | Deletes the specified node. |
Undo | Undoes changes to field values that have not been posted. |
UnLockObject | Unlocks the object. |
UploadResource | Uploads the specified resource to the server. |
AssetRelationFactory | The asset's AssetRelationsFactory object. |
AssetRepositoryItemFactory | The asset's AssetRepositoryItemFactory object. |
Attachments | Not implemented for QCResource. Do not access this property. |
Attribute | Gets the node attribute. |
AutoPost | If true, the database is updated immediately when the field value changes. |
AutoUnlock | Indicates whether to make the item changeable to other users automatically after a Refresh or Post. |
Child | Gets a sub-folder of the current folder. |
ContainsBrokenRelation | Returns true if the object is linked to an asset but the asset does not exist. |
Count | The number of child nodes. |
Creator | The user name of the creator of the resource. |
DepthType | The sub-tree depth type. |
Description | The description of the resource. |
EntitySubtype | The current subtype of the entity. |
ExtendedStorage | For QCResource, it is preferable to use the IResourceStorage Implemented Interface. The ExtendedStorage property is the generic ExtendedStorage object for any resource. |
Father | The current folder's parent folder. |
Field | The value of the specified field. |
FieldMultiValue | The MultiValue object of the specified field. |
FileName | The folder or file name of the resource. |
HasAttachment | Not implemented for QCResource. Do not access this property. |
ID | The item ID. |
IsLocked | Checks if object is locked for editing. |
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. |
Name | The name of the resource as displayed in the user interface. |
NodeID | The node ID number. |
ParentId | The ID of the resource's parent folder. |
Path | The folder tree path starting from the tree root. |
ResourceType | The type of the resource. |
Type | The node's type. |
TypeName | The field's type. |
UsedBy | Returns the list of relations to assets that are using this asset or that are using user assets owned by this asset. |
UserAssetFactory | The asset's UserAssetFactory object. |
Using | Returns the list of relations to assets used by this asset or by user assets owned by this asset. |
VC | The version control object for the entity. |
VersionData | The IVersionData of the entity. |
Virtual | Checks if this is a virtual item, that is, an item that does not have a corresponding database record. |