+ * contact.vitam@programmevitam.fr + *
+ * This software is developed as a validation helper tool, for constructing Submission Information Packages (archives + * sets) in the Vitam program whose purpose is to implement a digital archiving back-office system managing high + * volumetry securely and efficiently. + *
+ * This software is governed by the CeCILL 2.1 license under French law and abiding by the rules of distribution of free + * software. You can use, modify and/ or redistribute the software under the terms of the CeCILL 2.1 license as + * circulated by CEA, CNRS and INRIA archiveDeliveryRequestReply the following URL "http://www.cecill.info". + *
+ * As a counterpart to the access to the source code and rights to copy, modify and redistribute granted by the license, + * users are provided only with a limited warranty and the software's author, the holder of the economic rights, and the + * successive licensors have only limited liability. + *
+ * In this respect, the user's attention is drawn to the risks associated with loading, using, modifying and/or + * developing or reproducing the software by the user in light of its specific status of free software, that may mean + * that it is complicated to manipulate, and that also therefore means that it is reserved for developers and + * experienced professionals having in-depth computer knowledge. Users are therefore encouraged to load and test the + * software's suitability as regards their requirements in conditions enabling the security of their systems and/or data + * to be ensured and, more generally, to use and operate it in the same conditions as regards security. + *
+ * The fact that you are presently reading this means that you have had knowledge of the CeCILL 2.1 license and that you + * accept its terms. + */ +package fr.gouv.vitam.tools.sedalib.metadata.content; + +import fr.gouv.vitam.tools.sedalib.metadata.namedtype.ComplexListMetadataKind; +import fr.gouv.vitam.tools.sedalib.metadata.namedtype.StringType; + +/** + * The Class ContentSaphir. + *
+ * Class for SEDA element Content. + *
+ * A ArchiveUnit metadata. + *
+ * Standard quote: "Métadonnées de description associées à un ArchiveUnit" + */ +public class ContentSaphir extends Content { + + + static { + + + metadataMap.put("CreatedDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap.put("TransactedDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap.put("AcquiredDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap.put("SentDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap.put("ReceivedDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap.put("RegisteredDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap.put("StartDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap.put("EndDate", new ComplexListMetadataKind(StringType.class, false)); + } + + + static { + + metadataMap_v2.put("CreatedDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap_v2.put("TransactedDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap_v2.put("AcquiredDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap_v2.put("SentDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap_v2.put("ReceivedDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap_v2.put("RegisteredDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap_v2.put("StartDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap_v2.put("EndDate", new ComplexListMetadataKind(StringType.class, false)); + } + + static { + + metadataMap_v3.put("CreatedDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap_v3.put("TransactedDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap_v3.put("AcquiredDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap_v3.put("SentDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap_v3.put("ReceivedDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap_v3.put("RegisteredDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap_v3.put("StartDate", new ComplexListMetadataKind(StringType.class, false)); + metadataMap_v3.put("EndDate", new ComplexListMetadataKind(StringType.class, false)); + } + + /** + * Instantiates a new ContentSaphir. + */ + public ContentSaphir() { + super(); + } + + +} diff --git a/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/content/EventSaphir.java b/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/content/EventSaphir.java new file mode 100644 index 00000000..fa8f40e6 --- /dev/null +++ b/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/content/EventSaphir.java @@ -0,0 +1,68 @@ +/** + * Copyright French Prime minister Office/DINSIC/Vitam Program (2015-2019) + *
+ * contact.vitam@programmevitam.fr + *
+ * This software is developed as a validation helper tool, for constructing Submission Information Packages (archives + * sets) in the Vitam program whose purpose is to implement a digital archiving back-office system managing high + * volumetry securely and efficiently. + *
+ * This software is governed by the CeCILL 2.1 license under French law and abiding by the rules of distribution of free + * software. You can use, modify and/ or redistribute the software under the terms of the CeCILL 2.1 license as + * circulated by CEA, CNRS and INRIA archiveDeliveryRequestReply the following URL "http://www.cecill.info". + *
+ * As a counterpart to the access to the source code and rights to copy, modify and redistribute granted by the license, + * users are provided only with a limited warranty and the software's author, the holder of the economic rights, and the + * successive licensors have only limited liability. + *
+ * In this respect, the user's attention is drawn to the risks associated with loading, using, modifying and/or + * developing or reproducing the software by the user in light of its specific status of free software, that may mean + * that it is complicated to manipulate, and that also therefore means that it is reserved for developers and + * experienced professionals having in-depth computer knowledge. Users are therefore encouraged to load and test the + * software's suitability as regards their requirements in conditions enabling the security of their systems and/or data + * to be ensured and, more generally, to use and operate it in the same conditions as regards security. + *
+ * The fact that you are presently reading this means that you have had knowledge of the CeCILL 2.1 license and that you + * accept its terms. + */ +package fr.gouv.vitam.tools.sedalib.metadata.content; + +import fr.gouv.vitam.tools.sedalib.metadata.namedtype.ComplexListMetadataKind; +import fr.gouv.vitam.tools.sedalib.metadata.namedtype.StringType; + +/** + * The Class EventSaphir. + *
+ * Class for SEDA element Event. + *
+ * An Event metadata. + *
+ * Standard quote: "Informations décrivant un événement survenu au cours d’une + * procédure (ex. publication d’un marché, notification d’un marché, recueil + * d’un avis administratif, etc.)." + */ +public class EventSaphir extends Event { + + + static { + + + metadataMap_default.put("EventDateTime", new ComplexListMetadataKind(StringType.class, false)); + + } + + + static { + + metadataMap_v2.put("EventDateTime", new ComplexListMetadataKind(StringType.class, false)); + + } + + /** + * Instantiates a new EventSaphir. + */ + public EventSaphir() { + super(); + } + +} diff --git a/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/content/SignerSaphir.java b/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/content/SignerSaphir.java new file mode 100644 index 00000000..1e27c15e --- /dev/null +++ b/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/content/SignerSaphir.java @@ -0,0 +1,59 @@ +/** + * Copyright French Prime minister Office/DINSIC/Vitam Program (2015-2019) + *
+ * contact.vitam@programmevitam.fr + *
+ * This software is developed as a validation helper tool, for constructing Submission Information Packages (archives + * sets) in the Vitam program whose purpose is to implement a digital archiving back-office system managing high + * volumetry securely and efficiently. + *
+ * This software is governed by the CeCILL 2.1 license under French law and abiding by the rules of distribution of free + * software. You can use, modify and/ or redistribute the software under the terms of the CeCILL 2.1 license as + * circulated by CEA, CNRS and INRIA archiveDeliveryRequestReply the following URL "http://www.cecill.info". + *
+ * As a counterpart to the access to the source code and rights to copy, modify and redistribute granted by the license, + * users are provided only with a limited warranty and the software's author, the holder of the economic rights, and the + * successive licensors have only limited liability. + *
+ * In this respect, the user's attention is drawn to the risks associated with loading, using, modifying and/or + * developing or reproducing the software by the user in light of its specific status of free software, that may mean + * that it is complicated to manipulate, and that also therefore means that it is reserved for developers and + * experienced professionals having in-depth computer knowledge. Users are therefore encouraged to load and test the + * software's suitability as regards their requirements in conditions enabling the security of their systems and/or data + * to be ensured and, more generally, to use and operate it in the same conditions as regards security. + *
+ * The fact that you are presently reading this means that you have had knowledge of the CeCILL 2.1 license and that you + * accept its terms. + */ +package fr.gouv.vitam.tools.sedalib.metadata.content; + +import fr.gouv.vitam.tools.sedalib.metadata.namedtype.ComplexListMetadataKind; +import fr.gouv.vitam.tools.sedalib.metadata.namedtype.StringType; + +/** + * The Class SignerSaphir. + *
+ * Class for Signer metadata. + *
+ * Part of Signature ArchiveUnit metadata. + *
+ * Standard quote: "Signataire(s) de la transaction ou de l'objet" + */ +public class SignerSaphir extends Signer { + + + static { + + metadataMap.put(SIGNINGTIME_TAG, new ComplexListMetadataKind(StringType.class, false)); + + } + + /** + * Instantiates a new signerSaphir type. + */ + public SignerSaphir() { + super(); + } + + +} diff --git a/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/content/ValidatorSaphir.java b/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/content/ValidatorSaphir.java new file mode 100644 index 00000000..cdc1a090 --- /dev/null +++ b/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/content/ValidatorSaphir.java @@ -0,0 +1,60 @@ +/** + * Copyright French Prime minister Office/DINSIC/Vitam Program (2015-2019) + *
+ * contact.vitam@programmevitam.fr + *
+ * This software is developed as a validation helper tool, for constructing Submission Information Packages (archives + * sets) in the Vitam program whose purpose is to implement a digital archiving back-office system managing high + * volumetry securely and efficiently. + *
+ * This software is governed by the CeCILL 2.1 license under French law and abiding by the rules of distribution of free + * software. You can use, modify and/ or redistribute the software under the terms of the CeCILL 2.1 license as + * circulated by CEA, CNRS and INRIA archiveDeliveryRequestReply the following URL "http://www.cecill.info". + *
+ * As a counterpart to the access to the source code and rights to copy, modify and redistribute granted by the license, + * users are provided only with a limited warranty and the software's author, the holder of the economic rights, and the + * successive licensors have only limited liability. + *
+ * In this respect, the user's attention is drawn to the risks associated with loading, using, modifying and/or + * developing or reproducing the software by the user in light of its specific status of free software, that may mean + * that it is complicated to manipulate, and that also therefore means that it is reserved for developers and + * experienced professionals having in-depth computer knowledge. Users are therefore encouraged to load and test the + * software's suitability as regards their requirements in conditions enabling the security of their systems and/or data + * to be ensured and, more generally, to use and operate it in the same conditions as regards security. + *
+ * The fact that you are presently reading this means that you have had knowledge of the CeCILL 2.1 license and that you + * accept its terms. + */ +package fr.gouv.vitam.tools.sedalib.metadata.content; + +import fr.gouv.vitam.tools.sedalib.metadata.namedtype.ComplexListMetadataKind; +import fr.gouv.vitam.tools.sedalib.metadata.namedtype.StringType; + +/** + * The Class ValidatorSaphir. + *
+ * Class for Validator metadata. + *
+ * Part of Signature ArchiveUnit metadata. + *
+ * Standard quote: "Validateur de la signature" + */ +public class ValidatorSaphir extends Validator { + + + + static { + + metadataMap.put("ValidationTime", new ComplexListMetadataKind(StringType.class, false)); + + } + + /** + * Instantiates a new validatorSaphir type. + */ + public ValidatorSaphir() { + super(); + } + + +} diff --git a/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/data/FileInfoSaphir.java b/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/data/FileInfoSaphir.java new file mode 100644 index 00000000..0bbfa908 --- /dev/null +++ b/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/data/FileInfoSaphir.java @@ -0,0 +1,60 @@ +/** + * Copyright French Prime minister Office/DINSIC/Vitam Program (2015-2019) + *
+ * contact.vitam@programmevitam.fr + *
+ * This software is developed as a validation helper tool, for constructing Submission Information Packages (archives + * sets) in the Vitam program whose purpose is to implement a digital archiving back-office system managing high + * volumetry securely and efficiently. + *
+ * This software is governed by the CeCILL 2.1 license under French law and abiding by the rules of distribution of free + * software. You can use, modify and/ or redistribute the software under the terms of the CeCILL 2.1 license as + * circulated by CEA, CNRS and INRIA archiveTransfer the following URL "http://www.cecill.info". + *
+ * As a counterpart to the access to the source code and rights to copy, modify and redistribute granted by the license, + * users are provided only with a limited warranty and the software's author, the holder of the economic rights, and the + * successive licensors have only limited liability. + *
+ * In this respect, the user's attention is drawn to the risks associated with loading, using, modifying and/or + * developing or reproducing the software by the user in light of its specific status of free software, that may mean + * that it is complicated to manipulate, and that also therefore means that it is reserved for developers and + * experienced professionals having in-depth computer knowledge. Users are therefore encouraged to load and test the + * software's suitability as regards their requirements in conditions enabling the security of their systems and/or data + * to be ensured and, more generally, to use and operate it in the same conditions as regards security. + *
+ * The fact that you are presently reading this means that you have had knowledge of the CeCILL 2.1 license and that you + * accept its terms. + */ +package fr.gouv.vitam.tools.sedalib.metadata.data; + +import fr.gouv.vitam.tools.sedalib.metadata.namedtype.ComplexListMetadataKind; +import fr.gouv.vitam.tools.sedalib.metadata.namedtype.DateTimeType; +import fr.gouv.vitam.tools.sedalib.metadata.namedtype.StringType; + +/** + * The Class FileInfoSaphir. + *
+ * Class for SEDA element FileInfo. + *
+ * A BinaryDataObject metadata. + *
+ * Standard quote: "Propriétés techniques génériques du fichier (nom d’origine, + * logiciel de création, système d’exploitation de création)" + */ +public class FileInfoSaphir extends FileInfo { + //Custom + + static { + metadataMap.put("DateCreatedByApplication", new ComplexListMetadataKind(StringType.class, false)); + metadataMap.put("LastModified", new ComplexListMetadataKind(StringType.class, false)); + } + + /** + * Instantiates a new FileInfoSaphir. + */ + public FileInfoSaphir() { + super(); + } + + +} diff --git a/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/management/ClassificationRule.java b/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/management/ClassificationRule.java index 6ef31ef8..2f9f075e 100644 --- a/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/management/ClassificationRule.java +++ b/sedalib/src/main/java/fr/gouv/vitam/tools/sedalib/metadata/management/ClassificationRule.java @@ -59,6 +59,7 @@ public class ClassificationRule extends RuleType { metadataMap.put(RULE_TAG, new ComplexListMetadataKind(Rule.class, true)); metadataMap.put(PREVENTINHERITANCE_TAG, new ComplexListMetadataKind(BooleanType.class, false)); metadataMap.put(REFNONRULEID_TAG, new ComplexListMetadataKind(StringType.class, true)); + metadataMap.put("ClassificationAudience", new ComplexListMetadataKind(StringType.class, false)); metadataMap.put(CLASSIFICATIONLEVEL_TAG, new ComplexListMetadataKind(StringType.class, false)); metadataMap.put(CLASSIFICATIONOWNER_TAG, new ComplexListMetadataKind(StringType.class, false)); metadataMap.put("ClassificationReassessingDate", new ComplexListMetadataKind(DateType.class, false));