Class CoordinateImportExport


  • @Service
    public class CoordinateImportExport
    extends Object
    Classe gerant la manipulation des axes de coordinates pour le module d'importExport.
    Author:
    dlesimple
    • Constructor Detail

      • CoordinateImportExport

        protected CoordinateImportExport()
    • Method Detail

      • addPositions

        public int addPositions​(String componentId,
                                String axisPath)
        Parameters:
        componentId -
        axisPath - (/0/1024/1043,/0/1036,/0/1040)
        Returns:
        coordinateId
        Throws:
        CoordinateRuntimeException
      • getNodeDetailByName

        public NodeDetail getNodeDetailByName​(String name,
                                              int nodeRootId,
                                              String componentId)
        Get a node by its name.
        Parameters:
        name -
        nodeRootId -
        componentId -
        Returns:
      • getCombinationLabels

        public List<String> getCombinationLabels​(List<String> combination,
                                                 String componentId)
        Get ArrayList of valuePath labels (/xx/yyy, /xx/yyy/zzzz/ to arrayList with Axe1 > value15 then Axe2 > value5)
        Parameters:
        combination -
        componentId -
        Returns:
        a List of displayName: Axe1 > value15
        Throws:
        RemoteException
      • getAxis

        public List<NodeDetail> getAxis​(String componentId)
        Get axis of the component
        Parameters:
        componentId -
        Returns:
      • getAxisHeadersWithChildren

        public List<NodeDetail> getAxisHeadersWithChildren​(String componentId,
                                                           boolean includeUnclassified,
                                                           boolean takeAxisInChildrenList)
        Get axis header with Children
        Parameters:
        componentId -
        Returns:
      • getAxisChildren

        public List getAxisChildren​(NodePK nodePK,
                                    boolean takeAxisInChildrenList)
        Get children of an axis
        Parameters:
        nodePK -
        takeAxisInChildrenList -
        Returns:
      • getAxisHeaders

        public List<NodeDetail> getAxisHeaders​(String componentId)
        Parameters:
        componentId -
        Returns:
      • addPosition

        public NodeDetail addPosition​(NodeDetail position,
                                      String axisId,
                                      String componentId)
        Add position top the axis
        Parameters:
        position - , ComponentId
        Returns:
        nodePK
      • getNodeHeader

        public NodeDetail getNodeHeader​(NodePK pk)
        Get node Detail
      • getNodeHeader

        public NodeDetail getNodeHeader​(String id,
                                        String componentId)
        Get node Detail
        Parameters:
        id -
        componentId -
        Returns:
      • coupleIds

        public List<String> coupleIds​(List<String> filesNames,
                                      List<String> nodeIds,
                                      int cur,
                                      int loop,
                                      int nTuple,
                                      String prefixeId,
                                      int nbAxis)
        Generate index files with combination
        Parameters:
        filesNames -
        nodeIds -
        cur -
        loop -
        nTuple -
        prefixeId -
        Returns: