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
FieldsModifier and TypeFieldDescriptionprotected intAllows to limit the number of elements that will be counted.protected intThe maximum number of results to retrieve.protected intThe first result to retrieve. -
Constructor Summary
ConstructorsModifierConstructorDescriptionPagedRequest(int offset, int limit) protectedPagedRequest(int offset, int limit, int countLimit) Creates a newPagedRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintAllows to limit the number of elements that will be counted.intgetLimit()The maximum number of results to retrieve.intThe first result to retrieve.inthashCode()booleanDeprecated.This method will be removed in the future.voidsetCountLimit(int countLimit) Allows to limit the number of elements that will be counted.voidsetLimit(int limit) The maximum number of results to retrieve.voidsetOffset(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 newPagedRequestinstance.- 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:
trueif paging is active,falseotherwise
-
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
-