|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.kpat.policyTemplates.PolicyTemplate kaos.kpat.policyTemplates.editor.EditablePolicyTemplate
public class EditablePolicyTemplate
This class provides an editable policy template. The template is defined in terms of one or more policy templates called "subtemplates".
Field Summary | |
---|---|
static java.lang.String |
TEMPLATE_PATH_DELIM
|
Fields inherited from class kaos.kpat.policyTemplates.PolicyTemplate |
---|
_instanceId |
Constructor Summary | |
---|---|
EditablePolicyTemplate()
|
Method Summary | |
---|---|
void |
addListener(EditablePolicyTemplateListener ls)
|
void |
addSubtemplate(PolicyTemplate template)
|
void |
addTemplateComponent(int index,
TemplateComponent tempComp)
|
void |
addTemplateComponent(TemplateComponent tempComp)
|
void |
addTemplateComponentReference(TemplateComponentReference tcr)
|
java.lang.Object |
clone()
|
void |
createPolicy(SubjectMsg optionalSubject)
Update the display component to create a new policy. |
void |
editPolicy(PolicyTemplateResult existingPolicy)
If this EditablePolictTemplate serves as a subtemplate for some other EditablePolictTemplate, then it needs to look at it's bindings and set the selection of ReferenceableTemplateComponent objects in the other EditablePolictTemplate accordingly. |
java.lang.String |
getDescription()
Get the description of the PolicyTemplateEditor. |
java.awt.Component |
getDisplayComponent()
Return the component to be displayed to the user |
java.lang.String |
getName()
Get the name of the PolicyTemplateEditor. |
PolicyTemplateResult |
getResult()
Return the resultant policy(s) and optional policy set |
java.util.List |
getSubtemplates()
|
java.util.List |
getTemplateComponents()
|
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 |
void |
removeBindingsFrom(TemplateComponentReference tcr)
|
void |
removeListener(EditablePolicyTemplateListener ls)
|
void |
removeSubtemplate(PolicyTemplate template)
|
void |
removeTemplateComponent(TemplateComponent tempComp)
|
void |
removeTemplateComponentReference(TemplateComponentReference tcr)
|
void |
saveSubtemplateState()
|
void |
setDescription(java.lang.String description)
|
void |
setName(java.lang.String name)
|
void |
setTemplateComponentReferences(java.util.List refs)
|
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 |
static kaos.kpat.policyTemplates.editor.EditablePolicyTemplate.State |
stateBothSelectionsAndBindings(EditablePolicyTemplate template)
|
static kaos.kpat.policyTemplates.editor.EditablePolicyTemplate.State |
stateOnlySelections(EditablePolicyTemplate template)
|
Methods inherited from class kaos.kpat.policyTemplates.PolicyTemplate |
---|
compareTo, getInstanceId |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TEMPLATE_PATH_DELIM
Constructor Detail |
---|
public EditablePolicyTemplate()
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void addListener(EditablePolicyTemplateListener ls)
public void removeListener(EditablePolicyTemplateListener ls)
public void setName(java.lang.String name)
public void setDescription(java.lang.String description)
public void addSubtemplate(PolicyTemplate template)
public void removeSubtemplate(PolicyTemplate template)
public void saveSubtemplateState() throws PolicyBuildingNotCompleted, TemplateBuildingNotCompleted
PolicyBuildingNotCompleted
TemplateBuildingNotCompleted
public void addTemplateComponent(TemplateComponent tempComp)
public void addTemplateComponent(int index, TemplateComponent tempComp)
public void removeTemplateComponent(TemplateComponent tempComp)
public java.util.List getSubtemplates()
public java.util.List getTemplateComponents()
public void initialize(TunnelClient tunnelClient, java.util.Hashtable subjectTreeModels, PolicyTemplateFactory factory) throws java.lang.Exception
PolicyTemplate
initialize
in class PolicyTemplate
java.lang.Exception
public java.lang.String getName()
PolicyTemplate
getName
in class PolicyTemplate
public java.lang.String getDescription()
PolicyTemplate
getDescription
in class PolicyTemplate
public PolicyTemplateResult getResult() throws PolicyBuildingNotCompleted
PolicyTemplate
getResult
in class PolicyTemplate
PolicyBuildingNotCompleted
public java.awt.Component getDisplayComponent()
PolicyTemplate
getDisplayComponent
in class PolicyTemplate
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
editPolicy
in class PolicyTemplate
java.lang.Exception
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 removeBindingsFrom(TemplateComponentReference tcr)
public java.lang.Object getTemplateState() throws TemplateBuildingNotCompleted
PolicyTemplate
getTemplateState
in class PolicyTemplate
TemplateBuildingNotCompleted
public void setTemplateState(java.lang.Object state)
PolicyTemplate
setTemplateState
in class PolicyTemplate
public static kaos.kpat.policyTemplates.editor.EditablePolicyTemplate.State stateOnlySelections(EditablePolicyTemplate template)
public static kaos.kpat.policyTemplates.editor.EditablePolicyTemplate.State stateBothSelectionsAndBindings(EditablePolicyTemplate template)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |