|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.document.business.DocumentTypeDAO
public final class DocumentTypeDAO
This class provides Data Access methods for DocumentType objects
Constructor Summary | |
---|---|
DocumentTypeDAO()
|
Method Summary | |
---|---|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentTypeDAO()
Method Detail |
---|
public void insert(DocumentType documentType)
insert
in interface IDocumentTypeDAO
documentType
- The documentType objectpublic DocumentType load(java.lang.String strDocumentTypeCode)
load
in interface IDocumentTypeDAO
strDocumentTypeCode
- the code
public void delete(java.lang.String strCode)
delete
in interface IDocumentTypeDAO
strCode
- the code typepublic void store(DocumentType documentType)
store
in interface IDocumentTypeDAO
documentType
- The reference of documentTypepublic java.util.Collection<DocumentType> selectDocumentTypeList()
selectDocumentTypeList
in interface IDocumentTypeDAO
public fr.paris.lutece.util.ReferenceList getDocumentTypeList()
getDocumentTypeList
in interface IDocumentTypeDAO
public boolean checkDocuments(java.lang.String strCode)
IDocumentTypeDAO
checkDocuments
in interface IDocumentTypeDAO
strCode
- The code type
public void reorderAttributes(int nIdAttribute1, int nOrderAttribute1, int nIdAttribute2, int nOrderAttribute2)
IDocumentTypeDAO
reorderAttributes
in interface IDocumentTypeDAO
nIdAttribute1
- the attribute ordernOrderAttribute1
- the attribute ordernIdAttribute2
- the attribute ordernOrderAttribute2
- the attribute orderpublic void setAdminStyleSheet(byte[] baXslAdmin, java.lang.String strCodeType)
setAdminStyleSheet
in interface IDocumentTypeDAO
baXslAdmin
- The stylesheetstrCodeType
- The code typepublic void setContentStyleSheet(byte[] baXslContent, java.lang.String strCodeType)
setContentStyleSheet
in interface IDocumentTypeDAO
baXslContent
- The stylesheetstrCodeType
- The code type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |