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

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.

Interfaces
Implemented InterfaceDescription
IBaseField2Represents a basic data field or entity, such as an attachment.
IBaseField3Represents a basic data field or entity, such as an attachment.
IBaseField4Represents a basic data field or entity, such as an attachment.
IMailableEntityMail support for entities.
IResourceStorageServices to manage resource storage.
ISubtypedEntityRepresents an entity with support for subtypes.
ISupportAssetRelationsServices for managing relations between Quality Center entities.
ISupportAssetRelations2Services for managing relations between Quality Center entities.
ISupportAssetRepositoryItemsServices for managing asset repository items.
ISupportAssetsServices for managing user assets.
ISysTreeNode2Represents a tree node.
IVersionedEntityRepresents an entity that can have versions.
Public Methods
Public Method AddNodeAdds a new child node.
Public Method CleanRemove the resource files from the server repository and the client cache.
Public Method DownloadDownloads an asset and its related assets.
Public Method DownloadResourceDownloads the specified resource to the client.
Public Method FindChildNodeFinds a child node by node name.
Public Method FindChildrenFinds node children according to specified search pattern.
Public Method HasDependenciesReturns asset relation dependencies status.
Public Method LockObjectLocks the object. Returns True if the object has been changed on the server.
Public Method MailMails the IBaseFieldExMail field item.
Public Method MailExMails the IMailableEntity field item.
Public Method NewListGets a list of the node's immediate children.
Public Method PostPosts all changed values into database.
Public Method RefreshReads saved values, overwriting values in memory.
Public Method RemoveNodeDeletes the specified node.
Public Method UndoUndoes changes to field values that have not been posted.
Public Method UnLockObjectUnlocks the object.
Public Method UploadResourceUploads the specified resource to the server.
Public Properties
Public Property AssetRelationFactoryThe asset's AssetRelationsFactory object.
Public Property AssetRepositoryItemFactoryThe asset's AssetRepositoryItemFactory object.
Public Property AttachmentsNot implemented for QCResource. Do not access this property.
Public Property AttributeGets the node attribute.
Public Property AutoPostIf true, the database is updated immediately when the field value changes.
Public Property AutoUnlockIndicates whether to make the item changeable to other users automatically after a Refresh or Post.
Public Property ChildGets a sub-folder of the current folder.
Public Property ContainsBrokenRelationReturns true if the object is linked to an asset but the asset does not exist.
Public Property CountThe number of child nodes.
Public Property CreatorThe user name of the creator of the resource.
Public Property DepthTypeThe sub-tree depth type.
Public Property DescriptionThe description of the resource.
Public Property EntitySubtypeThe current subtype of the entity.
Public Property ExtendedStorageFor QCResource, it is preferable to use the IResourceStorage Implemented Interface. The ExtendedStorage property is the generic ExtendedStorage object for any resource.
Public Property FatherThe current folder's parent folder.
Public Property FieldThe value of the specified field.
Public Property FieldMultiValueThe MultiValue object of the specified field.
Public Property FileNameThe folder or file name of the resource.
Public Property HasAttachmentNot implemented for QCResource. Do not access this property.
Public Property IDThe item ID.
Public Property IsLockedChecks if object is locked for editing.
Public Property ModifiedChecks 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 NameThe name of the resource as displayed in the user interface.
Public Property NodeIDThe node ID number.
Public Property ParentIdThe ID of the resource's parent folder.
Public Property PathThe folder tree path starting from the tree root.
Public Property ResourceTypeThe type of the resource.
Public Property TypeThe node's type.
Public Property TypeNameThe field's type.
Public Property UsedByReturns the list of relations to assets that are using this asset or that are using user assets owned by this asset.
Public Property UserAssetFactoryThe asset's UserAssetFactory object.
Public Property UsingReturns the list of relations to assets used by this asset or by user assets owned by this asset.
Public Property VCThe version control object for the entity.
Public Property VersionDataThe IVersionData of the entity.
Public Property VirtualChecks if this is a virtual item, that is, an item that does not have a corresponding database record.
See Also