@@ 82-111 (lines=30) @@ | ||
79 | * @param string $UserId |
|
80 | * @param ILogger $logger |
|
81 | */ |
|
82 | public function __construct( |
|
83 | $appName, |
|
84 | IRequest $request, |
|
85 | IConfig $settings, |
|
86 | AppConfig $appConfig, |
|
87 | IL10N $l10n, |
|
88 | IManager $shareManager, |
|
89 | TokenManager $tokenManager, |
|
90 | IRootFolder $rootFolder, |
|
91 | ISession $session, |
|
92 | $UserId, |
|
93 | ILogger $logger, |
|
94 | \OCA\Richdocuments\TemplateManager $templateManager, |
|
95 | FederationService $federationService, |
|
96 | Helper $helper |
|
97 | ) { |
|
98 | parent::__construct($appName, $request); |
|
99 | $this->uid = $UserId; |
|
100 | $this->l10n = $l10n; |
|
101 | $this->settings = $settings; |
|
102 | $this->appConfig = $appConfig; |
|
103 | $this->shareManager = $shareManager; |
|
104 | $this->tokenManager = $tokenManager; |
|
105 | $this->rootFolder = $rootFolder; |
|
106 | $this->session = $session; |
|
107 | $this->logger = $logger; |
|
108 | $this->templateManager = $templateManager; |
|
109 | $this->federationService = $federationService; |
|
110 | $this->helper = $helper; |
|
111 | } |
|
112 | ||
113 | /** |
|
114 | * @PublicPage |
@@ 93-120 (lines=28) @@ | ||
90 | * @param ILogger $logger |
|
91 | * @param TemplateManager $templateManager |
|
92 | */ |
|
93 | public function __construct( |
|
94 | $appName, |
|
95 | IRequest $request, |
|
96 | IRootFolder $rootFolder, |
|
97 | IURLGenerator $urlGenerator, |
|
98 | IConfig $config, |
|
99 | AppConfig $appConfig, |
|
100 | TokenManager $tokenManager, |
|
101 | IUserManager $userManager, |
|
102 | WopiMapper $wopiMapper, |
|
103 | ILogger $logger, |
|
104 | TemplateManager $templateManager, |
|
105 | IManager $shareManager, |
|
106 | UserScopeService $userScopeService |
|
107 | ) { |
|
108 | parent::__construct($appName, $request); |
|
109 | $this->rootFolder = $rootFolder; |
|
110 | $this->urlGenerator = $urlGenerator; |
|
111 | $this->config = $config; |
|
112 | $this->appConfig = $appConfig; |
|
113 | $this->tokenManager = $tokenManager; |
|
114 | $this->userManager = $userManager; |
|
115 | $this->wopiMapper = $wopiMapper; |
|
116 | $this->logger = $logger; |
|
117 | $this->templateManager = $templateManager; |
|
118 | $this->shareManager = $shareManager; |
|
119 | $this->userScopeService = $userScopeService; |
|
120 | } |
|
121 | ||
122 | /** |
|
123 | * Returns general info about a file. |
@@ 74-100 (lines=27) @@ | ||
71 | * @param WopiMapper $wopiMapper |
|
72 | * @param IL10N $trans |
|
73 | */ |
|
74 | public function __construct( |
|
75 | IRootFolder $rootFolder, |
|
76 | IManager $shareManager, |
|
77 | IURLGenerator $urlGenerator, |
|
78 | Parser $wopiParser, |
|
79 | CapabilitiesService $capabilitiesService, |
|
80 | AppConfig $appConfig, |
|
81 | $UserId, |
|
82 | WopiMapper $wopiMapper, |
|
83 | IL10N $trans, |
|
84 | IUserManager $userManager, |
|
85 | IGroupManager $groupManager, |
|
86 | Helper $helper |
|
87 | ) { |
|
88 | $this->rootFolder = $rootFolder; |
|
89 | $this->shareManager = $shareManager; |
|
90 | $this->urlGenerator = $urlGenerator; |
|
91 | $this->wopiParser = $wopiParser; |
|
92 | $this->capabilitiesService = $capabilitiesService; |
|
93 | $this->appConfig = $appConfig; |
|
94 | $this->trans = $trans; |
|
95 | $this->userId = $UserId; |
|
96 | $this->wopiMapper = $wopiMapper; |
|
97 | $this->userManager = $userManager; |
|
98 | $this->groupManager = $groupManager; |
|
99 | $this->helper = $helper; |
|
100 | } |
|
101 | ||
102 | /** |
|
103 | * @param string $fileId |