|
|||||||||
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.editor.HTDefinedPolicyTemplate
public class HTDefinedPolicyTemplate
This class provides a user-defined hypertext policy template. The template is defined in terms of one or more policy templates called "subtemplates".
Field Summary | |
---|---|
TunnelClient |
_tunnelClient
|
static java.lang.String |
SUBTEMPLATE_STATES
|
static java.lang.String |
TEMPLATE_DESC
|
static java.lang.String |
TEMPLATE_HTML
|
static java.lang.String |
TEMPLATE_NAME
|
static java.lang.String |
TEMPLATE_PATH_DELIM
|
Fields inherited from class kaos.kpat.policyTemplates.PolicyTemplate |
---|
_instanceId |
Constructor Summary | |
---|---|
HTDefinedPolicyTemplate()
|
Method Summary | |
---|---|
void |
addSubtemplate(PolicyTemplate template)
|
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 |
getHTMLText()
|
java.lang.String |
getName()
Get the name of the PolicyTemplateEditor. |
PolicyTemplateResult |
getResult()
Return the resultant policy(s) and optional policy set |
java.lang.Object |
getState()
|
java.util.List |
getSubtemplates()
|
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 |
void |
removeSubtemplate(PolicyTemplate template)
|
void |
saveSubtemplateState()
|
void |
setDescription(java.lang.String description)
|
void |
setHTMLText(java.lang.String html)
|
void |
setName(java.lang.String name)
|
void |
setState(java.lang.Object o)
|
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 |
---|
addTemplateComponentReference, compareTo, getInstanceId, removeTemplateComponentReference, setTemplateComponentReferences |
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
public transient TunnelClient _tunnelClient
public static final java.lang.String TEMPLATE_NAME
public static final java.lang.String TEMPLATE_DESC
public static final java.lang.String TEMPLATE_HTML
public static final java.lang.String SUBTEMPLATE_STATES
Constructor Detail |
---|
public HTDefinedPolicyTemplate()
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String getHTMLText()
public void setHTMLText(java.lang.String html)
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 KAoSPolicyBuilder.PolicyBuildingNotCompleted, TemplateBuildingNotCompleted
KAoSPolicyBuilder.PolicyBuildingNotCompleted
TemplateBuildingNotCompleted
public java.util.List getSubtemplates()
public void initialize(TunnelClient tunnelClient, java.util.Hashtable subjectTreeModels, PolicyTemplateFactory factory) throws java.lang.Exception
PolicyTemplate
initialize
in class PolicyTemplate
java.lang.Exception
public void setTemplateEditor(HypertextEditor editor)
public java.lang.String getName()
PolicyTemplate
getName
in class PolicyTemplate
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 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
existingPolicy
- Contains information about the existing
policy(s) (and optionally policy set)
java.lang.Exception
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 java.lang.Object getState()
getState
in interface DefinedPolicyTemplate
public void setState(java.lang.Object o)
setState
in interface DefinedPolicyTemplate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |