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 voidclear()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.StringgetName(String language)Provides the name of the client.booleanisEnabled()Indicates if the WBE edition is enabled.booleanisHandled(WbeFile file)Indicates if givenWbeFileis 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:WbeClientManagerIndicates if the WBE edition is enabled.- Specified by:
isEnabledin interfaceWbeClientManager- Returns:
- true if enabled, false otherwise.
-
isHandled
public boolean isHandled(WbeFile file)
Description copied from interface:WbeClientManagerIndicates if givenWbeFileis handled by WBE client.- Specified by:
isHandledin 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:WbeClientManagerPrepares 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
WbeEditioninstance is returned. It contains the necessary data to initialize an edition from the WEB services.- Specified by:
prepareEditionWithin interfaceWbeClientManager- Parameters:
user- a WBE user.file- a Silverpeas's WBE file.- Returns:
- an optional
WbeEditioninstance.
-
getAdministrationUrl
public Optional<String> getAdministrationUrl()
Description copied from interface:WbeClientManagerProvides the URL that permits to access the administration of Web Browser Edition client.- Specified by:
getAdministrationUrlin interfaceWbeClientManager- Returns:
- an optional URL as string.
-
clear
public void clear()
Description copied from interface:WbeClientManagerClears all the context of the Web Browser Edition.- Specified by:
clearin interfaceWbeClientManager
-
getName
public String getName(String language)
Description copied from interface:WbeClientManagerProvides the name of the client.- Specified by:
getNamein interfaceWbeClientManager- Parameters:
language- the user language.- Returns:
- a string.
-
-