@Path(value="/filtered-items") public class FilteredItemsResource extends Resource
| Modifier and Type | Field and Description |
|---|---|
protected CollectionService |
collectionService |
protected ConfigurationService |
configurationService |
protected ItemService |
itemService |
protected MetadataFieldService |
metadataFieldService |
protected MetadataSchemaService |
metadataSchemaService |
protected SiteService |
siteService |
servletContext| Constructor and Description |
|---|
FilteredItemsResource() |
| Modifier and Type | Method and Description |
|---|---|
ItemFilter |
getItemQuery(String expand,
Integer limit,
Integer offset,
String user_ip,
String user_agent,
String xforwarderfor,
String filters,
List<String> query_field,
List<String> query_op,
List<String> query_val,
List<String> collSel,
javax.ws.rs.core.HttpHeaders headers,
javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
Return instance of collection with passed id.
|
createContext, getActionString, mySplit, processException, processFinally, writeStatsprotected ItemService itemService
protected MetadataFieldService metadataFieldService
protected MetadataSchemaService metadataSchemaService
protected CollectionService collectionService
protected SiteService siteService
protected ConfigurationService configurationService
@GET
@Produces(value={"application/json","application/xml"})
public ItemFilter getItemQuery(@QueryParam(value="expand")
String expand,
@QueryParam(value="limit") @DefaultValue(value="100")
Integer limit,
@QueryParam(value="offset") @DefaultValue(value="0")
Integer offset,
@QueryParam(value="userIP")
String user_ip,
@QueryParam(value="userAgent")
String user_agent,
@QueryParam(value="xforwarderfor")
String xforwarderfor,
@QueryParam(value="filters") @DefaultValue(value="is_item,all_filters")
String filters,
@QueryParam(value="query_field[]") @DefaultValue(value="dc.title")
List<String> query_field,
@QueryParam(value="query_op[]") @DefaultValue(value="exists")
List<String> query_op,
@QueryParam(value="query_val[]") @DefaultValue(value="")
List<String> query_val,
@QueryParam(value="collSel[]") @DefaultValue(value="")
List<String> collSel,
@Context
javax.ws.rs.core.HttpHeaders headers,
@Context
javax.servlet.http.HttpServletRequest request,
@Context
javax.servlet.ServletContext servletContext)
expand - String in which is what you want to add to returned instance
of collection. Options are: "all", "parentCommunityList",
"parentCommunity", "items", "license" and "logo". If you want
to use multiple options, it must be separated by commas.limit - Limit value for items in list in collection. Default value is
100.offset - Offset of start index in list of items of collection. Default
value is 0.filters - Comma separated list of Item Filters to use to evaluate against
the items in a collectionquery_field - List of metadata fields to evaluate in a metadata query.
Each list value is used in conjunction with a query_op and query_field.query_op - List of metadata operators to use in a metadata query.
Each list value is used in conjunction with a query_field and query_field.query_val - List of metadata values to evaluate in a metadata query.
Each list value is used in conjunction with a query_value and query_op.collSel - List of collections to query.headers - If you want to access to collection under logged user into
context. In headers must be set header "rest-dspace-token"
with passed token from login method.javax.ws.rs.WebApplicationException - It is thrown when was problem with database reading
(SQLException) or problem with creating
context(ContextException). It is thrown by NOT_FOUND and
UNATHORIZED status codes, too.Copyright © 2016 DuraSpace. All rights reserved.