Package it.eng.spagobi.sdk.maps.bo

Examples of it.eng.spagobi.sdk.maps.bo.SDKFeature


      super.checkUserPermissionForFunctionality(SpagoBIConstants.MAPCATALOGUE_MANAGEMENT, "User cannot see map catalogues congifuration.");
      List featuresList = DAOFactory.getSbiGeoFeaturesDAO().loadAllFeatures();
      toReturn = new SDKFeature[featuresList.size()];
      for (int i = 0; i < featuresList.size(); i++) {
        GeoFeature geoFeature = (GeoFeature) featuresList.get(i);
        SDKFeature sdkFeature = new SDKObjectsConverter().fromSbiGeoFeatureToSDKFeature(geoFeature.toSpagoBiGeoFeatures());
        toReturn[i] = sdkFeature;
      }
    } catch(NotAllowedOperationException e) {
      throw e;
    } catch(Exception e) {
View Full Code Here


    return toReturn; 
  }


  public SDKFeature getFeatureById(Integer featureId) throws NotAllowedOperationException {
    SDKFeature toReturn = null;
    logger.debug("IN: dataSetId in input = " + featureId);
    try {
      super.checkUserPermissionForFunctionality(SpagoBIConstants.MAPCATALOGUE_MANAGEMENT, "User cannot see map catalogue congifuration.");
      if (featureId == null) {
        logger.warn("Feature identifier in input is null!");
View Full Code Here

      }
      List featuresList = DAOFactory.getSbiGeoMapFeaturesDAO().loadFeaturesByMapId(mapId);
      toReturn = new SDKFeature[featuresList.size()];
      for (int i = 0; i < featuresList.size(); i++) {
        GeoFeature geoFeature = (GeoFeature) featuresList.get(i);
        SDKFeature sdkFeature = new SDKObjectsConverter().fromSbiGeoFeatureToSDKFeature(geoFeature.toSpagoBiGeoFeatures());
        toReturn[i] = sdkFeature;
      }
    } catch(NotAllowedOperationException e) {
      throw e;
    } catch(Exception e) {
View Full Code Here

    logger.debug("IN");
    if (feature == null) {
      logger.warn("Feature in input is null!!");
      return null;
    }
    SDKFeature sdkFeature = null;
    try {
      sdkFeature = new SDKFeature();
      sdkFeature.setFeatureId(feature.getFeatureId());
      sdkFeature.setName(feature.getName());
      sdkFeature.setDescr(feature.getDescr());
      sdkFeature.setType(feature.getType());     
    } catch (Exception e) {
      logger.error("Error while converting Feature into SDKFeature.", e);
      logger.debug("Returning null.");
      return null;
    } finally {
View Full Code Here

TOP

Related Classes of it.eng.spagobi.sdk.maps.bo.SDKFeature

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.