Class SchemaService
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.core.schema.SchemaService
-
public class SchemaService extends java.lang.ObjectThis service to manage schema operations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchemaService.TenantScope
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDELETE_SCHEMA_EVENTstatic java.lang.StringSCHEMA_IMPORT_EVENTstatic java.lang.StringVITAM_OBJECT_GROUP_INTERNAL_SCHEMA_JSONstatic java.lang.StringVITAM_UNIT_INTERNAL_SCHEMA_JSON
-
Constructor Summary
Constructors Constructor Description SchemaService(MongoDbAccessAdminImpl mongoDbAccessReferential, FunctionalBackupService functionalBackupService, OntologyService ontologyService)SchemaService ConstructorSchemaService(MongoDbAccessAdminImpl mongoDbAccessReferential, FunctionalBackupService functionalBackupService, OntologyService ontologyService, LogbookOperationsClientFactory logbookOperationsClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckAndDeleteExternalSchemaElementsByPaths(java.util.List<java.lang.String> pathsToDelete, boolean includeAllTenant)java.util.List<SchemaResponse>findObjectGroupInternalSchema()Retrieve Object group schema listjava.util.List<SchemaResponse>findUnitInternalSchema()Retrieve the schema list for unit collectionjava.util.List<SchemaResponse>findUnitSchema()Retrieve internal and external schema listRequestResponse<SchemaModel>importExternalSchemaElements(java.util.List<SchemaInputModel> externalSchemaList)Import external schema on current tenant
-
-
-
Field Detail
-
SCHEMA_IMPORT_EVENT
public static final java.lang.String SCHEMA_IMPORT_EVENT
- See Also:
- Constant Field Values
-
DELETE_SCHEMA_EVENT
public static final java.lang.String DELETE_SCHEMA_EVENT
- See Also:
- Constant Field Values
-
VITAM_UNIT_INTERNAL_SCHEMA_JSON
public static final java.lang.String VITAM_UNIT_INTERNAL_SCHEMA_JSON
- See Also:
- Constant Field Values
-
VITAM_OBJECT_GROUP_INTERNAL_SCHEMA_JSON
public static final java.lang.String VITAM_OBJECT_GROUP_INTERNAL_SCHEMA_JSON
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SchemaService
public SchemaService(MongoDbAccessAdminImpl mongoDbAccessReferential, FunctionalBackupService functionalBackupService, OntologyService ontologyService)
SchemaService Constructor
-
SchemaService
public SchemaService(MongoDbAccessAdminImpl mongoDbAccessReferential, FunctionalBackupService functionalBackupService, OntologyService ontologyService, LogbookOperationsClientFactory logbookOperationsClientFactory)
-
-
Method Detail
-
findUnitInternalSchema
public java.util.List<SchemaResponse> findUnitInternalSchema() throws InvalidParseOperationException, java.io.IOException, ReferentialException
Retrieve the schema list for unit collection- Returns:
- schema list for unit collection
- Throws:
InvalidParseOperationExceptionjava.io.IOExceptionReferentialException
-
findUnitSchema
public java.util.List<SchemaResponse> findUnitSchema() throws InvalidParseOperationException, java.io.IOException, ReferentialException, InvalidCreateOperationException
Retrieve internal and external schema list- Returns:
- Throws:
InvalidParseOperationExceptionjava.io.IOExceptionReferentialExceptionInvalidCreateOperationException
-
findObjectGroupInternalSchema
public java.util.List<SchemaResponse> findObjectGroupInternalSchema() throws InvalidParseOperationException, java.io.IOException, ReferentialException
Retrieve Object group schema list- Returns:
- Throws:
InvalidParseOperationExceptionjava.io.IOExceptionReferentialException
-
importExternalSchemaElements
public RequestResponse<SchemaModel> importExternalSchemaElements(java.util.List<SchemaInputModel> externalSchemaList) throws VitamException
Import external schema on current tenant- Parameters:
externalSchemaList-- Returns:
- Throws:
VitamException
-
checkAndDeleteExternalSchemaElementsByPaths
public void checkAndDeleteExternalSchemaElementsByPaths(java.util.List<java.lang.String> pathsToDelete, boolean includeAllTenant) throws InvalidCreateOperationException, java.io.IOException, VitamException- Throws:
InvalidCreateOperationExceptionjava.io.IOExceptionVitamException
-
-