Examples of CellID


Examples of com.narirelays.ems.persistence.orm.CellId

      result.setFailed("Number Format Error!");
      return result;
    }

    try{
      CellId cellID = new CellId(rowNum, colNum, templateID, sheetNum);
      Cell cell = new Cell(cellID, template);     
      BeanUtils.populate(cell, properties);
      if(queryType.equalsIgnoreCase("manual"))
      {
        //人工设置时,要创建一个id放入measureID,详见设计文档
View Full Code Here

Examples of com.narirelays.ems.persistence.orm.CellId

    {
      result.setFailed("Number Format Error!");
      return result;
    }
   
    CellId cellID = new CellId(rowNum, colNum, templateID, sheetNum);
    Cell cell = cellDAO.findById(cellID);
    if(cell==null)
    {
      result.setFailed(REPORT_CELL_NOT_EXIST);
      return result;
View Full Code Here

Examples of com.narirelays.ems.persistence.orm.CellId

    {
      result.setFailed("Number Format Error!");
      return result;
    }
   
    CellId cellID = new CellId(rowNum, colNum, templateID, sheetNum);
    Cell cell = cellDAO.findById(cellID);
    if(cell==null)
    {
      result.setFailed(REPORT_CELL_NOT_EXIST);
      return result;
View Full Code Here

Examples of com.narirelays.ems.persistence.orm.CellId

      Set<Cell> cells = template.getCells();
      Iterator<Cell> iter = cells.iterator();
      while(iter.hasNext())
      {
        Cell cell = iter.next();
        CellId cellID = cell.getId();
        String queryType = cell.getQueryType();
        int sheetNum = cellID.getSheetNum().intValue();
        int rowNum = cellID.getRowNum().intValue();
        int colNum = cellID.getColNum().intValue();
        if(queryType.equalsIgnoreCase("single")||queryType.equalsIgnoreCase("serial"))//商用库查询
        {         
          String measureID = cell.getMeasureId();
          String timeVar = cell.getTimeVar();
          String target = cell.getQueryTarget();
View Full Code Here

Examples of com.narirelays.ems.persistence.orm.CellId

    {
      result.setFailed("Number Format Error!");
      return result;
    }
   
    CellId cellID = new CellId(rowNum, colNum, templateID, sheetNum);
    Cell cell = cellDAO.findById(cellID);
    if(cell==null)
    {
      result.setFailed(REPORT_CELL_NOT_EXIST);
      return result;
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellID

            Iterator<CellID> cellIDs = state.getRootCells();
            int count = 0;

            // load a cell
            while (cellIDs.hasNext() && (count < max)) {
                CellID cellID = cellIDs.next();

                // try to reload the cell
                boolean result = cells.reloadCell(cellID, UniverseService.this);

                // record the result
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellID

            // granted list
            for (ActionMap am : grants.values()) {
                // the resource is OK'd if the view action is granted. If
                // the action map is empty, it means permission was denied.
                if (am.isEmpty()) {
                    CellID id = ((CellIDResource) am.getResource()).getCellID();
                    cells.remove(id);
                }
            }

            // now send a load message with all the granted cells.
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellID

                    new LinkedHashMap<CellID, CellDescription>(cells);
            ViewCellCacheMO cache = viewCellCacheRef.get();

            // go through and look at each cell to see if its granted or denied
            for (ActionMap am : grants.values()) {
                CellID id = ((CellIDResource) am.getResource()).getCellID();
               
                // the resource is OK'd if the view action is granted
                if (am.size() == 0) {
                    // cell is removed -- keep on the unload list only
                    cells.remove(id);
                } else {
                    // cell is added -- keep on the load list only
                    unloadCells.remove(id);
                }
            }

            // go through the load list and remove any cells that are
            // already in the cache.
            for (Iterator<CellID> loadCells = cells.keySet().iterator();
                 loadCells.hasNext();)
            {
                CellID loadID = loadCells.next();

                // remove this id if it is already loaded
                if (cache.isLoaded(loadID)) {
                    loadCells.remove();
                }

                // remove this id from the unload list. This will take
                // care of any cells that don't have a security resource
                // and therefore were not checked above
                unloadCells.remove(loadID);
            }

            // now go through the unload list and remove any cells that
            // are already unloaded
            for (Iterator<CellID> unloads = unloadCells.keySet().iterator();
                 unloads.hasNext();)
            {
                CellID unloadID = unloads.next();

                // remove this id if it is already unloaded
                if (!cache.isLoaded(unloadID)) {
                    unloads.remove();
                }
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellID

    /**
     * Return a new Create cell message
     */
    public static CellHierarchyMessage newCreateCellMessage(CellMO cell, CellSessionProperties properties) {
        CellID parent=null;
       
        CellMO p = cell.getParent();
        if (p!=null) {
            parent = p.getCellID();
        }
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellID

   
    /**
     * Return a new LoadLocalAvatar cell message
     */
    public static CellHierarchyMessage newLoadLocalAvatarMessage(CellMO cell, CellSessionProperties properties) {
        CellID parent=null;
       
        CellMO p = cell.getParent();
        if (p!=null) {
            parent = p.getCellID();
        }
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.