The active TeamMember list is updated through IProjectContainerManager.openProjectContainerForMemberand
IProjectContainerManager.closeProjectContainerForMember
The Active TeamMember list is available through IProjectContainerManager.listActiveMembers
TeamMember Repository is updated through the IProjectContainerManager.joinProject
and IProjectContainerManager.unjoinProject methods.
To list the member in the TeamMember Repository you use the TeamRepositoryAdapter.listResourceIds()
Here is example from test case listProjectContainerTeamRepository:
String
containerUri = "org.eclipse.corona.container.project/Corona";
ProjectContextContainer
projectContainer =
(ProjectContextContainer)projectContainerHome.openContainer(containerUri);
RepositoryDescriptor
repositoryDescriptor = projectContainer.getRepositoryDescriptor(TeamRepository.repositoryName);
RepositoryConfiguration
repositoryConfiguration =
repositoryDescriptor.getDefaultRepositoryConfiguration();
RepositoryAdapterFactory
repositoryAdapterFactory = new RepositoryAdapterFactory();
IRepositoryAdapter
repositoryAdapter =
repositoryAdapterFactory.createRepositoryAdaptor(repositoryDescriptor);
boolean result = true;
try {
repositoryAdapter.open();
List
resourceIdList = repositoryAdapter.listResourceIds();
for (int i = 0; i < resourceIdList.size(); i++) {
Object
resourceObj = repositoryAdapter.fetchResource(resourceIdList.get(i));
System.out.println( resourceObj.toString() );
}
}
catch (Exception e) {
result
= false;
e.printStackTrace();
}
-----Original Message-----
From: corona-dev-bounces@xxxxxxxxxxx [mailto:corona-dev-bounces@xxxxxxxxxxx] On
Behalf Of O'Flynn, Dennis
Sent: Thursday, August 03, 2006 7:50 AM
To: Corona development
Subject: RE: [corona-dev] Team member view.
Yes - the PCV's Team Member List should be dynamic (not static).
The PC-Mgr will publish a ProjectEvent each time a user (via PCX) has
opened or closed a PC. This event will be shared with everyone in
the
workgroup. The event properties should contain information that
identifies who has opened or closed the PC. This information can
be
used by the Team Member List to allow it to update itself.
-----Original Message-----
From: corona-dev-bounces@xxxxxxxxxxx
[mailto:corona-dev-bounces@xxxxxxxxxxx] On Behalf Of Marcin Okraszewski
Sent: Thursday, August 03, 2006 7:51 AM
To: Corona development
Subject: Re: [corona-dev] Team member view.
Note that the team list is static now. Should I refresh it as some
event
arrives? If yes, which event would it be?
The contents of this e-mail are intended for the named addressee only.
It contains information that may be confidential. Unless you are the
named addressee or an authorized designee, you may not copy or use it,
or disclose it to anyone else. If you received it in error please
notify
us immediately and then destroy it.
_______________________________________________
corona-dev mailing list
corona-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/corona-dev
The contents of this e-mail are intended for the named addressee only.
It contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose it
to anyone else. If you received it in error please notify us immediately and
then destroy it.
_______________________________________________
corona-dev mailing list
corona-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/corona-dev
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.