@Manager public class DefaultDocumentContentManager extends Object implements DocumentContentManager
Provides the default implementation of the DocumentContentManager
interface.
Constructor and Description |
---|
DefaultDocumentContentManager(UploadService uploadService,
ContentManager contentManager,
ContentManagerHelper contentManagerHelper,
NotificationService notificationService,
ModelPersistenceService modelPersistenceService,
WorkObjectService workObjectService,
AmbiguousIdHelper ambiguousIdHelper,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
void |
deleteDocumentContentOwner(String id)
Deletes the document content owner.
|
org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> |
getDocumentContent(String ambiguousId,
boolean forceDownload,
boolean headersOnly)
Gets the given document content.
|
org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> |
getSkeletonContent(String ambiguousId,
boolean forceDownload,
boolean headersOnly)
Gets the given document skeleton content.
|
UploadResponse |
saveDocumentContent(String ambiguousId,
org.springframework.web.multipart.MultipartHttpServletRequest request)
Saves the document content into the work object with the given ID.
|
UploadResponse |
saveSkeletonContent(String id,
org.springframework.web.multipart.MultipartHttpServletRequest request)
Saves the document content into the model with the given ID.
|
@Autowired public DefaultDocumentContentManager(UploadService uploadService, ContentManager contentManager, ContentManagerHelper contentManagerHelper, NotificationService notificationService, ModelPersistenceService modelPersistenceService, WorkObjectService workObjectService, AmbiguousIdHelper ambiguousIdHelper, @Qualifier(value="defaultObjectMapper") com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public UploadResponse saveDocumentContent(String ambiguousId, org.springframework.web.multipart.MultipartHttpServletRequest request)
DocumentContentManager
Saves the document content into the work object with the given ID.
saveDocumentContent
in interface DocumentContentManager
ambiguousId
- the work object global IDrequest
- the incoming requestpublic UploadResponse saveSkeletonContent(String id, org.springframework.web.multipart.MultipartHttpServletRequest request)
DocumentContentManager
Saves the document content into the model with the given ID.
saveSkeletonContent
in interface DocumentContentManager
id
- the document model IDrequest
- the incoming requestpublic org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getDocumentContent(String ambiguousId, boolean forceDownload, boolean headersOnly)
DocumentContentManager
Gets the given document content.
getDocumentContent
in interface DocumentContentManager
ambiguousId
- the work object global IDforceDownload
- true
if the download should be forcedheadersOnly
- true
if only the headers should be returned (no content)public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getSkeletonContent(String ambiguousId, boolean forceDownload, boolean headersOnly)
DocumentContentManager
Gets the given document skeleton content.
getSkeletonContent
in interface DocumentContentManager
ambiguousId
- the work object global IDforceDownload
- true
if the download should be forcedheadersOnly
- true
if only the headers should be returned (no content)public void deleteDocumentContentOwner(String id)
DocumentContentManager
Deletes the document content owner.
deleteDocumentContentOwner
in interface DocumentContentManager
id
- the work object global ID to be deletedCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.