Teams

The Collaboration API contains elements that developers can use to define, access, and manage information for teams (collections of members) from within FileNet P8 applications. Key team elements are:

Team Fundamentals

A team comprises the following:

A team is established when the above information is added to a TeamInfo object and passed to a FolderContainer object.

Team Containment

Teams are created and maintained within a _teams folder, a subfolder of a teamspace's _internal folder. The _teams folder implements the FolderContainer interface (an extension of the Container interface) and is based on the containment capabilities of a Content Engine Folder object.

The _teams folder is accessed through any of the following ContainerManager methods:

A new Team object is created when a TeamInfo object is passed to the FolderContainer object's addSubContainer method, as described in the code below.

Creating Teams

The following code describes how a Team object might be created in a known object store and teamspace. For information on teamspace objects, see Teamspaces; for information on creating and managing object stores, see the Content Java API topic, Working With Object Stores.

    // create a new TeamInfo object
    TeamInfo teamInfo = new TeamInfo(ownerID, title, description, leaderID);
    ContainerManager containerManager = teamSpace.getContainerManager();
    FolderContainer teamContainer = (FolderContainer)
      containerManager.getContainerByDefinitionID (Collaboration.COLLABORATION_TEAM_CONTAINER_DEFID);
    Team teamObject = teamContainer.addSubContainer(teamInfo);

Additional Information

For information on how members are created and managed within the FileNet P8 TCM application, see Managing People and Teams.