Skip to end of metadata
Go to start of metadata

There are a number of utility classes available in lams.jar (ie from the lams_common project). This is a few of the classes:

  • org.lamsfoundation.lams.util.Configuration Accesses values in the LAMS configuration file.
  • org.lamsfoundation.lams.util.DateUtil Date handling routines.
  • org.lamsfoundation.lams.util.UploadFileUtil Wraps up the interface to Commons FileUpload. If you are defining the maximum size of a file that may be uploaded, you must you getMaxFileSize() and getMaxLargeFileSize() from this class. This allows an administrator to change the maximum upload size in one place, rather than having it scattered across tools.
  • org.lamsfoundation.lams.util.FileUtil General file handling routines.
  • org.lamsfoundation.lams.util.WebUtil General web related routines.
  • org.lamsfoundation.lams.util.HttpUrlConnectionUtil Simplifies using a HttpUrlConnection
  • org.lamsfoundation.lams.util.XmlFileLoader
  • org.lamsfoundation.lams.util.wddx WDDX related utilities.
  • org.lamsfoundation.lams.util.zipfile.ZipFileUtil Handles zip files - expands them to a temporary directory, and deletes them on request. Includes a method to clean up old files, so that we can write an administrative task that purges old directories periodically.
  • org.lamsfoundation.lams.web.util.AttributeNames Common url parameter names e.g. tool content id, session id.
  • org.lamsfoundation.lams.dao.IBaseDAO and org.lamsfoundation.lams.dao.hibernate.BaseDAO Common DAO (Data Access Object) routines (e.g. insert, find, findAll) which are useful as a base for other DAOs.
  • No labels