kaos.kpat.policyTemplates
Class WizardPolicyTemplate

java.lang.Object
  extended by kaos.kpat.policyTemplates.PolicyTemplate
      extended by kaos.kpat.policyTemplates.HypertextPolicyTemplate
          extended by kaos.kpat.policyTemplates.WizardPolicyTemplate
All Implemented Interfaces:
java.lang.Comparable

public class WizardPolicyTemplate
extends HypertextPolicyTemplate

Author:
jlott

Nested Class Summary
 
Nested classes/interfaces inherited from class kaos.kpat.policyTemplates.HypertextPolicyTemplate
HypertextPolicyTemplate.AbstractConditionContainer, HypertextPolicyTemplate.CompoundConditionContainer, HypertextPolicyTemplate.CONDITION_TYPE, HypertextPolicyTemplate.ConditionPanel, HypertextPolicyTemplate.CONNECTIVE_TYPE, HypertextPolicyTemplate.HistoryContainer, HypertextPolicyTemplate.ObligationContainer, HypertextPolicyTemplate.StateContainer
 
Field Summary
static java.lang.String DESC
           
static java.lang.String NAME
           
 
Fields inherited from class kaos.kpat.policyTemplates.HypertextPolicyTemplate
_actionLink, _actionTable, _conditionPanel, _controlsAction, _controlsProps, _descriptionArea, _factory, _idValueLbl, _isSubjectClass, _modalityLink, _nameFld, _obligationContainer, _peerRVMCoordinator, _performLbl, _policyPanel, _policyStatementContainer, _priorityFld, _stateSet, _subjectLink, _tcrs, _templateName, _treeModels, _tunnelClient, BREAK, CONDITION, CONTROLS_ACTION, CONTROLS_ACTION_BINDING, CONTROLS_ACTOR, CONTROLS_PROPS, CONTROLS_SUBJECT_BINDING, DESCRIPTION, INSTANCE_ID, MODALITY, OBLIGATION_TRIGGER, PRIORITY, TAB
 
Fields inherited from class kaos.kpat.policyTemplates.PolicyTemplate
_instanceId
 
Constructor Summary
WizardPolicyTemplate()
          Creates a new instance of WizardPolicyTemplate
 
Method Summary
 void createPolicy(SubjectMsg optionalSubject)
          Update the display component to create a new policy.
 java.lang.String getDescription()
          Get the description of the PolicyTemplateEditor.
 java.lang.String getName()
          Get the name of the PolicyTemplateEditor.
 
Methods inherited from class kaos.kpat.policyTemplates.HypertextPolicyTemplate
addTemplateComponentReference, editPolicy, getBindings, getDisplayComponent, getHypertext, getPolicyAsText, getResult, getResult, getStaticInstance, getTemplateCreator, getTemplateState, initialize, initValuesForSubject, removeTemplateComponentReference, setAddEmptyInstancesValue, setBindings, setName, setNameAndDescVisible, setPolicyName, setStaticInstance, setTemplateComponentReferences, setTemplateEditor, setTemplateState
 
Methods inherited from class kaos.kpat.policyTemplates.PolicyTemplate
compareTo, getInstanceId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

DESC

public static final java.lang.String DESC
See Also:
Constant Field Values
Constructor Detail

WizardPolicyTemplate

public WizardPolicyTemplate()
Creates a new instance of WizardPolicyTemplate

Method Detail

createPolicy

public void createPolicy(SubjectMsg optionalSubject)
                  throws java.lang.Exception
Description copied from class: PolicyTemplate
Update the display component to create a new policy. Also called when a template is edited or created. This second usage exists to ensure that the selections of template components in the template is reset to their default values. If your template requires a subject, you should override the requiresSubject() method to return true;

Overrides:
createPolicy in class HypertextPolicyTemplate
Parameters:
optionalSubject - The subject if the editor was invoked for it
Throws:
java.lang.Exception

getName

public java.lang.String getName()
Description copied from class: PolicyTemplate
Get the name of the PolicyTemplateEditor.

Overrides:
getName in class HypertextPolicyTemplate
Returns:
String Represents the policy template editor name.

getDescription

public java.lang.String getDescription()
Description copied from class: PolicyTemplate
Get the description of the PolicyTemplateEditor.

Overrides:
getDescription in class HypertextPolicyTemplate
Returns:
String Represents the policy template editor name.