Examples of SDKMap


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

  static private Logger logger = Logger.getLogger(MapsSDKServiceImpl.class);


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

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

      super.checkUserPermissionForFunctionality(SpagoBIConstants.MAPCATALOGUE_MANAGEMENT, "User cannot see map catalogues congifuration.");
      List mapList = DAOFactory.getSbiGeoMapsDAO().loadAllMaps();
      toReturn = new SDKMap[mapList.size()];
      for (int i = 0; i < mapList.size(); i++) {
        GeoMap geoMap = (GeoMap) mapList.get(i);
        SDKMap sdkMap = new SDKObjectsConverter().fromSbiGeoMapToSDKMap(geoMap.toSpagoBiGeoMaps());
        toReturn[i] = sdkMap;
      }
    } catch(NotAllowedOperationException e) {
      throw e;
    } catch(Exception e) {
View Full Code Here

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

    logger.debug("IN");
    if (sbiMap == null) {
      logger.warn("sbiMap in input is null!!");
      return null;
    }
    SDKMap sdkMap = null;
    try {
      sdkMap = new SDKMap();
      sdkMap.setMapId(sbiMap.getMapId());
      sdkMap.setName(sbiMap.getName());
      sdkMap.setDescr(sbiMap.getDescr());
      sdkMap.setFormat(sbiMap.getFormat());     
      sdkMap.setUrl(sbiMap.getUrl());     
      if(sbiMap.getBinContents()!=null){
        sdkMap.setBinId(sbiMap.getBinContents().getId());     
      }
    } catch (Exception e) {
      logger.error("Error while converting Feature into SDKFeature.", e);
      logger.debug("Returning null.");
      return null;
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.