public interface CollectionResolvable extends EntityProvider, Resolvable
Object, Map, whatever POJO, etc.)
OR as a list of EntityData objects (which can contain the entities or just information
about them like properties, url, etc.
This is one of the capability extensions for the EntityProvider interfaceResolvable and is part of CRUDable| Modifier and Type | Field and Description |
|---|---|
static String |
SEARCH_LOCATION_REFERENCE
A search key which indicates the results should be limited by the unique reference for a location (site, group, etc.)
|
static String |
SEARCH_TAGS
A search key which indicates the results should be limited by a tag or an array of tags
|
static String |
SEARCH_USER_REFERENCE
A search key which indicates the results should be limited by the unique reference for a user
|
| Modifier and Type | Method and Description |
|---|---|
List<?> |
getEntities(EntityReference ref,
Search search)
Allows these entities to be fetched based on search parameters,
this should never return null and if there are no entities then the list should be empty
Note: The entity class types in the list need to be able to be resolved from the ClassLoader of the EntityBrokerManager (currently this means deployed into shared) These do not have to be model objects and may simply be something created (e.g. |
getEntitygetEntityPrefixstatic final String SEARCH_USER_REFERENCE
static final String SEARCH_LOCATION_REFERENCE
static final String SEARCH_TAGS
List<?> getEntities(EntityReference ref, Search search)
ref - the parsed reference object which uniquely represents this entity,
only the prefix will be used from this reference (since that identifies the space and collection)search - a search object which can define the order to return entities,
search filters, and total number of entities returned,Map, etc.) of the type handled by this provider
OR a list of EntityData objects based on the search OR empty if none found,
should not return nullSecurityException - if the data cannot be accessed by the current user or is not publicly accessibleIllegalArgumentException - if the reference is invalid or the search is invalidIllegalStateException - if any other error occursCopyright © 2003–2022 Sakai Project. All rights reserved.