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.ScriptModelTEXT_JAVASCRIPT
 
- 
 - 
Method SummaryAll 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- 
getIdpublic String getId() Description copied from interface:ScriptModelReturns the unique id of the script. null for ad-hoc created scripts.- Specified by:
- getIdin interface- ScriptModel
 
 - 
setIdpublic void setId(String id) 
 - 
getRealmIdpublic String getRealmId() Description copied from interface:ScriptModelReturns the realm id in which the script was defined.- Specified by:
- getRealmIdin interface- ScriptModel
 
 - 
setRealmIdpublic void setRealmId(String realmId) 
 - 
getNamepublic String getName() Description copied from interface:ScriptModelReturns the name of the script.- Specified by:
- getNamein interface- ScriptModel
 
 - 
setNamepublic void setName(String name) 
 - 
getMimeTypepublic 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 interface- ScriptModel
 
 - 
setMimeTypepublic void setMimeType(String mimeType) 
 - 
getCodepublic String getCode() Description copied from interface:ScriptModelReturns the actual source code of the script.- Specified by:
- getCodein interface- ScriptModel
 
 - 
setCodepublic void setCode(String code) 
 - 
getDescriptionpublic String getDescription() Description copied from interface:ScriptModelReturns the description of the script.- Specified by:
- getDescriptionin interface- ScriptModel
 
 - 
setDescriptionpublic void setDescription(String description) 
 
- 
 
-