Ignore:
Timestamp:
2012-02-21T16:26:17+13:00 (12 years ago)
Author:
sjm84
Message:

Second round of changes adding in the login ability, also interface options are now returned whenever site metadata is returned

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/PageAction.java

    r24993 r25128  
    1717public class PageAction extends Action
    1818{
    19 
    2019    static Logger logger = Logger.getLogger(org.greenstone.gsdl3.action.PageAction.class.getName());
    2120
     
    2726    public Node process(Node message_node)
    2827    {
    29 
    3028        Element message = this.converter.nodeToElement(message_node);
    3129
     
    6866    protected Element homePage(Element request)
    6967    {
    70 
    7168        UserContext userContext = new UserContext(request);
    7269        // first, get the message router info
     
    130127    protected Element aboutPage(Element request)
    131128    {
    132 
    133129        UserContext userContext = new UserContext(request);
    134130        // extract the params from the cgi-request,
     
    143139            Element response = this.doc.createElement(GSXML.RESPONSE_ELEM);
    144140            addSiteMetadata(response, userContext);
     141            addInterfaceOptions(response);
    145142            return response;
    146143        }
     
    200197        //add the site metadata
    201198        addSiteMetadata(response, userContext);
     199        addInterfaceOptions(response);
    202200        return response;
    203201    }
     
    224222            Element response = this.doc.createElement(GSXML.RESPONSE_ELEM);
    225223            addSiteMetadata(response, userContext);
     224            addInterfaceOptions(response);
    226225            return response;
    227226        }
     
    242241        //add the site metadata
    243242        addSiteMetadata(response, userContext);
     243        addInterfaceOptions(response);
    244244
    245245        return response;
     
    249249    protected boolean sendMultipleRequests(NodeList items, String path_prefix, String request_type, UserContext userContext)
    250250    {
    251 
    252251        // we will send all the requests in a single message
    253252        Element message = this.doc.createElement(GSXML.MESSAGE_ELEM);
     
    321320        return page_response;
    322321    }
    323 
    324322}
Note: See TracChangeset for help on using the changeset viewer.