コード例 #1
0
 public FileEntryWrapperHelper(
     ApiDateTimeHelper apiDateTimeHelper,
     EmployeeWraperHelper employeeWraperHelper,
     FileSharingHelper fileSharingHelper, FileSecurity fileSecurity
     )
 {
     ApiDateTimeHelper    = apiDateTimeHelper;
     EmployeeWraperHelper = employeeWraperHelper;
     FileSharingHelper    = fileSharingHelper;
     FileSecurity         = fileSecurity;
 }
コード例 #2
0
ファイル: FolderWrapper.cs プロジェクト: ONLYOFFICE/AppServer
 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;
 }
コード例 #3
0
ファイル: FileWrapper.cs プロジェクト: ONLYOFFICE/AppServer
 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;
 }
コード例 #4
0
 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)
     });
 }