Examples of ConfigurationProvider


Examples of org.structr.schema.ConfigurationProvider

  protected void extractSearchableAttributes(final SecurityContext securityContext, final Class type, final HttpServletRequest request, final Query query) throws FrameworkException {

    if (type != null && request != null && !request.getParameterMap().isEmpty()) {

      final ConfigurationProvider conf   = Services.getInstance().getConfigurationProvider();
      final List<PropertyKey> searchKeys = new LinkedList<>();

      for (final String name : request.getParameterMap().keySet()) {

        final PropertyKey key = conf.getPropertyKeyForJSONName(type, getFirstPartOfString(name));
        if (key != null) {

          if (key.isSearchable()) {

            // add to list of searchable keys
View Full Code Here

Examples of org.tuba.spatschorke.diploma.operation.image.scale.ConfigurationProvider

  private static final float SCALE = 0.5F;
  private static final String TEST_IMAGE = "/test/sheep.png"; //$NON-NLS-1$

  @Test
  public void scaleTest() {
    ConfigurationProvider cP = new ConfigurationProvider();
    cP.setScaleValue(SCALE);
    Configuration configuration = cP.serializeConfiguration();

    String curDir = System.getProperty("user.dir"); //$NON-NLS-1$
    String imageFile = curDir + TEST_IMAGE;

    ImageRepresentation image = new ImageRepresentation(
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.