All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class icc.db.Team

java.lang.Object
   |
   +----icc.db.Entity
           |
           +----icc.db.Partner
                   |
                   +----icc.db.Team

public final class Team
extends Partner
The Team class represents a project team or company.

A team is minimally defined by a unique identifier, a unique name, the name of the root project that this team belongs to, and an array of partner members' identifiers. Other attributes may be specified as well, preferably a company name.

All changes to a Team object must be submitted to the project database before these will take effect. Note that only team members and the project administrator can submit such changes successfully.


Constructor Index

 o Team(String, String, Integer[])
Allocates a team object with the specified name, project name and members.

Method Index

 o alterTeam(Integer[])
Creates a data request to replace the members of this team through the specified partner identifiers.
 o copy(Team)
Copies the specified team information into this team.
 o create()
Creates a data request to create this team in the project database.
 o delete()
Creates a data request to delete this team from the project database.
 o description()
Returns the team's company name.
 o isMember(Integer)
Tests if the specified partner is a team member.
 o projectname()
Returns the team's project name.
 o team()
Returns the team members' identifiers.

Constructors

 o Team
 public Team(String name,
             String project,
             Integer team[])
Allocates a team object with the specified name, project name and members. The team identifier is set to NEW.

Parameters:
name - the team's unique name
project - a project name
team - an array of identifiers of the team's members
See Also:
NEW

Methods

 o projectname
 public final String projectname()
Returns the team's project name.

Returns:
the project name
 o description
 public final String description()
Returns the team's company name.

Returns:
the company name
Overrides:
description in class Partner
 o team
 public final Integer[] team()
Returns the team members' identifiers.

Returns:
an array of partner identifiers
 o isMember
 public final int isMember(Integer id)
Tests if the specified partner is a team member.

Parameters:
id - a partner identifier
Returns:
the index in the members array, -1 if not a member
 o copy
 public final void copy(Team from)
Copies the specified team information into this team. This team cannot be trusted.

Parameters:
from - the team information to be copied
 o create
 public DataRequest create()
Creates a data request to create this team in the project database. Only the project administrator can submit this request. If successful, an appropriate event is posted.

Returns:
a data request to create a new project team
See Also:
SERVICE, PartnerEvents, ProjectEvents
 o alterTeam
 public DataRequest alterTeam(Integer members[])
Creates a data request to replace the members of this team through the specified partner identifiers. Only the project administrator can submit this request. If successful, an appropriate event is posted.

Parameters:
members - array of partner identifiers
Returns:
a data request to replace the team members
See Also:
SERVICE, PartnerEvents
 o delete
 public DataRequest delete()
Creates a data request to delete this team from the project database. Only the project administrator can submit this request. If successful, an appropriate event is posted.

Returns:
a data request to delete a project team
See Also:
SERVICE, PartnerEvents

All Packages  Class Hierarchy  This Package  Previous  Next  Index

This website has been archived and is no longer maintained.