public class DocumentRest extends Object
| Constructor and Description |
|---|
DocumentRest() |
| Modifier and Type | Method and Description |
|---|---|
String |
doAssignDocumentToPortlet(String strIdDocument,
String strIdPortlet,
javax.servlet.http.HttpServletRequest request)
Assign a document to the portlet
|
String |
doCreateDocument(javax.servlet.http.HttpServletRequest request)
Create document
|
String |
doModifyDocument(javax.servlet.http.HttpServletRequest request)
Modify document
|
String |
doPublishDocument(String strIdDocument,
String strIdPortlet,
javax.servlet.http.HttpServletRequest request)
Publish a document
|
String |
doSubmitOrUnsubmitDocumentToValidate(String strIdDocument,
String strIdAction,
String strIdUser,
javax.servlet.http.HttpServletRequest request)
Method to submit or not a document to validate it
|
String |
doUnassignDocumentToPortlet(String strIdDocument,
String strIdPortlet,
javax.servlet.http.HttpServletRequest request)
Unassign a document to the portlet
|
String |
doUnpublishDocument(String strIdDocument,
String strIdPortlet,
javax.servlet.http.HttpServletRequest request)
Unpublish a document
|
String |
doValidateDocument(String strIdDocument,
String strIdAction,
String strIdUser,
javax.servlet.http.HttpServletRequest request)
Validate a document
|
String |
getCreatingDocumentFields(String strCodeDocumentType)
Get different type document fields to create it
|
String |
getDeletingDocument(String strIdDocument)
Remove the document by id
|
List<fr.paris.lutece.plugins.document.business.Document> |
getDocument(String strIdDocument)
Get document by id document
|
String |
getDocumentAttributesByCodeType(String strCodeType)
Get all atributes of a selected document type
|
static String |
getDocumentData(fr.paris.lutece.portal.web.upload.MultipartHttpServletRequest multipartRequest,
fr.paris.lutece.plugins.document.business.Document document,
Locale locale)
Return the data of a document object
|
List<fr.paris.lutece.plugins.document.business.Document> |
getDocumentsList(String strIdSpace)
Get documents list by id space
|
String |
getDocumentSpaces(String strIdUser)
Get document spaces by id user
|
String |
getDocumentSpacesByCodeType(String strCodeType)
Get list of all spaces selected by a specific code document type
|
String |
getListDocumentTypes()
Get list of different types document
|
List<fr.paris.lutece.util.ReferenceItem> |
getPortletsListToAssignDocument(String strIdDocument)
Get the list of list documents portlets
|
List<fr.paris.lutece.util.ReferenceItem> |
getPortletsToAssignDocument(String strIdDocument)
Get the list of document portlets
|
List<fr.paris.lutece.plugins.document.business.publication.DocumentPublication> |
getPortletsToPublishDocument(String strIdDocument)
Get the list of document/list documents portlets where the document is assigned
|
List<fr.paris.lutece.plugins.document.business.spaces.DocumentSpace> |
getSpaceById(String strIdSpace)
Get space by id
|
String |
getWADL(javax.servlet.http.HttpServletRequest request)
Get the wadl.xml content
|
public String getWADL(@Context javax.servlet.http.HttpServletRequest request)
request - HttpServletRequestpublic String getDocumentSpaces(String strIdUser)
strIdUser - the id userpublic String getDocumentSpacesByCodeType(String strCodeType)
strCodeType - The specific code document typepublic String getDocumentAttributesByCodeType(String strCodeType)
strCodeType - The code document typepublic List<fr.paris.lutece.plugins.document.business.spaces.DocumentSpace> getSpaceById(String strIdSpace)
strIdSpace - the id spacepublic List<fr.paris.lutece.plugins.document.business.Document> getDocumentsList(String strIdSpace)
strIdSpace - the id spacepublic List<fr.paris.lutece.plugins.document.business.Document> getDocument(String strIdDocument)
strIdDocument - the id documentpublic String getCreatingDocumentFields(String strCodeDocumentType)
strCodeDocumentType - type document codepublic String getListDocumentTypes()
public String getDeletingDocument(String strIdDocument)
strIdDocument - id documentpublic List<fr.paris.lutece.util.ReferenceItem> getPortletsToAssignDocument(String strIdDocument)
strIdDocument - id documentpublic List<fr.paris.lutece.util.ReferenceItem> getPortletsListToAssignDocument(String strIdDocument)
strIdDocument - public List<fr.paris.lutece.plugins.document.business.publication.DocumentPublication> getPortletsToPublishDocument(String strIdDocument)
strIdDocument - id documentpublic String doSubmitOrUnsubmitDocumentToValidate(String strIdDocument, String strIdAction, String strIdUser, @Context javax.servlet.http.HttpServletRequest request)
strIdDocument - id documentstrIdAction - id actionstrIdUser - id userrequest - requestpublic String doValidateDocument(String strIdDocument, String strIdAction, String strIdUser, @Context javax.servlet.http.HttpServletRequest request)
strIdDocument - id documentstrIdAction - id actionstrIdUser - id userrequest - requestpublic String doAssignDocumentToPortlet(String strIdDocument, String strIdPortlet, @Context javax.servlet.http.HttpServletRequest request)
strIdDocument - id documentstrIdPortlet - id portletrequest - requestpublic String doUnassignDocumentToPortlet(String strIdDocument, String strIdPortlet, @Context javax.servlet.http.HttpServletRequest request)
strIdDocument - id documentstrIdPortlet - id portletrequest - requestpublic String doPublishDocument(String strIdDocument, String strIdPortlet, @Context javax.servlet.http.HttpServletRequest request)
strIdDocument - id documentstrIdPortlet - id portletrequest - requestpublic String doUnpublishDocument(String strIdDocument, String strIdPortlet, @Context javax.servlet.http.HttpServletRequest request)
strIdDocument - id documentstrIdPortlet - id portletrequest - requestpublic String doCreateDocument(@Context javax.servlet.http.HttpServletRequest request)
request - requestpublic static String getDocumentData(fr.paris.lutece.portal.web.upload.MultipartHttpServletRequest multipartRequest, fr.paris.lutece.plugins.document.business.Document document, Locale locale)
multipartRequest - map of parametersdocument - The document objectpublic String doModifyDocument(@Context javax.servlet.http.HttpServletRequest request)
request - requestCopyright © 2016 Mairie de Paris. All rights reserved.