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 IDocumentSpaceDAO
space
- The space objectpublic DocumentSpace load(int nDocumentSpaceId)
load
in interface IDocumentSpaceDAO
nDocumentSpaceId
- The identifier of DocumentSpacepublic void delete(int nSpaceId)
delete
in interface IDocumentSpaceDAO
nSpaceId
- The Id to deletepublic void store(DocumentSpace space)
store
in interface IDocumentSpaceDAO
space
- The reference of spacepublic List<DocumentSpace> selectChilds(int nSpaceId, String strCodeType)
selectChilds
in interface IDocumentSpaceDAO
strCodeType
- the document type filter if needed (null if not)nSpaceId
- The space identifierpublic List<DocumentSpace> selectSpacesAllowingDocumentCreationByDocumentType(String strCodeType, int createDocumentIsAllowed)
selectSpacesAllowingDocumentCreationByDocumentType
in interface IDocumentSpaceDAO
strCodeType
- the document type filtercreateDocumentIsAllowed
- code to define if document creation is allowed or notpublic fr.paris.lutece.util.ReferenceList getDocumentSpaceList()
getDocumentSpaceList
in interface IDocumentSpaceDAO
public fr.paris.lutece.util.ReferenceList getViewTypeList(Locale locale)
getViewTypeList
in interface IDocumentSpaceDAO
locale
- The localepublic fr.paris.lutece.util.ReferenceList getIconsList()
getIconsList
in interface IDocumentSpaceDAO
public List<DocumentSpace> selectAll()
selectAll
in interface IDocumentSpaceDAO
public fr.paris.lutece.util.ReferenceList getAllowedDocumentTypes(int nSpaceId)
getAllowedDocumentTypes
in interface IDocumentSpaceDAO
nSpaceId
- The space IdCopyright © 2020 City of Paris. All rights reserved.