Class DocumentSpaceHome


  • public final class DocumentSpaceHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for DocumentSpace objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static DocumentSpace create​(DocumentSpace documentSpace)
      Creation of an instance of documentSpace
      static java.util.Collection<DocumentSpace> findAll()
      Select all spaces
      static DocumentSpace findByPrimaryKey​(int nKey)
      Returns an instance of a documentSpace whose identifier is specified in parameter
      static java.util.List<DocumentSpace> findChilds​(int nParentSpaceId)
      Returns a collection of documentSpaces objects
      static java.util.List<DocumentSpace> findChildsByTypeOfDocument​(int nParentSpaceId, java.lang.String strCodeType)
      Returns a collection of documentSpaces objects by type of document
      static java.util.List<DocumentSpace> findSpacesAllowingDocumentCreationByDocumentType​(java.lang.String strCodeType, int createDocumentIsAllowed)
      Returns a collection of documentSpaces objects by type of document
      static fr.paris.lutece.util.ReferenceList getAllowedDocumentTypes​(int nSpaceId)
      Returns all allowed document types for a given space
      static fr.paris.lutece.util.ReferenceList getDocumentSpaceList()
      Returns a ReferenceList of documentSpaces objects
      static fr.paris.lutece.util.ReferenceList getIconsList()
      Gets a list of icons available or space customization
      static fr.paris.lutece.util.ReferenceList getViewTypeList​(java.util.Locale locale)
      Returns a ReferenceList of documentSpaces objects
      static void remove​(int nDocumentSpaceId)
      Remove the DocumentSpace whose identifier is specified in parameter
      static DocumentSpace update​(DocumentSpace documentSpace)
      Update of the documentSpace which is specified in parameter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static DocumentSpace create​(DocumentSpace documentSpace)
        Creation of an instance of documentSpace
        Parameters:
        documentSpace - The instance of the documentSpace which contains the informations to store
        Returns:
        The instance of documentSpace which has been created with its primary key.
      • update

        public static DocumentSpace update​(DocumentSpace documentSpace)
        Update of the documentSpace which is specified in parameter
        Parameters:
        documentSpace - The instance of the documentSpace which contains the data to store
        Returns:
        The instance of the documentSpace which has been updated
      • remove

        public static void remove​(int nDocumentSpaceId)
        Remove the DocumentSpace whose identifier is specified in parameter
        Parameters:
        nDocumentSpaceId - The id of the document space
      • findByPrimaryKey

        public static DocumentSpace findByPrimaryKey​(int nKey)
        Returns an instance of a documentSpace whose identifier is specified in parameter
        Parameters:
        nKey - The Primary key of the documentSpace
        Returns:
        An instance of documentSpace
      • findChilds

        public static java.util.List<DocumentSpace> findChilds​(int nParentSpaceId)
        Returns a collection of documentSpaces objects
        Parameters:
        nParentSpaceId - The id of the parent document space
        Returns:
        A collection of documentSpaces
      • findChildsByTypeOfDocument

        public static java.util.List<DocumentSpace> findChildsByTypeOfDocument​(int nParentSpaceId,
                                                                               java.lang.String strCodeType)
        Returns a collection of documentSpaces objects by type of document
        Parameters:
        nParentSpaceId - The id of the parent document space
        strCodeType - the document type
        Returns:
        A collection of documentSpaces
      • findSpacesAllowingDocumentCreationByDocumentType

        public static java.util.List<DocumentSpace> findSpacesAllowingDocumentCreationByDocumentType​(java.lang.String strCodeType,
                                                                                                     int createDocumentIsAllowed)
        Returns a collection of documentSpaces objects by type of document
        Parameters:
        strCodeType - the document type filter
        createDocumentIsAllowed - code to define if document creation is allowed or not
        Returns:
        The Collection of the DocumentSpaces
      • getDocumentSpaceList

        public static fr.paris.lutece.util.ReferenceList getDocumentSpaceList()
        Returns a ReferenceList of documentSpaces objects
        Returns:
        A ReferenceList of documentSpaces
      • getViewTypeList

        public static fr.paris.lutece.util.ReferenceList getViewTypeList​(java.util.Locale locale)
        Returns a ReferenceList of documentSpaces objects
        Parameters:
        locale - The locale
        Returns:
        A ReferenceList of documentSpaces
      • getIconsList

        public static fr.paris.lutece.util.ReferenceList getIconsList()
        Gets a list of icons available or space customization
        Returns:
        A list of icons
      • findAll

        public static java.util.Collection<DocumentSpace> findAll()
        Select all spaces
        Returns:
        A collection of all spaces.
      • getAllowedDocumentTypes

        public static fr.paris.lutece.util.ReferenceList getAllowedDocumentTypes​(int nSpaceId)
        Returns all allowed document types for a given space
        Parameters:
        nSpaceId - The space Id
        Returns:
        Allowed documents types as a ReferenceList