@PermitAll public class GenericDocumentServiceBean extends com.whitestein.lsps.common.SecureAndLoggingService implements com.whitestein.lsps.human.ejb.GenericDocumentServiceLocal, GenericDocumentServiceRemote
GenericDocumentService.| Constructor and Description |
|---|
GenericDocumentServiceBean() |
| Modifier and Type | Method and Description |
|---|---|
com.whitestein.lsps.human.dto.GenericDocument |
createGenericDocument(String documentId,
Map<String,Object> varValues) |
void |
deleteDocument(long savedDocumentId) |
List<DocumentInfo> |
getAllDocuments()
Returns all generic documents.
|
CompressedData |
getCompressedSavedDocumentState(long savedDocumentId)
Returns the content of a saved document.
|
List<DocumentInfo> |
getDocuments(DocumentParameters parameters)
Returns all generic documents for the parameters.
|
String |
getImplementationType(long savedDocumentId) |
String |
getImplementationType(String documentId) |
List<DocumentInfo> |
getNonParametricDocuments()
Returns generic documents with no parameters only.
|
SavedDocument |
getSavedDocument(long savedDocumentId,
boolean includeContent)
Returns the saved document.
|
SavedDocumentList |
getSavedDocuments(SavedDocumentCriteria criteria)
Returns all saved documents according to criteria.
|
ByteData |
getSavedDocumentState(long savedDocumentId)
Returns the content of a saved document.
|
com.whitestein.lsps.human.dto.GenericDocument |
openSavedDocument(long savedDocumentId) |
long |
saveDocument(com.whitestein.lsps.human.dto.GenericDocument document) |
long |
saveDocument(com.whitestein.lsps.human.dto.GenericDocument document,
boolean emptyContent) |
void |
saveDocument(long savedDocumentId,
com.whitestein.lsps.human.dto.GenericDocument document) |
void |
setCompressedDocumentSavedState(long savedDocumentId,
CompressedData data)
Sets the saved document state.
|
void |
setSavedDocumentState(long savedDocumentId,
ByteData data)
Sets the saved document state.
|
void |
submitSavedDocument(long savedDocumentId) |
@RightsAllowed(value="Document:Read") public com.whitestein.lsps.human.dto.GenericDocument createGenericDocument(String documentId, Map<String,Object> varValues) throws DocumentNotFoundException
createGenericDocument in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocalDocumentNotFoundException@RightsAllowed(value="Document:Read") public List<DocumentInfo> getAllDocuments() throws ErrorException
GenericDocumentServicegetAllDocuments in interface GenericDocumentServiceErrorExceptionpublic List<DocumentInfo> getNonParametricDocuments() throws ErrorException
GenericDocumentServicegetNonParametricDocuments in interface GenericDocumentServiceErrorException@RightsAllowed(value="Document:Read") public List<DocumentInfo> getDocuments(DocumentParameters parameters) throws ErrorException
GenericDocumentServicegetDocuments in interface GenericDocumentServiceErrorExceptionpublic long saveDocument(com.whitestein.lsps.human.dto.GenericDocument document)
saveDocument in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocalpublic long saveDocument(com.whitestein.lsps.human.dto.GenericDocument document,
boolean emptyContent)
saveDocument in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocalpublic void saveDocument(long savedDocumentId,
com.whitestein.lsps.human.dto.GenericDocument document)
throws SavedDocumentNotFoundException
saveDocument in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocalSavedDocumentNotFoundExceptionpublic void deleteDocument(long savedDocumentId)
throws SavedDocumentNotFoundException
deleteDocument in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocalSavedDocumentNotFoundException@RightsAllowed(value="Document:Read") public SavedDocumentList getSavedDocuments(SavedDocumentCriteria criteria)
GenericDocumentServicegetSavedDocuments in interface GenericDocumentService@RightsAllowed(value="Document:Read") public SavedDocument getSavedDocument(long savedDocumentId, boolean includeContent) throws SavedDocumentNotFoundException
GenericDocumentServicegetSavedDocument in interface GenericDocumentServiceSavedDocumentNotFoundException@RightsAllowed(value="Document:Read")
public com.whitestein.lsps.human.dto.GenericDocument openSavedDocument(long savedDocumentId)
throws SavedDocumentNotFoundException
openSavedDocument in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocalSavedDocumentNotFoundExceptionpublic void submitSavedDocument(long savedDocumentId)
throws LspsException
submitSavedDocument in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocalLspsExceptionpublic String getImplementationType(String documentId) throws DocumentNotFoundException
getImplementationType in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocalDocumentNotFoundExceptionpublic String getImplementationType(long savedDocumentId) throws DocumentNotFoundException
getImplementationType in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocalDocumentNotFoundException@RightsAllowed(value="Document:Read") public ByteData getSavedDocumentState(long savedDocumentId) throws SavedDocumentNotFoundException
GenericDocumentServicegetSavedDocumentState in interface GenericDocumentServiceSavedDocumentNotFoundException@RightsAllowed(value="Document:Read") public CompressedData getCompressedSavedDocumentState(long savedDocumentId) throws SavedDocumentNotFoundException
GenericDocumentServicegetCompressedSavedDocumentState in interface GenericDocumentServiceSavedDocumentNotFoundException@RightsAllowed(value="Document:Write")
public void setSavedDocumentState(long savedDocumentId,
ByteData data)
throws SavedDocumentNotFoundException
GenericDocumentServicesetSavedDocumentState in interface GenericDocumentServiceSavedDocumentNotFoundException@RightsAllowed(value="Document:Write")
public void setCompressedDocumentSavedState(long savedDocumentId,
CompressedData data)
throws SavedDocumentNotFoundException
GenericDocumentServicesetCompressedDocumentSavedState in interface GenericDocumentServiceSavedDocumentNotFoundExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.