All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class icc.db.Project

java.lang.Object
   |
   +----icc.db.Entity
           |
           +----icc.db.Project

public final class Project
extends Entity
The Project class represents a project and its organization.

A project is defined by a unique identifier, a unique short name, a title and project type, an administrator, a parent project (optional), and a three-dimensional organization of the project data space according to 'area', 'time' (phase) and 'type'.

The number and names of the corresponding area, time and type specifiers can be specified and modified by the project administrator only.

A Project object can also include a vector of project partners' identifiers and access rights for these partners. Access rights are defined with respect to a project cube, corresponding to an individual selection of area, time and type.

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

See Also:
Partner, Cube, Access, Phase

Variable Index

 o areas
The array of valid area specifiers.
 o ENTRY
The name of a service that updates project information in the database on request.
 o partnersTable
 o phases
An array of phases information.
 o QUERY
The name of a service that retrieves project information from the database on request.
 o reset
A request to reset all project information stored at the webtop level.
 o rights
A vector of access rights information.
 o times
The array of valid time specifiers.
 o types
The array of valid type specifiers.

Constructor Index

 o Project(Integer, String, String, Action, String, Integer)
 o Project(String, String, Partner, String, Project)
Allocates a Project object with the specified name, title, administrator, project type and parent project.

Method Index

 o access(Cube)
Returns the access rights with respect to the specified cube.
 o addPartner(Integer, Integer, String)
 o administrator()
Returns the identifier of the administrator of this project.
 o alter()
Creates a data request to update this project in the database.
 o alterAccess(Access)
Updates or adds access rights to the corresponding Project object.
 o alterPartners()
Creates a data request to update the partners of this project.
 o clean(String, Integer)
Clears all project information in this object.
 o clear()
Removes all Project objects previously put.
 o copy(Project)
Copies the specified project information into this object, leaving the access rights vector and phase array set to null.
 o create()
Creates a data request to create this subproject.
 o cubes()
Creates a data request to retrieve an array of cube information for this project.
 o description()
Returns the title of this project.
 o duplicate()
Duplicates this object, leaving the access rights vector and phase array set to null.
 o get(Integer)
Retrieves the Project object for the specified identifier, if previously put.
 o get(String)
Retrieves a project by name, if previously put.
 o getPartnerFunction(Integer)
Returns the specified partner's function.
 o mutationDate()
Returns the last modification date of this project.
 o mutationTime()
Returns the last modification date of this project, in milliseconds since January 1, 1970, 00:00:00.
 o parent()
Returns the identifier of the parent of this project.
 o partners()
Returns an enumeration of all project partner identifiers.
 o partners(String)
Creates a data request to retrieve an array of all project teams and partners in the specified project.
 o partnersSize()
Returns the number of project partners.
 o permission(Cube, Integer)
Returns the access right with respect to the specified cube and partner.
 o put()
Stores this object for later retrieval by name or identifier.
 o remove()
Removes this object from local storage, if previously put.
 o remove(Integer)
Removes the Project object with the specified identifier previously put, if any.
 o removeCube(Cube)
Removes access rights for the specified cube from the corresponding Project object.
 o removePartner(Integer)
Removes the specified partner from this project.
 o removePartner(Integer, Integer)
Creates a data request to add a partner to this project.
 o retrieve(Integer)
Creates a data request to retrieve the project information for the specified project identifier.
 o retrieve(String)
Creates a data request to retrieve the project information for the specified project name.
 o retrieveAll(String)
Creates a data request to retrieve an array of project information for the specified project name and subprojects hereof.
 o rights()
Creates a data request to retrieve a vector of access rights information for this project.
 o setAdministrator(Integer)
Sets the project administrator.
 o setPartner(Integer, String)
Adds the specified partner to this project with the specified function.
 o setTitle(String)
Sets the project title.
 o setType(String)
Sets the project type.
 o title()
Returns the title of this project.
 o type()
Returns the type of this project.

Variables

 o QUERY
 public static final String QUERY
The name of a service that retrieves project information from the database on request.

 o ENTRY
 public static final String ENTRY
The name of a service that updates project information in the database on request. This service only accepts requests submitted by the project administrator.

 o reset
 public static final Request reset
