Class DocumentSpaceDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.document.business.spaces.DocumentSpaceDAO
-
- All Implemented Interfaces:
IDocumentSpaceDAO
public final class DocumentSpaceDAO extends Object implements IDocumentSpaceDAO
This class provides Data Access methods for DocumentSpace objects
-
-
Constructor Summary
Constructors Constructor Description DocumentSpaceDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nSpaceId)Delete a record from the tablefr.paris.lutece.util.ReferenceListgetAllowedDocumentTypes(int nSpaceId)Returns all allowed document types for a given spacefr.paris.lutece.util.ReferenceListgetDocumentSpaceList()Load the list of documentSpacesfr.paris.lutece.util.ReferenceListgetIconsList()Gets a list of icons available or space customizationfr.paris.lutece.util.ReferenceListgetViewTypeList(Locale locale)Load the list of documentSpacesvoidinsert(DocumentSpace space)Insert a new record in the table.DocumentSpaceload(int nDocumentSpaceId)Load the data of DocumentSpace from the tableList<DocumentSpace>selectAll()Select all spacesList<DocumentSpace>selectChilds(int nSpaceId, String strCodeType)Load the list of documentSpaces childsList<DocumentSpace>selectSpacesAllowingDocumentCreationByDocumentType(String strCodeType, int createDocumentIsAllowed)Load the list of documentSpaces authorizing the selected document typevoidstore(DocumentSpace space)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(DocumentSpace space)
Insert a new record in the table.- Specified by:
insertin interfaceIDocumentSpaceDAO- Parameters:
space- The space object
-
load
public DocumentSpace load(int nDocumentSpaceId)
Load the data of DocumentSpace from the table- Specified by:
loadin interfaceIDocumentSpaceDAO- 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:
deletein interfaceIDocumentSpaceDAO- Parameters:
nSpaceId- The Id to delete
-
store
public void store(DocumentSpace space)
Update the record in the table- Specified by:
storein interfaceIDocumentSpaceDAO- Parameters:
space- The reference of space
-
selectChilds
public List<DocumentSpace> selectChilds(int nSpaceId, String strCodeType)
Load the list of documentSpaces childs- Specified by:
selectChildsin interfaceIDocumentSpaceDAO- Parameters:
strCodeType- the document type filter if needed (null if not)nSpaceId- The space identifier- Returns:
- The Collection of the DocumentSpaces
-
selectSpacesAllowingDocumentCreationByDocumentType
public List<DocumentSpace> selectSpacesAllowingDocumentCreationByDocumentType(String strCodeType, int createDocumentIsAllowed)
Load the list of documentSpaces authorizing the selected document type- Specified by:
selectSpacesAllowingDocumentCreationByDocumentTypein interfaceIDocumentSpaceDAO- Parameters:
strCodeType- the document type filtercreateDocumentIsAllowed- code to define if document creation is allowed or not- Returns:
- The Collection of the DocumentSpaces
-
getDocumentSpaceList
public fr.paris.lutece.util.ReferenceList getDocumentSpaceList()
Load the list of documentSpaces- Specified by:
getDocumentSpaceListin interfaceIDocumentSpaceDAO- Returns:
- The Collection of the DocumentSpaces
-
getViewTypeList
public fr.paris.lutece.util.ReferenceList getViewTypeList(Locale locale)
Load the list of documentSpaces- Specified by:
getViewTypeListin interfaceIDocumentSpaceDAO- 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:
getIconsListin interfaceIDocumentSpaceDAO- Returns:
- A list of icons
-
selectAll
public List<DocumentSpace> selectAll()
Select all spaces- Specified by:
selectAllin interfaceIDocumentSpaceDAO- 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:
getAllowedDocumentTypesin interfaceIDocumentSpaceDAO- Parameters:
nSpaceId- The space Id- Returns:
- Allowed documents types as a ReferenceList
-
-