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
-
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.void
void
setDescription
(String description) void
void
setMimeType
(String mimeType) void
void
setRealmId
(String realmId) toString()
-
Constructor Details
-
Script
-
-
Method Details
-
getId
Description copied from interface:ScriptModel
Returns the unique id of the script. null for ad-hoc created scripts.- Specified by:
getId
in interfaceScriptModel
-
setId
-
getRealmId
Description copied from interface:ScriptModel
Returns the realm id in which the script was defined.- Specified by:
getRealmId
in interfaceScriptModel
-
setRealmId
-
getName
Description copied from interface:ScriptModel
Returns the name of the script.- Specified by:
getName
in interfaceScriptModel
-
setName
-
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 interfaceScriptModel
-
setMimeType
-
getCode
Description copied from interface:ScriptModel
Returns the actual source code of the script.- Specified by:
getCode
in interfaceScriptModel
-
setCode
-
getDescription
Description copied from interface:ScriptModel
Returns the description of the script.- Specified by:
getDescription
in interfaceScriptModel
-
setDescription
-
toString
-