fr.paris.lutece.plugins.document.business
Class DocumentTypeHome

java.lang.Object
  extended by fr.paris.lutece.plugins.document.business.DocumentTypeHome

public final class DocumentTypeHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for DocumentType objects


Method Summary
static boolean checkDocuments(java.lang.String strCode)
          Checks if type has documents
static DocumentType create(DocumentType documentType)
          Creation of an instance of documentType
static java.util.Collection<DocumentType> findAll()
          Returns a collection of documentTypes objects
static DocumentType findByPrimaryKey(java.lang.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(java.lang.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, java.lang.String strCodeType)
          Sets the admin stylesheet
static void setContentStyleSheet(byte[] baXslContent, java.lang.String strCodeType)
          Sets the content service stylesheet
static DocumentType update(DocumentType documentType)
          Update of the documentType which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static DocumentType create(DocumentType documentType)
Creation of an instance of documentType

Parameters:
documentType - The instance of the documentType which contains the informations to store
Returns:
The instance of documentType which has been created with its primary key.

update

public static DocumentType update(DocumentType documentType)
Update of the documentType which is specified in parameter

Parameters:
documentType - The instance of the documentType which contains the data to store
Returns:
The instance of the documentType which has been updated

remove

public static void remove(java.lang.String strCode)
Remove the DocumentType whose identifier is specified in parameter

Parameters:
strCode -

findByPrimaryKey

public static DocumentType findByPrimaryKey(java.lang.String strCode)
Returns an instance of a documentType whose identifier is specified in parameter

Parameters:
strCode -
Returns:
An instance of documentType

findAll

public static java.util.Collection<DocumentType> findAll()
Returns a collection of documentTypes objects

Returns:
A collection of documentTypes

checkDocuments

public static boolean checkDocuments(java.lang.String strCode)
Checks if type has documents

Parameters:
strCode -
Returns:

reorderAttributes

public static void reorderAttributes(int nIdAttribute1,
                                     int nOrderAttribute1,
                                     int nIdAttribute2,
                                     int nOrderAttribute2)
Reorder Attributes

Parameters:
nIdAttribute1 -
nOrderAttribute1 -
nIdAttribute2 -
nOrderAttribute2 -

getDocumentTypesList

public static fr.paris.lutece.util.ReferenceList getDocumentTypesList()
Get document types list

Returns:
document types list

setAdminStyleSheet

public static void setAdminStyleSheet(byte[] baXslAdmin,
                                      java.lang.String strCodeType)
Sets the admin stylesheet

Parameters:
baXslAdmin - The stylesheet
strCodeType - The code type

setContentStyleSheet

public static void setContentStyleSheet(byte[] baXslContent,
                                        java.lang.String strCodeType)
Sets the content service stylesheet

Parameters:
baXslContent - The stylesheet
strCodeType - The code type


Copyright © 2010 Mairie de Paris. All Rights Reserved.