4141 * @method int getModificationStatus()
4242 * @method void setSignatureFlow(int $signatureFlow)
4343 * @method int getSignatureFlow()
44+ * @method void setDocmdpLevel(int $docmdpLevel)
45+ * @method int getDocmdpLevel()
4446 */
4547class File extends Entity {
4648 protected int $ nodeId = 0 ;
@@ -56,6 +58,7 @@ class File extends Entity {
5658 protected ?array $ metadata = null ;
5759 protected int $ modificationStatus = 0 ;
5860 protected int $ signatureFlow = SignatureFlow::NUMERIC_PARALLEL ;
61+ protected int $ docmdpLevel = 0 ;
5962 public const STATUS_NOT_LIBRESIGN_FILE = -1 ;
6063 public const STATUS_DRAFT = 0 ;
6164 public const STATUS_ABLE_TO_SIGN = 1 ;
@@ -83,6 +86,7 @@ public function __construct() {
8386 $ this ->addType ('metadata ' , Types::JSON );
8487 $ this ->addType ('modificationStatus ' , Types::SMALLINT );
8588 $ this ->addType ('signatureFlow ' , Types::SMALLINT );
89+ $ this ->addType ('docmdpLevel ' , Types::SMALLINT );
8690 }
8791
8892 public function isDeletedAccount (): bool {
@@ -102,4 +106,12 @@ public function getSignatureFlowEnum(): \OCA\Libresign\Enum\SignatureFlow {
102106 public function setSignatureFlowEnum (\OCA \Libresign \Enum \SignatureFlow $ flow ): void {
103107 $ this ->setSignatureFlow ($ flow ->toNumeric ());
104108 }
109+
110+ public function getDocmdpLevelEnum (): \OCA \Libresign \Enum \DocMdpLevel {
111+ return \OCA \Libresign \Enum \DocMdpLevel::tryFrom ($ this ->docmdpLevel ) ?? \OCA \Libresign \Enum \DocMdpLevel::NOT_CERTIFIED ;
112+ }
113+
114+ public function setDocmdpLevelEnum (\OCA \Libresign \Enum \DocMdpLevel $ level ): void {
115+ $ this ->setDocmdpLevel ($ level ->value );
116+ }
105117}
0 commit comments