public class ScriptedAttributeDefinition extends BaseAttributeDefinition
| コンストラクタと説明 |
|---|
ScriptedAttributeDefinition(String language)
Constructor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
compileScript()
Compiles the script if the scripting engine supports it.
|
protected BaseAttribute<?> |
doResolve(ShibbolethResolutionContext resolutionContext)
Creates and populates the values for the resolved attribute.
|
String |
getScript()
Gets the script that will be executed.
|
protected ScriptContext |
getScriptContext(ShibbolethResolutionContext resolutionContext)
Creates the script execution context from the resolution context.
|
String |
getScriptLanguage()
Gets the scripting language used.
|
void |
initialize()
Initializes this attribute definition.
|
void |
setScript(String newScript)
Sets the script that will be executed.
|
void |
validate()
Validate the internal state of this plug-in.
|
getAttributeEncoders, getDisplayDescriptions, getDisplayNames, getSourceAttributeID, getValuesFromAllDependencies, isDependencyOnly, resolve, setDependencyOnly, setSourceAttributeIDgetDependencyIds, getId, getValuesFromAllDependencies, getValuesFromAttributeDependency, getValuesFromConnectorDependency, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDependencyIds, getIdpublic ScriptedAttributeDefinition(String language)
language - the scripting language that will be usedpublic String getScriptLanguage()
public String getScript()
public void setScript(String newScript)
newScript - script that will be executedpublic void initialize()
public void validate()
throws AttributeResolutionException
AttributeResolutionException - if the plug-in has an invalid internal stateprotected BaseAttribute<?> doResolve(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException
doResolve クラス内 BaseAttributeDefinitionresolutionContext - current attribute resolution contextAttributeResolutionException - thrown if there is a problem resolving and creating the attributeprotected void compileScript()
protected ScriptContext getScriptContext(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException
resolutionContext - current resolution contextAttributeResolutionException - thrown if dependent data connectors or attribute definitions can not be
resolvedCopyright © 2012. All Rights Reserved.