|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.ade.sitemap.shared.CmsDetailPageTable
public class CmsDetailPageTable
A data structure for managing the detail page ordering for different types in a given sitemap.
| Nested Class Summary | |
|---|---|
static class |
CmsDetailPageTable.Status
A type indicating the status of a page. |
| Constructor Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsDetailPageTable(java.util.List<CmsDetailPageInfo> infos)
infos - the detail page info beansprotected CmsDetailPageTable()
| Method Detail |
|---|
public void add(CmsDetailPageInfo info)
info - the detail page info to addpublic int bump(CmsUUID id)
id - a page id
public boolean contains(CmsUUID id)
id - the page id
public CmsDetailPageTable copy()
public CmsDetailPageInfo get(CmsUUID id)
id - a page id
public java.util.Collection<CmsUUID> getAllIds()
public CmsDetailPageInfo getBestDetailPage(java.lang.String type)
type - a resource type
public 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 retrieved
public CmsDetailPageTable.Status getStatus(CmsUUID id)
id - the id for which the page status should be checked
public boolean isDefaultDetailPage(CmsUUID id)
id - a page id
public int move(CmsUUID id,
int newPos)
id - the page idnewPos - the position which the page should be moved to
public int remove(CmsUUID id)
id - the id of the detail page to remove
public int size()
public java.util.List<CmsDetailPageInfo> toList()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||