A request to reset all project information stored at the webtop level. Though this information should always be identical to the information in the project database, upon certain administrative actions this may no longer be the case. A request to reset this information should only be submitted by the project administrator.

 o partnersTable
 Hashtable partnersTable
 o areas
 public String areas[]
The array of valid area specifiers.

 o times
 public String times[]
The array of valid time specifiers.

 o types
 public String types[]
The array of valid type specifiers.

 o rights
 public Vector rights
A vector of access rights information. These are Access objects. This vector may be null.

See Also:
Access
 o phases
 public Phase phases[]
An array of phases information. These are Phase objects. This array may be null.

See Also:
Phase

Constructors

 o Project
 Project(Integer id,
         String name,
         String title,
         Action mutation,
         String type,
         Integer parent)
 o Project
 public Project(String name,
                String title,
                Partner administrator,
                String type,
                Project parent)
Allocates a Project object with the specified name, title, administrator, project type and parent project. The project identifier is set to NEW.

Parameters:
name - the unique project name
title - the project title
administrator - the project administrator
type - the project type
parent - the parent project
Throws: NullPointerException
Occurs when any of the arguments is null.
See Also:
NEW

Methods

 o title
 public String title()
Returns the title of this project.

Returns:
a string
 o description
 public String description()
Returns the title of this project.

Returns:
a string
Overrides:
description in class Entity
 o administrator
 public Integer administrator()
Returns the identifier of the administrator of this project.

Returns:
a partner identifier
 o mutationDate
 public String mutationDate()
Returns the last modification date of this project.

Returns:
a date string
 o mutationTime
 public long mutationTime()
Returns the last modification date of this project, in milliseconds since January 1, 1970, 00:00:00.

Returns:
the number of milliseconds since January 1, 1970, 00:00:00
 o type
 public String type()
Returns the type of this project.

Returns:
a string
 o parent
 public Integer parent()
Returns the identifier of the parent of this project.

Returns:
a project identifier
 o getPartnerFunction
 public String getPartnerFunction(Integer id)
Returns the specified partner's function. If the specified partner is not a project partner, null is returned.

Parameters:
id - a partner identifier
Returns:
a partner function name
See Also:
Partner
 o partnersSize
 public int partnersSize()
Returns the number of project partners.

Returns:
a number of project partners
 o partners
 public Enumeration partners()
Returns an enumeration of all project partner identifiers. Use the Enumeration methods on the returned object to fetch the partner identifiers sequentially.

Returns:
an enumeration of partner identifiers
See Also:
Partner
 o setTitle
 public void setTitle(String title)
Sets the project title. Altering this project information has no actual effect until this information is also updated in the database.

Parameters:
title - a project title
 o setType
 public void setType(String type)
Sets the project type. Altering this project information has no actual effect until this information is also updated in the database.

Parameters:
type - a project type
 o setAdministrator
 public void setAdministrator(Integer id)
Sets the project administrator. Altering this project information has no actual effect until this information is also updated in the database.

Parameters:
id - a project partner identifier
 o removePartner
 public void removePartner(Integer id)
Removes the specified partner from this project.

Parameters:
id - a partner identifier
See Also:
Partner
 o setPartner
 public void setPartner(Integer id,
                        String function)
Adds the specified partner to this project with the specified function.

Parameters:
id - a partner identifier
function - a function name
See Also:
Partner
 o access
 public static Access access(Cube cube)
Returns the access rights with respect to the specified cube.

Parameters:
cube - a project cube
Returns:
the access rights for this cube; null if either the project or access rights information are missing, or if no access rights are defined for this cube.
 o permission
 public static char permission(Cube cube,
                               Integer partnerid)
Returns the access right with respect to the specified cube and partner.

Parameters:
cube - a project cube
partnerid - a partner identifier
Returns:
the access right for this cube and partner; UNKNOWN if either the project, project partners or access rights information are missing, or NULL if no access information is defined for this cube.
See Also:
UNKNOWN, NULL
 o duplicate
 public Project duplicate()
Duplicates this object, leaving the access rights vector and phase array set to null.

Returns:
a copy of this object
 o copy
 public void copy(Project from)
Copies the specified project information into this object, leaving the access rights vector and phase array set to null.

Parameters:
from - the project information to copy
 o clean
 public void clean(String name,
                   Integer parent)
