* ObjectLockInfo.isLocked * @returns {bool} - Whether the retention policy is active and protecting the object
()
| 154 | * @returns {bool} - Whether the retention policy is active and protecting the object |
| 155 | */ |
| 156 | isLocked() { |
| 157 | if (this.legalHold) { |
| 158 | return true; |
| 159 | } |
| 160 | |
| 161 | if (!this.mode || !this.date) { |
| 162 | return false; |
| 163 | } |
| 164 | |
| 165 | return !this.isExpired(); |
| 166 | } |
| 167 | |
| 168 | /** |
| 169 | * ObjectLockInfo.isGovernanceMode |
no test coverage detected