|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.kpat.policyTemplates.PolicyTemplate
public abstract class PolicyTemplate
This is the interface implemented by the end-system programmer with functionalities specific for graphical creation and edition of policies according to a specific policy template. $Revision: 1.10 $
Field Summary | |
---|---|
protected java.lang.String |
_instanceId
|
Constructor Summary | |
---|---|
PolicyTemplate()
|
Method Summary | |
---|---|
void |
addTemplateComponentReference(TemplateComponentReference tcr)
|
int |
compareTo(java.lang.Object o)
|
abstract void |
createPolicy(SubjectMsg optionalSubject)
Update the display component to create a new policy. |
abstract void |
editPolicy(PolicyTemplateResult existingPolicy)
Update the display component to edit an existing policy |
abstract java.lang.String |
getDescription()
Get the description of the PolicyTemplateEditor. |
abstract java.awt.Component |
getDisplayComponent()
Return the component to be displayed to the user |
java.lang.String |
getInstanceId()
|
abstract java.lang.String |
getName()
Get the name of the PolicyTemplateEditor. |
abstract PolicyTemplateResult |
getResult()
Return the resultant policy(s) and optional policy set |
java.lang.Object |
getTemplateState()
This method is used if this template is a subtemplate |
abstract 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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String _instanceId
Constructor Detail |
---|
public PolicyTemplate()
Method Detail |
---|
public abstract void initialize(TunnelClient tunnelClient, java.util.Hashtable subjectTreeModels, PolicyTemplateFactory factory) throws java.lang.Exception
java.lang.Exception
public abstract java.lang.String getName()
public abstract java.lang.String getDescription()
public abstract PolicyTemplateResult getResult() throws PolicyBuildingNotCompleted
PolicyBuildingNotCompleted
public abstract java.awt.Component getDisplayComponent()
public abstract void createPolicy(SubjectMsg optionalSubject) throws java.lang.Exception
optionalSubject
- The subject if the editor
was invoked for it
java.lang.Exception
public abstract void editPolicy(PolicyTemplateResult existingPolicy) throws java.lang.Exception
PolicyTemplateEditorResult
- Contains information about the existing
policy(s) (and optionally policy set)
java.lang.Exception
public void addTemplateComponentReference(TemplateComponentReference tcr)
public void removeTemplateComponentReference(TemplateComponentReference tcr)
public void setTemplateComponentReferences(java.util.List refs)
public java.lang.Object getTemplateState() throws TemplateBuildingNotCompleted, PolicyBuildingNotCompleted
TemplateBuildingNotCompleted
PolicyBuildingNotCompleted
public void setTemplateState(java.lang.Object state) throws java.lang.Exception
java.lang.Exception
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public java.lang.String getInstanceId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |