public final class DocumentSpaceHome extends Object
Modifier and Type | Method and Description |
---|---|
static DocumentSpace |
create(DocumentSpace documentSpace)
Creation of an instance of documentSpace
|
static Collection<DocumentSpace> |
findAll()
Select all spaces
|
static DocumentSpace |
findByPrimaryKey(int nKey)
Returns an instance of a documentSpace whose identifier is specified in
parameter
|
static List<DocumentSpace> |
findChilds(int nParentSpaceId)
Returns a collection of documentSpaces objects
|
static List<DocumentSpace> |
findChildsByTypeOfDocument(int nParentSpaceId,
String strCodeType)
Returns a collection of documentSpaces objects by type of document
|
static List<DocumentSpace> |
findSpacesAllowingDocumentCreationByDocumentType(String strCodeType,
int createDocumentIsAllowed)
Returns a collection of documentSpaces objects by type of document
|
static fr.paris.lutece.util.ReferenceList |
getAllowedDocumentTypes(int nSpaceId)
Returns all allowed document types for a given space
|
static fr.paris.lutece.util.ReferenceList |
getDocumentSpaceList()
Returns a ReferenceList of documentSpaces objects
|
static fr.paris.lutece.util.ReferenceList |
getIconsList()
Gets a list of icons available or space customization
|
static fr.paris.lutece.util.ReferenceList |
getViewTypeList(Locale locale)
Returns a ReferenceList of documentSpaces objects
|
static void |
remove(int nDocumentSpaceId)
Remove the DocumentSpace whose identifier is specified in parameter
|
static DocumentSpace |
update(DocumentSpace documentSpace)
Update of the documentSpace which is specified in parameter
|
public static DocumentSpace create(DocumentSpace documentSpace)
documentSpace
- The instance of the documentSpace which contains the
informations to storepublic static DocumentSpace update(DocumentSpace documentSpace)
documentSpace
- The instance of the documentSpace which contains the
data to storepublic static void remove(int nDocumentSpaceId)
nDocumentSpaceId
- The id of the document spacepublic static DocumentSpace findByPrimaryKey(int nKey)
nKey
- The Primary key of the documentSpacepublic static List<DocumentSpace> findChilds(int nParentSpaceId)
nParentSpaceId
- The id of the parent document spacepublic static List<DocumentSpace> findChildsByTypeOfDocument(int nParentSpaceId, String strCodeType)
nParentSpaceId
- The id of the parent document spacestrCodeType
- the document typepublic static List<DocumentSpace> findSpacesAllowingDocumentCreationByDocumentType(String strCodeType, int createDocumentIsAllowed)
strCodeType
- the document type filtercreateDocumentIsAllowed
- code to define if document creation is
allowed or notpublic static fr.paris.lutece.util.ReferenceList getDocumentSpaceList()
public static fr.paris.lutece.util.ReferenceList getViewTypeList(Locale locale)
locale
- The localepublic static fr.paris.lutece.util.ReferenceList getIconsList()
public static Collection<DocumentSpace> findAll()
public static fr.paris.lutece.util.ReferenceList getAllowedDocumentTypes(int nSpaceId)
nSpaceId
- The space IdCopyright © 2020 City of Paris. All rights reserved.