Class DocumentTypeDAO
java.lang.Object
fr.paris.lutece.plugins.document.business.DocumentTypeDAO
- All Implemented Interfaces:
IDocumentTypeDAO
This class provides Data Access methods for DocumentType objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckDocuments(String strCode) Check if type has documentvoidDelete a record from the tablefr.paris.lutece.util.ReferenceListLoad the Referencelist of documentTypesvoidinsert(DocumentType documentType) Insert a new record in the table.Load the data of DocumentType from the tablevoidreorderAttributes(int nIdAttribute1, int nOrderAttribute1, int nIdAttribute2, int nOrderAttribute2) Reorder attributesLoad the list of documentTypesvoidsetAdminStyleSheet(byte[] baXslAdmin, String strCodeType) Sets the admin stylesheetvoidsetContentStyleSheet(byte[] baXslContent, String strCodeType) Sets the content service stylesheetvoidstore(DocumentType documentType) Update the record in the table
-
Constructor Details
-
DocumentTypeDAO
public DocumentTypeDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIDocumentTypeDAO- Parameters:
documentType- The documentType object
-
load
Load the data of DocumentType from the table- Specified by:
loadin interfaceIDocumentTypeDAO- Parameters:
strDocumentTypeCode- the code- Returns:
- the instance of the DocumentType
-
delete
Delete a record from the table- Specified by:
deletein interfaceIDocumentTypeDAO- Parameters:
strCode- the code type
-
store
Update the record in the table- Specified by:
storein interfaceIDocumentTypeDAO- Parameters:
documentType- The reference of documentType
-
selectDocumentTypeList
Load the list of documentTypes- Specified by:
selectDocumentTypeListin interfaceIDocumentTypeDAO- Returns:
- The Collection of the DocumentTypes
-
getDocumentTypeList
public fr.paris.lutece.util.ReferenceList getDocumentTypeList()Load the Referencelist of documentTypes- Specified by:
getDocumentTypeListin interfaceIDocumentTypeDAO- Returns:
- listDocumentTypes
-
checkDocuments
Description copied from interface:IDocumentTypeDAOCheck if type has document- Specified by:
checkDocumentsin interfaceIDocumentTypeDAO- 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:IDocumentTypeDAOReorder attributes- Specified by:
reorderAttributesin interfaceIDocumentTypeDAO- Parameters:
nIdAttribute1- the attribute ordernOrderAttribute1- the attribute ordernIdAttribute2- the attribute ordernOrderAttribute2- the attribute order
-
setAdminStyleSheet
Sets the admin stylesheet- Specified by:
setAdminStyleSheetin interfaceIDocumentTypeDAO- Parameters:
baXslAdmin- The stylesheetstrCodeType- The code type
-
setContentStyleSheet
Sets the content service stylesheet- Specified by:
setContentStyleSheetin interfaceIDocumentTypeDAO- Parameters:
baXslContent- The stylesheetstrCodeType- The code type
-