fr.paris.lutece.plugins.document.business.spaces
Class DocumentSpaceDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.document.business.spaces.DocumentSpaceDAO
All Implemented Interfaces:
IDocumentSpaceDAO

public final class DocumentSpaceDAO
extends java.lang.Object
implements IDocumentSpaceDAO

This class provides Data Access methods for DocumentSpace objects


Constructor Summary
DocumentSpaceDAO()
           
 
Method Summary
 void delete(int nSpaceId)
          Delete a record from the table
 fr.paris.lutece.util.ReferenceList getAllowedDocumentTypes(int nSpaceId)
          Returns all allowed document types for a given space
 fr.paris.lutece.util.ReferenceList getDocumentSpaceList()
          Load the list of documentSpaces
 fr.paris.lutece.util.ReferenceList getIconsList()
          Gets a list of icons available or space customization
 fr.paris.lutece.util.ReferenceList getViewTypeList(java.util.Locale locale)
          Load the list of documentSpaces
 void insert(DocumentSpace space)
          Insert a new record in the table.
 DocumentSpace load(int nDocumentSpaceId)
          Load the data of DocumentSpace from the table
 java.util.List<DocumentSpace> selectAll()
          Select all spaces
 java.util.List<DocumentSpace> selectChilds(int nSpaceId)
          Load the list of documentSpaces
 void store(DocumentSpace space)
          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

DocumentSpaceDAO

public DocumentSpaceDAO()
Method Detail

insert

public void insert(DocumentSpace space)
Insert a new record in the table.

Specified by:
insert in interface IDocumentSpaceDAO
Parameters:
space - The space object

load

public DocumentSpace load(int nDocumentSpaceId)
Load the data of DocumentSpace from the table

Specified by:
load in interface IDocumentSpaceDAO
Parameters:
nDocumentSpaceId - The identifier of DocumentSpace
Returns:
the instance of the DocumentSpace

delete

public void delete(int nSpaceId)
Delete a record from the table

Specified by:
delete in interface IDocumentSpaceDAO
Parameters:
nSpaceId - The Id to delete

store

public void store(DocumentSpace space)
Update the record in the table

Specified by:
store in interface IDocumentSpaceDAO
Parameters:
space - The reference of space

selectChilds

public java.util.List<DocumentSpace> selectChilds(int nSpaceId)
Load the list of documentSpaces

Specified by:
selectChilds in interface IDocumentSpaceDAO
Parameters:
nSpaceId - The space identifier
Returns:
The Collection of the DocumentSpaces

getDocumentSpaceList

public fr.paris.lutece.util.ReferenceList getDocumentSpaceList()
Load the list of documentSpaces

Specified by:
getDocumentSpaceList in interface IDocumentSpaceDAO
Returns:
The Collection of the DocumentSpaces

getViewTypeList

public fr.paris.lutece.util.ReferenceList getViewTypeList(java.util.Locale locale)
Load the list of documentSpaces

Specified by:
getViewTypeList in interface IDocumentSpaceDAO
Parameters:
locale - The locale
Returns:
The Collection of the DocumentSpaces

getIconsList

public fr.paris.lutece.util.ReferenceList getIconsList()
Gets a list of icons available or space customization

Specified by:
getIconsList in interface IDocumentSpaceDAO
Returns:
A list of icons

selectAll

public java.util.List<DocumentSpace> selectAll()
Select all spaces

Specified by:
selectAll in interface IDocumentSpaceDAO
Returns:
A collection of all spaces.

getAllowedDocumentTypes

public fr.paris.lutece.util.ReferenceList getAllowedDocumentTypes(int nSpaceId)
Returns all allowed document types for a given space

Specified by:
getAllowedDocumentTypes in interface IDocumentSpaceDAO
Parameters:
nSpaceId - The space Id
Returns:
Allowed documents types as a ReferenceList


Copyright © 2009 Mairie de Paris. All Rights Reserved.