Package org.geomajas.security

Examples of org.geomajas.security.GeomajasSecurityException


  @Autowired
  private PipelineService pipelineService;

  private RasterLayer getRasterLayer(String layerId) throws GeomajasException {
    if (!securityContext.isLayerVisible(layerId)) {
      throw new GeomajasSecurityException(ExceptionCode.LAYER_NOT_VISIBLE, layerId, securityContext.getUserId());
    }
    RasterLayer layer = configurationService.getRasterLayer(layerId);
    if (null == layer) {
      throw new GeomajasException(ExceptionCode.RASTER_LAYER_NOT_FOUND, layerId);
    }
View Full Code Here


  @Autowired
  private PipelineService pipelineService;

  private VectorLayer getVectorLayer(String layerId) throws GeomajasException {
    if (!securityContext.isLayerVisible(layerId)) {
      throw new GeomajasSecurityException(ExceptionCode.LAYER_NOT_VISIBLE, layerId, securityContext.getUserId());
    }
    VectorLayer layer = configurationService.getVectorLayer(layerId);
    if (null == layer) {
      throw new GeomajasException(ExceptionCode.VECTOR_LAYER_NOT_FOUND, layerId);
    }
View Full Code Here

    }
    if (null == request.getCrs()) {
      throw new GeomajasException(ExceptionCode.PARAMETER_MISSING, "crs");
    }
    if (!securityContext.isLayerVisible(layerId)) {
      throw new GeomajasSecurityException(ExceptionCode.LAYER_NOT_VISIBLE, layerId, securityContext.getUserId());
    }

    log.debug("execute() : bbox {}", request.getBbox());
    List<RasterTile> images = layerService.getTiles(layerId, geoService.getCrs2(request.getCrs()),
        converterService.toInternal(request.getBbox()),  request.getScale());
View Full Code Here

    String[] includeLayers = request.getLayerIds();
    boolean excludeRasterLayers = request.isExcludeRasterLayers();
    if (includeLayers != null && includeLayers.length > 0) {
      for (String layerId : includeLayers) {
        if (!securityContext.isLayerVisible(layerId)) {
          throw new GeomajasSecurityException(ExceptionCode.LAYER_NOT_VISIBLE, layerId);
        }
        Layer<?> l = configurationService.getLayer(layerId);
        if (null == l) {
          throw new GeomajasException(ExceptionCode.LAYER_NOT_FOUND, layerId);
        }
View Full Code Here

TOP

Related Classes of org.geomajas.security.GeomajasSecurityException

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.