Changeset 3642


Ignore:
Timestamp:
2003-01-06T12:01:48+13:00 (21 years ago)
Author:
kjdon
Message:

resource now called document. some status stuff added too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSXML.java

    r3618 r3642  
    2525    public static final String CONTENT_ELEM = "content";
    2626    public static final String RESOURCE_ELEM = "resource";
     27    public static final String DOCUMENT_ELEM = "document";
    2728    public static final String METADATA_ELEM = "metadata";
    28     public static final String SERVICE_IMPL_ELEM = "servicesImpl";
     29    public static final String SERVICE_CLASS_ELEM = "serviceRack";
    2930    public static final String CLASSIFIER_ELEM = "classifier";
    3031    public static final String APPLET_ELEM = "applet";
     
    5960    public static final String SUBACTION_ATT = "subaction";
    6061    public static final String ADDRESS_ATT = "address";
     62    public static final String STATUS_ERROR_CODE_ATT = "code";
     63    public static final String STATUS_PROCESS_ID_ATT = "handle";
    6164    public static final String PARAM_SHORTNAME_ATT = "shortname";
    6265    public static final String PARAM_IGNORE_POS_ATT = "ignore";
     
    7679    public static final String DISPLAY_SUBMIT_ELEM = "submit";
    7780
    78     // request types
     81    // request types - do we need all these? or just
     82    // describe, status, and one to say do teh request
    7983    public static final String REQUEST_TYPE_DESCRIBE = "describe";
    8084    public static final String REQUEST_TYPE_CONFIGURE = "configure";
     
    8286    public static final String REQUEST_TYPE_ACTION = "action";
    8387    public static final String REQUEST_TYPE_BUILD = "build";
     88    public static final String REQUEST_TYPE_STATUS = "status";
     89    public static final String REQUEST_TYPE_PROCESS = "process";
    8490   
    8591    // service types
     
    96102    // takes a node with a resource elements inside it and extracts all the
    97103    // HASh oids - name att for resource
    98     public static String [] getResourceNameList(Element content) {
     104    public static String [] getDocumentNameList(Element content) {
    99105   
    100106    Node n = content.getFirstChild();
    101     while (n!=null && !n.getNodeName().equals(RESOURCE_ELEM+LIST_MODIFIER)) {
     107    while (n!=null && !n.getNodeName().equals(DOCUMENT_ELEM+LIST_MODIFIER)) {
    102108        n = n.getNextSibling();
    103109    }
     
    211217    }
    212218    /** creates a new document Element */
    213     public static Element createResourceElement(Document owner, String oid) {
    214     Element e = owner.createElement(RESOURCE_ELEM);
     219    public static Element createDocumentElement(Document owner, String oid) {
     220    Element e = owner.createElement(DOCUMENT_ELEM);
    215221    e.setAttribute(NAME_ATT, oid);
    216222   
Note: See TracChangeset for help on using the changeset viewer.