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.
-
Team(String, String, Integer[])
- Allocates a team object with the specified name, project name
and members.
-
alterTeam(Integer[])
- Creates a data request to replace the members of this team through
the specified partner identifiers.
-
copy(Team)
- Copies the specified team information into this team.
-
create()
- Creates a data request to create this team in the project database.
-
delete()
- Creates a data request to delete this team from the project database.
-
description()
- Returns the team's company name.
-
isMember(Integer)
- Tests if the specified partner is a team member.
-
projectname()
- Returns the team's project name.
-
team()
- Returns the team members' identifiers.
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
projectname
public final String projectname()
- Returns the team's project name.
- Returns:
- the project name
description
public final String description()
- Returns the team's company name.
- Returns:
- the company name
- Overrides:
- description in class Partner
team
public final Integer[] team()
- Returns the team members' identifiers.
- Returns:
- an array of partner identifiers
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
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
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
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
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.