Examples of retrieveMessage()


Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

  String sValue;
  for (MmdRecord record : request.getQueryResult().getRecords()) {

    // lookup approval status
    sValue = record.getApprovalStatus();
    sMsg = msgBroker.retrieveMessage("catalog.publication.manageMetadata.status."+sValue);
    record.setApprovalStatusMsg(sMsg);

    // lookup publication method
    sValue = record.getPublicationMethod();
    sMsg = msgBroker.retrieveMessage("catalog.publication.manageMetadata.method."+sValue);
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

    sMsg = msgBroker.retrieveMessage("catalog.publication.manageMetadata.status."+sValue);
    record.setApprovalStatusMsg(sMsg);

    // lookup publication method
    sValue = record.getPublicationMethod();
    sMsg = msgBroker.retrieveMessage("catalog.publication.manageMetadata.method."+sValue);
    record.setPublicationMethodMsg(sMsg);
   
    // collection membership
    if (useCollections) {
      sValue = Val.chkStr(record.getCollectionMembership());
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

    // collection membership
    if (useCollections) {
      sValue = Val.chkStr(record.getCollectionMembership());
      if (sValue.length() > 0) {
        Object[] p = new String[]{sValue};
        sMsg = msgBroker.retrieveMessage("catalog.publication.manageMetadata.sharing.collection.popup",p);
        record.setCollectionMembership(sMsg);
      }
    }
  }
}
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

  ArrayList<SelectItem> protocols = new ArrayList<SelectItem>();
  MessageBroker msgBroker = getContextBroker().extractMessageBroker();
  ApplicationContext appCtx = ApplicationContext.getInstance();
  ApplicationConfiguration appCfg = appCtx.getConfiguration();
  ProtocolFactories protocolFactories = appCfg.getProtocolFactories();
  protocols.add(new SelectItem("", msgBroker.retrieveMessage("catalog.harvest.manage.edit.protocol.any")));
  for (String key: protocolFactories.getKeys()) {
    ProtocolFactory pf = protocolFactories.get(key);
    if (pf instanceof AgpProtocolFactory && !AGSProcessorConfig.isAvailable()) continue;
    String resourceKey = protocolFactories.getResourceKey(key);
    SelectItem item = new SelectItem(key.toLowerCase(), msgBroker.retrieveMessage(resourceKey));
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

  protocols.add(new SelectItem("", msgBroker.retrieveMessage("catalog.harvest.manage.edit.protocol.any")));
  for (String key: protocolFactories.getKeys()) {
    ProtocolFactory pf = protocolFactories.get(key);
    if (pf instanceof AgpProtocolFactory && !AGSProcessorConfig.isAvailable()) continue;
    String resourceKey = protocolFactories.getResourceKey(key);
    SelectItem item = new SelectItem(key.toLowerCase(), msgBroker.retrieveMessage(resourceKey));
    protocols.add(item);
  }
  return protocols;
}
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

    startRecord += query.getFilter().getMaxRecords();

    loadLuceneMeta(context, fields);

    OpenSearchProperties osProps = new OpenSearchProperties();
    osProps.setShortName(msgBroker.retrieveMessage("catalog.openSearch.shortName"));
    osProps.setNumberOfHits(query.getResult().getNumberOfHits());
    osProps.setStartRecord(query.getFilter().getStartRecord());
    osProps.setRecordsPerPage(query.getFilter().getMaxRecords());

    ResourceIdentifier resourceIdentifier = ResourceIdentifier.newIdentifier(context);
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

    msgBroker.setBundleBaseName("gpt.resources.gpt");
   
    String basePath = RequestContext.resolveBaseContextPath(request);
    String restPath = basePath+"/rest/find/document";
    String imagePath = basePath+"/catalog/images";
    String shortName = Val.escapeXml(msgBroker.retrieveMessage("catalog.openSearch.shortName"));
    String description = Val.escapeXml(msgBroker.retrieveMessage("catalog.openSearch.description"));
       
    // read the XML, substitute values
    ResourcePath rp = new ResourcePath();
    rp.makeUrl(XML_LOCATION);
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

   
    String basePath = RequestContext.resolveBaseContextPath(request);
    String restPath = basePath+"/rest/find/document";
    String imagePath = basePath+"/catalog/images";
    String shortName = Val.escapeXml(msgBroker.retrieveMessage("catalog.openSearch.shortName"));
    String description = Val.escapeXml(msgBroker.retrieveMessage("catalog.openSearch.description"));
       
    // read the XML, substitute values
    ResourcePath rp = new ResourcePath();
    rp.makeUrl(XML_LOCATION);
    String xml = XmlIoUtil.readXml(rp.makeUrl(XML_LOCATION).toExternalForm());
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

    for (AsnProperty child: property.getChildren()) {
      if (child instanceof AsnUIResource) {
        AsnUIResource uiResource = (AsnUIResource)child;
        String resourceKey = Val.chkStr(uiResource.getResourceKey());
        if (resourceKey.length() > 0) {
          String resourceValue = msgBroker.retrieveMessage(resourceKey);
          uiResource.setResourceValue(resourceValue);
          //System.err.println(resourceKey+" = "+uiResource.getDefaultValue());
        }
      }
    }
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

    startRecord += query.getFilter().getMaxRecords();

    loadLuceneMeta(context, fields);

    OpenSearchProperties osProps = new OpenSearchProperties();
    osProps.setShortName(msgBroker.retrieveMessage("catalog.openSearch.shortName"));
    osProps.setNumberOfHits(query.getResult().getNumberOfHits());
    osProps.setStartRecord(query.getFilter().getStartRecord());
    osProps.setRecordsPerPage(query.getFilter().getMaxRecords());

    ResourceIdentifier resourceIdentifier = ResourceIdentifier.newIdentifier(context);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.