Interface IDocumentTypeDAO

  • All Known Implementing Classes:
    DocumentTypeDAO

    public interface IDocumentTypeDAO
    Interface for DocumentType DAO
    • Method Detail

      • checkDocuments

        boolean checkDocuments​(java.lang.String strCode)
        Check if type has document
        Parameters:
        strCode - The code type
        Returns:
        bCheck the boolean
      • delete

        void delete​(java.lang.String strCode)
        Delete a record from the table
        Parameters:
        strCode - the code type
      • getDocumentTypeList

        fr.paris.lutece.util.ReferenceList getDocumentTypeList()
        Load the Referencelist of documentTypes
        Returns:
        listDocumentTypes
      • insert

        void insert​(DocumentType documentType)
        Insert a new record in the table.
        Parameters:
        documentType - The documentType object
      • load

        DocumentType load​(java.lang.String strDocumentTypeCode)
        Load the data of DocumentType from the table
        Parameters:
        strDocumentTypeCode - the code
        Returns:
        the instance of the DocumentType
      • reorderAttributes

        void reorderAttributes​(int nIdAttribute1,
                               int nOrderAttribute1,
                               int nIdAttribute2,
                               int nOrderAttribute2)
        Reorder attributes
        Parameters:
        nIdAttribute1 - the attribute order
        nOrderAttribute1 - the attribute order
        nIdAttribute2 - the attribute order
        nOrderAttribute2 - the attribute order
      • selectDocumentTypeList

        java.util.Collection<DocumentType> selectDocumentTypeList()
        Load the list of documentTypes
        Returns:
        The Collection of the DocumentTypes
      • store

        void store​(DocumentType documentType)
        Update the record in the table
        Parameters:
        documentType - The reference of documentType
      • setAdminStyleSheet

        void setAdminStyleSheet​(byte[] baXslAdmin,
                                java.lang.String strCodeType)
        Sets the admin stylesheet
        Parameters:
        baXslAdmin - The stylesheet
        strCodeType - The code type
      • setContentStyleSheet

        void setContentStyleSheet​(byte[] baXslContent,
                                  java.lang.String strCodeType)
        Sets the content service stylesheet
        Parameters:
        baXslContent - The stylesheet
        strCodeType - The code type