public final class DocumentSpaceDAO extends Object implements IDocumentSpaceDAO
| Constructor and Description |
|---|
DocumentSpaceDAO() |
| Modifier and Type | Method and Description |
|---|---|
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(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
|
List<DocumentSpace> |
selectAll()
Select all spaces
|
List<DocumentSpace> |
selectChilds(int nSpaceId,
String strCodeType)
Load the list of documentSpaces childs
|
List<DocumentSpace> |
selectSpacesAllowingDocumentCreationByDocumentType(String strCodeType,
int createDocumentIsAllowed)
Load the list of documentSpaces authorizing the selected document type
|
void |
store(DocumentSpace space)
Update the record in the table
|
public void insert(DocumentSpace space)
insert in interface IDocumentSpaceDAOspace - The space objectpublic DocumentSpace load(int nDocumentSpaceId)
load in interface IDocumentSpaceDAOnDocumentSpaceId - The identifier of DocumentSpacepublic void delete(int nSpaceId)
delete in interface IDocumentSpaceDAOnSpaceId - The Id to deletepublic void store(DocumentSpace space)
store in interface IDocumentSpaceDAOspace - The reference of spacepublic List<DocumentSpace> selectChilds(int nSpaceId, String strCodeType)
selectChilds in interface IDocumentSpaceDAOstrCodeType - the document type filter if needed (null if not)nSpaceId - The space identifierpublic List<DocumentSpace> selectSpacesAllowingDocumentCreationByDocumentType(String strCodeType, int createDocumentIsAllowed)
selectSpacesAllowingDocumentCreationByDocumentType in interface IDocumentSpaceDAOstrCodeType - the document type filtercreateDocumentIsAllowed - code to define if document creation is allowed or notpublic fr.paris.lutece.util.ReferenceList getDocumentSpaceList()
getDocumentSpaceList in interface IDocumentSpaceDAOpublic fr.paris.lutece.util.ReferenceList getViewTypeList(Locale locale)
getViewTypeList in interface IDocumentSpaceDAOlocale - The localepublic fr.paris.lutece.util.ReferenceList getIconsList()
getIconsList in interface IDocumentSpaceDAOpublic List<DocumentSpace> selectAll()
selectAll in interface IDocumentSpaceDAOpublic fr.paris.lutece.util.ReferenceList getAllowedDocumentTypes(int nSpaceId)
getAllowedDocumentTypes in interface IDocumentSpaceDAOnSpaceId - The space IdCopyright © 2020 City of Paris. All rights reserved.