@@ -30,19 +30,19 @@ |
||
| 30 | 30 | |
| 31 | 31 | class AddCleanupUpdaterBackupsJob implements IRepairStep { |
| 32 | 32 | |
| 33 | - /** @var IJobList */ |
|
| 34 | - protected $jobList; |
|
| 33 | + /** @var IJobList */ |
|
| 34 | + protected $jobList; |
|
| 35 | 35 | |
| 36 | - public function __construct(IJobList $jobList) { |
|
| 37 | - $this->jobList = $jobList; |
|
| 38 | - } |
|
| 36 | + public function __construct(IJobList $jobList) { |
|
| 37 | + $this->jobList = $jobList; |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - public function getName() { |
|
| 41 | - return 'Queue a one-time job to cleanup old backups of the updater'; |
|
| 42 | - } |
|
| 40 | + public function getName() { |
|
| 41 | + return 'Queue a one-time job to cleanup old backups of the updater'; |
|
| 42 | + } |
|
| 43 | 43 | |
| 44 | - public function run(IOutput $output) { |
|
| 45 | - $this->jobList->add(BackgroundCleanupUpdaterBackupsJob::class); |
|
| 46 | - } |
|
| 44 | + public function run(IOutput $output) { |
|
| 45 | + $this->jobList->add(BackgroundCleanupUpdaterBackupsJob::class); |
|
| 46 | + } |
|
| 47 | 47 | } |
| 48 | 48 | |
@@ -184,7 +184,7 @@ |
||
| 184 | 184 | if (is_array($scope)) { |
| 185 | 185 | parent::setScope(json_encode($scope)); |
| 186 | 186 | } else { |
| 187 | - parent::setScope((string)$scope); |
|
| 187 | + parent::setScope((string) $scope); |
|
| 188 | 188 | } |
| 189 | 189 | } |
| 190 | 190 | |
@@ -48,188 +48,188 @@ |
||
| 48 | 48 | * @method bool getPasswordInvalid() |
| 49 | 49 | */ |
| 50 | 50 | class PublicKeyToken extends Entity implements INamedToken, IWipeableToken { |
| 51 | - public const VERSION = 2; |
|
| 52 | - |
|
| 53 | - /** @var string user UID */ |
|
| 54 | - protected $uid; |
|
| 55 | - |
|
| 56 | - /** @var string login name used for generating the token */ |
|
| 57 | - protected $loginName; |
|
| 58 | - |
|
| 59 | - /** @var string encrypted user password */ |
|
| 60 | - protected $password; |
|
| 61 | - |
|
| 62 | - /** @var string token name (e.g. browser/OS) */ |
|
| 63 | - protected $name; |
|
| 64 | - |
|
| 65 | - /** @var string */ |
|
| 66 | - protected $token; |
|
| 67 | - |
|
| 68 | - /** @var int */ |
|
| 69 | - protected $type; |
|
| 70 | - |
|
| 71 | - /** @var int */ |
|
| 72 | - protected $remember; |
|
| 73 | - |
|
| 74 | - /** @var int */ |
|
| 75 | - protected $lastActivity; |
|
| 76 | - |
|
| 77 | - /** @var int */ |
|
| 78 | - protected $lastCheck; |
|
| 79 | - |
|
| 80 | - /** @var string */ |
|
| 81 | - protected $scope; |
|
| 82 | - |
|
| 83 | - /** @var int */ |
|
| 84 | - protected $expires; |
|
| 85 | - |
|
| 86 | - /** @var string */ |
|
| 87 | - protected $privateKey; |
|
| 88 | - |
|
| 89 | - /** @var string */ |
|
| 90 | - protected $publicKey; |
|
| 91 | - |
|
| 92 | - /** @var int */ |
|
| 93 | - protected $version; |
|
| 94 | - |
|
| 95 | - /** @var bool */ |
|
| 96 | - protected $passwordInvalid; |
|
| 97 | - |
|
| 98 | - public function __construct() { |
|
| 99 | - $this->addType('uid', 'string'); |
|
| 100 | - $this->addType('loginName', 'string'); |
|
| 101 | - $this->addType('password', 'string'); |
|
| 102 | - $this->addType('name', 'string'); |
|
| 103 | - $this->addType('token', 'string'); |
|
| 104 | - $this->addType('type', 'int'); |
|
| 105 | - $this->addType('remember', 'int'); |
|
| 106 | - $this->addType('lastActivity', 'int'); |
|
| 107 | - $this->addType('lastCheck', 'int'); |
|
| 108 | - $this->addType('scope', 'string'); |
|
| 109 | - $this->addType('expires', 'int'); |
|
| 110 | - $this->addType('publicKey', 'string'); |
|
| 111 | - $this->addType('privateKey', 'string'); |
|
| 112 | - $this->addType('version', 'int'); |
|
| 113 | - $this->addType('passwordInvalid', 'bool'); |
|
| 114 | - } |
|
| 115 | - |
|
| 116 | - public function getId(): int { |
|
| 117 | - return $this->id; |
|
| 118 | - } |
|
| 119 | - |
|
| 120 | - public function getUID(): string { |
|
| 121 | - return $this->uid; |
|
| 122 | - } |
|
| 123 | - |
|
| 124 | - /** |
|
| 125 | - * Get the login name used when generating the token |
|
| 126 | - * |
|
| 127 | - * @return string |
|
| 128 | - */ |
|
| 129 | - public function getLoginName(): string { |
|
| 130 | - return parent::getLoginName(); |
|
| 131 | - } |
|
| 132 | - |
|
| 133 | - /** |
|
| 134 | - * Get the (encrypted) login password |
|
| 135 | - * |
|
| 136 | - * @return string|null |
|
| 137 | - */ |
|
| 138 | - public function getPassword() { |
|
| 139 | - return parent::getPassword(); |
|
| 140 | - } |
|
| 141 | - |
|
| 142 | - public function jsonSerialize() { |
|
| 143 | - return [ |
|
| 144 | - 'id' => $this->id, |
|
| 145 | - 'name' => $this->name, |
|
| 146 | - 'lastActivity' => $this->lastActivity, |
|
| 147 | - 'type' => $this->type, |
|
| 148 | - 'scope' => $this->getScopeAsArray() |
|
| 149 | - ]; |
|
| 150 | - } |
|
| 151 | - |
|
| 152 | - /** |
|
| 153 | - * Get the timestamp of the last password check |
|
| 154 | - * |
|
| 155 | - * @return int |
|
| 156 | - */ |
|
| 157 | - public function getLastCheck(): int { |
|
| 158 | - return parent::getLastCheck(); |
|
| 159 | - } |
|
| 160 | - |
|
| 161 | - /** |
|
| 162 | - * Get the timestamp of the last password check |
|
| 163 | - * |
|
| 164 | - * @param int $time |
|
| 165 | - */ |
|
| 166 | - public function setLastCheck(int $time) { |
|
| 167 | - parent::setLastCheck($time); |
|
| 168 | - } |
|
| 169 | - |
|
| 170 | - public function getScope(): string { |
|
| 171 | - $scope = parent::getScope(); |
|
| 172 | - if ($scope === null) { |
|
| 173 | - return ''; |
|
| 174 | - } |
|
| 175 | - |
|
| 176 | - return $scope; |
|
| 177 | - } |
|
| 178 | - |
|
| 179 | - public function getScopeAsArray(): array { |
|
| 180 | - $scope = json_decode($this->getScope(), true); |
|
| 181 | - if (!$scope) { |
|
| 182 | - return [ |
|
| 183 | - 'filesystem' => true |
|
| 184 | - ]; |
|
| 185 | - } |
|
| 186 | - return $scope; |
|
| 187 | - } |
|
| 188 | - |
|
| 189 | - public function setScope($scope) { |
|
| 190 | - if (is_array($scope)) { |
|
| 191 | - parent::setScope(json_encode($scope)); |
|
| 192 | - } else { |
|
| 193 | - parent::setScope((string)$scope); |
|
| 194 | - } |
|
| 195 | - } |
|
| 196 | - |
|
| 197 | - public function getName(): string { |
|
| 198 | - return parent::getName(); |
|
| 199 | - } |
|
| 200 | - |
|
| 201 | - public function setName(string $name): void { |
|
| 202 | - parent::setName($name); |
|
| 203 | - } |
|
| 204 | - |
|
| 205 | - public function getRemember(): int { |
|
| 206 | - return parent::getRemember(); |
|
| 207 | - } |
|
| 208 | - |
|
| 209 | - public function setToken(string $token) { |
|
| 210 | - parent::setToken($token); |
|
| 211 | - } |
|
| 212 | - |
|
| 213 | - public function setPassword(string $password = null) { |
|
| 214 | - parent::setPassword($password); |
|
| 215 | - } |
|
| 216 | - |
|
| 217 | - public function setExpires($expires) { |
|
| 218 | - parent::setExpires($expires); |
|
| 219 | - } |
|
| 220 | - |
|
| 221 | - /** |
|
| 222 | - * @return int|null |
|
| 223 | - */ |
|
| 224 | - public function getExpires() { |
|
| 225 | - return parent::getExpires(); |
|
| 226 | - } |
|
| 227 | - |
|
| 228 | - public function setPasswordInvalid(bool $invalid) { |
|
| 229 | - parent::setPasswordInvalid($invalid); |
|
| 230 | - } |
|
| 231 | - |
|
| 232 | - public function wipe(): void { |
|
| 233 | - parent::setType(IToken::WIPE_TOKEN); |
|
| 234 | - } |
|
| 51 | + public const VERSION = 2; |
|
| 52 | + |
|
| 53 | + /** @var string user UID */ |
|
| 54 | + protected $uid; |
|
| 55 | + |
|
| 56 | + /** @var string login name used for generating the token */ |
|
| 57 | + protected $loginName; |
|
| 58 | + |
|
| 59 | + /** @var string encrypted user password */ |
|
| 60 | + protected $password; |
|
| 61 | + |
|
| 62 | + /** @var string token name (e.g. browser/OS) */ |
|
| 63 | + protected $name; |
|
| 64 | + |
|
| 65 | + /** @var string */ |
|
| 66 | + protected $token; |
|
| 67 | + |
|
| 68 | + /** @var int */ |
|
| 69 | + protected $type; |
|
| 70 | + |
|
| 71 | + /** @var int */ |
|
| 72 | + protected $remember; |
|
| 73 | + |
|
| 74 | + /** @var int */ |
|
| 75 | + protected $lastActivity; |
|
| 76 | + |
|
| 77 | + /** @var int */ |
|
| 78 | + protected $lastCheck; |
|
| 79 | + |
|
| 80 | + /** @var string */ |
|
| 81 | + protected $scope; |
|
| 82 | + |
|
| 83 | + /** @var int */ |
|
| 84 | + protected $expires; |
|
| 85 | + |
|
| 86 | + /** @var string */ |
|
| 87 | + protected $privateKey; |
|
| 88 | + |
|
| 89 | + /** @var string */ |
|
| 90 | + protected $publicKey; |
|
| 91 | + |
|
| 92 | + /** @var int */ |
|
| 93 | + protected $version; |
|
| 94 | + |
|
| 95 | + /** @var bool */ |
|
| 96 | + protected $passwordInvalid; |
|
| 97 | + |
|
| 98 | + public function __construct() { |
|
| 99 | + $this->addType('uid', 'string'); |
|
| 100 | + $this->addType('loginName', 'string'); |
|
| 101 | + $this->addType('password', 'string'); |
|
| 102 | + $this->addType('name', 'string'); |
|
| 103 | + $this->addType('token', 'string'); |
|
| 104 | + $this->addType('type', 'int'); |
|
| 105 | + $this->addType('remember', 'int'); |
|
| 106 | + $this->addType('lastActivity', 'int'); |
|
| 107 | + $this->addType('lastCheck', 'int'); |
|
| 108 | + $this->addType('scope', 'string'); |
|
| 109 | + $this->addType('expires', 'int'); |
|
| 110 | + $this->addType('publicKey', 'string'); |
|
| 111 | + $this->addType('privateKey', 'string'); |
|
| 112 | + $this->addType('version', 'int'); |
|
| 113 | + $this->addType('passwordInvalid', 'bool'); |
|
| 114 | + } |
|
| 115 | + |
|
| 116 | + public function getId(): int { |
|
| 117 | + return $this->id; |
|
| 118 | + } |
|
| 119 | + |
|
| 120 | + public function getUID(): string { |
|
| 121 | + return $this->uid; |
|
| 122 | + } |
|
| 123 | + |
|
| 124 | + /** |
|
| 125 | + * Get the login name used when generating the token |
|
| 126 | + * |
|
| 127 | + * @return string |
|
| 128 | + */ |
|
| 129 | + public function getLoginName(): string { |
|
| 130 | + return parent::getLoginName(); |
|
| 131 | + } |
|
| 132 | + |
|
| 133 | + /** |
|
| 134 | + * Get the (encrypted) login password |
|
| 135 | + * |
|
| 136 | + * @return string|null |
|
| 137 | + */ |
|
| 138 | + public function getPassword() { |
|
| 139 | + return parent::getPassword(); |
|
| 140 | + } |
|
| 141 | + |
|
| 142 | + public function jsonSerialize() { |
|
| 143 | + return [ |
|
| 144 | + 'id' => $this->id, |
|
| 145 | + 'name' => $this->name, |
|
| 146 | + 'lastActivity' => $this->lastActivity, |
|
| 147 | + 'type' => $this->type, |
|
| 148 | + 'scope' => $this->getScopeAsArray() |
|
| 149 | + ]; |
|
| 150 | + } |
|
| 151 | + |
|
| 152 | + /** |
|
| 153 | + * Get the timestamp of the last password check |
|
| 154 | + * |
|
| 155 | + * @return int |
|
| 156 | + */ |
|
| 157 | + public function getLastCheck(): int { |
|
| 158 | + return parent::getLastCheck(); |
|
| 159 | + } |
|
| 160 | + |
|
| 161 | + /** |
|
| 162 | + * Get the timestamp of the last password check |
|
| 163 | + * |
|
| 164 | + * @param int $time |
|
| 165 | + */ |
|
| 166 | + public function setLastCheck(int $time) { |
|
| 167 | + parent::setLastCheck($time); |
|
| 168 | + } |
|
| 169 | + |
|
| 170 | + public function getScope(): string { |
|
| 171 | + $scope = parent::getScope(); |
|
| 172 | + if ($scope === null) { |
|
| 173 | + return ''; |
|
| 174 | + } |
|
| 175 | + |
|
| 176 | + return $scope; |
|
| 177 | + } |
|
| 178 | + |
|
| 179 | + public function getScopeAsArray(): array { |
|
| 180 | + $scope = json_decode($this->getScope(), true); |
|
| 181 | + if (!$scope) { |
|
| 182 | + return [ |
|
| 183 | + 'filesystem' => true |
|
| 184 | + ]; |
|
| 185 | + } |
|
| 186 | + return $scope; |
|
| 187 | + } |
|
| 188 | + |
|
| 189 | + public function setScope($scope) { |
|
| 190 | + if (is_array($scope)) { |
|
| 191 | + parent::setScope(json_encode($scope)); |
|
| 192 | + } else { |
|
| 193 | + parent::setScope((string)$scope); |
|
| 194 | + } |
|
| 195 | + } |
|
| 196 | + |
|
| 197 | + public function getName(): string { |
|
| 198 | + return parent::getName(); |
|
| 199 | + } |
|
| 200 | + |
|
| 201 | + public function setName(string $name): void { |
|
| 202 | + parent::setName($name); |
|
| 203 | + } |
|
| 204 | + |
|
| 205 | + public function getRemember(): int { |
|
| 206 | + return parent::getRemember(); |
|
| 207 | + } |
|
| 208 | + |
|
| 209 | + public function setToken(string $token) { |
|
| 210 | + parent::setToken($token); |
|
| 211 | + } |
|
| 212 | + |
|
| 213 | + public function setPassword(string $password = null) { |
|
| 214 | + parent::setPassword($password); |
|
| 215 | + } |
|
| 216 | + |
|
| 217 | + public function setExpires($expires) { |
|
| 218 | + parent::setExpires($expires); |
|
| 219 | + } |
|
| 220 | + |
|
| 221 | + /** |
|
| 222 | + * @return int|null |
|
| 223 | + */ |
|
| 224 | + public function getExpires() { |
|
| 225 | + return parent::getExpires(); |
|
| 226 | + } |
|
| 227 | + |
|
| 228 | + public function setPasswordInvalid(bool $invalid) { |
|
| 229 | + parent::setPasswordInvalid($invalid); |
|
| 230 | + } |
|
| 231 | + |
|
| 232 | + public function wipe(): void { |
|
| 233 | + parent::setType(IToken::WIPE_TOKEN); |
|
| 234 | + } |
|
| 235 | 235 | } |
@@ -31,50 +31,50 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | interface IResource { |
| 33 | 33 | |
| 34 | - /** |
|
| 35 | - * get the resource id |
|
| 36 | - * |
|
| 37 | - * This id has to be unique within the backend |
|
| 38 | - * |
|
| 39 | - * @return string |
|
| 40 | - * @since 14.0.0 |
|
| 41 | - */ |
|
| 42 | - public function getId():string; |
|
| 34 | + /** |
|
| 35 | + * get the resource id |
|
| 36 | + * |
|
| 37 | + * This id has to be unique within the backend |
|
| 38 | + * |
|
| 39 | + * @return string |
|
| 40 | + * @since 14.0.0 |
|
| 41 | + */ |
|
| 42 | + public function getId():string; |
|
| 43 | 43 | |
| 44 | - /** |
|
| 45 | - * get the display name for a resource |
|
| 46 | - * |
|
| 47 | - * @return string |
|
| 48 | - * @since 14.0.0 |
|
| 49 | - */ |
|
| 50 | - public function getDisplayName():string; |
|
| 44 | + /** |
|
| 45 | + * get the display name for a resource |
|
| 46 | + * |
|
| 47 | + * @return string |
|
| 48 | + * @since 14.0.0 |
|
| 49 | + */ |
|
| 50 | + public function getDisplayName():string; |
|
| 51 | 51 | |
| 52 | - /** |
|
| 53 | - * Get a list of groupIds that are allowed to access this resource |
|
| 54 | - * |
|
| 55 | - * If an empty array is returned, no group restrictions are |
|
| 56 | - * applied. |
|
| 57 | - * |
|
| 58 | - * @return string[] |
|
| 59 | - * @since 14.0.0 |
|
| 60 | - */ |
|
| 61 | - public function getGroupRestrictions():array; |
|
| 52 | + /** |
|
| 53 | + * Get a list of groupIds that are allowed to access this resource |
|
| 54 | + * |
|
| 55 | + * If an empty array is returned, no group restrictions are |
|
| 56 | + * applied. |
|
| 57 | + * |
|
| 58 | + * @return string[] |
|
| 59 | + * @since 14.0.0 |
|
| 60 | + */ |
|
| 61 | + public function getGroupRestrictions():array; |
|
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * get email-address for resource |
|
| 65 | - * |
|
| 66 | - * The email address has to be globally unique |
|
| 67 | - * |
|
| 68 | - * @return string |
|
| 69 | - * @since 14.0.0 |
|
| 70 | - */ |
|
| 71 | - public function getEMail():string; |
|
| 63 | + /** |
|
| 64 | + * get email-address for resource |
|
| 65 | + * |
|
| 66 | + * The email address has to be globally unique |
|
| 67 | + * |
|
| 68 | + * @return string |
|
| 69 | + * @since 14.0.0 |
|
| 70 | + */ |
|
| 71 | + public function getEMail():string; |
|
| 72 | 72 | |
| 73 | - /** |
|
| 74 | - * Get corresponding backend object |
|
| 75 | - * |
|
| 76 | - * @return IBackend |
|
| 77 | - * @since 14.0.0 |
|
| 78 | - */ |
|
| 79 | - public function getBackend():IBackend; |
|
| 73 | + /** |
|
| 74 | + * Get corresponding backend object |
|
| 75 | + * |
|
| 76 | + * @return IBackend |
|
| 77 | + * @since 14.0.0 |
|
| 78 | + */ |
|
| 79 | + public function getBackend():IBackend; |
|
| 80 | 80 | } |
@@ -32,39 +32,39 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | interface IBackend { |
| 34 | 34 | |
| 35 | - /** |
|
| 36 | - * get a list of all resources in this backend |
|
| 37 | - * |
|
| 38 | - * @throws BackendTemporarilyUnavailableException |
|
| 39 | - * @return IResource[] |
|
| 40 | - * @since 14.0.0 |
|
| 41 | - */ |
|
| 42 | - public function getAllResources():array; |
|
| 35 | + /** |
|
| 36 | + * get a list of all resources in this backend |
|
| 37 | + * |
|
| 38 | + * @throws BackendTemporarilyUnavailableException |
|
| 39 | + * @return IResource[] |
|
| 40 | + * @since 14.0.0 |
|
| 41 | + */ |
|
| 42 | + public function getAllResources():array; |
|
| 43 | 43 | |
| 44 | - /** |
|
| 45 | - * get a list of all resource identifiers in this backend |
|
| 46 | - * |
|
| 47 | - * @throws BackendTemporarilyUnavailableException |
|
| 48 | - * @return string[] |
|
| 49 | - * @since 14.0.0 |
|
| 50 | - */ |
|
| 51 | - public function listAllResources():array; |
|
| 44 | + /** |
|
| 45 | + * get a list of all resource identifiers in this backend |
|
| 46 | + * |
|
| 47 | + * @throws BackendTemporarilyUnavailableException |
|
| 48 | + * @return string[] |
|
| 49 | + * @since 14.0.0 |
|
| 50 | + */ |
|
| 51 | + public function listAllResources():array; |
|
| 52 | 52 | |
| 53 | - /** |
|
| 54 | - * get a resource by it's id |
|
| 55 | - * |
|
| 56 | - * @param string $id |
|
| 57 | - * @throws BackendTemporarilyUnavailableException |
|
| 58 | - * @return IResource|null |
|
| 59 | - * @since 14.0.0 |
|
| 60 | - */ |
|
| 61 | - public function getResource($id); |
|
| 53 | + /** |
|
| 54 | + * get a resource by it's id |
|
| 55 | + * |
|
| 56 | + * @param string $id |
|
| 57 | + * @throws BackendTemporarilyUnavailableException |
|
| 58 | + * @return IResource|null |
|
| 59 | + * @since 14.0.0 |
|
| 60 | + */ |
|
| 61 | + public function getResource($id); |
|
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * Get unique identifier of the backend |
|
| 65 | - * |
|
| 66 | - * @return string |
|
| 67 | - * @since 14.0.0 |
|
| 68 | - */ |
|
| 69 | - public function getBackendIdentifier():string; |
|
| 63 | + /** |
|
| 64 | + * Get unique identifier of the backend |
|
| 65 | + * |
|
| 66 | + * @return string |
|
| 67 | + * @since 14.0.0 |
|
| 68 | + */ |
|
| 69 | + public function getBackendIdentifier():string; |
|
| 70 | 70 | } |
@@ -32,39 +32,39 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | interface IBackend { |
| 34 | 34 | |
| 35 | - /** |
|
| 36 | - * get a list of all rooms in this backend |
|
| 37 | - * |
|
| 38 | - * @throws BackendTemporarilyUnavailableException |
|
| 39 | - * @return IRoom[] |
|
| 40 | - * @since 14.0.0 |
|
| 41 | - */ |
|
| 42 | - public function getAllRooms():array; |
|
| 35 | + /** |
|
| 36 | + * get a list of all rooms in this backend |
|
| 37 | + * |
|
| 38 | + * @throws BackendTemporarilyUnavailableException |
|
| 39 | + * @return IRoom[] |
|
| 40 | + * @since 14.0.0 |
|
| 41 | + */ |
|
| 42 | + public function getAllRooms():array; |
|
| 43 | 43 | |
| 44 | - /** |
|
| 45 | - * get a list of all room identifiers in this backend |
|
| 46 | - * |
|
| 47 | - * @throws BackendTemporarilyUnavailableException |
|
| 48 | - * @return string[] |
|
| 49 | - * @since 14.0.0 |
|
| 50 | - */ |
|
| 51 | - public function listAllRooms():array; |
|
| 44 | + /** |
|
| 45 | + * get a list of all room identifiers in this backend |
|
| 46 | + * |
|
| 47 | + * @throws BackendTemporarilyUnavailableException |
|
| 48 | + * @return string[] |
|
| 49 | + * @since 14.0.0 |
|
| 50 | + */ |
|
| 51 | + public function listAllRooms():array; |
|
| 52 | 52 | |
| 53 | - /** |
|
| 54 | - * get a room by it's id |
|
| 55 | - * |
|
| 56 | - * @param string $id |
|
| 57 | - * @throws BackendTemporarilyUnavailableException |
|
| 58 | - * @return IRoom|null |
|
| 59 | - * @since 14.0.0 |
|
| 60 | - */ |
|
| 61 | - public function getRoom($id); |
|
| 53 | + /** |
|
| 54 | + * get a room by it's id |
|
| 55 | + * |
|
| 56 | + * @param string $id |
|
| 57 | + * @throws BackendTemporarilyUnavailableException |
|
| 58 | + * @return IRoom|null |
|
| 59 | + * @since 14.0.0 |
|
| 60 | + */ |
|
| 61 | + public function getRoom($id); |
|
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * Get unique identifier of the backend |
|
| 65 | - * |
|
| 66 | - * @return string |
|
| 67 | - * @since 14.0.0 |
|
| 68 | - */ |
|
| 69 | - public function getBackendIdentifier():string; |
|
| 63 | + /** |
|
| 64 | + * Get unique identifier of the backend |
|
| 65 | + * |
|
| 66 | + * @return string |
|
| 67 | + * @since 14.0.0 |
|
| 68 | + */ |
|
| 69 | + public function getBackendIdentifier():string; |
|
| 70 | 70 | } |
@@ -39,51 +39,51 @@ |
||
| 39 | 39 | |
| 40 | 40 | interface ICloudFederationProvider { |
| 41 | 41 | |
| 42 | - /** |
|
| 43 | - * get the name of the share type, handled by this provider |
|
| 44 | - * |
|
| 45 | - * @return string |
|
| 46 | - * |
|
| 47 | - * @since 14.0.0 |
|
| 48 | - */ |
|
| 49 | - public function getShareType(); |
|
| 42 | + /** |
|
| 43 | + * get the name of the share type, handled by this provider |
|
| 44 | + * |
|
| 45 | + * @return string |
|
| 46 | + * |
|
| 47 | + * @since 14.0.0 |
|
| 48 | + */ |
|
| 49 | + public function getShareType(); |
|
| 50 | 50 | |
| 51 | - /** |
|
| 52 | - * share received from another server |
|
| 53 | - * |
|
| 54 | - * @param ICloudFederationShare $share |
|
| 55 | - * @return string provider specific unique ID of the share |
|
| 56 | - * |
|
| 57 | - * @throws ProviderCouldNotAddShareException |
|
| 58 | - * |
|
| 59 | - * @since 14.0.0 |
|
| 60 | - */ |
|
| 61 | - public function shareReceived(ICloudFederationShare $share); |
|
| 51 | + /** |
|
| 52 | + * share received from another server |
|
| 53 | + * |
|
| 54 | + * @param ICloudFederationShare $share |
|
| 55 | + * @return string provider specific unique ID of the share |
|
| 56 | + * |
|
| 57 | + * @throws ProviderCouldNotAddShareException |
|
| 58 | + * |
|
| 59 | + * @since 14.0.0 |
|
| 60 | + */ |
|
| 61 | + public function shareReceived(ICloudFederationShare $share); |
|
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * notification received from another server |
|
| 65 | - * |
|
| 66 | - * @param string $notificationType (e.g SHARE_ACCEPTED) |
|
| 67 | - * @param string $providerId share ID |
|
| 68 | - * @param array $notification provider specific notification |
|
| 69 | - * @return array $data send back to sender |
|
| 70 | - * |
|
| 71 | - * @throws ShareNotFound |
|
| 72 | - * @throws ActionNotSupportedException |
|
| 73 | - * @throws BadRequestException |
|
| 74 | - * @throws AuthenticationFailedException |
|
| 75 | - * |
|
| 76 | - * @since 14.0.0 |
|
| 77 | - */ |
|
| 78 | - public function notificationReceived($notificationType, $providerId, array $notification); |
|
| 63 | + /** |
|
| 64 | + * notification received from another server |
|
| 65 | + * |
|
| 66 | + * @param string $notificationType (e.g SHARE_ACCEPTED) |
|
| 67 | + * @param string $providerId share ID |
|
| 68 | + * @param array $notification provider specific notification |
|
| 69 | + * @return array $data send back to sender |
|
| 70 | + * |
|
| 71 | + * @throws ShareNotFound |
|
| 72 | + * @throws ActionNotSupportedException |
|
| 73 | + * @throws BadRequestException |
|
| 74 | + * @throws AuthenticationFailedException |
|
| 75 | + * |
|
| 76 | + * @since 14.0.0 |
|
| 77 | + */ |
|
| 78 | + public function notificationReceived($notificationType, $providerId, array $notification); |
|
| 79 | 79 | |
| 80 | - /** |
|
| 81 | - * get the supported share types, e.g. "user", "group", etc. |
|
| 82 | - * |
|
| 83 | - * @return array |
|
| 84 | - * |
|
| 85 | - * @since 14.0.0 |
|
| 86 | - */ |
|
| 87 | - public function getSupportedShareTypes(); |
|
| 80 | + /** |
|
| 81 | + * get the supported share types, e.g. "user", "group", etc. |
|
| 82 | + * |
|
| 83 | + * @return array |
|
| 84 | + * |
|
| 85 | + * @since 14.0.0 |
|
| 86 | + */ |
|
| 87 | + public function getSupportedShareTypes(); |
|
| 88 | 88 | |
| 89 | 89 | } |
@@ -22,15 +22,15 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | 24 | return [ |
| 25 | - 'routes' => [ |
|
| 26 | - ['name' => 'birthday_calendar#enable', 'url' => '/enableBirthdayCalendar', 'verb' => 'POST'], |
|
| 27 | - ['name' => 'birthday_calendar#disable', 'url' => '/disableBirthdayCalendar', 'verb' => 'POST'], |
|
| 28 | - ['name' => 'invitation_response#accept', 'url' => '/invitation/accept/{token}', 'verb' => 'GET'], |
|
| 29 | - ['name' => 'invitation_response#decline', 'url' => '/invitation/decline/{token}', 'verb' => 'GET'], |
|
| 30 | - ['name' => 'invitation_response#options', 'url' => '/invitation/moreOptions/{token}', 'verb' => 'GET'], |
|
| 31 | - ['name' => 'invitation_response#processMoreOptionsResult', 'url' => '/invitation/moreOptions/{token}', 'verb' => 'POST'] |
|
| 32 | - ], |
|
| 33 | - 'ocs' => [ |
|
| 34 | - ['name' => 'direct#getUrl', 'url' => '/api/v1/direct', 'verb' => 'POST'], |
|
| 35 | - ], |
|
| 25 | + 'routes' => [ |
|
| 26 | + ['name' => 'birthday_calendar#enable', 'url' => '/enableBirthdayCalendar', 'verb' => 'POST'], |
|
| 27 | + ['name' => 'birthday_calendar#disable', 'url' => '/disableBirthdayCalendar', 'verb' => 'POST'], |
|
| 28 | + ['name' => 'invitation_response#accept', 'url' => '/invitation/accept/{token}', 'verb' => 'GET'], |
|
| 29 | + ['name' => 'invitation_response#decline', 'url' => '/invitation/decline/{token}', 'verb' => 'GET'], |
|
| 30 | + ['name' => 'invitation_response#options', 'url' => '/invitation/moreOptions/{token}', 'verb' => 'GET'], |
|
| 31 | + ['name' => 'invitation_response#processMoreOptionsResult', 'url' => '/invitation/moreOptions/{token}', 'verb' => 'POST'] |
|
| 32 | + ], |
|
| 33 | + 'ocs' => [ |
|
| 34 | + ['name' => 'direct#getUrl', 'url' => '/api/v1/direct', 'verb' => 'POST'], |
|
| 35 | + ], |
|
| 36 | 36 | ]; |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | <input type="text" name="comment" placeholder="Comment" /> |
| 30 | 30 | </fieldset> |
| 31 | 31 | <fieldset> |
| 32 | - <input type="submit" value="<?php p($l->t('Save'));?>"> |
|
| 32 | + <input type="submit" value="<?php p($l->t('Save')); ?>"> |
|
| 33 | 33 | </fieldset> |
| 34 | 34 | </form> |
| 35 | 35 | </div> |
@@ -1,4 +1,4 @@ |
||
| 1 | 1 | <div class="update" style="justify-content: space-around; display: flex;"> |
| 2 | 2 | <span class="icon icon-checkmark-white"></span> |
| 3 | - <p class="message"><?php p($l->t('Your attendance was updated successfully.'));?></p> |
|
| 3 | + <p class="message"><?php p($l->t('Your attendance was updated successfully.')); ?></p> |
|
| 4 | 4 | </div> |