|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.util.ModelUtil
public class ModelUtil
Model related utility functions.
| Field Summary | |
|---|---|
static java.lang.String |
PAGING_CONFIDENCE
|
static java.lang.String |
PAGING_MAX_ITEMS
|
static java.lang.String |
PAGING_SKIP_COUNT
|
static java.lang.String |
PAGING_TOTAL_ITEMS
|
static java.lang.String |
PAGING_TOTAL_ITEMS_RANGE_END
|
| Constructor Summary | |
|---|---|
ModelUtil()
|
|
| Method Summary | |
|---|---|
static java.util.Map |
buildPaging(int totalItems,
int maxItems,
int skipCount)
Returns representation of paging object |
static java.util.Map |
buildPaging(int totalItems,
int maxItems,
int skipCount,
ScriptPagingDetails.ItemsSizeConfidence confidence,
int totalItemsRangeEnd)
Returns representation of paging object |
static java.util.Map |
buildPaging(ScriptPagingDetails paging)
Returns representation of paging object |
static java.lang.String |
getProductName(RepoAdminService repoAdminService)
Returns the name of the product currently running, determined by the current license. |
static java.util.List |
page(java.util.Collection objects,
int maxItems,
int skipCount)
|
static java.util.List |
page(java.util.Collection objects,
ScriptPagingDetails paging)
|
static java.lang.Object[] |
page(java.lang.Object[] objects,
int maxItems,
int skipCount)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PAGING_MAX_ITEMS
public static final java.lang.String PAGING_SKIP_COUNT
public static final java.lang.String PAGING_TOTAL_ITEMS
public static final java.lang.String PAGING_TOTAL_ITEMS_RANGE_END
public static final java.lang.String PAGING_CONFIDENCE
| Constructor Detail |
|---|
public ModelUtil()
| Method Detail |
|---|
public static java.lang.String getProductName(RepoAdminService repoAdminService)
repoAdminService - The RepoAdminService
public static java.util.Map buildPaging(int totalItems,
int maxItems,
int skipCount,
ScriptPagingDetails.ItemsSizeConfidence confidence,
int totalItemsRangeEnd)
totalItems - all count of objectmaxItems - max count of object that should be returnedskipCount - count of skipped objectsconfidence - the confidence in the total, default is exacttotalItemsRangeEnd - if the total is a range, what is the upper end of it
public static java.util.Map buildPaging(int totalItems,
int maxItems,
int skipCount)
totalItems - all count of objectmaxItems - max count of object that should be returnedskipCount - count of skipped objects
public static java.util.Map buildPaging(ScriptPagingDetails paging)
paging - The paging object with total, skip, max etc
public static java.util.List page(java.util.Collection objects,
int maxItems,
int skipCount)
public static java.util.List page(java.util.Collection objects,
ScriptPagingDetails paging)
public static java.lang.Object[] page(java.lang.Object[] objects,
int maxItems,
int skipCount)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||