public class DocumentimportService extends Object
Modifier and Type | Method and Description |
---|---|
void |
createDocument(fr.paris.lutece.plugins.document.business.Document document,
fr.paris.lutece.portal.business.user.AdminUser user)
Create a new document
|
String |
getDocumentData(javax.servlet.http.HttpServletRequest mRequest,
fr.paris.lutece.plugins.document.business.Document document,
HashMap<String,String> valueAttribute,
DocumentimporError _docError,
Locale locale,
fr.paris.lutece.portal.business.user.AdminUser user)
Return the data of a document object
|
int |
getIdSpace(String nameSpaceParent,
String nameSpaceFils)
get identifiant of the space
|
static DocumentimportService |
getInstance()
Get the unique instance of the service
|
Collection<fr.paris.lutece.plugins.document.business.spaces.DocumentSpace> |
getUserSpaces(fr.paris.lutece.portal.business.user.AdminUser user)
get user space
|
public String getDocumentData(javax.servlet.http.HttpServletRequest mRequest, fr.paris.lutece.plugins.document.business.Document document, HashMap<String,String> valueAttribute, DocumentimporError _docError, Locale locale, fr.paris.lutece.portal.business.user.AdminUser user)
mRequest
- The MultipartHttpServletRequestdocument
- The document objectlocale
- The localepublic void createDocument(fr.paris.lutece.plugins.document.business.Document document, fr.paris.lutece.portal.business.user.AdminUser user) throws fr.paris.lutece.plugins.document.service.DocumentException
document
- The documentuser
- The user doing the actionfr.paris.lutece.plugins.document.service.DocumentException
- raise when error occurs in event or rulepublic static DocumentimportService getInstance()
public Collection<fr.paris.lutece.plugins.document.business.spaces.DocumentSpace> getUserSpaces(fr.paris.lutece.portal.business.user.AdminUser user)
user
- Copyright © 2016 City of Paris. All rights reserved.