Package com.esri.gpt.catalog.schema

Examples of com.esri.gpt.catalog.schema.Schemas


*/
private synchronized Schemas getConfiguredSchemasHelper() {
  if (_configuredSchemas != null) {
    return _configuredSchemas;
  } else {
    Schemas schemas;
    try {
      SchemaFactory factory = new SchemaFactory();
      schemas = factory.loadSchemas();
      String cacheOpt = Val.chkStr(this.getParameters().getValue("cacheSchemaDefinitions"));
      if (!cacheOpt.equalsIgnoreCase("false")) {
        _configuredSchemas = schemas;
      }
      return schemas;
    } catch (Exception e) {
      e.printStackTrace(System.err);
      LogUtil.getLogger().log(Level.SEVERE, "Unable to configure schemas:", e);
      return new Schemas();
    }
  }
}
View Full Code Here


 
  /** constructors ============================================================ */

  /** Default constructor. */
  public CoreQueryables(RequestContext requestContext) { 
    Schemas schemas = requestContext.getCatalogConfiguration().getConfiguredSchemas();
    this.propertyMeanings = schemas.getPropertyMeanings();
  }
View Full Code Here

      // determine the definition
      GxeDefinition definition = null;
      String key = Val.chkStr(request.getParameter("key"));
      String loc = Val.chkStr(request.getParameter("loc"));
      if (key.length() > 0) {
        Schemas schemas = context.getCatalogConfiguration().getConfiguredSchemas();
        Schema schema = schemas.get(key);
        if (schema == null) {
          throw new SchemaException("Unsupported schema key.");
        } else {
          definition = schema.getGxeEditorDefinition();
        }
View Full Code Here

      sCallback = Val.chkStr(request.getParameter("callback"));
     
      // make the list of defined editor types
      StringBuilder sb = new StringBuilder();
      sb.append("{\"types\": [");
      Schemas schemas = context.getCatalogConfiguration().getConfiguredSchemas();
      if (schemas != null) {
        int n = 0;
        msgBroker = this.getMessageBroker(request,response,context,msgBroker);
        for (Schema schema: schemas.values()) {
          if (schema.getEditable()) {
            GxeDefinition definition = schema.getGxeEditorDefinition();
            if (definition != null) {
              String key = schema.getKey();
              String label = null;
View Full Code Here

     
      GxeDefinition definition = null;
      String key = Val.chkStr(request.getParameter("key"));
      String loc = Val.chkStr(request.getParameter("loc"));
      if (key.length() > 0) {
        Schemas schemas = context.getCatalogConfiguration().getConfiguredSchemas();
        Schema schema = schemas.get(key);
        if (schema != null) {
          definition = schema.getGxeEditorDefinition();
        }
      } else if (loc.length() > 0) {
        definition = new GxeDefinition();
View Full Code Here

* @return the list of schema's
*/
public List<SelectItem> getCreateSchemaItems() {
  MessageBroker msgBroker = extractMessageBroker();
  ArrayList<SelectItem> list = new ArrayList<SelectItem>();
  Schemas schemas = getConfiguredSchemas();
  for (Schema schema: schemas.values()) {
    if (schema.getEditable()) {
      String sKey = schema.getKey();
      String sLabel = schema.getKey();
      if (schema.getLabel() != null) {
        String sResKey = schema.getLabel().getResourceKey();
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.schema.Schemas

Copyright © 2018 www.massapicom. 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.