|
PDS Method and Comments
|
PSI Method(s)
|
PSI Comments
|
|---|
|
ResourcesStatus
Gets a list of resources accessible to the user, with status information. Supports soft bookings in Team Builder Lite.
|
ResourceDataSet ReadResources (
string xmlFilter,
bool autoCheckOut
);
|
Class Resource. ReadResources can filter for resource information you need returned in the ResourceDataSet.
For more information about using the xmlFilter parameter, see How to: Use a Filter Parameter with PSI Methods.
|
|
ResourcesAccess
Allows the user access to resources. Obsolete in Project 2007.
|
N/A
|
N/A
|
|
ResourcesAccessCompleted
Notifies the PDS that the user no longer requires access to resources. Obsolete in Project 2007.
|
N/A
|
N/A
|
|
ResourcesCheckout
Checks out resources from the Enterprise Resource Pool to the user.
|
void CheckOutResources(
Guid[] array
);
|
Class Resource. Checks resources out. Include the resourceUid list in array.
Allows you to modify properties of enterprise resources.
|
|
ResourcesCheckin
Checks in resources to the Enterprise Resource Pool.
|
void CheckInResources(
Guid[] array,
bool force
);
|
Class Resource. Checks resources in and saves changes you made in enterprise resources. Does not require permission to check in a resource that is already checked out by the user.
|
|
ResourcesAdd
Adds resources directly into the Project Server database. Also calls ResourcesNew to synchronize the new resources with Project Server.
|
ResourceDataSet CreateResources(
ResourceDataSet rds,
bool validateOnly,
bool autoCheckIn
);
|
Class Resource. Creates new resources or Project Server users. The rds dataset includes all resource data that ResourcesAdd can specify.
Set autoCheckIn to true to synchronize with Project Server, or call ResourcesCheckin.
|
|
ResourcesDelete
Removes the accounts or resources from the Project Server database. Data integrity rules do not allow the resource to be completely eliminated, so the PDS appends ResourceNameSuffix to the end of ResourceName and also sets the CAN_LOGIN and COUNT_LICENSE fields to 0.
|
void DeleteResources(
Guid[] arrayRes,
string deletionComment
);
|
Class Resource. Deletes existing resources or Project Server users. You can specify resourceUid values only in arrayRes, not by resourceName.
Project 2007 enables you to delete resources completely. DeleteResources removes the specified resource items from the Enterprise Resource Pool database. You can use the following to mimic the behavior of the PDS method ResourcesDelete:
|
|
ResourcesNew
Adds new resources. If the new resource is a generic or material resource, the PDS sets both CanLogin and CountLicense to False. Project Professional calls ResourcesNew after you add a new member to the Enterprise Resource Pool, to ensure that the resource is created as a Project Server user. Obsolete in Project 2007.
|
N/A
|
Use Resource.CreateResources.
|
|
ResourcesCheck
Determines if the resource exists in the Enterprise Resource Pool. Verifies that a proposed new resource name and other information is unique, to avoid creating resources with the same name or Microsoft Windows–based account. Also avoids creating invalid names and Windows–based accounts.
|
void UpdateResources(
ResourceDataSet rds,
bool validateOnly,
bool autoCheckIn
);
|
Class Resource. Updates or deletes existing resources or Project Server users. Also allows the creation of new resources or users.
Set validateOnly to true for ResourcesCheck functionality.
|
|
ResourcesUpdate
Edits resources directly in the Project Server database. The PDS also calls ResourcesNew to synchronize the resources with Project Server.
|
void UpdateResources(
ResourceDataSet rds,
bool validateOnly,
bool autoCheckIn
);
|
Class Resource. Updates or deletes existing resources or Project Server users. Also allows the creation of new resources or users.
The rds dataset includes all resource data that ResourcesUpdate can specify.
Set autoCheckIn to true to synchronize with Project Server.
|
|
ResourceActivate
Activates a resource.
|
void UpdateResources(
ResourceDataSet rds,
bool validateOnly,
bool autoCheckIn
);
|
Class Resource. Updates or deletes existing resources or Project Server users. Also allows creation of new resources or users.
To activate a resource, subtract 100 from its RES_TYPE value. The resource type RES_TYPE is 1 to 99 for active resources and 101 to 199 for inactive resources.
|
|
ResourceDeactivate
Deactivates a resource.
|
void UpdateResources(
ResourceDataSet rds,
bool validateOnly,
bool autoCheckIn
);
|
Class Resource. Updates or deletes existing resources or Project Server users. Also allows creation of new resources or users.
To deactivate a resource, add 100 to its RES_TYPE value. The resource type RES_TYPE is 1 to 99 for active resources and 101 to 199 for inactive resources.
|
|
ResourceAccountModify
Modifies resource account information. Project Server calls ResourceAccountModify when resource account information changes.
|
void UpdateResources(
ResourceDataSet rds,
bool validateOnly,
bool autoCheckIn
);
|
Class Resource. Updates or deletes existing resources or Project Server users. Also allows creation of new resources or users.
Handles project table updates for the Enterprise Resource Pool when autoCheckIn is true.
|
|
ResourceCodeValues
Returns the values for the active enterprise outline codes, and the non-value list, non-graphical indicator enterprise custom fields for the requested resource. If the optional IncludeValueLists parameter is set to 1, the PDS also gathers the enterprise custom fields with value lists.
|
ResourceDataSet ReadResources(
string xmlFilter,
bool autoCheckOut
);
|
Class Resource. Returns resource and user data. Use xmlFilter to specify resources and outline code structures to return. Set autoCheckOut to true to check out the resource for editing.
For more information about using the xmlFilter parameter, see How to: Use a Filter Parameter with PSI Methods.
You can also use ReadResource to get non-filtered information for one resource.
|
|
ResourceCodeValuesUpdate
Updates the enterprise resource outline codes and custom fields for a specified resource.
|
void UpdateResources (
ResourceDataSet rds,
bool validateOnly,
bool autoCheckIn
);
|
Class Resource. Updates or deletes existing resources or Project Server users. Also allows the creation of new resources or users.
Specify the updated outline codes and custom fields in rds.
|