Package org.keycloak.scripting
Class Script
- java.lang.Object
-
- org.keycloak.scripting.Script
-
- All Implemented Interfaces:
ScriptModel
public class Script extends Object implements ScriptModel
AScriptModelwhich holds some meta-data.- Author:
- Thomas Darimont
-
-
Field Summary
-
Fields inherited from interface org.keycloak.models.ScriptModel
TEXT_JAVASCRIPT
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()Returns the actual source code of the script.StringgetDescription()Returns the description of the script.StringgetId()Returns the unique id of the script.StringgetMimeType()Returns the MIME-type if the script code, e.g.StringgetName()Returns the name of the script.StringgetRealmId()Returns the realm id in which the script was defined.voidsetCode(String code)voidsetDescription(String description)voidsetId(String id)voidsetMimeType(String mimeType)voidsetName(String name)voidsetRealmId(String realmId)StringtoString()
-
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:ScriptModelReturns the unique id of the script. null for ad-hoc created scripts.- Specified by:
getIdin interfaceScriptModel
-
setId
public void setId(String id)
-
getRealmId
public String getRealmId()
Description copied from interface:ScriptModelReturns the realm id in which the script was defined.- Specified by:
getRealmIdin interfaceScriptModel
-
setRealmId
public void setRealmId(String realmId)
-
getName
public String getName()
Description copied from interface:ScriptModelReturns the name of the script.- Specified by:
getNamein interfaceScriptModel
-
setName
public void setName(String name)
-
getMimeType
public String 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
public void setMimeType(String mimeType)
-
getCode
public String getCode()
Description copied from interface:ScriptModelReturns the actual source code of the script.- Specified by:
getCodein interfaceScriptModel
-
setCode
public void setCode(String code)
-
getDescription
public String getDescription()
Description copied from interface:ScriptModelReturns the description of the script.- Specified by:
getDescriptionin interfaceScriptModel
-
setDescription
public void setDescription(String description)
-
-