Class Script

java.lang.Object
org.keycloak.scripting.Script
All Implemented Interfaces:
ScriptModel

public class Script extends Object implements ScriptModel
A ScriptModel which holds some meta-data.
Author:
Thomas Darimont
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Description copied from interface: ScriptModel
      Returns the unique id of the script. null for ad-hoc created scripts.
      Specified by:
      getId in interface ScriptModel
    • setId

      public void setId(String id)
    • getRealmId

      public String getRealmId()
      Description copied from interface: ScriptModel
      Returns the realm id in which the script was defined.
      Specified by:
      getRealmId in interface ScriptModel
    • setRealmId

      public void setRealmId(String realmId)
    • getName

      public String getName()
      Description copied from interface: ScriptModel
      Returns the name of the script.
      Specified by:
      getName in interface ScriptModel
    • setName

      public void setName(String name)
    • getMimeType

      public String getMimeType()
      Description copied from interface: ScriptModel
      Returns the MIME-type if the script code, e.g. for Java Script the MIME-type, text/javascript is used.
      Specified by:
      getMimeType in interface ScriptModel
    • setMimeType

      public void setMimeType(String mimeType)
    • getCode

      public String getCode()
      Description copied from interface: ScriptModel
      Returns the actual source code of the script.
      Specified by:
      getCode in interface ScriptModel
    • setCode

      public void setCode(String code)
    • getDescription

      public String getDescription()
      Description copied from interface: ScriptModel
      Returns the description of the script.
      Specified by:
      getDescription in interface ScriptModel
    • setDescription

      public void setDescription(String description)
    • toString

      public String toString()
      Overrides:
      toString in class Object