public FileEntryWrapperHelper( ApiDateTimeHelper apiDateTimeHelper, EmployeeWraperHelper employeeWraperHelper, FileSharingHelper fileSharingHelper, FileSecurity fileSecurity ) { ApiDateTimeHelper = apiDateTimeHelper; EmployeeWraperHelper = employeeWraperHelper; FileSharingHelper = fileSharingHelper; FileSecurity = fileSecurity; }
public FolderWrapperHelper( ApiDateTimeHelper apiDateTimeHelper, EmployeeWraperHelper employeeWrapperHelper, AuthContext authContext, IDaoFactory daoFactory, FileSecurity fileSecurity, GlobalFolderHelper globalFolderHelper, FileSharingHelper fileSharingHelper) : base(apiDateTimeHelper, employeeWrapperHelper, fileSharingHelper, fileSecurity) { AuthContext = authContext; DaoFactory = daoFactory; GlobalFolderHelper = globalFolderHelper; }
public FileWrapperHelper( ApiDateTimeHelper apiDateTimeHelper, EmployeeWraperHelper employeeWrapperHelper, AuthContext authContext, IDaoFactory daoFactory, FileSecurity fileSecurity, GlobalFolderHelper globalFolderHelper, CommonLinkUtility commonLinkUtility, FilesLinkUtility filesLinkUtility, FileUtility fileUtility, FileSharingHelper fileSharingHelper) : base(apiDateTimeHelper, employeeWrapperHelper, fileSharingHelper, fileSecurity) { AuthContext = authContext; DaoFactory = daoFactory; GlobalFolderHelper = globalFolderHelper; CommonLinkUtility = commonLinkUtility; FilesLinkUtility = filesLinkUtility; FileUtility = fileUtility; }
protected internal T Get <T, TId>(FileEntry <TId> entry) where T : FileEntryWrapper <TId>, new() { return(new T { Id = entry.ID, Title = entry.Title, Access = entry.Access, Shared = entry.Shared, Created = ApiDateTimeHelper.Get(entry.CreateOn), CreatedBy = EmployeeWraperHelper.Get(entry.CreateBy), Updated = ApiDateTimeHelper.Get(entry.ModifiedOn), UpdatedBy = EmployeeWraperHelper.Get(entry.ModifiedBy), RootFolderType = entry.RootFolderType, RootFolderId = entry.RootFolderId, ProviderItem = entry.ProviderEntry.NullIfDefault(), ProviderKey = entry.ProviderKey, ProviderId = entry.ProviderId.NullIfDefault(), CanShare = FileSharingHelper.CanSetAccess(entry), CanEdit = FileSecurity.CanEdit(entry) }); }