pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.site.content
Interface IAdministerSitemap


public interface IAdministerSitemap

An interface to be added to Contents which have to manipulate or manage the Sitemap on being added/removed.

Version:
$Revision: 1398 $
Author:
Daniel Dietz

Method Summary
 void onChildContentAdd(Content content, org.hibernate.Session s)
          Is being called if a Content is being added as direct child of the current Content.
 void onChildContentRemove(Content content, org.hibernate.Session s)
          Is being called if a child-Content is being removed from the current Content.
 net.sf.json.JSONObject onSitemapAdd(SitemapNode sitemapNode, org.hibernate.Session s)
          Is being called on add of a Content to the Sitemap.
 void onSitemapChange(SitemapNode sitemapNode, org.hibernate.Session s)
          Is being called on change of the SitemapNode the IAdministerSitemap-content is attached to.
 net.sf.json.JSONObject onSitemapRemove(SitemapNode sitemapNode, org.hibernate.Session s)
          Is being called on removal of a Content from the Sitemap.
 

Method Detail

onSitemapAdd

net.sf.json.JSONObject onSitemapAdd(SitemapNode sitemapNode,
                                    org.hibernate.Session s)
Is being called on add of a Content to the Sitemap. Performs the operations and checks required throughout the add and returns a boolean indicating the success.

Parameters:
sitemapNode - the SitemapNode the Content is being added to
s - a hibernateTM-Session
Returns:
an error-JSONObject if occurs, null otherwise

onSitemapRemove

net.sf.json.JSONObject onSitemapRemove(SitemapNode sitemapNode,
                                       org.hibernate.Session s)
Is being called on removal of a Content from the Sitemap. Performs the operations and checks required throughout the removal and returns a boolean indicating the success.

Parameters:
sitemapNode - the SitemapNode the Content is being added to
s - a hibernateTM-Session
Returns:
an error-JSONObject if occurs, null otherwise

onSitemapChange

void onSitemapChange(SitemapNode sitemapNode,
                     org.hibernate.Session s)
Is being called on change of the SitemapNode the IAdministerSitemap-content is attached to.

Parameters:
sitemapNode - the SitemapNode which has been edited the IAdministerSitemap-content is attached to
s - a hibernateTM-Session

onChildContentAdd

void onChildContentAdd(Content content,
                       org.hibernate.Session s)
Is being called if a Content is being added as direct child of the current Content.

Parameters:
content - the child-Content which is being added
s - a hibernateTM-Session

onChildContentRemove

void onChildContentRemove(Content content,
                          org.hibernate.Session s)
Is being called if a child-Content is being removed from the current Content.

Parameters:
content - the child-Content which is being removed
s - a hibernateTM-Session