com.atlassian.confluence.api.impl.pagination
Class DefaultPaginationLimits

java.lang.Object
  extended by com.atlassian.confluence.api.impl.pagination.DefaultPaginationLimits

public class DefaultPaginationLimits
extends Object

Provides default pagination max limits for our various types of content


Constructor Summary
DefaultPaginationLimits()
           
 
Method Summary
static int childMap(Expansions expansions)
          TODO The children map can have many entries, so lower the limit for the number of children included in each entry.
static int content(Expansions contentExpansion)
          get default max limit for page size of content
static int labels()
           
static int longTasks()
           
static int networkFollowees()
           
static int networkFollowers()
           
static int restrictionSubjects()
          Maximum number of Subjects to return in a restriction model.
static int spaces(Expansions expansions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPaginationLimits

public DefaultPaginationLimits()
Method Detail

content

public static int content(Expansions contentExpansion)
get default max limit for page size of content

Parameters:
contentExpansion -
Returns:

labels

public static int labels()

networkFollowers

public static int networkFollowers()

networkFollowees

public static int networkFollowees()

spaces

public static int spaces(Expansions expansions)

longTasks

public static int longTasks()

childMap

public static int childMap(Expansions expansions)
TODO The children map can have many entries, so lower the limit for the number of children included in each entry. We could adapt this to return more children if fewer child types are expanded, but should give API clients consistent responses. For descendants, the number of descendant types in the map should be the same as for children, so the limit can be the same.


restrictionSubjects

public static int restrictionSubjects()
Maximum number of Subjects to return in a restriction model.



Copyright © 2003–2015 Atlassian. All rights reserved.