Class CoordinateImportExport
- java.lang.Object
-
- org.silverpeas.core.importexport.coordinates.CoordinateImportExport
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CoordinateImportExport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeDetail
addPosition(NodeDetail position, String axisId, String componentId)
Add position top the axisint
addPositions(String componentId, String axisPath)
List<String>
coupleIds(List<String> filesNames, List<String> nodeIds, int cur, int loop, int nTuple, String prefixeId, int nbAxis)
Generate index files with combinationList<NodeDetail>
getAxis(String componentId)
Get axis of the componentList
getAxisChildren(NodePK nodePK, boolean takeAxisInChildrenList)
Get children of an axisList<NodeDetail>
getAxisHeaders(String componentId)
List<NodeDetail>
getAxisHeadersWithChildren(String componentId, boolean includeUnclassified, boolean takeAxisInChildrenList)
Get axis header with ChildrenList<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)NodeDetail
getNodeDetailByName(String name, int nodeRootId, String componentId)
Get a node by its name.NodeDetail
getNodeHeader(String id, String componentId)
Get node DetailNodeDetail
getNodeHeader(NodePK pk)
Get node DetailCollection<NodeDetail>
getPathOfNode(NodePK nodePk)
-
-
-
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
-
getPathOfNode
public Collection<NodeDetail> getPathOfNode(NodePK nodePk)
-
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:
-
-