Interface EntityArgService<T extends Identifiable, S extends FilteringService<T>>
- All Known Implementing Classes:
AbstractEntityArgService, CompositeSequenceArgService, DatabaseEntryArgService, DatasetArgService, ExpressionAnalysisResultSetArgService, GeneArgService, PlatformArgService, QuantitationTypeArgService, TaxonArgService
public interface EntityArgService<T extends Identifiable, S extends FilteringService<T>>
Bridges
Arg operating on entities with their corresponding FilteringService.-
Method Summary
Modifier and TypeMethodDescriptiongetEntities(AbstractEntityArg<?, T, S> entityArg) Retrieve the entities represented by this argument.getEntities(AbstractEntityArrayArg<T, S> entitiesArg) Retrieve each entity represented by the array argument, raising aNotFoundExceptionif any of them is missing.getEntity(AbstractEntityArg<?, T, S> entityArg) Retrieve the entity represented by this argument.Collection<org.springframework.security.access.ConfigAttribute> List<org.springframework.context.MessageSourceResolvable> Class<?> <A> FiltersgetFilters(AbstractEntityArg<A, T, S> entityArg) Translate the provided entity argument into aFilters.getFilters(AbstractEntityArrayArg<T, S> entitiesArg) Translate the provided entity argument into aFilters.getFilters(FilterArg<T> filterArg) Obtain aFiltersfrom a filter argument.Obtain aSortfrom a sort argument.booleanboolean
-
Method Details
-
getElementClass
-
getFilterableProperties
-
getFilterablePropertyType
-
getFilterablePropertyDescription
-
getFilterablePropertyAllowedValues
-
isFilterablePropertyUsingSubquery
- See Also:
-
isFilterablePropertyDeprecated
- See Also:
-
getFilterablePropertyConfigAttributes
Collection<org.springframework.security.access.ConfigAttribute> getFilterablePropertyConfigAttributes(String roles) - See Also:
-
getFilterablePropertyResolvableAllowedValuesLabels
-
getEntity
@NonNull T getEntity(AbstractEntityArg<?, T, throws jakarta.ws.rs.NotFoundException, jakarta.ws.rs.BadRequestExceptionS> entityArg) Retrieve the entity represented by this argument.- Throws:
jakarta.ws.rs.NotFoundException- if the entity does not existjakarta.ws.rs.BadRequestException- if the argument is malformed
-
getEntities
List<T> getEntities(AbstractEntityArg<?, T, throws jakarta.ws.rs.NotFoundException, jakarta.ws.rs.BadRequestExceptionS> entityArg) Retrieve the entities represented by this argument.Note that this will never return an empty array.
This is intended for cases where an argument could match more than one entity.
- Throws:
jakarta.ws.rs.NotFoundException- if no entity matching the argument existjakarta.ws.rs.BadRequestException- if the argument is malformed
-
getEntities
List<T> getEntities(AbstractEntityArrayArg<T, S> entitiesArg) throws jakarta.ws.rs.NotFoundException, jakarta.ws.rs.BadRequestExceptionRetrieve each entity represented by the array argument, raising aNotFoundExceptionif any of them is missing.- Throws:
jakarta.ws.rs.NotFoundException- if any entity is missingjakarta.ws.rs.BadRequestException- if the argument is malformed
-
getFilters
Translate the provided entity argument into aFilters.This will generate clause in the form of
property = value.- Throws:
jakarta.ws.rs.BadRequestException- if the argument is malformed
-
getFilters
Filters getFilters(AbstractEntityArrayArg<T, S> entitiesArg) throws jakarta.ws.rs.BadRequestExceptionTranslate the provided entity argument into aFilters.This will generate clause in the form of
property in (values...).- Throws:
jakarta.ws.rs.BadRequestException- if the argument is malformed
-
getFilters
-
getSort
-