biz.hammurapi.web
Class MetadataActions

java.lang.Object
  extended bybiz.hammurapi.web.ActionsBase
      extended bybiz.hammurapi.web.MetadataActions

public class MetadataActions
extends ActionsBase


Nested Class Summary
 
Nested classes inherited from class biz.hammurapi.web.ActionsBase
ActionsBase.ErrorMessage
 
Field Summary
 
Fields inherited from class biz.hammurapi.web.ActionsBase
compositeDomSerializer, converter, REFERRER_HEADER
 
Constructor Summary
MetadataActions()
           
 
Method Summary
 java.lang.Object generateMenu(biz.hammurapi.config.Context ctx)
          Generates menus from table metadata
static java.lang.Object getColumns(biz.hammurapi.config.Context ctx)
          Retrieves table columns, injects them as a parameter to the interaction and returns the interaction for rendering.
 java.util.Map groupBy(java.util.Collection data, java.lang.String groupField)
           
 java.lang.Object helpPage(biz.hammurapi.config.Context ctx)
          Generates help page to mount to the help system.
 java.lang.Object helpTree(biz.hammurapi.config.Context ctx)
          Generates help tree to mount to the help system.
 java.lang.Object metadata(biz.hammurapi.config.Context context)
           
 java.lang.Object metaObject(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ActionServlet servlet)
           
 java.lang.Object metaObjectUpdate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ActionServlet servlet)
           
 
Methods inherited from class biz.hammurapi.web.ActionsBase
getGlobal, getMatched, getMenu, getReferrer, getRemoted, getUid, hasPermission, includeThisInPath, invoke, isBlank, java, request2xml, setReferrer, sql
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataActions

public MetadataActions()
Method Detail

metadata

public java.lang.Object metadata(biz.hammurapi.config.Context context)
                          throws java.sql.SQLException
Throws:
java.sql.SQLException

metaObject

public java.lang.Object metaObject(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response,
                                   ActionServlet servlet)
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

metaObjectUpdate

public java.lang.Object metaObjectUpdate(javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response,
                                         ActionServlet servlet)
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

groupBy

public java.util.Map groupBy(java.util.Collection data,
                             java.lang.String groupField)

helpTree

public java.lang.Object helpTree(biz.hammurapi.config.Context ctx)
                          throws java.sql.SQLException
Generates help tree to mount to the help system.

Returns:
Throws:
java.sql.SQLException

helpPage

public java.lang.Object helpPage(biz.hammurapi.config.Context ctx)
                          throws java.sql.SQLException
Generates help page to mount to the help system.

Returns:
Throws:
java.sql.SQLException

generateMenu

public java.lang.Object generateMenu(biz.hammurapi.config.Context ctx)
                              throws java.lang.Exception
Generates menus from table metadata

Returns:
Throws:
java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException
javax.rules.ConfigurationException
java.rmi.RemoteException
javax.rules.RuleExecutionSetNotFoundException
javax.rules.RuleSessionCreateException
javax.rules.RuleSessionTypeUnsupportedException
java.lang.Exception

getColumns

public static java.lang.Object getColumns(biz.hammurapi.config.Context ctx)
                                   throws java.sql.SQLException,
                                          HammurapiWebException
Retrieves table columns, injects them as a parameter to the interaction and returns the interaction for rendering.

Returns:
Collection of columns or error message.
Throws:
HammurapiWebException
java.sql.SQLException


Copyright © 2006 Hammurapi Group. All Rights Reserved.