org.liquidsite.app.admin.view
Class DialogView

java.lang.Object
  extended byorg.liquidsite.app.admin.view.AdminView
      extended byorg.liquidsite.app.admin.view.DialogView

public class DialogView
extends AdminView

A helper class for the dialog views. This class contains methods for creating the HTML responses to the various dialog pages.


Field Summary
 
Fields inherited from class org.liquidsite.app.admin.view.AdminView
BASE, CONTENT, DIALOG, HOME, SCRIPT, SITE, SYSTEM, USER
 
Method Summary
 void viewClose(Request request)
          Shows the automatic close dialog.
 void viewDelete(Request request, PersistentObject obj)
          Shows the delete object confirmation dialog.
 void viewDeleteUser(Request request, java.lang.Object obj)
          Shows the delete user confirmation dialog.
 void viewError(Request request, ContentException e)
          Shows the error message dialog.
 void viewError(Request request, ContentSecurityException e)
          Shows the error message dialog.
 void viewError(Request request, java.lang.String message)
          Shows the error message dialog.
 void viewPermissions(Request request, PersistentObject obj)
          Shows the permissions editing dialog.
 void viewPublish(Request request, Content content)
          Shows the content publish dialog.
 void viewRevert(Request request, Content content)
          Shows the content revert dialog.
 void viewStatistics(Request request, Domain domain)
          Shows the statistics summary page.
 void viewUnlock(Request request, Content content)
          Shows the content unlock dialog.
 void viewUnpublish(Request request, Content content)
          Shows the content unpublish dialog.
 
Methods inherited from class org.liquidsite.app.admin.view.AdminView
findDomains, findFolders, findForums, findGroups, findSections, findTemplates, viewError, viewInfo, viewRedirect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

viewClose

public void viewClose(Request request)
Shows the automatic close dialog.

Parameters:
request - the request object

viewError

public void viewError(Request request,
                      java.lang.String message)
Shows the error message dialog.

Parameters:
request - the request object
message - the error message

viewError

public void viewError(Request request,
                      ContentException e)
Shows the error message dialog.

Parameters:
request - the request object
e - the content database error

viewError

public void viewError(Request request,
                      ContentSecurityException e)
Shows the error message dialog.

Parameters:
request - the request object
e - the content security error

viewDelete

public void viewDelete(Request request,
                       PersistentObject obj)
Shows the delete object confirmation dialog.

Parameters:
request - the request object
obj - the object to delete

viewDeleteUser

public void viewDeleteUser(Request request,
                           java.lang.Object obj)
Shows the delete user confirmation dialog.

Parameters:
request - the request object
obj - the user or group to delete

viewPublish

public void viewPublish(Request request,
                        Content content)
Shows the content publish dialog.

Parameters:
request - the request object
content - the content object to publish

viewUnpublish

public void viewUnpublish(Request request,
                          Content content)
Shows the content unpublish dialog.

Parameters:
request - the request object
content - the content object to unpublish

viewRevert

public void viewRevert(Request request,
                       Content content)
Shows the content revert dialog.

Parameters:
request - the request object
content - the content object to revert

viewPermissions

public void viewPermissions(Request request,
                            PersistentObject obj)
                     throws ContentException
Shows the permissions editing dialog.

Parameters:
request - the request object
obj - the domain or content object
Throws:
ContentException - if the database couldn't be accessed properly

viewStatistics

public void viewStatistics(Request request,
                           Domain domain)
                    throws ContentException
Shows the statistics summary page.

Parameters:
request - the request object
domain - the domain object
Throws:
ContentException - if the database couldn't be accessed properly

viewUnlock

public void viewUnlock(Request request,
                       Content content)
Shows the content unlock dialog.

Parameters:
request - the request object
content - the content object to unlock