Interface UploadService
public interface UploadService
A service that can upload files. Used to upload HTML publications to servers.
-
Method Summary
Modifier and TypeMethodDescriptioncreateProfile
(String name, String description) Creates a new profile, ready for editing.Returns a description of the servicegetId()
getName()
Returns the name of the servicegetProfileEditor
(UploadProfile profile) Shows a GUI for editing the given profile.Returns an icon that represents this servicegetValidationMessage
(boolean alwaysOverwrite, UploadProfile profile) Returns a validation messages for this profile.boolean
isCompatible
(UploadProfile profile) Returns true if this service can use the given profile.default boolean
List<? extends UploadProfile>
Loads all profiles for this service.
-
Method Details
-
getId
String getId() -
getName
String getName()Returns the name of the service -
getDescription
String getDescription()Returns a description of the service -
createProfile
Creates a new profile, ready for editing. -
loadProfiles
List<? extends UploadProfile> loadProfiles()Loads all profiles for this service. -
getProfileEditor
Shows a GUI for editing the given profile. Check the profile's isEditable prior to calling this method. -
getValidationMessage
Returns a validation messages for this profile. Check the profile's isValid prior to calling this method. -
isCompatible
Returns true if this service can use the given profile.- Throws:
UploadProfileException
-
getSmallIcon
Icon getSmallIcon()Returns an icon that represents this service -
getSmallIconSelected
Icon getSmallIconSelected() -
isCreatable
default boolean isCreatable()
-