This event fires once for each permission returned when ListPermissions or GetPermissionInfo is called.
ANSI (Cross Platform)
virtual int FirePermissionList(ShareFilePermissionListEventParams *e);
typedef struct {
const char *FolderId;
const char *UserId;
int CanDelete;
int CanDownload;
int CanManagePermissions;
int CanUpload;
int CanView;
int IsOwner;
int NotifyOnDownload;
int NotifyOnUpload;
int reserved;
} ShareFilePermissionListEventParams;
Unicode (Windows)
virtual INT FirePermissionList(ShareFilePermissionListEventParams *e);
typedef struct {
LPCWSTR FolderId;
LPCWSTR UserId;
BOOL CanDelete;
BOOL CanDownload;
BOOL CanManagePermissions;
BOOL CanUpload;
BOOL CanView;
BOOL IsOwner;
BOOL NotifyOnDownload;
BOOL NotifyOnUpload;
INT reserved;
} ShareFilePermissionListEventParams;
- (void)onPermissionList:(NSString*)folderId :(NSString*)userId :(BOOL)canDelete :(BOOL)canDownload :(BOOL)canManagePermissions :(BOOL)canUpload :(BOOL)canView :(BOOL)isOwner :(BOOL)notifyOnDownload :(BOOL)notifyOnUpload;
#define EID_SHAREFILE_PERMISSIONLIST 8
virtual INT IPWORKSCLOUD_CALL FirePermissionList(LPSTR &lpszFolderId, LPSTR &lpszUserId, BOOL &bCanDelete, BOOL &bCanDownload, BOOL &bCanManagePermissions, BOOL &bCanUpload, BOOL &bCanView, BOOL &bIsOwner, BOOL &bNotifyOnDownload, BOOL &bNotifyOnUpload);