|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.document.modules.rest.rs.DocumentRest
public class DocumentRest
DocumentRest
| Constructor Summary | |
|---|---|
DocumentRest()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentRest()
| Method Detail |
|---|
public String getWADL(@Context
javax.servlet.http.HttpServletRequest request)
request - HttpServletRequest
public String getDocumentSpaces(String strIdUser)
strIdUser - the id user
public String getDocumentSpacesByCodeType(String strCodeType)
strCodeType - The specific code document type
public String getDocumentAttributesByCodeType(String strCodeType)
strCodeType - The code document type
public List<fr.paris.lutece.plugins.document.business.spaces.DocumentSpace> getSpaceById(String strIdSpace)
strIdSpace - the id space
public List<fr.paris.lutece.plugins.document.business.Document> getDocumentsList(String strIdSpace)
strIdSpace - the id space
public List<fr.paris.lutece.plugins.document.business.Document> getDocument(String strIdDocument)
strIdDocument - the id document
public String getCreatingDocumentFields(String strCodeDocumentType)
strCodeDocumentType - type document code
public String getListDocumentTypes()
public String getDeletingDocument(String strIdDocument)
strIdDocument - id document
public List<fr.paris.lutece.util.ReferenceItem> getPortletsToAssignDocument(String strIdDocument)
strIdDocument - id document
public 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 document
public String doSubmitOrUnsubmitDocumentToValidate(String strIdDocument,
String strIdAction,
String strIdUser,
@Context
javax.servlet.http.HttpServletRequest request)
strIdDocument - id documentstrIdAction - id actionstrIdUser - id userrequest - request
public String doValidateDocument(String strIdDocument,
String strIdAction,
String strIdUser,
@Context
javax.servlet.http.HttpServletRequest request)
strIdDocument - id documentstrIdAction - id actionstrIdUser - id userrequest - request
public String doAssignDocumentToPortlet(String strIdDocument,
String strIdPortlet,
@Context
javax.servlet.http.HttpServletRequest request)
strIdDocument - id documentstrIdPortlet - id portletrequest - request
public String doUnassignDocumentToPortlet(String strIdDocument,
String strIdPortlet,
@Context
javax.servlet.http.HttpServletRequest request)
strIdDocument - id documentstrIdPortlet - id portletrequest - request
public String doPublishDocument(String strIdDocument,
String strIdPortlet,
@Context
javax.servlet.http.HttpServletRequest request)
strIdDocument - id documentstrIdPortlet - id portletrequest - request
public String doUnpublishDocument(String strIdDocument,
String strIdPortlet,
@Context
javax.servlet.http.HttpServletRequest request)
strIdDocument - id documentstrIdPortlet - id portletrequest - request
public String doCreateDocument(@Context
javax.servlet.http.HttpServletRequest request)
request - request
public 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 object
public String doModifyDocument(@Context
javax.servlet.http.HttpServletRequest request)
request - request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||