public class ProjectPortfolio
extends com.primavera.integration.client.bo.base.ProjectPortfolioBase
A project portfolio consists of projects grouped together in some way that is meaningful to you. For example, one portfolio might contain projects that are the responsibility of a specific business unit, while another portfolio contains only projects budgeted for the next fiscal year.
There are two types of project portfolios: "Manual" and "Filtered". Manual portfolios contain zero or more projects that were specifically added. Filtered portfolios contain zero or more projects based on a filter that was specified in Primavera's Web application. The list of projects in a filtered portfolio is based on the results of the filter when it was first created. Only manual portfolios can be created through the Integration API, and their list of projects cannot be altered.
To add a project to a manual portfolio, use one of the addProject() or addProjects() methods. Use one of the removeProject() or removeProjects() methods to remove a project from a manual portfolio. These methods will not cause the project(s) to be deleted.
To determine if a project is in this portfolio, use one of the containsProject() methods. The getProjectIds() method will return an array of the ObjectIds of all projects in the portfolio.
To load all or some of the projects contained in this portfolio, use the loadProjects() method.
| Constructor and Description |
|---|
ProjectPortfolio(Session session)
Class constructor specifying the Session.
|
ProjectPortfolio(Session session,
ObjectId objId)
Class constructor specifying the Session and ObjectId of the object.
|
ProjectPortfolio(Session session,
com.primavera.infr.db.PrmRowSet rowSet,
int iIndex)
Class constructor called internally after objects are retrieved from the server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProject(ObjectId objId)
Adds a project into the project portfolio.
|
void |
addProject(Project project)
Adds a project into the project portfolio.
|
void |
addProjects(ObjectId[] objIds)
Adds projects into the project portfolio.
|
void |
addProjects(Project[] projects)
Adds projects into the project portfolio.
|
boolean |
containsProject(ObjectId objId)
Find out whether the project portfolio contains the specified Project.
|
boolean |
containsProject(Project project)
Find out whether the project portfolio contains the specified Project.
|
ObjectId |
create()
Creates this ProjectPortfolio object in the database.
|
static ObjectId[] |
create(Session session,
ProjectPortfolio[] projectportfolios)
Creates multiple ProjectPortfolio objects in the database.
|
void |
delete()
Deletes this ProjectPortfolio object from the database.
|
static void |
delete(Session session,
ProjectPortfolio[] projectportfolios)
Deletes multiple ProjectPortfolio objects from the database.
|
static String[] |
getAllFields()
Gets all fields for this business object.
|
Date |
getCreateDate()
Gets the date this project portfolio was created.
|
String |
getCreateUser()
Gets the name of the user that created this project portfolio.
|
static String[] |
getDefaultXMLExportFields()
Deprecated.
|
String |
getDescription()
Gets the description of the project portfolio.
|
static String[] |
getFilterableFields()
Gets all fields that can be filtered.
|
boolean |
getIncludeClosedProjects()
Gets the flag that indicates whether closed projects are included in the portfolio.
|
boolean |
getIncludeWhatIfProjects()
Gets the flag that indicates whether what-if projects are included in the portfolio.
|
static String[] |
getInternalAllFields()
An internal method that should not be called directly by client code.
|
static Set<String> |
getInternalAllFieldsSet()
An internal method that should not be called directly by client code.
|
static String[] |
getInternalDefaultLoadFields()
An internal method that should not be called directly by client code.
|
Date |
getLastUpdateDate()
Gets the date this project portfolio was last updated.
|
String |
getLastUpdateUser()
Gets the name of the user that last updated this project portfolio.
|
static String[] |
getMinimumXMLExportFields()
Gets all fields that are always exported at a minimum by the
new flat XML exporter
|
String |
getName()
Gets the name of the project portfolio.
|
ObjectId |
getObjectId()
Gets the unique ID generated by the system.
|
String[] |
getPortfolioUserIdArray()
Gets the Shared users detail.
|
String[] |
getPortfolioUserNameArray()
Gets the Shared users detail.
|
ObjectId[] |
getProjectObjectIds()
Gets an array of project unique IDs contained in the project portfolio.
|
static String[] |
getRequiredCreateFields()
Gets all fields that must be set before calling create() on this business object.
|
PortfolioType |
getType()
Gets the type of the project portfolio: "Manual", "Auto-Maintained", or "Filtered".
|
String |
getUserName()
Gets the user's login name.
|
ObjectId |
getUserObjectId()
Gets the unique ID of a specific user who has access to the selected project portfolio.
|
static String[] |
getWritableFields()
Gets all writable fields for this business object.
|
static ProjectPortfolio |
load(Session session,
String[] fields,
ObjectId objId)
Loads a single ProjectPortfolio object from the database.
|
static BOIterator<ProjectPortfolio> |
load(Session session,
String[] fields,
ObjectId[] objIds)
Loads multiple ProjectPortfolio objects from the database.
|
BOIterator<Project> |
loadProjects(String[] fields,
String sWhereClause,
String sOrderBy)
Load the project objects contained in the project portfolio.
|
User |
loadUser(String[] fields)
Loads an associated User object from the database.
|
void |
removeProject(ObjectId objId)
Removes a project from the project portfolio.
|
void |
removeProject(Project project)
Removes a project from the project portfolio.
|
void |
removeProjects(ObjectId[] objIds)
Removes projects from the project portfolio.
|
void |
removeProjects(Project[] projects)
Removes projects from the project portfolio.
|
void |
setDescription(String s)
Sets the description of the project portfolio.
|
void |
setIncludeClosedProjects(boolean b)
Sets the flag that indicates whether closed projects are included in the portfolio.
|
void |
setIncludeWhatIfProjects(boolean b)
Sets the flag that indicates whether what-if projects are included in the portfolio.
|
void |
setName(String s)
Sets the name of the project portfolio.
|
void |
setObjectId(ObjectId o)
Sets the unique ID generated by the system.
|
void |
setPortfolioUserIdArray(String[] s)
Sets the Shared users detail.
|
void |
setPortfolioUserNameArray(String[] s)
Sets the Shared users detail.
|
void |
setUserObjectId(ObjectId o)
Sets the unique ID of a specific user who has access to the selected project portfolio.
|
String |
toString()
Returns a string representation of the object.
|
void |
update()
Updates this ProjectPortfolio object in the database.
|
static void |
update(Session session,
ProjectPortfolio[] projectportfolios)
Updates multiple ProjectPortfolio objects in the database.
|
equals, getMaxFieldLength, getValue, getValue, hashCode, isNull, setEarlyDate, setNullpublic ProjectPortfolio(Session session)
session - the Sessionpublic ProjectPortfolio(Session session, ObjectId objId) throws BusinessObjectException
session - the SessionobjId - the ObjectIdBusinessObjectException - if a problem occurred in the client-side business objectspublic ProjectPortfolio(Session session, com.primavera.infr.db.PrmRowSet rowSet, int iIndex) throws BusinessObjectException
session - the SessionrowSet - the PrmRowSet retrieved from the serveriIndex - the row index in the PrmRowSet associated with this business objectBusinessObjectException - if a problem occurred in the client-side business objectspublic User loadUser(String[] fields) throws ServerException, NetworkException, BusinessObjectException
fields - fields to loadServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectspublic void addProject(Project project) throws BusinessObjectException
addProject in class com.primavera.integration.client.bo.base.ProjectPortfolioBaseproject - Project objectBusinessObjectException - if a problem occurred in the client-side business objectspublic void addProjects(Project[] projects) throws BusinessObjectException
addProjects in class com.primavera.integration.client.bo.base.ProjectPortfolioBaseprojects - Array of Project objectsBusinessObjectException - if a problem occurred in the client-side business objectspublic void addProject(ObjectId objId) throws BusinessObjectException
addProject in class com.primavera.integration.client.bo.base.ProjectPortfolioBaseobjId - unique ID of a Project objectBusinessObjectException - if a problem occurred in the client-side business objectspublic void addProjects(ObjectId[] objIds) throws BusinessObjectException
addProjects in class com.primavera.integration.client.bo.base.ProjectPortfolioBaseobjIds - Array of Project unique IDsBusinessObjectException - if a problem occurred in the client-side business objectspublic void removeProject(Project project) throws BusinessObjectException
removeProject in class com.primavera.integration.client.bo.base.ProjectPortfolioBaseproject - Project objectBusinessObjectException - if a problem occurred in the client-side business objectspublic void removeProjects(Project[] projects) throws BusinessObjectException
removeProjects in class com.primavera.integration.client.bo.base.ProjectPortfolioBaseprojects - Array of Project objectBusinessObjectException - if a problem occurred in the client-side business objectspublic void removeProject(ObjectId objId) throws BusinessObjectException
removeProject in class com.primavera.integration.client.bo.base.ProjectPortfolioBaseobjId - unique ID of a Project objectBusinessObjectException - if a problem occurred in the client-side business objectspublic void removeProjects(ObjectId[] objIds) throws BusinessObjectException
removeProjects in class com.primavera.integration.client.bo.base.ProjectPortfolioBaseobjIds - Array of Project unique IDsBusinessObjectException - if a problem occurred in the client-side business objectspublic boolean containsProject(Project project) throws BusinessObjectException
containsProject in class com.primavera.integration.client.bo.base.ProjectPortfolioBaseproject - Project objectBusinessObjectException - if a problem occurred in the client-side business objectspublic boolean containsProject(ObjectId objId) throws BusinessObjectException
containsProject in class com.primavera.integration.client.bo.base.ProjectPortfolioBaseobjId - unique ID of a Project objectBusinessObjectException - if a problem occurred in the client-side business objectspublic ObjectId[] getProjectObjectIds() throws BusinessObjectException
getProjectObjectIds in class com.primavera.integration.client.bo.base.ProjectPortfolioBaseBusinessObjectException - if a problem occurred in the client-side business objectspublic BOIterator<Project> loadProjects(String[] fields, String sWhereClause, String sOrderBy) throws ServerException, NetworkException, BusinessObjectException
loadProjects in class com.primavera.integration.client.bo.base.ProjectPortfolioBasefields - fields to loadsWhereClause - where clausesOrderBy - order-by clauseServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectspublic ObjectId getObjectId() throws BusinessObjectException
getObjectId in class BusinessObjectBusinessObjectException - if a problem occurred in the client-side business objectspublic void setObjectId(ObjectId o) throws BusinessObjectException
setObjectId in class BusinessObjecto - the value to set this field toBusinessObjectException - if a problem occurred in the client-side business objectspublic ObjectId getUserObjectId() throws BusinessObjectException
BusinessObjectException - if a problem occurred in the client-side business objectspublic void setUserObjectId(ObjectId o) throws BusinessObjectException
o - the value to set this field toBusinessObjectException - if a problem occurred in the client-side business objectspublic String getName() throws BusinessObjectException
BusinessObjectException - if a problem occurred in the client-side business objectspublic void setName(String s) throws BusinessObjectException
s - the value to set this field toBusinessObjectException - if a problem occurred in the client-side business objectspublic PortfolioType getType() throws BusinessObjectException
BusinessObjectException - if a problem occurred in the client-side business objectspublic boolean getIncludeClosedProjects()
throws BusinessObjectException
BusinessObjectException - if a problem occurred in the client-side business objectspublic void setIncludeClosedProjects(boolean b)
throws BusinessObjectException
b - the value to set this field toBusinessObjectException - if a problem occurred in the client-side business objectspublic boolean getIncludeWhatIfProjects()
throws BusinessObjectException
BusinessObjectException - if a problem occurred in the client-side business objectspublic void setIncludeWhatIfProjects(boolean b)
throws BusinessObjectException
b - the value to set this field toBusinessObjectException - if a problem occurred in the client-side business objectspublic String getDescription() throws BusinessObjectException
BusinessObjectException - if a problem occurred in the client-side business objectspublic void setDescription(String s) throws BusinessObjectException
s - the value to set this field toBusinessObjectException - if a problem occurred in the client-side business objectspublic String getUserName() throws BusinessObjectException
BusinessObjectException - if a problem occurred in the client-side business objectspublic String[] getPortfolioUserIdArray() throws BusinessObjectException
BusinessObjectException - if a problem occurred in the client-side business objectspublic void setPortfolioUserIdArray(String[] s) throws BusinessObjectException
s - the value to set this field toBusinessObjectException - if a problem occurred in the client-side business objectspublic String[] getPortfolioUserNameArray() throws BusinessObjectException
BusinessObjectException - if a problem occurred in the client-side business objectspublic void setPortfolioUserNameArray(String[] s) throws BusinessObjectException
s - the value to set this field toBusinessObjectException - if a problem occurred in the client-side business objectspublic Date getCreateDate() throws BusinessObjectException
BusinessObjectException - if a problem occurred in the client-side business objectspublic Date getLastUpdateDate() throws BusinessObjectException
BusinessObjectException - if a problem occurred in the client-side business objectspublic String getCreateUser() throws BusinessObjectException
BusinessObjectException - if a problem occurred in the client-side business objectspublic String getLastUpdateUser() throws BusinessObjectException
BusinessObjectException - if a problem occurred in the client-side business objectspublic static String[] getRequiredCreateFields()
public static String[] getFilterableFields()
public static String[] getInternalDefaultLoadFields()
public static String[] getAllFields()
public static String[] getInternalAllFields()
public static Set<String> getInternalAllFieldsSet()
public static String[] getWritableFields()
@Deprecated public static String[] getDefaultXMLExportFields()
public static String[] getMinimumXMLExportFields()
public String toString()
public ObjectId create() throws ServerException, NetworkException, BusinessObjectException
ServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectspublic static ObjectId[] create(Session session, ProjectPortfolio[] projectportfolios) throws ServerException, NetworkException, BusinessObjectException
session - the Session objectprojectportfolios - array of ProjectPortfolio objects to createServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectspublic static ProjectPortfolio load(Session session, String[] fields, ObjectId objId) throws ServerException, NetworkException, BusinessObjectException
session - the Session objectfields - fields to loadobjId - unique ID of the ProjectPortfolio objectServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectspublic static BOIterator<ProjectPortfolio> load(Session session, String[] fields, ObjectId[] objIds) throws ServerException, NetworkException, BusinessObjectException
session - the Session objectfields - fields to loadobjIds - object ids of the ProjectPortfolio objectsServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectspublic void update()
throws ServerException,
NetworkException,
BusinessObjectException
update in class com.primavera.integration.client.BOBaseServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectspublic static void update(Session session, ProjectPortfolio[] projectportfolios) throws ServerException, NetworkException, BusinessObjectException
session - the Session objectprojectportfolios - array of ProjectPortfolio objects to updateServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectspublic void delete()
throws ServerException,
NetworkException,
BusinessObjectException
delete in class com.primavera.integration.client.BOBaseServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectspublic static void delete(Session session, ProjectPortfolio[] projectportfolios) throws ServerException, NetworkException, BusinessObjectException
session - the Session objectprojectportfolios - array of ProjectPortfolio objects to deleteServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectsCopyright © 2003, 2020, Oracle and/or its affiliates.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.