Class DocumentTypeDAO

  • All Implemented Interfaces:
    IDocumentTypeDAO

    public final class DocumentTypeDAO
    extends java.lang.Object
    implements IDocumentTypeDAO
    This class provides Data Access methods for DocumentType objects
    • Constructor Summary

      Constructors 
      Constructor Description
      DocumentTypeDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkDocuments​(java.lang.String strCode)
      Check if type has document
      void delete​(java.lang.String strCode)
      Delete a record from the table
      fr.paris.lutece.util.ReferenceList getDocumentTypeList()
      Load the Referencelist of documentTypes
      void insert​(DocumentType documentType)
      Insert a new record in the table.
      DocumentType load​(java.lang.String strDocumentTypeCode)
      Load the data of DocumentType from the table
      void reorderAttributes​(int nIdAttribute1, int nOrderAttribute1, int nIdAttribute2, int nOrderAttribute2)
      Reorder attributes
      java.util.Collection<DocumentType> selectDocumentTypeList()
      Load the list of documentTypes
      void setAdminStyleSheet​(byte[] baXslAdmin, java.lang.String strCodeType)
      Sets the admin stylesheet
      void setContentStyleSheet​(byte[] baXslContent, java.lang.String strCodeType)
      Sets the content service stylesheet
      void store​(DocumentType documentType)
      Update the record in the table
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DocumentTypeDAO

        public DocumentTypeDAO()
    • Method Detail

      • insert

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

        public DocumentType load​(java.lang.String strDocumentTypeCode)
        Load the data of DocumentType from the table
        Specified by:
        load in interface IDocumentTypeDAO
        Parameters:
        strDocumentTypeCode - the code
        Returns:
        the instance of the DocumentType
      • delete

        public void delete​(java.lang.String strCode)
        Delete a record from the table
        Specified by:
        delete in interface IDocumentTypeDAO
        Parameters:
        strCode - the code type
      • store

        public void store​(DocumentType documentType)
        Update the record in the table
        Specified by:
        store in interface IDocumentTypeDAO
        Parameters:
        documentType - The reference of documentType
      • getDocumentTypeList

        public fr.paris.lutece.util.ReferenceList getDocumentTypeList()
        Load the Referencelist of documentTypes
        Specified by:
        getDocumentTypeList in interface IDocumentTypeDAO
        Returns:
        listDocumentTypes
      • checkDocuments

        public boolean checkDocuments​(java.lang.String strCode)
        Description copied from interface: IDocumentTypeDAO
        Check if type has document
        Specified by:
        checkDocuments in interface IDocumentTypeDAO
        Parameters:
        strCode - The code type
        Returns:
        bCheck the boolean
      • reorderAttributes

        public void reorderAttributes​(int nIdAttribute1,
                                      int nOrderAttribute1,
                                      int nIdAttribute2,
                                      int nOrderAttribute2)
        Description copied from interface: IDocumentTypeDAO
        Reorder attributes
        Specified by:
        reorderAttributes in interface IDocumentTypeDAO
        Parameters:
        nIdAttribute1 - the attribute order
        nOrderAttribute1 - the attribute order
        nIdAttribute2 - the attribute order
        nOrderAttribute2 - the attribute order
      • setAdminStyleSheet

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

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