Class PdcImportExport


  • @Service
    public class PdcImportExport
    extends Object
    Classe gérant la manipulation des axes du pdc pour le module d'importExport.
    Author:
    sdevolder
    • Constructor Detail

      • PdcImportExport

        protected PdcImportExport()
    • 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.
      • 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
      • 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