|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.document.service.DocumentService
public class DocumentService
This Service manages document actions (create, move, delete, validate ...) and notify listeners.
Method Summary | |
---|---|
void |
changeDocumentState(Document document,
fr.paris.lutece.portal.business.user.AdminUser user,
int nStateId)
Change the state of the document |
void |
createDocument(Document document,
fr.paris.lutece.portal.business.user.AdminUser user)
Create a new document |
void |
getActions(Document document,
java.util.Locale locale,
fr.paris.lutece.portal.business.user.AdminUser user)
Add to the document all permitted actions according to the current user and using the current locale |
java.lang.String |
getCreateForm(java.lang.String strDocumentTypeCode,
java.util.Locale locale)
Build an HTML form for the document creation for a given document type |
static DocumentService |
getInstance()
Get the unique instance of the service |
java.lang.String |
getModifyForm(java.lang.String strDocumentId,
java.util.Locale locale)
Build an HTML form for the document modification for a given document |
void |
modifyDocument(Document document,
fr.paris.lutece.portal.business.user.AdminUser user)
Modify a the content of a document |
void |
moveDocument(Document document,
fr.paris.lutece.portal.business.user.AdminUser user,
int nNewSpace)
Move a document from a space to another |
void |
validateDocument(Document document,
fr.paris.lutece.portal.business.user.AdminUser user,
int nStateId)
Validate a document |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DocumentService getInstance()
public void changeDocumentState(Document document, fr.paris.lutece.portal.business.user.AdminUser user, int nStateId)
document
- The documentuser
- The user doing the actionnStateId
- The new state Idpublic void createDocument(Document document, fr.paris.lutece.portal.business.user.AdminUser user)
document
- The documentuser
- The user doing the actionpublic void modifyDocument(Document document, fr.paris.lutece.portal.business.user.AdminUser user)
document
- The documentuser
- The user doing the actionpublic void validateDocument(Document document, fr.paris.lutece.portal.business.user.AdminUser user, int nStateId)
nStateId
- The new state id for a validated documentdocument
- The documentuser
- The user doing the actionpublic void moveDocument(Document document, fr.paris.lutece.portal.business.user.AdminUser user, int nNewSpace)
document
- The documentuser
- The user doing the actionnNewSpace
- The Id of the destination spacepublic void getActions(Document document, java.util.Locale locale, fr.paris.lutece.portal.business.user.AdminUser user)
user
- The current userdocument
- The documentlocale
- The Localepublic java.lang.String getCreateForm(java.lang.String strDocumentTypeCode, java.util.Locale locale)
strDocumentTypeCode
- The Document type codelocale
- The Locale
public java.lang.String getModifyForm(java.lang.String strDocumentId, java.util.Locale locale)
strDocumentId
- The Id of the document to modifylocale
- The Locale
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |