@Service @Transactional public class FileDocumentService extends java.lang.Object implements DocumentService<FileDocumentDTO>
| Constructor and Description |
|---|
FileDocumentService(DocumentService<DocumentDTO> documentService,
DocumentFileService documentFileService,
org.springframework.core.io.Resource filesRoot,
Config config) |
| Modifier and Type | Method and Description |
|---|---|
FileDocumentDTO |
copy(int docId) |
FileDocumentDTO |
createFromParent(java.lang.Integer parentDocId) |
void |
deleteByDocId(java.lang.Integer docIdToDelete) |
FileDocumentDTO |
get(int docId) |
org.apache.solr.common.SolrInputDocument |
index(int docId) |
boolean |
publishDocument(int docId,
int userId) |
FileDocumentDTO |
save(FileDocumentDTO saveMe)
Saves document to DB.
|
public FileDocumentService(DocumentService<DocumentDTO> documentService, DocumentFileService documentFileService, @Value(value="${FilePath}") org.springframework.core.io.Resource filesRoot, Config config)
public FileDocumentDTO get(int docId)
get in interface BasicDocumentService<FileDocumentDTO>public FileDocumentDTO save(FileDocumentDTO saveMe)
DocumentSaversave in interface DocumentSaver<FileDocumentDTO>saveMe - document to be savedpublic FileDocumentDTO copy(int docId)
copy in interface BasicDocumentService<FileDocumentDTO>public boolean publishDocument(int docId,
int userId)
publishDocument in interface BasicDocumentService<FileDocumentDTO>public void deleteByDocId(java.lang.Integer docIdToDelete)
deleteByDocId in interface DeleterByDocumentIdpublic org.apache.solr.common.SolrInputDocument index(int docId)
index in interface BasicDocumentService<FileDocumentDTO>public FileDocumentDTO createFromParent(java.lang.Integer parentDocId)
createFromParent in interface DocumentCreatingService<FileDocumentDTO>