@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. 
 | 
void | 
getDocumentContent(String ambiguousId,
                  javax.servlet.http.HttpServletResponse response,
                  boolean forceDownload,
                  boolean headersOnly)
Gets the given document content. 
 | 
void | 
getSkeletonContent(String ambiguousId,
                  javax.servlet.http.HttpServletResponse response,
                  boolean forceDownload,
                  boolean headersOnly)
Gets the given document skeleton content. 
 | 
UploadResponse | 
saveDocumentContent(String ambiguousId,
                   org.springframework.web.multipart.MultipartHttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
Saves the document content into the work object with the given ID. 
 | 
UploadResponse | 
saveSkeletonContent(String id,
                   org.springframework.web.multipart.MultipartHttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
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, javax.servlet.http.HttpServletResponse response) throws IOException
DocumentContentManagerSaves the document content into the work object with the given ID.
saveDocumentContent in interface DocumentContentManagerambiguousId - the work object global IDrequest - the incoming requestresponse - the request responseIOException - if the content could not be savedpublic UploadResponse saveSkeletonContent(String id, org.springframework.web.multipart.MultipartHttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
DocumentContentManagerSaves the document content into the model with the given ID.
saveSkeletonContent in interface DocumentContentManagerid - the document model IDrequest - the incoming requestresponse - the request responseIOException - if the content could not be savedpublic void getDocumentContent(String ambiguousId, javax.servlet.http.HttpServletResponse response, boolean forceDownload, boolean headersOnly) throws IOException
DocumentContentManagerGets the given document content.
getDocumentContent in interface DocumentContentManagerambiguousId - the work object global IDresponse - the request responseforceDownload - true if the download should be forcedheadersOnly - true if only the headers should be returned (no content)IOExceptionpublic void getSkeletonContent(String ambiguousId, javax.servlet.http.HttpServletResponse response, boolean forceDownload, boolean headersOnly) throws IOException
DocumentContentManagerGets the given document skeleton content.
getSkeletonContent in interface DocumentContentManagerambiguousId - the work object global IDresponse - the request responseforceDownload - true if the download should be forcedheadersOnly - true if only the headers should be returned (no content)IOExceptionpublic void deleteDocumentContentOwner(String id)
DocumentContentManagerDeletes the document content owner.
deleteDocumentContentOwner in interface DocumentContentManagerid - the work object global  ID to be deletedCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.