Class PdcImportExport
- java.lang.Object
-
- org.silverpeas.core.pdc.pdc.importexport.PdcImportExport
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PdcImportExport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addPositions(int silverObjectId, String componentId, List<ClassifyPosition> positions)
Classifies the specified content on the PdC with the specified classification positions.List<AxisType>
getPdc(List<ClassifyPosition> listClassifyPosition)
Méthodes récupérant la totalité des axes utilisés par les positions de la liste en paramètreList<ClassifyPosition>
getPositions(int silverObjectId, String sComponentId)
Méthode de récupération des position pdc pour un objet silverpeas donné.PdcClassification
getPredefinedClassification(String nodeId, String componentId)
Gets the predefined positions on the PdC with which a content that belongs to the specified node of the specified component instance should be classified.List<ClassifyPosition>
getValidPositions(int silverObjectId, String componentId, List<ClassifyPosition> positions)
boolean
isClassifyingMandatory(String componentId)
-
-
-
Method Detail
-
addPositions
public boolean addPositions(int silverObjectId, String componentId, List<ClassifyPosition> positions) throws PdcException
Classifies the specified content on the PdC with the specified classification positions.- Parameters:
silverObjectId
- the unique identifier of the content in Silverpeas.componentId
- the unique identifier of the component instance managing the content.positions
- the positions on the PdC.- Returns:
- the status of the content classification: true meaning the content is correctly classified on the PdC, false meaning the content cannot be classified.
- Throws:
PdcException
-
getPredefinedClassification
public PdcClassification getPredefinedClassification(String nodeId, String componentId)
Gets the predefined positions on the PdC with which a content that belongs to the specified node of the specified component instance should be classified.- Parameters:
nodeId
- the unique identifier of the node in which the content is registered.componentId
- the unique identifier of the component instance that owns the node.- Returns:
- the prefined classification.
-
getValidPositions
public List<ClassifyPosition> getValidPositions(int silverObjectId, String componentId, List<ClassifyPosition> positions) throws PdcException
- Throws:
PdcException
-
getPositions
public List<ClassifyPosition> getPositions(int silverObjectId, String sComponentId) throws PdcException
Méthode de récupération des position pdc pour un objet silverpeas donné.- Parameters:
silverObjectId
-sComponentId
-- Returns:
- - liste de ClassifyPosition
- Throws:
PdcException
-
isClassifyingMandatory
public boolean isClassifyingMandatory(String componentId) throws PdcException
- Throws:
PdcException
-
getPdc
public List<AxisType> getPdc(List<ClassifyPosition> listClassifyPosition) throws PdcException
Méthodes récupérant la totalité des axes utilisés par les positions de la liste en paramètre- Parameters:
listClassifyPosition
- - liste des positions dont on veut les axes- Returns:
- un objet PdcType contenant les axes recherchés
- Throws:
PdcException
-
-