Package org.molgenis.api.metadata.v3
Class MetadataApiServiceImpl
- java.lang.Object
-
- org.molgenis.api.metadata.v3.MetadataApiServiceImpl
-
- All Implemented Interfaces:
MetadataApiService
@Service public class MetadataApiServiceImpl extends Object implements MetadataApiService
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateEntityType(EntityType entityType)MetadataUpsertJobExecutiondeleteAttributeAsync(String entityTypeId, String attributeId)Deletes an Attribute asynchronously.MetadataUpsertJobExecutiondeleteAttributesAsync(String entityTypeId, Query query)Deletes one or more Attributes asynchronously based on a query.MetadataDeleteJobExecutiondeleteEntityTypeAsync(String entityTypeId)Deletes an EntityType asynchronously.MetadataDeleteJobExecutiondeleteEntityTypesAsync(Query query)Deletes one or more EntityTypes asynchronously based on a query.AttributefindAttribute(String entityTypeId, String attributeId)org.molgenis.api.metadata.v3.AttributesfindAttributes(String entityTypeId, Query query, Sort sort, int size, int number)EntityTypefindEntityType(String identifier)org.molgenis.api.metadata.v3.EntityTypesfindEntityTypes(Query query, Sort sort, int size, int number)MetadataUpsertJobExecutionupdateEntityTypeAsync(EntityType entityType)Updates an EntityType asynchronously.
-
-
-
Method Detail
-
findEntityTypes
public org.molgenis.api.metadata.v3.EntityTypes findEntityTypes(@Nullable @CheckForNull Query query, Sort sort, int size, int number)
- Specified by:
findEntityTypesin interfaceMetadataApiService
-
findEntityType
public EntityType findEntityType(String identifier)
- Specified by:
findEntityTypein interfaceMetadataApiService- Parameters:
identifier- entity type identifier
-
findAttributes
public org.molgenis.api.metadata.v3.Attributes findAttributes(String entityTypeId, @Nullable @CheckForNull Query query, Sort sort, int size, int number)
- Specified by:
findAttributesin interfaceMetadataApiService
-
findAttribute
public Attribute findAttribute(String entityTypeId, String attributeId)
- Specified by:
findAttributein interfaceMetadataApiService- Parameters:
entityTypeId- identifier of the EntityTypeattributeId- identifier of the Attribute
-
deleteAttributeAsync
public MetadataUpsertJobExecution deleteAttributeAsync(String entityTypeId, String attributeId)
Description copied from interface:MetadataApiServiceDeletes an Attribute asynchronously.- Specified by:
deleteAttributeAsyncin interfaceMetadataApiService- Parameters:
entityTypeId- identifier of the Attribute's EntityTypeattributeId- identifier of the Attribute to delete- Returns:
- a JobExecution describing the status of the job
-
deleteAttributesAsync
public MetadataUpsertJobExecution deleteAttributesAsync(String entityTypeId, Query query)
Description copied from interface:MetadataApiServiceDeletes one or more Attributes asynchronously based on a query.- Specified by:
deleteAttributesAsyncin interfaceMetadataApiService- Parameters:
entityTypeId- identifier of the Attribute's EntityTypequery- a query that selects attributes- Returns:
- a JobExecution describing the status of the job
-
createEntityType
public void createEntityType(EntityType entityType)
- Specified by:
createEntityTypein interfaceMetadataApiService
-
updateEntityTypeAsync
public MetadataUpsertJobExecution updateEntityTypeAsync(EntityType entityType)
Description copied from interface:MetadataApiServiceUpdates an EntityType asynchronously.- Specified by:
updateEntityTypeAsyncin interfaceMetadataApiService- Parameters:
entityType- updated EntityType- Returns:
- a JobExecution describing the status of the job
-
deleteEntityTypeAsync
public MetadataDeleteJobExecution deleteEntityTypeAsync(String entityTypeId)
Description copied from interface:MetadataApiServiceDeletes an EntityType asynchronously.- Specified by:
deleteEntityTypeAsyncin interfaceMetadataApiService- Parameters:
entityTypeId- identifier of the Attribute's EntityType- Returns:
- a JobExecution describing the status of the job
-
deleteEntityTypesAsync
public MetadataDeleteJobExecution deleteEntityTypesAsync(Query query)
Description copied from interface:MetadataApiServiceDeletes one or more EntityTypes asynchronously based on a query.- Specified by:
deleteEntityTypesAsyncin interfaceMetadataApiService- Returns:
- a JobExecution describing the status of the job
-
-