Class DocumentSpaceDAO
java.lang.Object
fr.paris.lutece.plugins.document.business.spaces.DocumentSpaceDAO
- All Implemented Interfaces:
IDocumentSpaceDAO
This class provides Data Access methods for DocumentSpace objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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.ReferenceListLoad the list of documentSpacesfr.paris.lutece.util.ReferenceListGets 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.load(int nDocumentSpaceId) Load the data of DocumentSpace from the tableSelect all spacesselectChilds(int nSpaceId, String strCodeType) Load the list of documentSpaces childsselectSpacesAllowingDocumentCreationByDocumentType(String strCodeType, int createDocumentIsAllowed) Load the list of documentSpaces authorizing the selected document typevoidstore(DocumentSpace space) Update the record in the table
-
Constructor Details
-
DocumentSpaceDAO
public DocumentSpaceDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIDocumentSpaceDAO- Parameters:
space- The space object
-
load
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
Update the record in the table- Specified by:
storein interfaceIDocumentSpaceDAO- Parameters:
space- The reference of space
-
selectChilds
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
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
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
-