IPWorks Cloud 2020 C++ Edition

Questions / Feedback?

PermissionList Event

This event fires once for each permission returned when ListPermissions or GetPermissionInfo is called.

Syntax

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);

Remarks

This event fires once for each permission returned when ListPermissions or GetPermissionInfo is called. The permissions cannot be modified from this event. The FolderId represents the item Id for the specific folder the permission is for. The UserId represents the Id for the user the permission is for.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 C++ Edition - Version 20.0 [Build 8265]