public final class DocumentTypeHome extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
checkDocuments(String strCode)
Checks if type has documents
|
static DocumentType |
create(DocumentType documentType)
Creation of an instance of documentType
|
static Collection<DocumentType> |
findAll()
Returns a collection of documentTypes objects
|
static DocumentType |
findByPrimaryKey(String strCode)
Returns an instance of a documentType whose identifier is specified in
parameter
|
static fr.paris.lutece.util.ReferenceList |
getDocumentTypesList()
Get document types list
|
static void |
remove(String strCode)
Remove the DocumentType whose identifier is specified in parameter
|
static void |
reorderAttributes(int nIdAttribute1,
int nOrderAttribute1,
int nIdAttribute2,
int nOrderAttribute2)
Reorder Attributes
|
static void |
setAdminStyleSheet(byte[] baXslAdmin,
String strCodeType)
Sets the admin stylesheet
|
static void |
setContentStyleSheet(byte[] baXslContent,
String strCodeType)
Sets the content service stylesheet
|
static DocumentType |
update(DocumentType documentType)
Update of the documentType which is specified in parameter
|
public static DocumentType create(DocumentType documentType)
documentType
- The instance of the documentType which contains the informations to storepublic static DocumentType update(DocumentType documentType)
documentType
- The instance of the documentType which contains the data to storepublic static void remove(String strCode)
strCode
- The document type codepublic static DocumentType findByPrimaryKey(String strCode)
strCode
- The document type codepublic static Collection<DocumentType> findAll()
public static boolean checkDocuments(String strCode)
strCode
- The document type codepublic static void reorderAttributes(int nIdAttribute1, int nOrderAttribute1, int nIdAttribute2, int nOrderAttribute2)
nIdAttribute1
- The id of the first attributenOrderAttribute1
- The order of the first attributenIdAttribute2
- The id of the second attributenOrderAttribute2
- The order of the second attributepublic static fr.paris.lutece.util.ReferenceList getDocumentTypesList()
public static void setAdminStyleSheet(byte[] baXslAdmin, String strCodeType)
baXslAdmin
- The stylesheetstrCodeType
- The code typepublic static void setContentStyleSheet(byte[] baXslContent, String strCodeType)
baXslContent
- The stylesheetstrCodeType
- The code typeCopyright © 2020 City of Paris. All rights reserved.