public class CmsDetailPageTable
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CmsDetailPageTable.Status
A type indicating the status of a page.
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
CmsDetailPageTable()
Empty default constructor for serialization.
|
|
CmsDetailPageTable(java.util.List<CmsDetailPageInfo> infos)
Creates a detail page table from a list of detail page info bean.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(CmsDetailPageInfo info)
Adds a new detail page information bean to the detail page table.
|
int |
bump(CmsUUID id)
Moves the detail page information for a given page to the front of the detail pages for the same type.
|
boolean |
contains(CmsUUID id)
Returns true if the detail page table contains a page with a given id.
|
CmsDetailPageTable |
copy()
Copies the detail page table.
|
CmsDetailPageInfo |
get(CmsUUID id)
Returns the detail page info for a given page id.
|
java.util.Collection<CmsUUID> |
getAllIds()
Returns the page ids of all detail pages.
|
CmsDetailPageInfo |
getBestDetailPage(java.lang.String type)
Returns the detail page which is in front of the detail page list for the given type.
|
java.util.List<CmsDetailPageInfo> |
getBestDetailPages()
Returns a list which contains the best detail page for each type.
|
java.util.List<CmsDetailPageInfo> |
getInfosForType(java.lang.String type)
Returns the list of detail page info beans for a given type.
|
CmsDetailPageTable.Status |
getStatus(CmsUUID id)
Returns the page status for the page with the given id.
|
boolean |
isDefaultDetailPage(CmsUUID id)
Returns true if the page with the given id is the default detail page for its type.
|
int |
move(CmsUUID id,
int newPos)
Changes the position of a detail page in the list of detail pages for its type.
|
int |
remove(CmsUUID id)
Removes the detail page with the given id.
|
int |
size()
The number of configured detail pages.
|
java.util.List<CmsDetailPageInfo> |
toList()
Returns a flat list containing all detail pages for all types which preserves the order of detail pages from each type list.
|
public CmsDetailPageTable(java.util.List<CmsDetailPageInfo> infos)
infos - the detail page info beansprotected CmsDetailPageTable()
public void add(CmsDetailPageInfo info)
info - the detail page info to addpublic int bump(CmsUUID id)
id - a page idpublic boolean contains(CmsUUID id)
id - the page idpublic CmsDetailPageTable copy()
public CmsDetailPageInfo get(CmsUUID id)
id - a page idpublic java.util.Collection<CmsUUID> getAllIds()
public CmsDetailPageInfo getBestDetailPage(java.lang.String type)
type - a resource typepublic java.util.List<CmsDetailPageInfo> getBestDetailPages()
public java.util.List<CmsDetailPageInfo> getInfosForType(java.lang.String type)
type - the type for which the detail page beans should be retrievedpublic CmsDetailPageTable.Status getStatus(CmsUUID id)
id - the id for which the page status should be checkedpublic boolean isDefaultDetailPage(CmsUUID id)
id - a page idpublic int move(CmsUUID id, int newPos)
id - the page idnewPos - the position which the page should be moved topublic int remove(CmsUUID id)
id - the id of the detail page to removepublic int size()
public java.util.List<CmsDetailPageInfo> toList()