All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class icc.db.AgentRequests

java.lang.Object
   |
   +----icc.db.AgentRequests

public class AgentRequests
extends Object
The AgentRequests class contains a number of methods for accessing agent information in the database.


Variable Index

 o USERAGENTS
The name of a service that provides user agent information.

Constructor Index

 o AgentRequests()

Method Index

 o deleteAgent(Integer, Integer, String)
Creates a data request to delete the specified agent wrt the specified user and project.
 o insertAgent(Integer, Integer, String)
Creates a data request to insert the specified agent for the specified user and project.
 o retrieveAgents(Integer, Integer, String)
Creates a data request to retrieve the number of copies of the specified agent for the specified user and project.
 o retrieveProjectAgents(Integer)
Creates a data request to retrieve the names of current agents for the specified project.
 o retrieveUserAgents(Integer)
Creates a data request to retrieve the names of current agents for the specified user.

Variables

 o USERAGENTS
 public static final String USERAGENTS
The name of a service that provides user agent information.

Constructors

 o AgentRequests
 public AgentRequests()

Methods

 o retrieveUserAgents
 public static DataRequest retrieveUserAgents(Integer userid)
Creates a data request to retrieve the names of current agents for the specified user.

Parameters:
userid - a partner identifier
Returns:
a database request to retrieve agent names by project
See Also:
SERVICE
 o retrieveProjectAgents
 public static DataRequest retrieveProjectAgents(Integer projectid)
Creates a data request to retrieve the names of current agents for the specified project.

Parameters:
projectid - a project identifier
Returns:
a database request to retrieve agent names by user
See Also:
SERVICE
 o retrieveAgents
 public static DataRequest retrieveAgents(Integer userid,
                                          Integer projectid,
                                          String name)
Creates a data request to retrieve the number of copies of the specified agent for the specified user and project.

Parameters:
userid - a partner identifier
projectid - a project identifier
name - an agent name
Returns:
a database request to retrieve a number of agents
See Also:
SERVICE
 o insertAgent
 public static DataRequest insertAgent(Integer userid,
                                       Integer projectid,
                                       String name)
Creates a data request to insert the specified agent for the specified user and project.

Parameters:
userid - a partner identifier
projectid - a project identifier
name - an agent name
Returns:
a database request to retrieve agent names by project
See Also:
SERVICE
 o deleteAgent
 public static DataRequest deleteAgent(Integer userid,
                                       Integer projectid,
                                       String name)
Creates a data request to delete the specified agent wrt the specified user and project.

Parameters:
userid - a partner identifier
projectid - a project identifier
name - an agent name
Returns:
a database request to retrieve agent names by user
See Also:
SERVICE

All Packages  Class Hierarchy  This Package  Previous  Next  Index

This website has been archived and is no longer maintained.