Class CollectionParam
java.lang.Object
com.emc.documentum.rest.http.parameter.CollectionParam
A typed parameter group for the common collection parameters used on the controller.
It contains below parameters:
- sort
- page
- items-per-page
- include-total
- filter
- inline
- links
- thumbnail
@ResponseBody
public ResponseEntity<GroupObject> getGroups(
@PathVariable("repositoryName") final String repositoryName,
@TypedParam final CollectionParam collectionParam,
@RequestUri final UriInfo uriInfo) {
}
-
Constructor Summary
ConstructorDescriptionDefault constructorCollectionParam
(PagingParam pagingParam, SortSpec sortSpec, AttributeView attributeView, String filter, boolean inline) ConstructorCollectionParam
(PagingParam pagingParam, SortSpec sortSpec, AttributeView attributeView, String filter, String q, boolean inline) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet attribute viewGet filterGet filter qualificationGet paging parametergetQ()
Get query parameterGet sort parameterboolean
isInline()
Check if it is inlineboolean
isLinks()
Check if it is linksboolean
Check if it thumbnailvoid
setAttributeView
(AttributeView attributeView) Set attribute viewvoid
Set filtervoid
setInline
(boolean inline) Set inline attributevoid
setLinks
(boolean links) Set linksvoid
setPagingParam
(PagingParam pagingParam) Set paging parametervoid
Set query parametervoid
setSortSpec
(SortSpec spec) Set sort parametervoid
setThumbnail
(boolean thumbnail) Set thumbnail parameter
-
Constructor Details
-
CollectionParam
public CollectionParam()Default constructor -
CollectionParam
public CollectionParam(PagingParam pagingParam, SortSpec sortSpec, AttributeView attributeView, String filter, boolean inline) Constructor- Parameters:
pagingParam
- paging parametersortSpec
- sort parameterattributeView
- attribute view parameterfilter
- filter parameterinline
- inline parameter
-
CollectionParam
public CollectionParam(PagingParam pagingParam, SortSpec sortSpec, AttributeView attributeView, String filter, String q, boolean inline) Constructor- Parameters:
pagingParam
- paging parametersortSpec
- sort parameterattributeView
- attribute view parameterfilter
- filter parameterq
- query parameterinline
- inline parameter
-
-
Method Details
-
isInline
public boolean isInline()Check if it is inline- Returns:
true
if it is inline
-
setInline
public void setInline(boolean inline) Set inline attribute- Parameters:
inline
- the value to set
-
getFilterQualification
Get filter qualification- Returns:
- filter qualification
-
setFilter
Set filter- Parameters:
filter
- the filter to set
-
getFilter
Get filter- Returns:
- filter parameter
-
getQ
Get query parameter- Returns:
- query parameter
-
setQ
Set query parameter- Parameters:
q
- query parameter to set
-
getPagingParam
Get paging parameter- Returns:
- paging parameter
-
setPagingParam
Set paging parameter- Parameters:
pagingParam
- page info
-
setSortSpec
Set sort parameter- Parameters:
spec
- sort parameter to set
-
getSortSpec
Get sort parameter- Returns:
- sort parameter
-
setAttributeView
Set attribute view- Parameters:
attributeView
- attribute view to set
-
getAttributeView
Get attribute view- Returns:
- attribute view
-
isLinks
public boolean isLinks()Check if it is links- Returns:
true
if it is links
-
setLinks
public void setLinks(boolean links) Set links- Parameters:
links
- links to set
-
isThumbnail
public boolean isThumbnail()Check if it thumbnail- Returns:
true
if it is thumbnail
-
setThumbnail
public void setThumbnail(boolean thumbnail) Set thumbnail parameter- Parameters:
thumbnail
- thumbnail to set
-