Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Changeset 4334

Show
Ignore:
Timestamp:
05/22/08 07:52:30 (8 months ago)
Author:
r0bby
Message:

add the date it was created to the metadata we will collect.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs-modules/groovyforms/src/org/openmrs/module/groovyforms/metadata/model/GroovyForm.java

    r4333 r4334  
    1414package org.openmrs.module.groovyforms.metadata.model; 
    1515 
     16import java.util.Date; 
     17 
    1618/** 
    1719 * The model class representing a GroovyForm in the system. It is serialized to/from XML for persistence. 
     
    2224    private String name; 
    2325    private String description; 
     26    private Date dateCreated; 
    2427    private double version; 
    2528    private boolean published; 
    2629 
    2730    /** 
    28      * Construct a GroovyForm object. 
    29      * @param name the name of the form 
    30      * @param description the description of the form 
    31      * @param version the version of the form 
    32      * @param published whether or not it is published 
     31     * Construct a new groovyform 
     32     * @param name the name of the groovyform 
     33     * @param description the description 
     34     * @param dateCreated when it was created 
     35     * @param version the version 
     36     * @param published whether or not its published. 
    3337     */ 
    34     public GroovyForm(String name, String description, double version, boolean published) { 
     38    public GroovyForm(String name, String description, Date dateCreated, double version, boolean published) { 
    3539        this.name = name; 
    3640        this.description = description; 
     41        this.dateCreated = dateCreated; 
    3742        this.version = version; 
    3843        this.published = published; 
     
    7681 
    7782    /** 
     83     * Getter for property 'dateCreated'. 
     84     * 
     85     * @return Value for property 'dateCreated'. 
     86     */ 
     87    public Date getDateCreated() { 
     88        return dateCreated; 
     89    } 
     90 
     91    /** 
     92     * Setter for property 'dateCreated'. 
     93     * 
     94     * @param dateCreated Value to set for property 'dateCreated'. 
     95     */ 
     96    public void setDateCreated(Date dateCreated) { 
     97        this.dateCreated = dateCreated; 
     98    } 
     99 
     100    /** 
    78101     * Getter for property 'version'. 
    79102     * 
  • openmrs-modules/groovyforms/web/module/resources/groovyform.dtd

    r4315 r4334  
    66    <name>MyForm</name> 
    77    <description>My First Form!!</description> 
     8    <date>Thu May 22 03:50:58 EDT 2008</date> 
    89    <version>1.0</version> 
    910    <published>true</published> 
     
    1819        <name>MyForm</name> 
    1920        <description>My First Form!!</description> 
     21        <date>Thu May 22 03:50:58 EDT 2008</date> 
    2022        <version>1.0</version> 
    2123        <published>true</published> 
     
    2527 
    2628<!ELEMENT groovyforms (groovyform*)> <!-- optional --> 
    27 <!ELEMENT groovyform (name+,description+,version+,published+)> <!-- required -->  
     29<!ELEMENT groovyform (name+,description+,date+,version+,published+)> <!-- required --> 
    2830<!-- the children of the groovyform element --> 
    2931<!ELEMENT name (#PCDATA)> 
    3032<!ELEMENT description (#PCDATA)> 
     33<!ELEMENT date (#PCDATA)> 
    3134<!ELEMENT version (#PCDATA)> 
    3235<!ELEMENT published (#PCDATA)>