Plumtree PEIs  
 

IObjectActions.OnBeforeCopyObject Method 

This function will perform some functionality before an Object is copied from a folder to another.

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

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
- The type of object being copied
_nObjectID
- The specific object being copied
_nFolderID
- The Folder for which the objects will be moving to.

Return Value

String - Error message if the action should not continue, empty string or null if it should.

See Also

IObjectActions Interface | com.plumtree.portalpages.pei Namespace