Clears all project information in this object. Sets the project name and parent project.

Parameters:
name - a project name
parent - a project identifier
 o alterAccess
 public static void alterAccess(Access access)
Updates or adds access rights to the corresponding Project object. If the respective cube also defines a new area, time or type specifier, the corresponding project information is updated as well. This method does nothing if the project information cannot be found.

Parameters:
access - access rights with respect to a project cube
 o removeCube
 public static void removeCube(Cube cube)
Removes access rights for the specified cube from the corresponding Project object. If this removal results in an area, time or type specifier no longer to be valid, then the corresponding project information is updated as well. This method does nothing if the project or project access rights information cannot be found, or if no access rights are defined for this cube.

Parameters:
cube - a project cube
 o get
 public static Project get(Integer id)
Retrieves the Project object for the specified identifier, if previously put.

Parameters:
id - a project identifier
Returns:
the project corresponding this identifier, if known; otherwise null
 o get
 public static Project get(String name)
Retrieves a project by name, if previously put.

Parameters:
id - a project name
Returns:
the project corresponding this name, if known; otherwise null
 o put
 public void put()
Stores this object for later retrieval by name or identifier.

 o remove
 public void remove()
Removes this object from local storage, if previously put.

 o remove
 public static Project remove(Integer id)
Removes the Project object with the specified identifier previously put, if any.

Parameters:
id - a project identifier
Returns:
the object in question, if any; otherwise null
 o clear
 public static void clear()
Removes all Project objects previously put.

 o retrieve
 public static DataRequest retrieve(String name)
Creates a data request to retrieve the project information for the specified project name.

Parameters:
name - a project name
Returns:
a data request to retrieve project information
See Also:
SERVICE
 o retrieve
 public static DataRequest retrieve(Integer id)
Creates a data request to retrieve the project information for the specified project identifier.

Parameters:
id - a project identifier
Returns:
a data request to retrieve project information
See Also:
SERVICE
 o retrieveAll
 public static DataRequest retrieveAll(String name)
Creates a data request to retrieve an array of project information for the specified project name and subprojects hereof.

Parameters:
name - a project name
Returns:
a data request to retrieve an array of project information
See Also:
SERVICE
 o partners
 public static DataRequest partners(String name)
Creates a data request to retrieve an array of all project teams and partners in the specified project. (Teams are only defined for a root project, i.e., a project that has no parent.)

Parameters:
name - a project name
Returns:
a data request to retrieve an array of project teams and partners
See Also:
Partner, Team, SERVICE
 o cubes
 public DataRequest cubes()
Creates a data request to retrieve an array of cube information for this project. Each cube also specifies the requester's access right and the number of documents residing in this cube.

Returns:
a data request to retrieve an array of cubes
See Also:
SERVICE
 o rights
 public DataRequest rights()
Creates a data request to retrieve a vector of access rights information for this project.

Returns:
a data request to retrieve a vector of project access rights information
See Also:
rights, SERVICE
 o addPartner
 static DataRequest addPartner(Integer id,
                               Integer partnerid,
                               String function)
 o removePartner
 static DataRequest removePartner(Integer id,
                                  Integer partnerid)
Creates a data request to add a partner to this project. Only the project administrator can submit this request. If successful, an appropriate event is posted.

Parameters:
partnerid - a partner id
function - the partner's function
Returns:
a data request to add a partner to a project
See Also:
addProject, SERVICE, ProjectEvents
 o alterPartners
 public DataRequest alterPartners()
Creates a data request to update the partners of this project. Only the project administrator can submit this request. If successful, an appropriate event is posted.

Returns:
a data request to alter a project's partners
See Also:
SERVICE, ProjectEvents
 o create
 public DataRequest create()
Creates a data request to create this subproject. Only the parent project's administrator can submit this request. If successful, an appropriate event is posted.

Returns:
a data request to create a subproject
See Also:
SERVICE, ProjectEvents
 o alter
 public DataRequest alter()
Creates a data request to update this project in the database. Only the project administrator can submit this request. If successful, an appropriate event is posted.

Returns:
a data request to alter a project
See Also:
SERVICE, ProjectEvents

All Packages  Class Hierarchy  This Package  Previous  Next  Index

This website has been archived and is no longer maintained.