Package com.collibra.dgc.core.api.dto
Class PagedRequest
Object
PagedRequest
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CursorPagedRequest
,FindActivitiesRequest
,FindAssetTypesRequest
,FindAttachmentsRequest
,FindAttributeTypesRequest
,FindCommentsRequest
,FindComplexRelationTypesRequest
,FindDataQualityRulesRequest
,FindDomainTypesRequest
,FindIssuesRequest
,FindJdbcDriverRequest
,FindJobsRequest
,FindMappingsRequest
,FindMostViewedAssetsRequest
,FindRatingsRequest
,FindRecentlyViewedAssetsRequest
,FindRelationTypesRequest
,FindResponsibilitiesRequest
,FindRolesRequest
,FindStatusesRequest
,FindTagsRequest
,FindTraitsRequest
,FindUserGroupsForUserRequest
,FindUserGroupsRequest
,FindUsersRequest
,FindValidationResultRequest
,FindViewPermissionRequest
,FindWorkflowDefinitionsRequest
,FindWorkflowInstancesRequest
,FindWorkflowTasksRequest
,RecentlyViewedAssetsRequest
The request that supports paging parameters.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
Allows to limit the number of elements that will be counted.protected int
The maximum number of results to retrieve.protected int
The first result to retrieve. -
Constructor Summary
ModifierConstructorDescriptionPagedRequest
(int offset, int limit) protected
PagedRequest
(int offset, int limit, int countLimit) Creates a newPagedRequest
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
Allows to limit the number of elements that will be counted.int
getLimit()
The maximum number of results to retrieve.int
The first result to retrieve.int
hashCode()
boolean
Deprecated.This method will be removed in the future.void
setCountLimit
(int countLimit) Allows to limit the number of elements that will be counted.void
setLimit
(int limit) The maximum number of results to retrieve.void
setOffset
(int offset) The first result to retrieve.toString()
-
Field Details
-
offset
@DefaultValue("0") @QueryParam("offset") protected int offsetThe first result to retrieve. If not set (offset =0
), results will be retrieved starting from row0
. -
limit
The maximum number of results to retrieve. If not set (limit =0
), the default limit will be used. The maximum allowed limit is 1000. -
countLimit
@DefaultValue("-1") @QueryParam("countLimit") protected int countLimitAllows to limit the number of elements that will be counted. -1 will count everything and 0 will cause the count to be skipped
-
-
Constructor Details
-
PagedRequest
public PagedRequest(int offset, int limit) -
PagedRequest
public PagedRequest() -
PagedRequest
protected PagedRequest(int offset, int limit, int countLimit) Creates a newPagedRequest
instance.- Parameters:
offset
- The first result to retrieve. If not set (offset =0
), results will be retrieved starting from row0
.limit
- The maximum number of results to retrieve. If not set (limit =0
), the default limit will be used. The maximum allowed limit is 1000.countLimit
- Allows to limit the number of elements that will be counted. -1 will count everything and 0 will cause the count to be skipped
-
-
Method Details
-
isPagingActive
Deprecated.This method will be removed in the future. Please usegetOffset()
andgetLimit()
.Returns true if paging is active, false otherwise.- Returns:
true
if paging is active,false
otherwise
-
getOffset
public int getOffset()The first result to retrieve. If not set (offset =0
), results will be retrieved starting from row0
. -
getLimit
public int getLimit()The maximum number of results to retrieve. If not set (limit =0
), the default limit will be used. The maximum allowed limit is 1000. -
getCountLimit
public int getCountLimit()Allows to limit the number of elements that will be counted. -1 will count everything and 0 will cause the count to be skipped -
setOffset
public void setOffset(int offset) The first result to retrieve. If not set (offset =0
), results will be retrieved starting from row0
. -
setLimit
public void setLimit(int limit) The maximum number of results to retrieve. If not set (limit =0
), the default limit will be used. The maximum allowed limit is 1000. -
setCountLimit
public void setCountLimit(int countLimit) Allows to limit the number of elements that will be counted. -1 will count everything and 0 will cause the count to be skipped -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-