Class DocumentTypeDAO

java.lang.Object
fr.paris.lutece.plugins.document.business.DocumentTypeDAO
All Implemented Interfaces:
IDocumentTypeDAO

public final class DocumentTypeDAO extends Object implements IDocumentTypeDAO
This class provides Data Access methods for DocumentType objects
  • Constructor Details

    • DocumentTypeDAO

      public DocumentTypeDAO()
  • Method Details

    • 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(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(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
    • selectDocumentTypeList

      public Collection<DocumentType> selectDocumentTypeList()
      Load the list of documentTypes
      Specified by:
      selectDocumentTypeList in interface IDocumentTypeDAO
      Returns:
      The Collection of the DocumentTypes
    • 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(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, 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, String strCodeType)
      Sets the content service stylesheet
      Specified by:
      setContentStyleSheet in interface IDocumentTypeDAO
      Parameters:
      baXslContent - The stylesheet
      strCodeType - The code type