Plumtree PEIs  
 

IObjectActions.OnBeforeCreateABOJob Method 

This function will perform some functionality before an ABO Job is created to delete an Object.

More info on ABO Jobs and when this PEI is called:
When the user deletes an Admin Folder (including Community folders), since this action might require a lot of processing time, he will have the choice between deleting the folder now or scheduling an ABO Job to do it later and minimize the impact on the Portal's performance. If he decides to do it now, the OnDeleteAdminFolder PEI is called, if he decides to have it done later by a Job, the OnBeforeCreateABOJob and OnAfterCreateABOJob PEIs are called.

string OnBeforeCreateABOJob(
   AActivitySpace _asCurrentSpace,
   IPTSession _ptUserSession,
   int _nClassID,
   int _nObjectID
);

Parameters

_asCurrentSpace
- Provides access to the current MVC classes as well as the Application and the HTTP Session
_ptUserSession
- Plumtree session object for the current user
_nClassID
- Class ID of the Object that the Job will delete
_nObjectID
- ID of the Object that the Job will delete

Return Value

String - Error message if the creation of the ABO Job should not continue, empty string or null if it should.

See Also

IObjectActions Interface | com.plumtree.portalpages.pei Namespace