|
|||||||||
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.GenericDAMLPolicyTemplate
public class GenericDAMLPolicyTemplate
Nested Class Summary | |
---|---|
static class |
GenericDAMLPolicyTemplate.MyStateObject
|
Field Summary |
---|
Fields inherited from class kaos.kpat.policyTemplates.PolicyTemplate |
---|
_instanceId |
Constructor Summary | |
---|---|
GenericDAMLPolicyTemplate()
|
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 |
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 |
PolicyTemplateResult |
getResult(boolean resolveBindings)
|
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 |
removeTemplateComponentReference(TemplateComponentReference tcr)
|
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 |
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 |
Constructor Detail |
---|
public GenericDAMLPolicyTemplate()
Method Detail |
---|
public void initialize(TunnelClient tunnelClient, java.util.Hashtable subjectTreeModels, PolicyTemplateFactory factory)
PolicyTemplate
initialize
in class PolicyTemplate
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 PolicyTemplateResult getResult(boolean resolveBindings) throws PolicyBuildingNotCompleted
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
java.lang.Exception
public java.awt.Component getDisplayComponent()
PolicyTemplate
getDisplayComponent
in class PolicyTemplate
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 setTemplateState(java.lang.Object state) throws java.lang.Exception
PolicyTemplate
setTemplateState
in class PolicyTemplate
java.lang.Exception
public java.lang.Object getTemplateState() throws PolicyBuildingNotCompleted
PolicyTemplate
getTemplateState
in class PolicyTemplate
PolicyBuildingNotCompleted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |