Package it.eng.spagobi.kpi.model.bo

Examples of it.eng.spagobi.kpi.model.bo.ModelResourcesExtended


      HashMap<Integer, ModelResources> modResourcesIds ){
    if(allResources != null){
      for(int i =0;i<allResources.size(); i++){
        Resource res = allResources.get(i);
        if(!modResourcesIds.keySet().contains(res.getId())){
          ModelResourcesExtended extendedRes = new ModelResourcesExtended(res, new ModelResources());
          modelResourcesExtenList.add(extendedRes);
        }else{
          ModelResourcesExtended extendedRes = new ModelResourcesExtended(res, modResourcesIds.get(res.getId()));
          modelResourcesExtenList.add(extendedRes);
        }
      }
    }
  }
View Full Code Here


    if( !(o instanceof ModelResourcesExtended) ) {
      throw new SerializationException("ModelResourcesExtendedJSONSerializer is unable to serialize object of type: " + o.getClass().getName());
    }
   
    try {
      ModelResourcesExtended modelResource = (ModelResourcesExtended)o;
      result = new JSONObject();

      Integer mrId = modelResource.getResourceId();
      Resource resource  = DAOFactory.getResourceDAO().loadResourceById(mrId);
      result.put(RESOURCE_NAME, modelResource.getResourceName());
      result.put(RESOURCE_CODE, modelResource.getResourceCode());
      result.put(RESOURCE_TYPE, modelResource.getResourceType());
      result.put(RESOURCE_ID, modelResource.getResourceId());
      result.put(MODEL_INST_ID, modelResource.getModelInstId());
 
    } catch (Throwable t) {
      throw new SerializationException("An error occurred while serializing object: " + o, t);
    } finally {
     
View Full Code Here

TOP

Related Classes of it.eng.spagobi.kpi.model.bo.ModelResourcesExtended

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.