Package org.keycloak.scripting
Class Script
java.lang.Object
org.keycloak.scripting.Script
- All Implemented Interfaces:
ScriptModel
A
ScriptModel which holds some meta-data.- Author:
- Thomas Darimont
-
Field Summary
Fields inherited from interface org.keycloak.models.ScriptModel
TEXT_JAVASCRIPT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Returns the actual source code of the script.Returns the description of the script.getId()Returns the unique id of the script.Returns the MIME-type if the script code, e.g.getName()Returns the name of the script.Returns the realm id in which the script was defined.voidvoidsetDescription(String description) voidvoidsetMimeType(String mimeType) voidvoidsetRealmId(String realmId) toString()
-
Constructor Details
-
Script
-
-
Method Details
-
getId
Description copied from interface:ScriptModelReturns the unique id of the script. null for ad-hoc created scripts.- Specified by:
getIdin interfaceScriptModel
-
setId
-
getRealmId
Description copied from interface:ScriptModelReturns the realm id in which the script was defined.- Specified by:
getRealmIdin interfaceScriptModel
-
setRealmId
-
getName
Description copied from interface:ScriptModelReturns the name of the script.- Specified by:
getNamein interfaceScriptModel
-
setName
-
getMimeType
Description copied from interface:ScriptModelReturns the MIME-type if the script code, e.g. for Java Script the MIME-type,text/javascriptis used.- Specified by:
getMimeTypein interfaceScriptModel
-
setMimeType
-
getCode
Description copied from interface:ScriptModelReturns the actual source code of the script.- Specified by:
getCodein interfaceScriptModel
-
setCode
-
getDescription
Description copied from interface:ScriptModelReturns the description of the script.- Specified by:
getDescriptionin interfaceScriptModel
-
setDescription
-
toString
-