Package de.uplanet.lucy.server.mail
Klasse AttachmentManagerCallable
java.lang.Object
de.uplanet.lucy.server.mail.AttachmentManagerCallable
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAttachmentManagerCallable(de.uplanet.lucy.server.mail.AttachmentManager p_attachmentManager) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddAttachmentFile(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) Veraltet.voidattachFileImageInternal(IValueHolder<?> p_vh) Veraltet.This method ignores multiple files and thus will be removed in the future.Veraltet.This method ignores multiple files and thus will be removed in the future.voidattachFileInternal(IValueHolder<?> p_vh) Veraltet.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
-
Konstruktordetails
-
AttachmentManagerCallable
public AttachmentManagerCallable(de.uplanet.lucy.server.mail.AttachmentManager p_attachmentManager)
-
-
Methodendetails
-
hasBusinessLogicProcessingContext
public boolean hasBusinessLogicProcessingContext()- Gibt zurück:
trueif this object has aIBusinessLogicProcessingContext, orfalseotherwise.
-
addAttachmentFile
Add an attachment file.- Parameter:
p_strPath- The path of the file.- Löst aus:
IllegalArgumentException- If the given path isnullor empty.FileNotFoundException
-
addAttachmentFile
public void addAttachmentFile(String p_strPath, String p_strName, String p_strContentType) throws FileNotFoundException Add an attachment file.- Parameter:
p_strPath- The path of the file.p_strName- The name of the attached file.p_strContentType- The content type.- Löst aus:
FileNotFoundException- If the given file does nor exist.IllegalArgumentException- If the given path isnullor empty.
-
addAttachmentFiles
Add the files from the given value holder as attachments.- Parameter:
p_vh- A file value holder.- Seit:
- Intrexx 7.0.
-
addRelatedFile
Add a related file.The given file will only be attached once. Subsequent calls with the same file will return the previously generated
Content-Id.- Parameter:
p_strPath- The path of the file.- Gibt zurück:
- The
Content-Idof the related file. - Löst aus:
FileNotFoundException- If the given file does nor exist.IllegalArgumentException- If the given path isnullor empty.
-
addRelatedFile
Add the given regular fromexternal/htmlrootas a related file.The
existsFileExternal(String)method should be used- Parameter:
p_strPath- The path of the file.p_strName- The name of the file.p_strContentType- The content type of the file .- Gibt zurück:
- The
Content-Idof the related file. - Löst aus:
IllegalArgumentException- If the given path isnullor empty.- Seit:
- Intrexx 7.0.
-
existsFileExternal
Check if the given file exists as a regular file inexternal/htmlroot.Note: This method also returns
falseif the given path isnullor empty.- Parameter:
p_strPath- The path of the file relative toexternal/htmlroot.- Gibt zurück:
trueif the given file exists, orfalseotherwise.- Löst aus:
IOException- If an I/O error occurred.- Seit:
- Intrexx 7.0.
-
addRelatedFileExternal
Add the given regular fromexternal/htmlrootas a related file.The
existsFileExternal(String)method should be used- Parameter:
p_strPath- The path of the file relative toexternal/htmlroot.- Gibt zurück:
- The
Content-Idof the related file. - Löst aus:
IOException- If an I/O error occurred.IllegalArgumentException- If the given path isnullor empty.- Seit:
- Intrexx 7.0.
-
attachFileInternal
Veraltet.This method ignores multiple files and thus will be removed in the future. Please use an appropriate non-deprecated method.- Löst aus:
Exception
-
attachFileImageInternal
Veraltet.This method ignores multiple files and thus will be removed in the future. Please use an appropriate non-deprecated method.- Löst aus:
Exception
-
attachFileExternal
Veraltet.UseexistsFileExternal(String)andaddRelatedFileExternal(String)instead. -
attachFileImageInternalWithContentId
Veraltet.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.- Parameter:
p_vh- The value holder.- Gibt zurück:
- The content ID if the file has been added as a related file,
or
nullotherwise.
-
existsFileExternal(String)andaddRelatedFileExternal(String)instead.