@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.GenericDocumentServiceLocal
DocumentNotFoundException
@RightsAllowed(value="Document:Read") public List<DocumentInfo> getAllDocuments() throws ErrorException
GenericDocumentService
getAllDocuments
in interface GenericDocumentService
ErrorException
public List<DocumentInfo> getNonParametricDocuments() throws ErrorException
GenericDocumentService
getNonParametricDocuments
in interface GenericDocumentService
ErrorException
@RightsAllowed(value="Document:Read") public List<DocumentInfo> getDocuments(DocumentParameters parameters) throws ErrorException
GenericDocumentService
getDocuments
in interface GenericDocumentService
ErrorException
public long saveDocument(com.whitestein.lsps.human.dto.GenericDocument document)
saveDocument
in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocal
public long saveDocument(com.whitestein.lsps.human.dto.GenericDocument document, boolean emptyContent)
saveDocument
in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocal
public void saveDocument(long savedDocumentId, com.whitestein.lsps.human.dto.GenericDocument document) throws SavedDocumentNotFoundException
saveDocument
in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocal
SavedDocumentNotFoundException
public void deleteDocument(long savedDocumentId) throws SavedDocumentNotFoundException
deleteDocument
in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocal
SavedDocumentNotFoundException
@RightsAllowed(value="Document:Read") public SavedDocumentList getSavedDocuments(SavedDocumentCriteria criteria)
GenericDocumentService
getSavedDocuments
in interface GenericDocumentService
@RightsAllowed(value="Document:Read") public SavedDocument getSavedDocument(long savedDocumentId, boolean includeContent) throws SavedDocumentNotFoundException
GenericDocumentService
getSavedDocument
in interface GenericDocumentService
SavedDocumentNotFoundException
@RightsAllowed(value="Document:Read") public com.whitestein.lsps.human.dto.GenericDocument openSavedDocument(long savedDocumentId) throws SavedDocumentNotFoundException
openSavedDocument
in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocal
SavedDocumentNotFoundException
public void submitSavedDocument(long savedDocumentId) throws LspsException
submitSavedDocument
in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocal
LspsException
public String getImplementationType(String documentId) throws DocumentNotFoundException
getImplementationType
in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocal
DocumentNotFoundException
public String getImplementationType(long savedDocumentId) throws DocumentNotFoundException
getImplementationType
in interface com.whitestein.lsps.human.ejb.GenericDocumentServiceLocal
DocumentNotFoundException
@RightsAllowed(value="Document:Read") public ByteData getSavedDocumentState(long savedDocumentId) throws SavedDocumentNotFoundException
GenericDocumentService
getSavedDocumentState
in interface GenericDocumentService
SavedDocumentNotFoundException
@RightsAllowed(value="Document:Read") public CompressedData getCompressedSavedDocumentState(long savedDocumentId) throws SavedDocumentNotFoundException
GenericDocumentService
getCompressedSavedDocumentState
in interface GenericDocumentService
SavedDocumentNotFoundException
@RightsAllowed(value="Document:Write") public void setSavedDocumentState(long savedDocumentId, ByteData data) throws SavedDocumentNotFoundException
GenericDocumentService
setSavedDocumentState
in interface GenericDocumentService
SavedDocumentNotFoundException
@RightsAllowed(value="Document:Write") public void setCompressedDocumentSavedState(long savedDocumentId, CompressedData data) throws SavedDocumentNotFoundException
GenericDocumentService
setCompressedDocumentSavedState
in interface GenericDocumentService
SavedDocumentNotFoundException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.