Examples of Mapping


Examples of org.apache.olingo.odata2.api.edm.provider.Mapping

  public static void build(final JPAEdmEntitySetView view, final JPAEdmEntityTypeView entityTypeView) {
    FullQualifiedName fQname = view.getEdmEntitySet().getEntityType();
    JPAEdmMappingModelAccess mappingModelAccess = view.getJPAEdmMappingModelAccess();
    String entitySetName = null;
    if (mappingModelAccess != null && mappingModelAccess.isMappingModelExists()) {
      Mapping mapping = entityTypeView.getEdmEntityType().getMapping();
      if (mapping != null) {
        entitySetName = mappingModelAccess.mapJPAEntitySet(mapping.getInternalName());
      }
    }

    if (entitySetName == null) {
      entitySetName = fQname.getName() + ENTITY_SET_SUFFIX;
View Full Code Here

Examples of org.apache.oodt.xmlps.mapping.Mapping

  }
 
  public void testParseWildcardWithMapping(){
    String queryStr = "bar LIKE 'FOO'";
    String expected = "bar LIKE '%FOO%'";
    Mapping mapping = new Mapping();
    MappingField mf = new MappingField();
    mf.setDbName("bar");
    mf.setName("foo");
    mf.setString(true);
    mapping.addField("foo", mf);
   
    XMLQuery query = XMLQueryHelper.getDefaultQueryFromQueryString(queryStr);
    assertNotNull(query);
    Stack<QueryElement> queryStack = HandlerQueryParser.createQueryStack(query
        .getWhereElementSet());
View Full Code Here

Examples of org.apache.shale.remoting.Mapping

        }

        // Match this view identifier against our configured patterns
        Iterator mappings = helper.getMappings(context).getMappings().iterator();
        while (mappings.hasNext()) {
            Mapping mapping = (Mapping) mappings.next();
            String resourceId = mapping.mapViewId(context);
            if (resourceId != null) {
                if (log().isTraceEnabled()) {
                    log().trace("View identifier '" + context.getViewRoot().getViewId()
                                + "' matched pattern '" + mapping.getPattern()
                                + "' with resource id '" + resourceId + "'");
                }
                try {
                    Processor processor = mapping.getProcessor();
                    processor.process(context, resourceId);
                } catch (IOException e) {
                    throw new FacesException(e);
                }
                break;
View Full Code Here

Examples of org.apache.sling.jcr.resource.internal.helper.Mapping

            PrivateAccessor.setField(resFac, "repository", repository);

            // setup mappings
            PrivateAccessor.setField(resFac, "mappings",
                    new Mapping[] { new Mapping("/-/"), new Mapping(rootPath + "/-/") });

            // ensure namespace mangling
            PrivateAccessor.setField(resFac, "mangleNamespacePrefixes", true);

            // setup mapping root
View Full Code Here

Examples of org.apache.sling.jcr.resource.internal.helper.Mapping

            PrivateAccessor.setField(resFac, "repository", repository);

            // setup mappings
            PrivateAccessor.setField(resFac, "mappings",
                    new Mapping[] { new Mapping("/-/"), new Mapping(rootPath + "/-/") });

            // ensure namespace mangling
            PrivateAccessor.setField(resFac, "mangleNamespacePrefixes", true);

            // setup mapping root
View Full Code Here

Examples of org.apache.sling.resourceresolver.impl.mapping.Mapping

            } catch (Throwable e) {
                throw new Exception(e);
            }

            // setup mappings
            PrivateAccessor.setField(activator, "mappings", new Mapping[] { new Mapping("/-/"), new Mapping(rootPath + "/-/") });

            // ensure namespace mangling
            PrivateAccessor.setField(activator, "mangleNamespacePrefixes", true);

            // setup mapping root
View Full Code Here

Examples of org.apache.sling.resourceresolver.impl.mapping.Mapping

        virtualURLMap = virtuals;

        final List<Mapping> maps = new ArrayList<Mapping>();
        final String[] mappingList = (String[]) properties.get(PROP_MAPPING);
        for (int i = 0; mappingList != null && i < mappingList.length; i++) {
            maps.add(new Mapping(mappingList[i]));
        }
        final Mapping[] tmp = maps.toArray(new Mapping[maps.size()]);

        // check whether direct mappings are allowed
        final Boolean directProp = (Boolean) properties.get(PROP_ALLOW_DIRECT);
View Full Code Here

Examples of org.apache.sling.resourceresolver.impl.mapping.Mapping

            } catch (Throwable e) {
                throw new Exception(e);
            }

            // setup mappings
            PrivateAccessor.setField(activator, "mappings", new Mapping[] { new Mapping("/-/"), new Mapping(rootPath + "/-/") });

            // ensure namespace mangling
            PrivateAccessor.setField(activator, "mangleNamespacePrefixes", true);
           
            ResourceAccessSecurityTracker rast = new ResourceAccessSecurityTracker();
View Full Code Here

Examples of org.apache.sling.serviceusermapping.impl.Mapping

    }

    @Test
    public void test_constructor_empty_service_info() {
        try {
            new Mapping("srv:=user");
            TestCase.fail("IllegalArgumentException expected");
        } catch (IllegalArgumentException iae) {
            // expected
        }
    }
View Full Code Here

Examples of org.apache.sling.serviceusermapping.impl.Mapping

        }
    }

    @Test
    public void test_constructor_user_with_colon() {
        new Mapping("srv=jcr:user");
    }
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.