Package ubic.gemma.rest.util.args
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
- See Also:
-
getFilterableProperties
- See Also:
-
getFilterablePropertyType
- See Also:
-
getFilterablePropertyDescription
- See Also:
-
getFilterablePropertyAllowedValues
- See Also:
-
isFilterablePropertyUsingSubquery
- See Also:
-
isFilterablePropertyDeprecated
- See Also:
-
getFilterablePropertyConfigAttributes
Collection<org.springframework.security.access.ConfigAttribute> getFilterablePropertyConfigAttributes(String roles) - See Also:
-
getFilterablePropertyResolvableAllowedValuesLabels
List<org.springframework.context.MessageSourceResolvable> getFilterablePropertyResolvableAllowedValuesLabels(String p) throws javax.ws.rs.BadRequestException - Throws:
javax.ws.rs.BadRequestException- See Also:
-
getEntity
@Nonnull T getEntity(AbstractEntityArg<?, T, throws javax.ws.rs.NotFoundException, javax.ws.rs.BadRequestExceptionS> entityArg) Retrieve the entity represented by this argument.- Throws:
javax.ws.rs.NotFoundException- if the entity does not existjavax.ws.rs.BadRequestException- if the argument is malformed
-
getEntities
List<T> getEntities(AbstractEntityArg<?, T, throws javax.ws.rs.NotFoundException, javax.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:
javax.ws.rs.NotFoundException- if no entity matching the argument existjavax.ws.rs.BadRequestException- if the argument is malformed
-
getEntities
List<T> getEntities(AbstractEntityArrayArg<T, S> entitiesArg) throws javax.ws.rs.NotFoundException, javax.ws.rs.BadRequestExceptionRetrieve each entity represented by the array argument, raising aNotFoundExceptionif any of them is missing.- Throws:
javax.ws.rs.NotFoundException- if any entity is missingjavax.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:
javax.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 in (values...).- Throws:
javax.ws.rs.BadRequestException- if the argument is malformed
-
getFilters
Obtain aFiltersfrom a filter argument.- Throws:
javax.ws.rs.BadRequestException- if the argument is malformed
-
getSort
Obtain aSortfrom a sort argument.- Throws:
javax.ws.rs.BadRequestException- if the argument is malformed
-