Groupes

Description

Renvoie la collection de groupes associée au référentiel de schéma. Il s'agit d'une propriété en lecture seule ; elle peut être visualisée mais pas définie.

Each element in the returned collection is a Group Object.

Syntaxe

VBScript

adminSession.Groups 

Perl

$adminSession->GetGroups(); 
Identificateur
Description
adminSession
L'objet AdminSession représentant la session d'accès du référentiel de schéma en cours.
Valeur de retour
A Groups Object containing all of the groups in the schema repository.

Exemple

VBScript

set adminSession = CreateObject("ClearQuest.AdminSession")
adminSession.Logon "admin", "", ""
set groupList = adminSession.Groups
for each groupObj in groupList
   groupName = groupObj.Name
   msgbox groupName
Next 

Perl

use CQPerlExt;

# Créez une session admin Rational ClearQuest
$adminSession= CQAdminSession::Build();

#Connectez-vous en tant qu'admin
$adminSession->Logon( "admin", "admin", "" );

#Get the list of groups
$groupList = $adminSession->GetGroups();

#Get the number of groups
$numGroups = $groupList->Count();

#Iterate through the groups
for ( $x=0; $x<$numGroups; $x++ ) {
     #Get the specified item in the collection of groups
     $groupObj = $groupList->Item( $x );
     #Get the name of the group
     $groupName = $groupObj->GetName();
}

CQAdminSession::Unbuild($adminSession); 

Feedback