Package com.xwiki.diagram.script
Class DiagramScriptService
java.lang.Object
com.xwiki.diagram.script.DiagramScriptService
- All Implemented Interfaces:
org.xwiki.script.service.ScriptService
@Component
@Named("diagram")
@Singleton
@Unstable
public class DiagramScriptService
extends Object
implements org.xwiki.script.service.ScriptService
Script services for the Diagram application.
- Since:
- 1.14
- Version:
- $Id$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ROLEHINT
The role hint of this component.- See Also:
-
-
Constructor Details
-
DiagramScriptService
public DiagramScriptService()
-
-
Method Details
-
get
- Type Parameters:
S- the type of theScriptService- Parameters:
serviceName- the name of the subScriptService- Returns:
- the
ScriptServiceor null of none could be found
-
importDiagram
Attempts to convert the given diagram from a third party format to the draw.io format.- Parameters:
diagram- the diagram content, using a third-party formatfileName- the diagram file name, used to detect the diagram type- Returns:
- the diagram XML in draw.io format, or
nullif the diagram format is not recognized or unsupported - Since:
- 1.14
-