Package com.enonic.xp.portal.script

## Interface PortalScriptService

-     @PublicApi
      public interface PortalScriptService

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `ScriptExports` | `execute​(ResourceKey script)` |
    `CompletableFuture<ScriptExports>` | `executeAsync​(ResourceKey script)` |
    `boolean` | `hasScript​(ResourceKey script)` |
    `Object` | `toNativeObject​(ResourceKey script, Object value)` |
    `ScriptValue` | `toScriptValue​(ResourceKey script, Object value)` |

- - ### Method Detail

    - #### hasScript

          boolean hasScript​(ResourceKey script)

    - #### execute

          ScriptExports execute​(ResourceKey script)

    - #### executeAsync

          CompletableFuture<ScriptExports> executeAsync​(ResourceKey script)

    - #### toScriptValue

          ScriptValue toScriptValue​(ResourceKey script,
                                    Object value)

    - #### toNativeObject

          Object toNativeObject​(ResourceKey script,
                                Object value)