Package de.uplanet.lucy.server.mail
Class AttachmentManagerCallable
java.lang.Object
de.uplanet.lucy.server.mail.AttachmentManagerCallable
- 
Constructor SummaryConstructorsConstructorDescriptionAttachmentManagerCallable(de.uplanet.lucy.server.mail.AttachmentManager p_attachmentManager) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAttachmentFile(String p_strPath) Add an attachment file.voidaddAttachmentFile(String p_strPath, String p_strName, String p_strContentType) Add an attachment file.voidaddAttachmentFiles(IValueHolder<?> p_vh) Add the files from the given value holder as attachments.addRelatedFile(String p_strPath) Add a related file.addRelatedFile(String p_strPath, String p_strName, String p_strContentType) Add the given regular fromexternal/htmlrootas a related file.addRelatedFileExternal(String p_strPath) Add the given regular fromexternal/htmlrootas a related file.attachFileExternal(String p_strFile) Deprecated.voidattachFileImageInternal(IValueHolder<?> p_vh) Deprecated.This method ignores multiple files and thus will be removed in the future.Deprecated.This method ignores multiple files and thus will be removed in the future.voidattachFileInternal(IValueHolder<?> p_vh) Deprecated.This method ignores multiple files and thus will be removed in the future.booleanexistsFileExternal(String p_strPath) Check if the given file exists as a regular file inexternal/htmlroot.boolean
- 
Constructor Details- 
AttachmentManagerCallablepublic AttachmentManagerCallable(de.uplanet.lucy.server.mail.AttachmentManager p_attachmentManager) 
 
- 
- 
Method Details- 
hasBusinessLogicProcessingContextpublic boolean hasBusinessLogicProcessingContext()- Returns:
- trueif this object has a- IBusinessLogicProcessingContext, or- falseotherwise.
 
- 
addAttachmentFileAdd an attachment file.- Parameters:
- p_strPath- The path of the file.
- Throws:
- IllegalArgumentException- If the given path is- nullor empty.
- FileNotFoundException
 
- 
addAttachmentFilepublic void addAttachmentFile(String p_strPath, String p_strName, String p_strContentType) throws FileNotFoundException Add an attachment file.- Parameters:
- p_strPath- The path of the file.
- p_strName- The name of the attached file.
- p_strContentType- The content type.
- Throws:
- FileNotFoundException- If the given file does nor exist.
- IllegalArgumentException- If the given path is- nullor empty.
 
- 
addAttachmentFilesAdd the files from the given value holder as attachments.- Parameters:
- p_vh- A file value holder.
- Since:
- Intrexx 7.0.
 
- 
addRelatedFileAdd a related file.The given file will only be attached once. Subsequent calls with the same file will return the previously generated Content-Id.- Parameters:
- p_strPath- The path of the file.
- Returns:
- The Content-Idof the related file.
- Throws:
- FileNotFoundException- If the given file does nor exist.
- IllegalArgumentException- If the given path is- nullor empty.
 
- 
addRelatedFileAdd the given regular fromexternal/htmlrootas a related file.The existsFileExternal(String)method should be used- Parameters:
- p_strPath- The path of the file.
- p_strName- The name of the file.
- p_strContentType- The content type of the file .
- Returns:
- The Content-Idof the related file.
- Throws:
- IllegalArgumentException- If the given path is- nullor empty.
- Since:
- Intrexx 7.0.
 
- 
existsFileExternalCheck if the given file exists as a regular file inexternal/htmlroot.Note: This method also returns falseif the given path isnullor empty.- Parameters:
- p_strPath- The path of the file relative to- external/htmlroot.
- Returns:
- trueif the given file exists, or- falseotherwise.
- Throws:
- IOException- If an I/O error occurred.
- Since:
- Intrexx 7.0.
 
- 
addRelatedFileExternalAdd the given regular fromexternal/htmlrootas a related file.The existsFileExternal(String)method should be used- Parameters:
- p_strPath- The path of the file relative to- external/htmlroot.
- Returns:
- The Content-Idof the related file.
- Throws:
- IOException- If an I/O error occurred.
- IllegalArgumentException- If the given path is- nullor empty.
- Since:
- Intrexx 7.0.
 
- 
attachFileInternalDeprecated.This method ignores multiple files and thus will be removed in the future. Please use an appropriate non-deprecated method.- Throws:
- Exception
 
- 
attachFileImageInternalDeprecated.This method ignores multiple files and thus will be removed in the future. Please use an appropriate non-deprecated method.- Throws:
- Exception
 
- 
attachFileExternalDeprecated.UseexistsFileExternal(String)andaddRelatedFileExternal(String)instead.
- 
attachFileImageInternalWithContentIdDeprecated.This method ignores multiple files and thus will be removed in the future. Please use appropriate non-deprecated methods.Add the first file in the value holder as an image or a non-image.If the given file is recognized as an image it's being added to the collection of related files and its content ID is returned. Otherwise the file is being added to the collection of attachments and the method return null.- Parameters:
- p_vh- The value holder.
- Returns:
- The content ID if the file has been added as a related file,
    or nullotherwise.
 
 
- 
existsFileExternal(String)andaddRelatedFileExternal(String)instead.