Project

General

Profile

« Previous | Next » 

Revision 3456

Added by barteau over 17 years ago

Added property "metaFileDocId", and constant "UPDATE_MESSAGE", to accomodate update and delete operations.

View differences:

src/edu/ucsb/nceas/metacat/clientview/ClientView.java
25 25
    public static final int                             SELECT_MESSAGE = 3;
26 26
    public static final int                             ERROR_MESSAGE = 4;
27 27
    public static final int                             REPLACE_MESSAGE = 5;
28
    public static final int                             UPDATE_MESSAGE = 6;
28 29
    public static final int                             FORMAT_TYPE = 0;
29 30
    public static final int                             FILE_NAME = 1;
30 31
    
......
406 407
    public void setContentStandard(String contentStandard) {
407 408
        this.contentStandard = contentStandard;
408 409
    }
410

  
411
    /**
412
     * Holds value of property isMetaFileDocId.
413
     */
414
    private String metaFileDocId;
415

  
416
    /**
417
     * Getter for property isMetaFileDocId.
418
     * @return Value of property isMetaFileDocId.
419
     */
420
    public String getMetaFileDocId() {
421
        return this.metaFileDocId;
422
    }
423

  
424
    /**
425
     * Setter for property isMetaFileDocId.
426
     * @param isMetaFileDocId New value of property isMetaFileDocId.
427
     */
428
    public void setMetaFileDocId(String metaFileDocId) {
429
        this.metaFileDocId = metaFileDocId;
430
    }
409 431
    
410 432
}
src/edu/ucsb/nceas/metacat/clientview/ClientViewBeanInfo.java
32 32
    private static final int PROPERTY_dataFileName = 3;
33 33
    private static final int PROPERTY_docId = 4;
34 34
    private static final int PROPERTY_message = 5;
35
    private static final int PROPERTY_metaFileName = 6;
36
    private static final int PROPERTY_organization = 7;
37
    private static final int PROPERTY_password = 8;
38
    private static final int PROPERTY_pathExpr = 9;
39
    private static final int PROPERTY_pathValue = 10;
40
    private static final int PROPERTY_publicAccess = 11;
41
    private static final int PROPERTY_qformat = 12;
42
    private static final int PROPERTY_returnfield = 13;
43
    private static final int PROPERTY_sessionid = 14;
44
    private static final int PROPERTY_username = 15;
35
    private static final int PROPERTY_metaFileDocId = 6;
36
    private static final int PROPERTY_metaFileName = 7;
37
    private static final int PROPERTY_organization = 8;
38
    private static final int PROPERTY_password = 9;
39
    private static final int PROPERTY_pathExpr = 10;
40
    private static final int PROPERTY_pathValue = 11;
41
    private static final int PROPERTY_publicAccess = 12;
42
    private static final int PROPERTY_qformat = 13;
43
    private static final int PROPERTY_returnfield = 14;
44
    private static final int PROPERTY_sessionid = 15;
45
    private static final int PROPERTY_username = 16;
45 46

  
46 47
    // Property array 
47 48
    /*lazy PropertyDescriptor*/
48 49
    private static PropertyDescriptor[] getPdescriptor(){
49
        PropertyDescriptor[] properties = new PropertyDescriptor[16];
50
        PropertyDescriptor[] properties = new PropertyDescriptor[17];
50 51
    
51 52
        try {
52 53
            properties[PROPERTY_action] = new PropertyDescriptor ( "action", edu.ucsb.nceas.metacat.clientview.ClientView.class, "getAction", "setAction" ); // NOI18N
......
67 68
            properties[PROPERTY_message] = new IndexedPropertyDescriptor ( "message", edu.ucsb.nceas.metacat.clientview.ClientView.class, "getMessage", "setMessage", "getMessage", "setMessage" ); // NOI18N
68 69
            properties[PROPERTY_message].setDisplayName ( "Message" );
69 70
            properties[PROPERTY_message].setShortDescription ( "Server messages" );
71
            properties[PROPERTY_metaFileDocId] = new PropertyDescriptor ( "metaFileDocId", edu.ucsb.nceas.metacat.clientview.ClientView.class, "getMetaFileDocId", "setMetaFileDocId" ); // NOI18N
72
            properties[PROPERTY_metaFileDocId].setDisplayName ( "Metadata File Doc Id" );
73
            properties[PROPERTY_metaFileDocId].setShortDescription ( "Metadata File Document Id" );
70 74
            properties[PROPERTY_metaFileName] = new PropertyDescriptor ( "metaFileName", edu.ucsb.nceas.metacat.clientview.ClientView.class, "getMetaFileName", "setMetaFileName" ); // NOI18N
71 75
            properties[PROPERTY_metaFileName].setDisplayName ( "Metadata File" );
72 76
            properties[PROPERTY_metaFileName].setShortDescription ( "XML metadata file name" );

Also available in: Unified diff