Class SchemaService
java.lang.Object
fr.gouv.vitam.functional.administration.core.schema.SchemaService
This service to manage schema operations
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSchemaService
(MongoDbAccessAdminImpl mongoDbAccessReferential, FunctionalBackupService functionalBackupService, OntologyService ontologyService) SchemaService ConstructorSchemaService
(MongoDbAccessAdminImpl mongoDbAccessReferential, FunctionalBackupService functionalBackupService, OntologyService ontologyService, LogbookOperationsClientFactory logbookOperationsClientFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAndDeleteExternalSchemaElementsByPaths
(List<String> pathsToDelete, boolean includeAllTenant) Retrieve Object group schema listRetrieve the schema list for unit collectionRetrieve internal and external schema listimportExternalSchemaElements
(List<SchemaInputModel> externalSchemaList) Import external schema on current tenant
-
Field Details
-
SCHEMA_IMPORT_EVENT
- See Also:
-
DELETE_SCHEMA_EVENT
- See Also:
-
VITAM_UNIT_INTERNAL_SCHEMA_JSON
- See Also:
-
VITAM_OBJECT_GROUP_INTERNAL_SCHEMA_JSON
- See Also:
-
-
Constructor Details
-
SchemaService
public SchemaService(MongoDbAccessAdminImpl mongoDbAccessReferential, FunctionalBackupService functionalBackupService, OntologyService ontologyService) SchemaService Constructor -
SchemaService
public SchemaService(MongoDbAccessAdminImpl mongoDbAccessReferential, FunctionalBackupService functionalBackupService, OntologyService ontologyService, LogbookOperationsClientFactory logbookOperationsClientFactory)
-
-
Method Details
-
findUnitInternalSchema
public List<SchemaResponse> findUnitInternalSchema() throws InvalidParseOperationException, IOException, ReferentialExceptionRetrieve the schema list for unit collection- Returns:
- schema list for unit collection
- Throws:
InvalidParseOperationException
IOException
ReferentialException
-
findUnitSchema
public List<SchemaResponse> findUnitSchema() throws InvalidParseOperationException, IOException, ReferentialException, InvalidCreateOperationExceptionRetrieve internal and external schema list -
findObjectGroupInternalSchema
public List<SchemaResponse> findObjectGroupInternalSchema() throws InvalidParseOperationException, IOException, ReferentialExceptionRetrieve Object group schema list- Returns:
- Throws:
InvalidParseOperationException
IOException
ReferentialException
-
importExternalSchemaElements
public RequestResponse<SchemaModel> importExternalSchemaElements(List<SchemaInputModel> externalSchemaList) throws VitamException Import external schema on current tenant- Parameters:
externalSchemaList
-- Returns:
- Throws:
VitamException
-
checkAndDeleteExternalSchemaElementsByPaths
public void checkAndDeleteExternalSchemaElementsByPaths(List<String> pathsToDelete, boolean includeAllTenant) throws InvalidCreateOperationException, IOException, VitamException
-