@@ -30,24 +30,24 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | interface ICloudFederationNotification { |
| 32 | 32 | |
| 33 | - /** |
|
| 34 | - * add a message to the notification |
|
| 35 | - * |
|
| 36 | - * @param string $notificationType (e.g. SHARE_ACCEPTED) |
|
| 37 | - * @param string $resourceType (e.g. file, calendar, contact,...) |
|
| 38 | - * @param $providerId id of the share |
|
| 39 | - * @param array $notification , payload of the notification |
|
| 40 | - * |
|
| 41 | - * @since 14.0.0 |
|
| 42 | - */ |
|
| 43 | - public function setMessage($notificationType, $resourceType, $providerId, array $notification); |
|
| 33 | + /** |
|
| 34 | + * add a message to the notification |
|
| 35 | + * |
|
| 36 | + * @param string $notificationType (e.g. SHARE_ACCEPTED) |
|
| 37 | + * @param string $resourceType (e.g. file, calendar, contact,...) |
|
| 38 | + * @param $providerId id of the share |
|
| 39 | + * @param array $notification , payload of the notification |
|
| 40 | + * |
|
| 41 | + * @since 14.0.0 |
|
| 42 | + */ |
|
| 43 | + public function setMessage($notificationType, $resourceType, $providerId, array $notification); |
|
| 44 | 44 | |
| 45 | - /** |
|
| 46 | - * get message, ready to send out |
|
| 47 | - * |
|
| 48 | - * @return array |
|
| 49 | - * |
|
| 50 | - * @since 14.0.0 |
|
| 51 | - */ |
|
| 52 | - public function getMessage(); |
|
| 45 | + /** |
|
| 46 | + * get message, ready to send out |
|
| 47 | + * |
|
| 48 | + * @return array |
|
| 49 | + * |
|
| 50 | + * @since 14.0.0 |
|
| 51 | + */ |
|
| 52 | + public function getMessage(); |
|
| 53 | 53 | } |
@@ -30,221 +30,221 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | interface ICloudFederationShare { |
| 32 | 32 | |
| 33 | - /** |
|
| 34 | - * set uid of the recipient |
|
| 35 | - * |
|
| 36 | - * @param string $user |
|
| 37 | - * |
|
| 38 | - * @since 14.0.0 |
|
| 39 | - */ |
|
| 40 | - public function setShareWith($user); |
|
| 41 | - |
|
| 42 | - /** |
|
| 43 | - * set resource name (e.g. file, calendar, contact,...) |
|
| 44 | - * |
|
| 45 | - * @param string $name |
|
| 46 | - * |
|
| 47 | - * @since 14.0.0 |
|
| 48 | - */ |
|
| 49 | - public function setResourceName($name); |
|
| 50 | - |
|
| 51 | - /** |
|
| 52 | - * set resource type (e.g. file, calendar, contact,...) |
|
| 53 | - * |
|
| 54 | - * @param string $resourceType |
|
| 55 | - * |
|
| 56 | - * @since 14.0.0 |
|
| 57 | - */ |
|
| 58 | - public function setResourceType($resourceType); |
|
| 59 | - |
|
| 60 | - /** |
|
| 61 | - * set resource description (optional) |
|
| 62 | - * |
|
| 63 | - * @param string $description |
|
| 64 | - * |
|
| 65 | - * @since 14.0.0 |
|
| 66 | - */ |
|
| 67 | - public function setDescription($description); |
|
| 68 | - |
|
| 69 | - /** |
|
| 70 | - * set provider ID (e.g. file ID) |
|
| 71 | - * |
|
| 72 | - * @param string $providerId |
|
| 73 | - * |
|
| 74 | - * @since 14.0.0 |
|
| 75 | - */ |
|
| 76 | - public function setProviderId($providerId); |
|
| 77 | - |
|
| 78 | - /** |
|
| 79 | - * set owner UID |
|
| 80 | - * |
|
| 81 | - * @param string $owner |
|
| 82 | - * |
|
| 83 | - * @since 14.0.0 |
|
| 84 | - */ |
|
| 85 | - public function setOwner($owner); |
|
| 86 | - |
|
| 87 | - /** |
|
| 88 | - * set owner display name |
|
| 89 | - * |
|
| 90 | - * @param string $ownerDisplayName |
|
| 91 | - * |
|
| 92 | - * @since 14.0.0 |
|
| 93 | - */ |
|
| 94 | - public function setOwnerDisplayName($ownerDisplayName); |
|
| 95 | - |
|
| 96 | - /** |
|
| 97 | - * set UID of the user who sends the share |
|
| 98 | - * |
|
| 99 | - * @param string $sharedBy |
|
| 100 | - * |
|
| 101 | - * @since 14.0.0 |
|
| 102 | - */ |
|
| 103 | - public function setSharedBy($sharedBy); |
|
| 104 | - |
|
| 105 | - /** |
|
| 106 | - * set display name of the user who sends the share |
|
| 107 | - * |
|
| 108 | - * @param $sharedByDisplayName |
|
| 109 | - * |
|
| 110 | - * @since 14.0.0 |
|
| 111 | - */ |
|
| 112 | - public function setSharedByDisplayName($sharedByDisplayName); |
|
| 113 | - |
|
| 114 | - /** |
|
| 115 | - * set protocol specification |
|
| 116 | - * |
|
| 117 | - * @param array $protocol |
|
| 118 | - * |
|
| 119 | - * @since 14.0.0 |
|
| 120 | - */ |
|
| 121 | - public function setProtocol(array $protocol); |
|
| 122 | - |
|
| 123 | - /** |
|
| 124 | - * share type (group or user) |
|
| 125 | - * |
|
| 126 | - * @param string $shareType |
|
| 127 | - * |
|
| 128 | - * @since 14.0.0 |
|
| 129 | - */ |
|
| 130 | - public function setShareType($shareType); |
|
| 131 | - |
|
| 132 | - /** |
|
| 133 | - * get the whole share, ready to send out |
|
| 134 | - * |
|
| 135 | - * @return array |
|
| 136 | - * |
|
| 137 | - * @since 14.0.0 |
|
| 138 | - */ |
|
| 139 | - public function getShare(); |
|
| 140 | - |
|
| 141 | - /** |
|
| 142 | - * get uid of the recipient |
|
| 143 | - * |
|
| 144 | - * @return string |
|
| 145 | - * |
|
| 146 | - * @since 14.0.0 |
|
| 147 | - */ |
|
| 148 | - public function getShareWith(); |
|
| 149 | - |
|
| 150 | - /** |
|
| 151 | - * get resource name (e.g. file, calendar, contact,...) |
|
| 152 | - * |
|
| 153 | - * @return string |
|
| 154 | - * |
|
| 155 | - * @since 14.0.0 |
|
| 156 | - */ |
|
| 157 | - public function getResourceName(); |
|
| 158 | - |
|
| 159 | - /** |
|
| 160 | - * get resource type (e.g. file, calendar, contact,...) |
|
| 161 | - * |
|
| 162 | - * @return string |
|
| 163 | - * |
|
| 164 | - * @since 14.0.0 |
|
| 165 | - */ |
|
| 166 | - public function getResourceType(); |
|
| 167 | - |
|
| 168 | - /** |
|
| 169 | - * get resource description (optional) |
|
| 170 | - * |
|
| 171 | - * @return string |
|
| 172 | - * |
|
| 173 | - * @since 14.0.0 |
|
| 174 | - */ |
|
| 175 | - public function getDescription(); |
|
| 176 | - |
|
| 177 | - /** |
|
| 178 | - * get provider ID (e.g. file ID) |
|
| 179 | - * |
|
| 180 | - * @return string |
|
| 181 | - * |
|
| 182 | - * @since 14.0.0 |
|
| 183 | - */ |
|
| 184 | - public function getProviderId(); |
|
| 185 | - |
|
| 186 | - /** |
|
| 187 | - * get owner UID |
|
| 188 | - * |
|
| 189 | - * @return string |
|
| 190 | - * |
|
| 191 | - * @since 14.0.0 |
|
| 192 | - */ |
|
| 193 | - public function getOwner(); |
|
| 194 | - |
|
| 195 | - /** |
|
| 196 | - * get owner display name |
|
| 197 | - * |
|
| 198 | - * @return string |
|
| 199 | - * |
|
| 200 | - * @since 14.0.0 |
|
| 201 | - */ |
|
| 202 | - public function getOwnerDisplayName(); |
|
| 203 | - |
|
| 204 | - /** |
|
| 205 | - * get UID of the user who sends the share |
|
| 206 | - * |
|
| 207 | - * @return string |
|
| 208 | - * |
|
| 209 | - * @since 14.0.0 |
|
| 210 | - */ |
|
| 211 | - public function getSharedBy(); |
|
| 212 | - |
|
| 213 | - /** |
|
| 214 | - * get display name of the user who sends the share |
|
| 215 | - * |
|
| 216 | - * @return string |
|
| 217 | - * |
|
| 218 | - * @since 14.0.0 |
|
| 219 | - */ |
|
| 220 | - public function getSharedByDisplayName(); |
|
| 221 | - |
|
| 222 | - /** |
|
| 223 | - * get share type (group or user) |
|
| 224 | - * |
|
| 225 | - * @return string |
|
| 226 | - * |
|
| 227 | - * @since 14.0.0 |
|
| 228 | - */ |
|
| 229 | - public function getShareType(); |
|
| 230 | - |
|
| 231 | - /** |
|
| 232 | - * get share Secret |
|
| 233 | - * |
|
| 234 | - * @return string |
|
| 235 | - * |
|
| 236 | - * @since 14.0.0 |
|
| 237 | - */ |
|
| 238 | - public function getShareSecret(); |
|
| 239 | - |
|
| 240 | - |
|
| 241 | - /** |
|
| 242 | - * get protocol specification |
|
| 243 | - * |
|
| 244 | - * @return array |
|
| 245 | - * |
|
| 246 | - * @since 14.0.0 |
|
| 247 | - */ |
|
| 248 | - public function getProtocol(); |
|
| 33 | + /** |
|
| 34 | + * set uid of the recipient |
|
| 35 | + * |
|
| 36 | + * @param string $user |
|
| 37 | + * |
|
| 38 | + * @since 14.0.0 |
|
| 39 | + */ |
|
| 40 | + public function setShareWith($user); |
|
| 41 | + |
|
| 42 | + /** |
|
| 43 | + * set resource name (e.g. file, calendar, contact,...) |
|
| 44 | + * |
|
| 45 | + * @param string $name |
|
| 46 | + * |
|
| 47 | + * @since 14.0.0 |
|
| 48 | + */ |
|
| 49 | + public function setResourceName($name); |
|
| 50 | + |
|
| 51 | + /** |
|
| 52 | + * set resource type (e.g. file, calendar, contact,...) |
|
| 53 | + * |
|
| 54 | + * @param string $resourceType |
|
| 55 | + * |
|
| 56 | + * @since 14.0.0 |
|
| 57 | + */ |
|
| 58 | + public function setResourceType($resourceType); |
|
| 59 | + |
|
| 60 | + /** |
|
| 61 | + * set resource description (optional) |
|
| 62 | + * |
|
| 63 | + * @param string $description |
|
| 64 | + * |
|
| 65 | + * @since 14.0.0 |
|
| 66 | + */ |
|
| 67 | + public function setDescription($description); |
|
| 68 | + |
|
| 69 | + /** |
|
| 70 | + * set provider ID (e.g. file ID) |
|
| 71 | + * |
|
| 72 | + * @param string $providerId |
|
| 73 | + * |
|
| 74 | + * @since 14.0.0 |
|
| 75 | + */ |
|
| 76 | + public function setProviderId($providerId); |
|
| 77 | + |
|
| 78 | + /** |
|
| 79 | + * set owner UID |
|
| 80 | + * |
|
| 81 | + * @param string $owner |
|
| 82 | + * |
|
| 83 | + * @since 14.0.0 |
|
| 84 | + */ |
|
| 85 | + public function setOwner($owner); |
|
| 86 | + |
|
| 87 | + /** |
|
| 88 | + * set owner display name |
|
| 89 | + * |
|
| 90 | + * @param string $ownerDisplayName |
|
| 91 | + * |
|
| 92 | + * @since 14.0.0 |
|
| 93 | + */ |
|
| 94 | + public function setOwnerDisplayName($ownerDisplayName); |
|
| 95 | + |
|
| 96 | + /** |
|
| 97 | + * set UID of the user who sends the share |
|
| 98 | + * |
|
| 99 | + * @param string $sharedBy |
|
| 100 | + * |
|
| 101 | + * @since 14.0.0 |
|
| 102 | + */ |
|
| 103 | + public function setSharedBy($sharedBy); |
|
| 104 | + |
|
| 105 | + /** |
|
| 106 | + * set display name of the user who sends the share |
|
| 107 | + * |
|
| 108 | + * @param $sharedByDisplayName |
|
| 109 | + * |
|
| 110 | + * @since 14.0.0 |
|
| 111 | + */ |
|
| 112 | + public function setSharedByDisplayName($sharedByDisplayName); |
|
| 113 | + |
|
| 114 | + /** |
|
| 115 | + * set protocol specification |
|
| 116 | + * |
|
| 117 | + * @param array $protocol |
|
| 118 | + * |
|
| 119 | + * @since 14.0.0 |
|
| 120 | + */ |
|
| 121 | + public function setProtocol(array $protocol); |
|
| 122 | + |
|
| 123 | + /** |
|
| 124 | + * share type (group or user) |
|
| 125 | + * |
|
| 126 | + * @param string $shareType |
|
| 127 | + * |
|
| 128 | + * @since 14.0.0 |
|
| 129 | + */ |
|
| 130 | + public function setShareType($shareType); |
|
| 131 | + |
|
| 132 | + /** |
|
| 133 | + * get the whole share, ready to send out |
|
| 134 | + * |
|
| 135 | + * @return array |
|
| 136 | + * |
|
| 137 | + * @since 14.0.0 |
|
| 138 | + */ |
|
| 139 | + public function getShare(); |
|
| 140 | + |
|
| 141 | + /** |
|
| 142 | + * get uid of the recipient |
|
| 143 | + * |
|
| 144 | + * @return string |
|
| 145 | + * |
|
| 146 | + * @since 14.0.0 |
|
| 147 | + */ |
|
| 148 | + public function getShareWith(); |
|
| 149 | + |
|
| 150 | + /** |
|
| 151 | + * get resource name (e.g. file, calendar, contact,...) |
|
| 152 | + * |
|
| 153 | + * @return string |
|
| 154 | + * |
|
| 155 | + * @since 14.0.0 |
|
| 156 | + */ |
|
| 157 | + public function getResourceName(); |
|
| 158 | + |
|
| 159 | + /** |
|
| 160 | + * get resource type (e.g. file, calendar, contact,...) |
|
| 161 | + * |
|
| 162 | + * @return string |
|
| 163 | + * |
|
| 164 | + * @since 14.0.0 |
|
| 165 | + */ |
|
| 166 | + public function getResourceType(); |
|
| 167 | + |
|
| 168 | + /** |
|
| 169 | + * get resource description (optional) |
|
| 170 | + * |
|
| 171 | + * @return string |
|
| 172 | + * |
|
| 173 | + * @since 14.0.0 |
|
| 174 | + */ |
|
| 175 | + public function getDescription(); |
|
| 176 | + |
|
| 177 | + /** |
|
| 178 | + * get provider ID (e.g. file ID) |
|
| 179 | + * |
|
| 180 | + * @return string |
|
| 181 | + * |
|
| 182 | + * @since 14.0.0 |
|
| 183 | + */ |
|
| 184 | + public function getProviderId(); |
|
| 185 | + |
|
| 186 | + /** |
|
| 187 | + * get owner UID |
|
| 188 | + * |
|
| 189 | + * @return string |
|
| 190 | + * |
|
| 191 | + * @since 14.0.0 |
|
| 192 | + */ |
|
| 193 | + public function getOwner(); |
|
| 194 | + |
|
| 195 | + /** |
|
| 196 | + * get owner display name |
|
| 197 | + * |
|
| 198 | + * @return string |
|
| 199 | + * |
|
| 200 | + * @since 14.0.0 |
|
| 201 | + */ |
|
| 202 | + public function getOwnerDisplayName(); |
|
| 203 | + |
|
| 204 | + /** |
|
| 205 | + * get UID of the user who sends the share |
|
| 206 | + * |
|
| 207 | + * @return string |
|
| 208 | + * |
|
| 209 | + * @since 14.0.0 |
|
| 210 | + */ |
|
| 211 | + public function getSharedBy(); |
|
| 212 | + |
|
| 213 | + /** |
|
| 214 | + * get display name of the user who sends the share |
|
| 215 | + * |
|
| 216 | + * @return string |
|
| 217 | + * |
|
| 218 | + * @since 14.0.0 |
|
| 219 | + */ |
|
| 220 | + public function getSharedByDisplayName(); |
|
| 221 | + |
|
| 222 | + /** |
|
| 223 | + * get share type (group or user) |
|
| 224 | + * |
|
| 225 | + * @return string |
|
| 226 | + * |
|
| 227 | + * @since 14.0.0 |
|
| 228 | + */ |
|
| 229 | + public function getShareType(); |
|
| 230 | + |
|
| 231 | + /** |
|
| 232 | + * get share Secret |
|
| 233 | + * |
|
| 234 | + * @return string |
|
| 235 | + * |
|
| 236 | + * @since 14.0.0 |
|
| 237 | + */ |
|
| 238 | + public function getShareSecret(); |
|
| 239 | + |
|
| 240 | + |
|
| 241 | + /** |
|
| 242 | + * get protocol specification |
|
| 243 | + * |
|
| 244 | + * @return array |
|
| 245 | + * |
|
| 246 | + * @since 14.0.0 |
|
| 247 | + */ |
|
| 248 | + public function getProtocol(); |
|
| 249 | 249 | |
| 250 | 250 | } |
@@ -33,19 +33,19 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | class ProviderCouldNotAddShareException extends HintException { |
| 35 | 35 | |
| 36 | - /** |
|
| 37 | - * ProviderCouldNotAddShareException constructor. |
|
| 38 | - * |
|
| 39 | - * @since 14.0.0 |
|
| 40 | - * |
|
| 41 | - * @param string $message |
|
| 42 | - * @param string $hint |
|
| 43 | - * @param int $code |
|
| 44 | - * @param \Exception|null $previous |
|
| 45 | - */ |
|
| 46 | - public function __construct($message, $hint = '', $code = Http::STATUS_BAD_REQUEST, \Exception $previous = null) { |
|
| 47 | - parent::__construct($message, $hint, $code, $previous); |
|
| 48 | - } |
|
| 36 | + /** |
|
| 37 | + * ProviderCouldNotAddShareException constructor. |
|
| 38 | + * |
|
| 39 | + * @since 14.0.0 |
|
| 40 | + * |
|
| 41 | + * @param string $message |
|
| 42 | + * @param string $hint |
|
| 43 | + * @param int $code |
|
| 44 | + * @param \Exception|null $previous |
|
| 45 | + */ |
|
| 46 | + public function __construct($message, $hint = '', $code = Http::STATUS_BAD_REQUEST, \Exception $previous = null) { |
|
| 47 | + parent::__construct($message, $hint, $code, $previous); |
|
| 48 | + } |
|
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | } |
@@ -30,33 +30,33 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | interface ICloudFederationFactory { |
| 32 | 32 | |
| 33 | - /** |
|
| 34 | - * get a CloudFederationShare Object to prepare a share you want to send |
|
| 35 | - * |
|
| 36 | - * @param string $shareWith |
|
| 37 | - * @param string $name resource name (e.g. document.odt) |
|
| 38 | - * @param string $description share description (optional) |
|
| 39 | - * @param string $providerId resource UID on the provider side |
|
| 40 | - * @param string $owner provider specific UID of the user who owns the resource |
|
| 41 | - * @param string $ownerDisplayName display name of the user who shared the item |
|
| 42 | - * @param string $sharedBy provider specific UID of the user who shared the resource |
|
| 43 | - * @param string $sharedByDisplayName display name of the user who shared the resource |
|
| 44 | - * @param string $sharedSecret used to authenticate requests across servers |
|
| 45 | - * @param string $shareType ('group' or 'user' share) |
|
| 46 | - * @param $resourceType ('file', 'calendar',...) |
|
| 47 | - * @return ICloudFederationShare |
|
| 48 | - * |
|
| 49 | - * @since 14.0.0 |
|
| 50 | - */ |
|
| 51 | - public function getCloudFederationShare($shareWith, $name, $description, $providerId, $owner, $ownerDisplayName, $sharedBy, $sharedByDisplayName, $sharedSecret, $shareType, $resourceType); |
|
| 33 | + /** |
|
| 34 | + * get a CloudFederationShare Object to prepare a share you want to send |
|
| 35 | + * |
|
| 36 | + * @param string $shareWith |
|
| 37 | + * @param string $name resource name (e.g. document.odt) |
|
| 38 | + * @param string $description share description (optional) |
|
| 39 | + * @param string $providerId resource UID on the provider side |
|
| 40 | + * @param string $owner provider specific UID of the user who owns the resource |
|
| 41 | + * @param string $ownerDisplayName display name of the user who shared the item |
|
| 42 | + * @param string $sharedBy provider specific UID of the user who shared the resource |
|
| 43 | + * @param string $sharedByDisplayName display name of the user who shared the resource |
|
| 44 | + * @param string $sharedSecret used to authenticate requests across servers |
|
| 45 | + * @param string $shareType ('group' or 'user' share) |
|
| 46 | + * @param $resourceType ('file', 'calendar',...) |
|
| 47 | + * @return ICloudFederationShare |
|
| 48 | + * |
|
| 49 | + * @since 14.0.0 |
|
| 50 | + */ |
|
| 51 | + public function getCloudFederationShare($shareWith, $name, $description, $providerId, $owner, $ownerDisplayName, $sharedBy, $sharedByDisplayName, $sharedSecret, $shareType, $resourceType); |
|
| 52 | 52 | |
| 53 | - /** |
|
| 54 | - * get a Cloud FederationNotification object to prepare a notification you |
|
| 55 | - * want to send |
|
| 56 | - * |
|
| 57 | - * @return ICloudFederationNotification |
|
| 58 | - * |
|
| 59 | - * @since 14.0.0 |
|
| 60 | - */ |
|
| 61 | - public function getCloudFederationNotification(); |
|
| 53 | + /** |
|
| 54 | + * get a Cloud FederationNotification object to prepare a notification you |
|
| 55 | + * want to send |
|
| 56 | + * |
|
| 57 | + * @return ICloudFederationNotification |
|
| 58 | + * |
|
| 59 | + * @since 14.0.0 |
|
| 60 | + */ |
|
| 61 | + public function getCloudFederationNotification(); |
|
| 62 | 62 | } |
@@ -60,510 +60,510 @@ |
||
| 60 | 60 | */ |
| 61 | 61 | interface IServerContainer extends IContainer { |
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * The calendar manager will act as a broker between consumers for calendar information and |
|
| 65 | - * providers which actual deliver the calendar information. |
|
| 66 | - * |
|
| 67 | - * @return \OCP\Calendar\IManager |
|
| 68 | - * @since 13.0.0 |
|
| 69 | - */ |
|
| 70 | - public function getCalendarManager(); |
|
| 71 | - |
|
| 72 | - /** |
|
| 73 | - * The contacts manager will act as a broker between consumers for contacts information and |
|
| 74 | - * providers which actual deliver the contact information. |
|
| 75 | - * |
|
| 76 | - * @return \OCP\Contacts\IManager |
|
| 77 | - * @since 6.0.0 |
|
| 78 | - */ |
|
| 79 | - public function getContactsManager(); |
|
| 80 | - |
|
| 81 | - /** |
|
| 82 | - * The current request object holding all information about the request currently being processed |
|
| 83 | - * is returned from this method. |
|
| 84 | - * In case the current execution was not initiated by a web request null is returned |
|
| 85 | - * |
|
| 86 | - * @return \OCP\IRequest |
|
| 87 | - * @since 6.0.0 |
|
| 88 | - */ |
|
| 89 | - public function getRequest(); |
|
| 90 | - |
|
| 91 | - /** |
|
| 92 | - * Returns the preview manager which can create preview images for a given file |
|
| 93 | - * |
|
| 94 | - * @return \OCP\IPreview |
|
| 95 | - * @since 6.0.0 |
|
| 96 | - */ |
|
| 97 | - public function getPreviewManager(); |
|
| 98 | - |
|
| 99 | - /** |
|
| 100 | - * Returns the tag manager which can get and set tags for different object types |
|
| 101 | - * |
|
| 102 | - * @see \OCP\ITagManager::load() |
|
| 103 | - * @return \OCP\ITagManager |
|
| 104 | - * @since 6.0.0 |
|
| 105 | - */ |
|
| 106 | - public function getTagManager(); |
|
| 107 | - |
|
| 108 | - /** |
|
| 109 | - * Returns the root folder of ownCloud's data directory |
|
| 110 | - * |
|
| 111 | - * @return \OCP\Files\IRootFolder |
|
| 112 | - * @since 6.0.0 - between 6.0.0 and 8.0.0 this returned \OCP\Files\Folder |
|
| 113 | - */ |
|
| 114 | - public function getRootFolder(); |
|
| 115 | - |
|
| 116 | - /** |
|
| 117 | - * Returns a view to ownCloud's files folder |
|
| 118 | - * |
|
| 119 | - * @param string $userId user ID |
|
| 120 | - * @return \OCP\Files\Folder |
|
| 121 | - * @since 6.0.0 - parameter $userId was added in 8.0.0 |
|
| 122 | - * @see getUserFolder in \OCP\Files\IRootFolder |
|
| 123 | - */ |
|
| 124 | - public function getUserFolder($userId = null); |
|
| 125 | - |
|
| 126 | - /** |
|
| 127 | - * Returns an app-specific view in ownClouds data directory |
|
| 128 | - * |
|
| 129 | - * @return \OCP\Files\Folder |
|
| 130 | - * @since 6.0.0 |
|
| 131 | - * @deprecated 9.2.0 use IAppData |
|
| 132 | - */ |
|
| 133 | - public function getAppFolder(); |
|
| 134 | - |
|
| 135 | - /** |
|
| 136 | - * Returns a user manager |
|
| 137 | - * |
|
| 138 | - * @return \OCP\IUserManager |
|
| 139 | - * @since 8.0.0 |
|
| 140 | - */ |
|
| 141 | - public function getUserManager(); |
|
| 142 | - |
|
| 143 | - /** |
|
| 144 | - * Returns a group manager |
|
| 145 | - * |
|
| 146 | - * @return \OCP\IGroupManager |
|
| 147 | - * @since 8.0.0 |
|
| 148 | - */ |
|
| 149 | - public function getGroupManager(); |
|
| 150 | - |
|
| 151 | - /** |
|
| 152 | - * Returns the user session |
|
| 153 | - * |
|
| 154 | - * @return \OCP\IUserSession |
|
| 155 | - * @since 6.0.0 |
|
| 156 | - */ |
|
| 157 | - public function getUserSession(); |
|
| 158 | - |
|
| 159 | - /** |
|
| 160 | - * Returns the navigation manager |
|
| 161 | - * |
|
| 162 | - * @return \OCP\INavigationManager |
|
| 163 | - * @since 6.0.0 |
|
| 164 | - */ |
|
| 165 | - public function getNavigationManager(); |
|
| 166 | - |
|
| 167 | - /** |
|
| 168 | - * Returns the config manager |
|
| 169 | - * |
|
| 170 | - * @return \OCP\IConfig |
|
| 171 | - * @since 6.0.0 |
|
| 172 | - */ |
|
| 173 | - public function getConfig(); |
|
| 174 | - |
|
| 175 | - /** |
|
| 176 | - * Returns a Crypto instance |
|
| 177 | - * |
|
| 178 | - * @return \OCP\Security\ICrypto |
|
| 179 | - * @since 8.0.0 |
|
| 180 | - */ |
|
| 181 | - public function getCrypto(); |
|
| 182 | - |
|
| 183 | - /** |
|
| 184 | - * Returns a Hasher instance |
|
| 185 | - * |
|
| 186 | - * @return \OCP\Security\IHasher |
|
| 187 | - * @since 8.0.0 |
|
| 188 | - */ |
|
| 189 | - public function getHasher(); |
|
| 190 | - |
|
| 191 | - /** |
|
| 192 | - * Returns a SecureRandom instance |
|
| 193 | - * |
|
| 194 | - * @return \OCP\Security\ISecureRandom |
|
| 195 | - * @since 8.1.0 |
|
| 196 | - */ |
|
| 197 | - public function getSecureRandom(); |
|
| 198 | - |
|
| 199 | - /** |
|
| 200 | - * Returns a CredentialsManager instance |
|
| 201 | - * |
|
| 202 | - * @return \OCP\Security\ICredentialsManager |
|
| 203 | - * @since 9.0.0 |
|
| 204 | - */ |
|
| 205 | - public function getCredentialsManager(); |
|
| 206 | - |
|
| 207 | - /** |
|
| 208 | - * Returns the app config manager |
|
| 209 | - * |
|
| 210 | - * @return \OCP\IAppConfig |
|
| 211 | - * @since 7.0.0 |
|
| 212 | - */ |
|
| 213 | - public function getAppConfig(); |
|
| 214 | - |
|
| 215 | - /** |
|
| 216 | - * @return \OCP\L10N\IFactory |
|
| 217 | - * @since 8.2.0 |
|
| 218 | - */ |
|
| 219 | - public function getL10NFactory(); |
|
| 220 | - |
|
| 221 | - /** |
|
| 222 | - * get an L10N instance |
|
| 223 | - * @param string $app appid |
|
| 224 | - * @param string $lang |
|
| 225 | - * @return \OCP\IL10N |
|
| 226 | - * @since 6.0.0 - parameter $lang was added in 8.0.0 |
|
| 227 | - */ |
|
| 228 | - public function getL10N($app, $lang = null); |
|
| 229 | - |
|
| 230 | - /** |
|
| 231 | - * @return \OC\Encryption\Manager |
|
| 232 | - * @since 8.1.0 |
|
| 233 | - */ |
|
| 234 | - public function getEncryptionManager(); |
|
| 235 | - |
|
| 236 | - /** |
|
| 237 | - * @return \OC\Encryption\File |
|
| 238 | - * @since 8.1.0 |
|
| 239 | - */ |
|
| 240 | - public function getEncryptionFilesHelper(); |
|
| 241 | - |
|
| 242 | - /** |
|
| 243 | - * @return \OCP\Encryption\Keys\IStorage |
|
| 244 | - * @since 8.1.0 |
|
| 245 | - */ |
|
| 246 | - public function getEncryptionKeyStorage(); |
|
| 247 | - |
|
| 248 | - /** |
|
| 249 | - * Returns the URL generator |
|
| 250 | - * |
|
| 251 | - * @return \OCP\IURLGenerator |
|
| 252 | - * @since 6.0.0 |
|
| 253 | - */ |
|
| 254 | - public function getURLGenerator(); |
|
| 255 | - |
|
| 256 | - /** |
|
| 257 | - * Returns an ICache instance |
|
| 258 | - * |
|
| 259 | - * @return \OCP\ICache |
|
| 260 | - * @since 6.0.0 |
|
| 261 | - */ |
|
| 262 | - public function getCache(); |
|
| 263 | - |
|
| 264 | - /** |
|
| 265 | - * Returns an \OCP\CacheFactory instance |
|
| 266 | - * |
|
| 267 | - * @return \OCP\ICacheFactory |
|
| 268 | - * @since 7.0.0 |
|
| 269 | - */ |
|
| 270 | - public function getMemCacheFactory(); |
|
| 271 | - |
|
| 272 | - /** |
|
| 273 | - * Returns the current session |
|
| 274 | - * |
|
| 275 | - * @return \OCP\ISession |
|
| 276 | - * @since 6.0.0 |
|
| 277 | - */ |
|
| 278 | - public function getSession(); |
|
| 279 | - |
|
| 280 | - /** |
|
| 281 | - * Returns the activity manager |
|
| 282 | - * |
|
| 283 | - * @return \OCP\Activity\IManager |
|
| 284 | - * @since 6.0.0 |
|
| 285 | - */ |
|
| 286 | - public function getActivityManager(); |
|
| 287 | - |
|
| 288 | - /** |
|
| 289 | - * Returns the current session |
|
| 290 | - * |
|
| 291 | - * @return \OCP\IDBConnection |
|
| 292 | - * @since 6.0.0 |
|
| 293 | - */ |
|
| 294 | - public function getDatabaseConnection(); |
|
| 295 | - |
|
| 296 | - /** |
|
| 297 | - * Returns an avatar manager, used for avatar functionality |
|
| 298 | - * |
|
| 299 | - * @return \OCP\IAvatarManager |
|
| 300 | - * @since 6.0.0 |
|
| 301 | - */ |
|
| 302 | - public function getAvatarManager(); |
|
| 303 | - |
|
| 304 | - /** |
|
| 305 | - * Returns an job list for controlling background jobs |
|
| 306 | - * |
|
| 307 | - * @return \OCP\BackgroundJob\IJobList |
|
| 308 | - * @since 7.0.0 |
|
| 309 | - */ |
|
| 310 | - public function getJobList(); |
|
| 311 | - |
|
| 312 | - /** |
|
| 313 | - * Returns a logger instance |
|
| 314 | - * |
|
| 315 | - * @return \OCP\ILogger |
|
| 316 | - * @since 8.0.0 |
|
| 317 | - */ |
|
| 318 | - public function getLogger(); |
|
| 319 | - |
|
| 320 | - /** |
|
| 321 | - * returns a log factory instance |
|
| 322 | - * |
|
| 323 | - * @return ILogFactory |
|
| 324 | - * @since 14.0.0 |
|
| 325 | - */ |
|
| 326 | - public function getLogFactory(); |
|
| 327 | - |
|
| 328 | - /** |
|
| 329 | - * Returns a router for generating and matching urls |
|
| 330 | - * |
|
| 331 | - * @return \OCP\Route\IRouter |
|
| 332 | - * @since 7.0.0 |
|
| 333 | - */ |
|
| 334 | - public function getRouter(); |
|
| 335 | - |
|
| 336 | - /** |
|
| 337 | - * Returns a search instance |
|
| 338 | - * |
|
| 339 | - * @return \OCP\ISearch |
|
| 340 | - * @since 7.0.0 |
|
| 341 | - */ |
|
| 342 | - public function getSearch(); |
|
| 343 | - |
|
| 344 | - /** |
|
| 345 | - * Get the certificate manager for the user |
|
| 346 | - * |
|
| 347 | - * @param string $userId (optional) if not specified the current loggedin user is used, use null to get the system certificate manager |
|
| 348 | - * @return \OCP\ICertificateManager | null if $userId is null and no user is logged in |
|
| 349 | - * @since 8.0.0 |
|
| 350 | - */ |
|
| 351 | - public function getCertificateManager($userId = null); |
|
| 352 | - |
|
| 353 | - /** |
|
| 354 | - * Create a new event source |
|
| 355 | - * |
|
| 356 | - * @return \OCP\IEventSource |
|
| 357 | - * @since 8.0.0 |
|
| 358 | - */ |
|
| 359 | - public function createEventSource(); |
|
| 360 | - |
|
| 361 | - /** |
|
| 362 | - * Returns an instance of the HTTP client service |
|
| 363 | - * |
|
| 364 | - * @return \OCP\Http\Client\IClientService |
|
| 365 | - * @since 8.1.0 |
|
| 366 | - */ |
|
| 367 | - public function getHTTPClientService(); |
|
| 368 | - |
|
| 369 | - /** |
|
| 370 | - * Get the active event logger |
|
| 371 | - * |
|
| 372 | - * @return \OCP\Diagnostics\IEventLogger |
|
| 373 | - * @since 8.0.0 |
|
| 374 | - */ |
|
| 375 | - public function getEventLogger(); |
|
| 376 | - |
|
| 377 | - /** |
|
| 378 | - * Get the active query logger |
|
| 379 | - * |
|
| 380 | - * The returned logger only logs data when debug mode is enabled |
|
| 381 | - * |
|
| 382 | - * @return \OCP\Diagnostics\IQueryLogger |
|
| 383 | - * @since 8.0.0 |
|
| 384 | - */ |
|
| 385 | - public function getQueryLogger(); |
|
| 386 | - |
|
| 387 | - /** |
|
| 388 | - * Get the manager for temporary files and folders |
|
| 389 | - * |
|
| 390 | - * @return \OCP\ITempManager |
|
| 391 | - * @since 8.0.0 |
|
| 392 | - */ |
|
| 393 | - public function getTempManager(); |
|
| 394 | - |
|
| 395 | - /** |
|
| 396 | - * Get the app manager |
|
| 397 | - * |
|
| 398 | - * @return \OCP\App\IAppManager |
|
| 399 | - * @since 8.0.0 |
|
| 400 | - */ |
|
| 401 | - public function getAppManager(); |
|
| 402 | - |
|
| 403 | - /** |
|
| 404 | - * Get the webroot |
|
| 405 | - * |
|
| 406 | - * @return string |
|
| 407 | - * @since 8.0.0 |
|
| 408 | - */ |
|
| 409 | - public function getWebRoot(); |
|
| 410 | - |
|
| 411 | - /** |
|
| 412 | - * @return \OCP\Files\Config\IMountProviderCollection |
|
| 413 | - * @since 8.0.0 |
|
| 414 | - */ |
|
| 415 | - public function getMountProviderCollection(); |
|
| 416 | - |
|
| 417 | - /** |
|
| 418 | - * Get the IniWrapper |
|
| 419 | - * |
|
| 420 | - * @return \bantu\IniGetWrapper\IniGetWrapper |
|
| 421 | - * @since 8.0.0 |
|
| 422 | - */ |
|
| 423 | - public function getIniWrapper(); |
|
| 424 | - /** |
|
| 425 | - * @return \OCP\Command\IBus |
|
| 426 | - * @since 8.1.0 |
|
| 427 | - */ |
|
| 428 | - public function getCommandBus(); |
|
| 429 | - |
|
| 430 | - /** |
|
| 431 | - * Creates a new mailer |
|
| 432 | - * |
|
| 433 | - * @return \OCP\Mail\IMailer |
|
| 434 | - * @since 8.1.0 |
|
| 435 | - */ |
|
| 436 | - public function getMailer(); |
|
| 437 | - |
|
| 438 | - /** |
|
| 439 | - * Get the locking provider |
|
| 440 | - * |
|
| 441 | - * @return \OCP\Lock\ILockingProvider |
|
| 442 | - * @since 8.1.0 |
|
| 443 | - */ |
|
| 444 | - public function getLockingProvider(); |
|
| 445 | - |
|
| 446 | - /** |
|
| 447 | - * @return \OCP\Files\Mount\IMountManager |
|
| 448 | - * @since 8.2.0 |
|
| 449 | - */ |
|
| 450 | - public function getMountManager(); |
|
| 451 | - |
|
| 452 | - /** |
|
| 453 | - * Get the MimeTypeDetector |
|
| 454 | - * |
|
| 455 | - * @return \OCP\Files\IMimeTypeDetector |
|
| 456 | - * @since 8.2.0 |
|
| 457 | - */ |
|
| 458 | - public function getMimeTypeDetector(); |
|
| 459 | - |
|
| 460 | - /** |
|
| 461 | - * Get the MimeTypeLoader |
|
| 462 | - * |
|
| 463 | - * @return \OCP\Files\IMimeTypeLoader |
|
| 464 | - * @since 8.2.0 |
|
| 465 | - */ |
|
| 466 | - public function getMimeTypeLoader(); |
|
| 467 | - |
|
| 468 | - /** |
|
| 469 | - * Get the EventDispatcher |
|
| 470 | - * |
|
| 471 | - * @return EventDispatcherInterface |
|
| 472 | - * @since 8.2.0 |
|
| 473 | - */ |
|
| 474 | - public function getEventDispatcher(); |
|
| 475 | - |
|
| 476 | - /** |
|
| 477 | - * Get the Notification Manager |
|
| 478 | - * |
|
| 479 | - * @return \OCP\Notification\IManager |
|
| 480 | - * @since 9.0.0 |
|
| 481 | - */ |
|
| 482 | - public function getNotificationManager(); |
|
| 483 | - |
|
| 484 | - /** |
|
| 485 | - * @return \OCP\Comments\ICommentsManager |
|
| 486 | - * @since 9.0.0 |
|
| 487 | - */ |
|
| 488 | - public function getCommentsManager(); |
|
| 489 | - |
|
| 490 | - /** |
|
| 491 | - * Returns the system-tag manager |
|
| 492 | - * |
|
| 493 | - * @return \OCP\SystemTag\ISystemTagManager |
|
| 494 | - * |
|
| 495 | - * @since 9.0.0 |
|
| 496 | - */ |
|
| 497 | - public function getSystemTagManager(); |
|
| 498 | - |
|
| 499 | - /** |
|
| 500 | - * Returns the system-tag object mapper |
|
| 501 | - * |
|
| 502 | - * @return \OCP\SystemTag\ISystemTagObjectMapper |
|
| 503 | - * |
|
| 504 | - * @since 9.0.0 |
|
| 505 | - */ |
|
| 506 | - public function getSystemTagObjectMapper(); |
|
| 507 | - |
|
| 508 | - /** |
|
| 509 | - * Returns the share manager |
|
| 510 | - * |
|
| 511 | - * @return \OCP\Share\IManager |
|
| 512 | - * @since 9.0.0 |
|
| 513 | - */ |
|
| 514 | - public function getShareManager(); |
|
| 515 | - |
|
| 516 | - /** |
|
| 517 | - * @return IContentSecurityPolicyManager |
|
| 518 | - * @since 9.0.0 |
|
| 519 | - */ |
|
| 520 | - public function getContentSecurityPolicyManager(); |
|
| 521 | - |
|
| 522 | - /** |
|
| 523 | - * @return \OCP\IDateTimeZone |
|
| 524 | - * @since 8.0.0 |
|
| 525 | - */ |
|
| 526 | - public function getDateTimeZone(); |
|
| 527 | - |
|
| 528 | - /** |
|
| 529 | - * @return \OCP\IDateTimeFormatter |
|
| 530 | - * @since 8.0.0 |
|
| 531 | - */ |
|
| 532 | - public function getDateTimeFormatter(); |
|
| 533 | - |
|
| 534 | - /** |
|
| 535 | - * @return \OCP\Federation\ICloudIdManager |
|
| 536 | - * @since 12.0.0 |
|
| 537 | - */ |
|
| 538 | - public function getCloudIdManager(); |
|
| 539 | - |
|
| 540 | - /** |
|
| 541 | - * @return \OCP\GlobalScale\IConfig |
|
| 542 | - * @since 14.0.0 |
|
| 543 | - */ |
|
| 544 | - public function getGlobalScaleConfig(); |
|
| 545 | - |
|
| 546 | - /** |
|
| 547 | - * @return ICloudFederationFactory |
|
| 548 | - * @since 14.0.0 |
|
| 549 | - */ |
|
| 550 | - public function getCloudFederationFactory(); |
|
| 551 | - |
|
| 552 | - /** |
|
| 553 | - * @return ICloudFederationProviderManager |
|
| 554 | - * @since 14.0.0 |
|
| 555 | - */ |
|
| 556 | - public function getCloudFederationProviderManager(); |
|
| 557 | - |
|
| 558 | - /** |
|
| 559 | - * @return \OCP\Remote\Api\IApiFactory |
|
| 560 | - * @since 13.0.0 |
|
| 561 | - */ |
|
| 562 | - public function getRemoteApiFactory(); |
|
| 563 | - |
|
| 564 | - /** |
|
| 565 | - * @return \OCP\Remote\IInstanceFactory |
|
| 566 | - * @since 13.0.0 |
|
| 567 | - */ |
|
| 568 | - public function getRemoteInstanceFactory(); |
|
| 63 | + /** |
|
| 64 | + * The calendar manager will act as a broker between consumers for calendar information and |
|
| 65 | + * providers which actual deliver the calendar information. |
|
| 66 | + * |
|
| 67 | + * @return \OCP\Calendar\IManager |
|
| 68 | + * @since 13.0.0 |
|
| 69 | + */ |
|
| 70 | + public function getCalendarManager(); |
|
| 71 | + |
|
| 72 | + /** |
|
| 73 | + * The contacts manager will act as a broker between consumers for contacts information and |
|
| 74 | + * providers which actual deliver the contact information. |
|
| 75 | + * |
|
| 76 | + * @return \OCP\Contacts\IManager |
|
| 77 | + * @since 6.0.0 |
|
| 78 | + */ |
|
| 79 | + public function getContactsManager(); |
|
| 80 | + |
|
| 81 | + /** |
|
| 82 | + * The current request object holding all information about the request currently being processed |
|
| 83 | + * is returned from this method. |
|
| 84 | + * In case the current execution was not initiated by a web request null is returned |
|
| 85 | + * |
|
| 86 | + * @return \OCP\IRequest |
|
| 87 | + * @since 6.0.0 |
|
| 88 | + */ |
|
| 89 | + public function getRequest(); |
|
| 90 | + |
|
| 91 | + /** |
|
| 92 | + * Returns the preview manager which can create preview images for a given file |
|
| 93 | + * |
|
| 94 | + * @return \OCP\IPreview |
|
| 95 | + * @since 6.0.0 |
|
| 96 | + */ |
|
| 97 | + public function getPreviewManager(); |
|
| 98 | + |
|
| 99 | + /** |
|
| 100 | + * Returns the tag manager which can get and set tags for different object types |
|
| 101 | + * |
|
| 102 | + * @see \OCP\ITagManager::load() |
|
| 103 | + * @return \OCP\ITagManager |
|
| 104 | + * @since 6.0.0 |
|
| 105 | + */ |
|
| 106 | + public function getTagManager(); |
|
| 107 | + |
|
| 108 | + /** |
|
| 109 | + * Returns the root folder of ownCloud's data directory |
|
| 110 | + * |
|
| 111 | + * @return \OCP\Files\IRootFolder |
|
| 112 | + * @since 6.0.0 - between 6.0.0 and 8.0.0 this returned \OCP\Files\Folder |
|
| 113 | + */ |
|
| 114 | + public function getRootFolder(); |
|
| 115 | + |
|
| 116 | + /** |
|
| 117 | + * Returns a view to ownCloud's files folder |
|
| 118 | + * |
|
| 119 | + * @param string $userId user ID |
|
| 120 | + * @return \OCP\Files\Folder |
|
| 121 | + * @since 6.0.0 - parameter $userId was added in 8.0.0 |
|
| 122 | + * @see getUserFolder in \OCP\Files\IRootFolder |
|
| 123 | + */ |
|
| 124 | + public function getUserFolder($userId = null); |
|
| 125 | + |
|
| 126 | + /** |
|
| 127 | + * Returns an app-specific view in ownClouds data directory |
|
| 128 | + * |
|
| 129 | + * @return \OCP\Files\Folder |
|
| 130 | + * @since 6.0.0 |
|
| 131 | + * @deprecated 9.2.0 use IAppData |
|
| 132 | + */ |
|
| 133 | + public function getAppFolder(); |
|
| 134 | + |
|
| 135 | + /** |
|
| 136 | + * Returns a user manager |
|
| 137 | + * |
|
| 138 | + * @return \OCP\IUserManager |
|
| 139 | + * @since 8.0.0 |
|
| 140 | + */ |
|
| 141 | + public function getUserManager(); |
|
| 142 | + |
|
| 143 | + /** |
|
| 144 | + * Returns a group manager |
|
| 145 | + * |
|
| 146 | + * @return \OCP\IGroupManager |
|
| 147 | + * @since 8.0.0 |
|
| 148 | + */ |
|
| 149 | + public function getGroupManager(); |
|
| 150 | + |
|
| 151 | + /** |
|
| 152 | + * Returns the user session |
|
| 153 | + * |
|
| 154 | + * @return \OCP\IUserSession |
|
| 155 | + * @since 6.0.0 |
|
| 156 | + */ |
|
| 157 | + public function getUserSession(); |
|
| 158 | + |
|
| 159 | + /** |
|
| 160 | + * Returns the navigation manager |
|
| 161 | + * |
|
| 162 | + * @return \OCP\INavigationManager |
|
| 163 | + * @since 6.0.0 |
|
| 164 | + */ |
|
| 165 | + public function getNavigationManager(); |
|
| 166 | + |
|
| 167 | + /** |
|
| 168 | + * Returns the config manager |
|
| 169 | + * |
|
| 170 | + * @return \OCP\IConfig |
|
| 171 | + * @since 6.0.0 |
|
| 172 | + */ |
|
| 173 | + public function getConfig(); |
|
| 174 | + |
|
| 175 | + /** |
|
| 176 | + * Returns a Crypto instance |
|
| 177 | + * |
|
| 178 | + * @return \OCP\Security\ICrypto |
|
| 179 | + * @since 8.0.0 |
|
| 180 | + */ |
|
| 181 | + public function getCrypto(); |
|
| 182 | + |
|
| 183 | + /** |
|
| 184 | + * Returns a Hasher instance |
|
| 185 | + * |
|
| 186 | + * @return \OCP\Security\IHasher |
|
| 187 | + * @since 8.0.0 |
|
| 188 | + */ |
|
| 189 | + public function getHasher(); |
|
| 190 | + |
|
| 191 | + /** |
|
| 192 | + * Returns a SecureRandom instance |
|
| 193 | + * |
|
| 194 | + * @return \OCP\Security\ISecureRandom |
|
| 195 | + * @since 8.1.0 |
|
| 196 | + */ |
|
| 197 | + public function getSecureRandom(); |
|
| 198 | + |
|
| 199 | + /** |
|
| 200 | + * Returns a CredentialsManager instance |
|
| 201 | + * |
|
| 202 | + * @return \OCP\Security\ICredentialsManager |
|
| 203 | + * @since 9.0.0 |
|
| 204 | + */ |
|
| 205 | + public function getCredentialsManager(); |
|
| 206 | + |
|
| 207 | + /** |
|
| 208 | + * Returns the app config manager |
|
| 209 | + * |
|
| 210 | + * @return \OCP\IAppConfig |
|
| 211 | + * @since 7.0.0 |
|
| 212 | + */ |
|
| 213 | + public function getAppConfig(); |
|
| 214 | + |
|
| 215 | + /** |
|
| 216 | + * @return \OCP\L10N\IFactory |
|
| 217 | + * @since 8.2.0 |
|
| 218 | + */ |
|
| 219 | + public function getL10NFactory(); |
|
| 220 | + |
|
| 221 | + /** |
|
| 222 | + * get an L10N instance |
|
| 223 | + * @param string $app appid |
|
| 224 | + * @param string $lang |
|
| 225 | + * @return \OCP\IL10N |
|
| 226 | + * @since 6.0.0 - parameter $lang was added in 8.0.0 |
|
| 227 | + */ |
|
| 228 | + public function getL10N($app, $lang = null); |
|
| 229 | + |
|
| 230 | + /** |
|
| 231 | + * @return \OC\Encryption\Manager |
|
| 232 | + * @since 8.1.0 |
|
| 233 | + */ |
|
| 234 | + public function getEncryptionManager(); |
|
| 235 | + |
|
| 236 | + /** |
|
| 237 | + * @return \OC\Encryption\File |
|
| 238 | + * @since 8.1.0 |
|
| 239 | + */ |
|
| 240 | + public function getEncryptionFilesHelper(); |
|
| 241 | + |
|
| 242 | + /** |
|
| 243 | + * @return \OCP\Encryption\Keys\IStorage |
|
| 244 | + * @since 8.1.0 |
|
| 245 | + */ |
|
| 246 | + public function getEncryptionKeyStorage(); |
|
| 247 | + |
|
| 248 | + /** |
|
| 249 | + * Returns the URL generator |
|
| 250 | + * |
|
| 251 | + * @return \OCP\IURLGenerator |
|
| 252 | + * @since 6.0.0 |
|
| 253 | + */ |
|
| 254 | + public function getURLGenerator(); |
|
| 255 | + |
|
| 256 | + /** |
|
| 257 | + * Returns an ICache instance |
|
| 258 | + * |
|
| 259 | + * @return \OCP\ICache |
|
| 260 | + * @since 6.0.0 |
|
| 261 | + */ |
|
| 262 | + public function getCache(); |
|
| 263 | + |
|
| 264 | + /** |
|
| 265 | + * Returns an \OCP\CacheFactory instance |
|
| 266 | + * |
|
| 267 | + * @return \OCP\ICacheFactory |
|
| 268 | + * @since 7.0.0 |
|
| 269 | + */ |
|
| 270 | + public function getMemCacheFactory(); |
|
| 271 | + |
|
| 272 | + /** |
|
| 273 | + * Returns the current session |
|
| 274 | + * |
|
| 275 | + * @return \OCP\ISession |
|
| 276 | + * @since 6.0.0 |
|
| 277 | + */ |
|
| 278 | + public function getSession(); |
|
| 279 | + |
|
| 280 | + /** |
|
| 281 | + * Returns the activity manager |
|
| 282 | + * |
|
| 283 | + * @return \OCP\Activity\IManager |
|
| 284 | + * @since 6.0.0 |
|
| 285 | + */ |
|
| 286 | + public function getActivityManager(); |
|
| 287 | + |
|
| 288 | + /** |
|
| 289 | + * Returns the current session |
|
| 290 | + * |
|
| 291 | + * @return \OCP\IDBConnection |
|
| 292 | + * @since 6.0.0 |
|
| 293 | + */ |
|
| 294 | + public function getDatabaseConnection(); |
|
| 295 | + |
|
| 296 | + /** |
|
| 297 | + * Returns an avatar manager, used for avatar functionality |
|
| 298 | + * |
|
| 299 | + * @return \OCP\IAvatarManager |
|
| 300 | + * @since 6.0.0 |
|
| 301 | + */ |
|
| 302 | + public function getAvatarManager(); |
|
| 303 | + |
|
| 304 | + /** |
|
| 305 | + * Returns an job list for controlling background jobs |
|
| 306 | + * |
|
| 307 | + * @return \OCP\BackgroundJob\IJobList |
|
| 308 | + * @since 7.0.0 |
|
| 309 | + */ |
|
| 310 | + public function getJobList(); |
|
| 311 | + |
|
| 312 | + /** |
|
| 313 | + * Returns a logger instance |
|
| 314 | + * |
|
| 315 | + * @return \OCP\ILogger |
|
| 316 | + * @since 8.0.0 |
|
| 317 | + */ |
|
| 318 | + public function getLogger(); |
|
| 319 | + |
|
| 320 | + /** |
|
| 321 | + * returns a log factory instance |
|
| 322 | + * |
|
| 323 | + * @return ILogFactory |
|
| 324 | + * @since 14.0.0 |
|
| 325 | + */ |
|
| 326 | + public function getLogFactory(); |
|
| 327 | + |
|
| 328 | + /** |
|
| 329 | + * Returns a router for generating and matching urls |
|
| 330 | + * |
|
| 331 | + * @return \OCP\Route\IRouter |
|
| 332 | + * @since 7.0.0 |
|
| 333 | + */ |
|
| 334 | + public function getRouter(); |
|
| 335 | + |
|
| 336 | + /** |
|
| 337 | + * Returns a search instance |
|
| 338 | + * |
|
| 339 | + * @return \OCP\ISearch |
|
| 340 | + * @since 7.0.0 |
|
| 341 | + */ |
|
| 342 | + public function getSearch(); |
|
| 343 | + |
|
| 344 | + /** |
|
| 345 | + * Get the certificate manager for the user |
|
| 346 | + * |
|
| 347 | + * @param string $userId (optional) if not specified the current loggedin user is used, use null to get the system certificate manager |
|
| 348 | + * @return \OCP\ICertificateManager | null if $userId is null and no user is logged in |
|
| 349 | + * @since 8.0.0 |
|
| 350 | + */ |
|
| 351 | + public function getCertificateManager($userId = null); |
|
| 352 | + |
|
| 353 | + /** |
|
| 354 | + * Create a new event source |
|
| 355 | + * |
|
| 356 | + * @return \OCP\IEventSource |
|
| 357 | + * @since 8.0.0 |
|
| 358 | + */ |
|
| 359 | + public function createEventSource(); |
|
| 360 | + |
|
| 361 | + /** |
|
| 362 | + * Returns an instance of the HTTP client service |
|
| 363 | + * |
|
| 364 | + * @return \OCP\Http\Client\IClientService |
|
| 365 | + * @since 8.1.0 |
|
| 366 | + */ |
|
| 367 | + public function getHTTPClientService(); |
|
| 368 | + |
|
| 369 | + /** |
|
| 370 | + * Get the active event logger |
|
| 371 | + * |
|
| 372 | + * @return \OCP\Diagnostics\IEventLogger |
|
| 373 | + * @since 8.0.0 |
|
| 374 | + */ |
|
| 375 | + public function getEventLogger(); |
|
| 376 | + |
|
| 377 | + /** |
|
| 378 | + * Get the active query logger |
|
| 379 | + * |
|
| 380 | + * The returned logger only logs data when debug mode is enabled |
|
| 381 | + * |
|
| 382 | + * @return \OCP\Diagnostics\IQueryLogger |
|
| 383 | + * @since 8.0.0 |
|
| 384 | + */ |
|
| 385 | + public function getQueryLogger(); |
|
| 386 | + |
|
| 387 | + /** |
|
| 388 | + * Get the manager for temporary files and folders |
|
| 389 | + * |
|
| 390 | + * @return \OCP\ITempManager |
|
| 391 | + * @since 8.0.0 |
|
| 392 | + */ |
|
| 393 | + public function getTempManager(); |
|
| 394 | + |
|
| 395 | + /** |
|
| 396 | + * Get the app manager |
|
| 397 | + * |
|
| 398 | + * @return \OCP\App\IAppManager |
|
| 399 | + * @since 8.0.0 |
|
| 400 | + */ |
|
| 401 | + public function getAppManager(); |
|
| 402 | + |
|
| 403 | + /** |
|
| 404 | + * Get the webroot |
|
| 405 | + * |
|
| 406 | + * @return string |
|
| 407 | + * @since 8.0.0 |
|
| 408 | + */ |
|
| 409 | + public function getWebRoot(); |
|
| 410 | + |
|
| 411 | + /** |
|
| 412 | + * @return \OCP\Files\Config\IMountProviderCollection |
|
| 413 | + * @since 8.0.0 |
|
| 414 | + */ |
|
| 415 | + public function getMountProviderCollection(); |
|
| 416 | + |
|
| 417 | + /** |
|
| 418 | + * Get the IniWrapper |
|
| 419 | + * |
|
| 420 | + * @return \bantu\IniGetWrapper\IniGetWrapper |
|
| 421 | + * @since 8.0.0 |
|
| 422 | + */ |
|
| 423 | + public function getIniWrapper(); |
|
| 424 | + /** |
|
| 425 | + * @return \OCP\Command\IBus |
|
| 426 | + * @since 8.1.0 |
|
| 427 | + */ |
|
| 428 | + public function getCommandBus(); |
|
| 429 | + |
|
| 430 | + /** |
|
| 431 | + * Creates a new mailer |
|
| 432 | + * |
|
| 433 | + * @return \OCP\Mail\IMailer |
|
| 434 | + * @since 8.1.0 |
|
| 435 | + */ |
|
| 436 | + public function getMailer(); |
|
| 437 | + |
|
| 438 | + /** |
|
| 439 | + * Get the locking provider |
|
| 440 | + * |
|
| 441 | + * @return \OCP\Lock\ILockingProvider |
|
| 442 | + * @since 8.1.0 |
|
| 443 | + */ |
|
| 444 | + public function getLockingProvider(); |
|
| 445 | + |
|
| 446 | + /** |
|
| 447 | + * @return \OCP\Files\Mount\IMountManager |
|
| 448 | + * @since 8.2.0 |
|
| 449 | + */ |
|
| 450 | + public function getMountManager(); |
|
| 451 | + |
|
| 452 | + /** |
|
| 453 | + * Get the MimeTypeDetector |
|
| 454 | + * |
|
| 455 | + * @return \OCP\Files\IMimeTypeDetector |
|
| 456 | + * @since 8.2.0 |
|
| 457 | + */ |
|
| 458 | + public function getMimeTypeDetector(); |
|
| 459 | + |
|
| 460 | + /** |
|
| 461 | + * Get the MimeTypeLoader |
|
| 462 | + * |
|
| 463 | + * @return \OCP\Files\IMimeTypeLoader |
|
| 464 | + * @since 8.2.0 |
|
| 465 | + */ |
|
| 466 | + public function getMimeTypeLoader(); |
|
| 467 | + |
|
| 468 | + /** |
|
| 469 | + * Get the EventDispatcher |
|
| 470 | + * |
|
| 471 | + * @return EventDispatcherInterface |
|
| 472 | + * @since 8.2.0 |
|
| 473 | + */ |
|
| 474 | + public function getEventDispatcher(); |
|
| 475 | + |
|
| 476 | + /** |
|
| 477 | + * Get the Notification Manager |
|
| 478 | + * |
|
| 479 | + * @return \OCP\Notification\IManager |
|
| 480 | + * @since 9.0.0 |
|
| 481 | + */ |
|
| 482 | + public function getNotificationManager(); |
|
| 483 | + |
|
| 484 | + /** |
|
| 485 | + * @return \OCP\Comments\ICommentsManager |
|
| 486 | + * @since 9.0.0 |
|
| 487 | + */ |
|
| 488 | + public function getCommentsManager(); |
|
| 489 | + |
|
| 490 | + /** |
|
| 491 | + * Returns the system-tag manager |
|
| 492 | + * |
|
| 493 | + * @return \OCP\SystemTag\ISystemTagManager |
|
| 494 | + * |
|
| 495 | + * @since 9.0.0 |
|
| 496 | + */ |
|
| 497 | + public function getSystemTagManager(); |
|
| 498 | + |
|
| 499 | + /** |
|
| 500 | + * Returns the system-tag object mapper |
|
| 501 | + * |
|
| 502 | + * @return \OCP\SystemTag\ISystemTagObjectMapper |
|
| 503 | + * |
|
| 504 | + * @since 9.0.0 |
|
| 505 | + */ |
|
| 506 | + public function getSystemTagObjectMapper(); |
|
| 507 | + |
|
| 508 | + /** |
|
| 509 | + * Returns the share manager |
|
| 510 | + * |
|
| 511 | + * @return \OCP\Share\IManager |
|
| 512 | + * @since 9.0.0 |
|
| 513 | + */ |
|
| 514 | + public function getShareManager(); |
|
| 515 | + |
|
| 516 | + /** |
|
| 517 | + * @return IContentSecurityPolicyManager |
|
| 518 | + * @since 9.0.0 |
|
| 519 | + */ |
|
| 520 | + public function getContentSecurityPolicyManager(); |
|
| 521 | + |
|
| 522 | + /** |
|
| 523 | + * @return \OCP\IDateTimeZone |
|
| 524 | + * @since 8.0.0 |
|
| 525 | + */ |
|
| 526 | + public function getDateTimeZone(); |
|
| 527 | + |
|
| 528 | + /** |
|
| 529 | + * @return \OCP\IDateTimeFormatter |
|
| 530 | + * @since 8.0.0 |
|
| 531 | + */ |
|
| 532 | + public function getDateTimeFormatter(); |
|
| 533 | + |
|
| 534 | + /** |
|
| 535 | + * @return \OCP\Federation\ICloudIdManager |
|
| 536 | + * @since 12.0.0 |
|
| 537 | + */ |
|
| 538 | + public function getCloudIdManager(); |
|
| 539 | + |
|
| 540 | + /** |
|
| 541 | + * @return \OCP\GlobalScale\IConfig |
|
| 542 | + * @since 14.0.0 |
|
| 543 | + */ |
|
| 544 | + public function getGlobalScaleConfig(); |
|
| 545 | + |
|
| 546 | + /** |
|
| 547 | + * @return ICloudFederationFactory |
|
| 548 | + * @since 14.0.0 |
|
| 549 | + */ |
|
| 550 | + public function getCloudFederationFactory(); |
|
| 551 | + |
|
| 552 | + /** |
|
| 553 | + * @return ICloudFederationProviderManager |
|
| 554 | + * @since 14.0.0 |
|
| 555 | + */ |
|
| 556 | + public function getCloudFederationProviderManager(); |
|
| 557 | + |
|
| 558 | + /** |
|
| 559 | + * @return \OCP\Remote\Api\IApiFactory |
|
| 560 | + * @since 13.0.0 |
|
| 561 | + */ |
|
| 562 | + public function getRemoteApiFactory(); |
|
| 563 | + |
|
| 564 | + /** |
|
| 565 | + * @return \OCP\Remote\IInstanceFactory |
|
| 566 | + * @since 13.0.0 |
|
| 567 | + */ |
|
| 568 | + public function getRemoteInstanceFactory(); |
|
| 569 | 569 | } |
@@ -32,17 +32,17 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | class AuthenticationFailedException extends HintException { |
| 34 | 34 | |
| 35 | - /** |
|
| 36 | - * BadRequestException constructor. |
|
| 37 | - * |
|
| 38 | - * @since 14.0.0 |
|
| 39 | - * |
|
| 40 | - */ |
|
| 41 | - public function __construct() { |
|
| 42 | - $l = \OC::$server->getL10N('federation'); |
|
| 43 | - $message = 'Authentication failed, wrong token or provider ID given'; |
|
| 44 | - $hint = $l->t('Authentication failed, wrong token or provider ID given'); |
|
| 45 | - parent::__construct($message, $hint); |
|
| 46 | - } |
|
| 35 | + /** |
|
| 36 | + * BadRequestException constructor. |
|
| 37 | + * |
|
| 38 | + * @since 14.0.0 |
|
| 39 | + * |
|
| 40 | + */ |
|
| 41 | + public function __construct() { |
|
| 42 | + $l = \OC::$server->getL10N('federation'); |
|
| 43 | + $message = 'Authentication failed, wrong token or provider ID given'; |
|
| 44 | + $hint = $l->t('Authentication failed, wrong token or provider ID given'); |
|
| 45 | + parent::__construct($message, $hint); |
|
| 46 | + } |
|
| 47 | 47 | |
| 48 | 48 | } |