|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opencms.db.CmsPublishList
A container for all new/changed/deteled Cms resources of a project or a direct published resource (and optionally it's siblings) that actually get published.
Only classes inside the org.opencms.db package can add or remove elements to or from this list. This allows the Cms app to pass the list around between classes, but with restricted access to create this list.
CmsDriverManager.getPublishList(CmsDbContext, CmsResource, boolean)
creates Cms publish lists.
CmsDriverManager.getPublishList(CmsDbContext, CmsResource, boolean)| Constructor Summary | |
CmsPublishList()
Constructs an empty publish list for the resources of a project to be published. |
|
CmsPublishList(CmsResource directPublishResource)
Constructs an empty publish list with additional information for a direct published resource. |
|
| Method Summary | |
protected void |
addFile(CmsResource resource)
Adds a new/changed/deleted Cms file resource to the publish list. |
protected void |
addFiles(List list)
Appends all of the new/changed/deleted Cms file resources in the specified list to the end of this publish list. |
protected void |
addFolder(CmsResource resource)
Adds a new/changed Cms folder resource to the publish list. |
protected void |
addFolders(List list)
Appends all of the new/changed Cms folder resources in the specified list to the end of this publish list. |
protected void |
finalize()
|
List |
getDeletedFolderList()
Returns a list of folder resources with the given state. |
CmsResource |
getDirectPublishResource()
Returns the resource that should be published or null. |
List |
getFileList()
Returns an unmodifiable list of the Cms file resources in this publish list. |
List |
getFolderList()
Returns an unmodifiable list of the new/changed Cms folder resources in this publish list. |
protected List |
getFolderListInstance()
Returns the list with the new/changed Cms folder resources. |
CmsUUID |
getPublishHistoryId()
Returns the publish history Id for this publish list. |
protected void |
initialize()
Initializes the publish list, ensuring all internal lists are in the right order. |
boolean |
isDirectPublish()
Checks if this is a publish list for a direct published file *OR* folder. |
boolean |
isDirectPublishFile()
Checks if this is a publish list for a direct published file. |
protected boolean |
remove(CmsResource resource)
Removes a Cms resource from the publish list. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CmsPublishList()
public CmsPublishList(CmsResource directPublishResource)
directPublishResource - a Cms resource to be published directly| Method Detail |
public List getDeletedFolderList()
public CmsResource getDirectPublishResource()
public List getFileList()
public List getFolderList()
public CmsUUID getPublishHistoryId()
public boolean isDirectPublish()
isDirectPublishFile()public boolean isDirectPublishFile()
isDirectPublish()public String toString()
Object.toString()
protected void addFile(CmsResource resource)
throws CmsIllegalArgumentException
resource - a new/changed/deleted Cms file resource
CmsIllegalArgumentException - if the specified resource is not a file or unchanged
protected void addFiles(List list)
throws IllegalArgumentException
list - a list with new/changed/deleted Cms file resources to be added to this publish list
IllegalArgumentException - if one of the resources is not a file or unchanged
protected void addFolder(CmsResource resource)
throws IllegalArgumentException
resource - a new/changed Cms folder resource
IllegalArgumentException - if the specified resource is not a folder or unchanged
protected void addFolders(List list)
throws IllegalArgumentException
list - a list with new/changed Cms folder resources to be added to this publish list
IllegalArgumentException - if one of the resources is not a folder or unchanged
protected void finalize()
throws Throwable
ThrowableObject.finalize()protected List getFolderListInstance()
protected void initialize()
protected boolean remove(CmsResource resource)
resource - a Cms resource
List.remove(java.lang.Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||