Plumtree PEIs  
 

IDirectoryActions.OnBeforeCreateABOJob Method 

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

More info on ABO Jobs and when this PEI is called:
When the user deletes an Directory Folder, 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 OnDeleteDirectoryFolder 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

IDirectoryActions Interface | com.plumtree.portalpages.pei Namespace