|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkaos.kpat.policyTemplates.PolicyTemplate
kaos.kpat.policyTemplates.HypertextPolicyTemplate
public class HypertextPolicyTemplate
Nested Class Summary | |
---|---|
protected class |
HypertextPolicyTemplate.AbstractConditionContainer
|
class |
HypertextPolicyTemplate.CompoundConditionContainer
|
static class |
HypertextPolicyTemplate.CONDITION_TYPE
|
protected class |
HypertextPolicyTemplate.ConditionPanel
|
static class |
HypertextPolicyTemplate.CONNECTIVE_TYPE
|
protected class |
HypertextPolicyTemplate.HistoryContainer
|
protected class |
HypertextPolicyTemplate.ObligationContainer
|
protected class |
HypertextPolicyTemplate.StateContainer
|
Field Summary | |
---|---|
protected HTComboBox |
_actionLink
|
protected java.util.Hashtable |
_actionTable
|
protected HypertextPolicyTemplate.ConditionPanel |
_conditionPanel
|
protected HypertextContainerImpl |
_controlsAction
|
protected HTActionClassPropertySet |
_controlsProps
|
protected javax.swing.JTextArea |
_descriptionArea
|
protected PolicyTemplateFactory |
_factory
|
protected javax.swing.JLabel |
_idValueLbl
|
protected boolean |
_isSubjectClass
|
protected HTComboBox |
_modalityLink
|
protected javax.swing.JTextField |
_nameFld
|
protected HypertextPolicyTemplate.ObligationContainer |
_obligationContainer
|
protected HTPeerRVMCoordinator |
_peerRVMCoordinator
|
protected HTLabel |
_performLbl
|
protected javax.swing.JPanel |
_policyPanel
|
protected HypertextContainerImpl |
_policyStatementContainer
|
protected javax.swing.JTextField |
_priorityFld
|
protected boolean |
_stateSet
|
protected ActorLink |
_subjectLink
|
protected java.util.Vector |
_tcrs
|
protected java.lang.String |
_templateName
|
protected java.util.Hashtable |
_treeModels
|
protected TunnelClient |
_tunnelClient
|
protected java.lang.String |
BREAK
|
static java.lang.String |
CONDITION
|
static java.lang.String |
CONTROLS_ACTION
|
protected static java.lang.String |
CONTROLS_ACTION_BINDING
|
static java.lang.String |
CONTROLS_ACTOR
|
static java.lang.String |
CONTROLS_PROPS
|
protected static java.lang.String |
CONTROLS_SUBJECT_BINDING
|
protected static java.lang.String |
DESCRIPTION
|
static java.lang.String |
INSTANCE_ID
|
static java.lang.String |
MODALITY
|
static java.lang.String |
NAME
|
static java.lang.String |
OBLIGATION_TRIGGER
|
static java.lang.String |
PRIORITY
|
protected java.lang.String |
TAB
|
Fields inherited from class kaos.kpat.policyTemplates.PolicyTemplate |
---|
_instanceId |
Constructor Summary | |
---|---|
HypertextPolicyTemplate()
|
Method Summary | |
---|---|
void |
addTemplateComponentReference(TemplateComponentReference tcr)
|
void |
createPolicy(SubjectMsg optionalSubject)
Update the display component to create a new policy. |
void |
editPolicy(PolicyTemplateResult existingPolicy)
Update the display component to edit an existing policy |
protected java.util.Hashtable |
getBindings()
|
java.lang.String |
getDescription()
Get the description of the PolicyTemplateEditor. |
java.awt.Component |
getDisplayComponent()
Return the component to be displayed to the user |
HypertextContainer |
getHypertext()
|
java.lang.String |
getName()
Get the name of the PolicyTemplateEditor. |
java.lang.String |
getPolicyAsText(PolicyMsg policy)
|
PolicyTemplateResult |
getResult()
Return the resultant policy(s) and optional policy set |
PolicyTemplateResult |
getResult(boolean resolveBindings)
|
static HypertextPolicyTemplate |
getStaticInstance()
|
java.lang.String |
getTemplateCreator()
Get the creator of the PolicyTemplateEditor. |
java.lang.Object |
getTemplateState()
This method is used if this template is a subtemplate |
void |
initialize(TunnelClient tunnelClient,
java.util.Hashtable subjectTreeModels,
PolicyTemplateFactory factory)
Initialize the template In most instances, the GUI components should be built at this time |
protected void |
initValuesForSubject(SubjectMsg subject)
|
void |
removeTemplateComponentReference(TemplateComponentReference tcr)
|
void |
setAddEmptyInstancesValue(boolean addEmptyInstancesValue)
|
protected void |
setBindings(java.util.Hashtable bindings)
|
void |
setName(java.lang.String name)
|
void |
setNameAndDescVisible(boolean visible)
|
void |
setPolicyName(java.lang.String policyName)
|
static void |
setStaticInstance(HypertextPolicyTemplate instance)
|
void |
setTemplateComponentReferences(java.util.List refs)
|
void |
setTemplateEditor(HypertextEditor editor)
|
void |
setTemplateState(java.lang.Object state)
This method is used if this template is a subtemplate It should restore it's state from the state object returned above |
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 |
---|
public static final java.lang.String NAME
protected static final java.lang.String DESCRIPTION
protected static final java.lang.String CONTROLS_ACTION_BINDING
protected static final java.lang.String CONTROLS_SUBJECT_BINDING
protected HypertextContainerImpl _controlsAction
protected ActorLink _subjectLink
protected HTComboBox _modalityLink
protected HTComboBox _actionLink
protected HTActionClassPropertySet _controlsProps
protected HypertextContainerImpl _policyStatementContainer
protected java.lang.String _templateName
protected PolicyTemplateFactory _factory
protected final java.lang.String BREAK
protected final java.lang.String TAB
public static final java.lang.String PRIORITY
public static final java.lang.String CONTROLS_ACTOR
public static final java.lang.String CONTROLS_ACTION
public static final java.lang.String CONTROLS_PROPS
public static final java.lang.String MODALITY
public static final java.lang.String OBLIGATION_TRIGGER
public static final java.lang.String CONDITION
public static final java.lang.String INSTANCE_ID
protected java.util.Hashtable _actionTable
protected javax.swing.JTextField _nameFld
protected javax.swing.JLabel _idValueLbl
protected javax.swing.JTextArea _descriptionArea
protected javax.swing.JTextField _priorityFld
protected boolean _isSubjectClass
protected javax.swing.JPanel _policyPanel
protected TunnelClient _tunnelClient
protected HypertextPolicyTemplate.ObligationContainer _obligationContainer
protected java.util.Hashtable _treeModels
protected java.util.Vector _tcrs
protected HTPeerRVMCoordinator _peerRVMCoordinator
protected boolean _stateSet
protected HypertextPolicyTemplate.ConditionPanel _conditionPanel
protected HTLabel _performLbl
Constructor Detail |
---|
public HypertextPolicyTemplate()
Method Detail |
---|
public static void setStaticInstance(HypertextPolicyTemplate instance)
public static HypertextPolicyTemplate getStaticInstance()
public void initialize(TunnelClient tunnelClient, java.util.Hashtable subjectTreeModels, PolicyTemplateFactory factory)
PolicyTemplate
initialize
in class PolicyTemplate
public void setNameAndDescVisible(boolean visible)
public void setAddEmptyInstancesValue(boolean addEmptyInstancesValue)
public HypertextContainer getHypertext()
public java.lang.String getPolicyAsText(PolicyMsg policy)
public java.lang.String getName()
PolicyTemplate
getName
in class PolicyTemplate
public void setName(java.lang.String name)
public java.lang.String getDescription()
PolicyTemplate
getDescription
in class PolicyTemplate
public java.lang.String getTemplateCreator()
PolicyTemplate
getTemplateCreator
in class PolicyTemplate
public PolicyTemplateResult getResult() throws KAoSPolicyBuilder.PolicyBuildingNotCompleted
PolicyTemplate
getResult
in class PolicyTemplate
KAoSPolicyBuilder.PolicyBuildingNotCompleted
public PolicyTemplateResult getResult(boolean resolveBindings) throws KAoSPolicyBuilder.PolicyBuildingNotCompleted
KAoSPolicyBuilder.PolicyBuildingNotCompleted
public void createPolicy(SubjectMsg optionalSubject) throws java.lang.Exception
PolicyTemplate
createPolicy
in class PolicyTemplate
optionalSubject
- The subject if the editor
was invoked for it
java.lang.Exception
public void editPolicy(PolicyTemplateResult existingPolicy) throws java.lang.Exception
PolicyTemplate
editPolicy
in class PolicyTemplate
existingPolicy
- Contains information about the existing
policy(s) (and optionally policy set)
java.lang.Exception
public java.awt.Component getDisplayComponent()
PolicyTemplate
getDisplayComponent
in class PolicyTemplate
protected void initValuesForSubject(SubjectMsg subject)
public void addTemplateComponentReference(TemplateComponentReference tcr)
addTemplateComponentReference
in class PolicyTemplate
public void removeTemplateComponentReference(TemplateComponentReference tcr)
removeTemplateComponentReference
in class PolicyTemplate
public void setTemplateComponentReferences(java.util.List refs)
setTemplateComponentReferences
in class PolicyTemplate
public void setPolicyName(java.lang.String policyName)
public void setTemplateEditor(HypertextEditor editor)
public void setTemplateState(java.lang.Object state) throws java.lang.Exception
PolicyTemplate
setTemplateState
in class PolicyTemplate
java.lang.Exception
public java.lang.Object getTemplateState() throws KAoSPolicyBuilder.PolicyBuildingNotCompleted
PolicyTemplate
getTemplateState
in class PolicyTemplate
KAoSPolicyBuilder.PolicyBuildingNotCompleted
protected java.util.Hashtable getBindings()
protected void setBindings(java.util.Hashtable bindings)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |