ponderToolkit.mgmtConsole
Class Connector

java.lang.Object
  |
  +--ponderToolkit.mgmtConsole.Connector

public class Connector
extends java.lang.Object

Function: Connects to the Policy Management Component and interacts with it. Also connects to the Policy Service.


Constructor Summary
Connector(boolean newUseDB, boolean newUseHDB)
          Constructor
 
Method Summary
 void connectToPolicyService()
          Connect to Policy Service
 boolean disablePolicy()
          Disable Policy - Interact with the Control object Returns true if operation succeded.
 boolean enablePolicy()
          Enable Policy - Interact with the Control object Returns true if operation succeded.
 boolean loadPolicy()
          Load Policy - Interact with the Control object Returns true if operation succeded.
 void pmcConnect()
          Connect to Pmc - Select one from the Domain Service using the DomainChooser
 void pmcGetObligPolicies()
          Get Oblig Policies loaded into the selected PMC
 void pmcGetRefrainPolicies()
          Get Refrain Policies loaded into the selected PMC
 void setMainWindow(MainWindow newMainWindow)
          Set MainWindow reference
 void setPmcViewer(PmcView newPmcViewer)
          set a reference to the PmcView
 void setPolicyViewer(PolicyView newPolicyViewer)
          set a reference to the PolicyView
 void startPoliciesInDomain()
          Ask the policy service to start all policy objects in a domain.
 void startPolicy()
          Ask the policy service to start a policy object First get the desired policy from the domain service using the Domain Browser
 void startRole()
          Ask the policy service to start a role object First get the desired role from the domain service using the Domain Browser
 void stopPolicy()
          Ask the policy service to stop a started policy object
 boolean unloadPolicy()
          Unload Policy - Interact with the Control object Returns true if operation succeded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connector

public Connector(boolean newUseDB,
                 boolean newUseHDB)
Constructor
Method Detail

setMainWindow

public void setMainWindow(MainWindow newMainWindow)
Set MainWindow reference
Parameters:
newMainWindow - The MainWindow of the GUI for the Management Console

setPolicyViewer

public void setPolicyViewer(PolicyView newPolicyViewer)
set a reference to the PolicyView

setPmcViewer

public void setPmcViewer(PmcView newPmcViewer)
set a reference to the PmcView

connectToPolicyService

public void connectToPolicyService()
Connect to Policy Service

startPoliciesInDomain

public void startPoliciesInDomain()
Ask the policy service to start all policy objects in a domain. Actually loop through them and ask the policy service to start each policy object individually! Use the DomainChooser to select the domain

startPolicy

public void startPolicy()
Ask the policy service to start a policy object First get the desired policy from the domain service using the Domain Browser

stopPolicy

public void stopPolicy()
Ask the policy service to stop a started policy object

startRole

public void startRole()
Ask the policy service to start a role object First get the desired role from the domain service using the Domain Browser

loadPolicy

public boolean loadPolicy()
Load Policy - Interact with the Control object Returns true if operation succeded. False otherwise

unloadPolicy

public boolean unloadPolicy()
Unload Policy - Interact with the Control object Returns true if operation succeded. False otherwise

enablePolicy

public boolean enablePolicy()
Enable Policy - Interact with the Control object Returns true if operation succeded. False otherwise

disablePolicy

public boolean disablePolicy()
Disable Policy - Interact with the Control object Returns true if operation succeded. False otherwise

pmcConnect

public void pmcConnect()
Connect to Pmc - Select one from the Domain Service using the DomainChooser

pmcGetObligPolicies

public void pmcGetObligPolicies()
Get Oblig Policies loaded into the selected PMC

pmcGetRefrainPolicies

public void pmcGetRefrainPolicies()
Get Refrain Policies loaded into the selected PMC