Skip navigation links
uk.ac.ed.epcc.webapp.model.data

Class Composite<BDO extends DataObject,X>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Map<java.lang.String,java.lang.Object> addDefaults(java.util.Map<java.lang.String,java.lang.Object> defaults)
      Generate a set of default property values.
      java.util.Map<java.lang.String,java.lang.String> addFieldHelp(java.util.Map<java.lang.String,java.lang.String> help)
      return a default set of tooltip help text for form fields.
      java.util.Set<java.lang.String> addOptional(java.util.Set<java.lang.String> optional)
      generate the set of optional fields to be used to provide class specific defaults in form creation/update.
      java.util.Map<java.lang.String,Selector> addSelectors(java.util.Map<java.lang.String,Selector> selectors)
      Get a Map of selectors to use for forms of this type.
      java.util.Set<java.lang.String> addSuppress(java.util.Set<java.lang.String> suppress)
      generate the class specific set of suppressed fields to be used in form creation/update The individual forms can override these so you usually use this method to define fields that should be suppressed in all forms.
      java.util.Map<java.lang.String,java.lang.String> addTranslations(java.util.Map<java.lang.String,java.lang.String> translations)
      return a default set of translation between field names and text labels.
      void customiseForm(Form f)
      Extension hook to allow additional Form customisation generic to all types of Form (create and update) For example adding a FormValidator .
      void customiseUpdateForm(Form f, BDO target, SessionService operator)
      Extension hook to allow additional Form customisation specific to the update of an existing object.
      AppContext getContext() 
      DataObjectFactory<BDO> getFactory()
      return the DataObjectFactory the Composite is registered with.
      protected Logger getLogger()
      get a Logger for this class
      protected Repository.Record getRecord(BDO data)
      method to allow sub-classes to retrieve the Repository.Record from a target DataObject.
      protected Repository getRepository()
      method to allow sub-classes to retrieve the Repository.
      protected abstract java.lang.Class<? super X> getType()
      Returns the type the composite should be registered under.
      TableSpecification modifyDefaultTableSpecification(TableSpecification spec, java.lang.String table)
      Modify the TableSpecification of the target factory.
      void postUpdate(BDO o, Form f, java.util.Map<java.lang.String,java.lang.Object> orig, boolean changed)
      perform side effects after a formupdate
      protected void preRegister()
      extension point called before the composite is registered.
      protected void release()
      perform extra clean-up when factory is released
      java.lang.String toString()
      used to list composites on table structure page.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait