Package org.silverpeas.web.ddwe
Class DragAndDropWebEditorClientManager
- java.lang.Object
-
- org.silverpeas.web.ddwe.DragAndDropWebEditorClientManager
-
- All Implemented Interfaces:
WbeClientManager
@Service public class DragAndDropWebEditorClientManager extends Object implements WbeClientManager
Implementation of a client able to take in charge the edition into the Web Browser of HTML content by Drag & Drop.- Author:
- silveryocha
-
-
Constructor Summary
Constructors Constructor Description DragAndDropWebEditorClientManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clears all the context of the Web Browser Edition.Optional<String>
getAdministrationUrl()
Provides the URL that permits to access the administration of Web Browser Edition client.String
getName(String language)
Provides the name of the client.boolean
isEnabled()
Indicates if the WBE edition is enabled.boolean
isHandled(WbeFile file)
Indicates if givenWbeFile
is handled by WBE client.Optional<DragAndDropWebEditorEdition>
prepareEditionWith(WbeUser user, WbeFile file)
Prepares a WBE edition from given data.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Description copied from interface:WbeClientManager
Indicates if the WBE edition is enabled.- Specified by:
isEnabled
in interfaceWbeClientManager
- Returns:
- true if enabled, false otherwise.
-
isHandled
public boolean isHandled(WbeFile file)
Description copied from interface:WbeClientManager
Indicates if givenWbeFile
is handled by WBE client.- Specified by:
isHandled
in interfaceWbeClientManager
- Parameters:
file
- the WBE file to check.- Returns:
- true if handled, false otherwise.
-
prepareEditionWith
public Optional<DragAndDropWebEditorEdition> prepareEditionWith(WbeUser user, WbeFile file)
Description copied from interface:WbeClientManager
Prepares a WBE edition from given data.If the client is enabled at Silverpeas's side and if the file is handled by the client, a
WbeEdition
instance is returned. It contains the necessary data to initialize an edition from the WEB services.- Specified by:
prepareEditionWith
in interfaceWbeClientManager
- Parameters:
user
- a WBE user.file
- a Silverpeas's WBE file.- Returns:
- an optional
WbeEdition
instance.
-
getAdministrationUrl
public Optional<String> getAdministrationUrl()
Description copied from interface:WbeClientManager
Provides the URL that permits to access the administration of Web Browser Edition client.- Specified by:
getAdministrationUrl
in interfaceWbeClientManager
- Returns:
- an optional URL as string.
-
clear
public void clear()
Description copied from interface:WbeClientManager
Clears all the context of the Web Browser Edition.- Specified by:
clear
in interfaceWbeClientManager
-
getName
public String getName(String language)
Description copied from interface:WbeClientManager
Provides the name of the client.- Specified by:
getName
in interfaceWbeClientManager
- Parameters:
language
- the user language.- Returns:
- a string.
-
-