wt.clients.filevault
Class fv

java.lang.Object
  extended bywt.clients.administrator.Domain
      extended bywt.clients.filevault.fv

public class fv
extends Domain


Nested Class Summary
(package private) static class fv.SelectorInfo
           
 
Field Summary
static int CREATE
           
static int DELETE
           
static int LOCAL_FILEVAULT_RULE
           
static int LOCAL_FILEVAULT_RULE_ONLY
           
(package private) static ResourceBundle RB
           
static int REMOTE_FILEVAULT_RULE
           
static int REMOTE_FILEVAULT_RULE_ONLY
           
private static String RESOURCE
           
static int UPDATE
           
private static boolean VERBOSE
           
static int VIEW
           
 
Constructor Summary
fv()
           
 
Method Summary
static FvPolicyRule addPolicyRule(String myDomain, String myClass, String myState, Vault myVault, int ruleCode)
          Add a new file vault policy rule
private static fv.SelectorInfo createSelector(String myDomain, String myClass, State myState)
          Utility class to generate a selector.
static void deletePolicyRule(FvPolicyRule rule)
          Delete a file vault policy rule
static void deletePolicyRule(String myDomain, String myClass, String myState, String myVault)
          Delete a file vault policy rule
private static String formatSelInfo(fv.SelectorInfo selInfo)
          Formats the Selector specific part of format vector for the display strings.
static FvPolicyRule[] getAllPolicyRules(String myDomain)
          Get all file vault policy rules applying to a domain
static FvPolicyRule[] getAllRemotePolicyRules(String myDomain)
          Get all remote file vault policy rules applying to a domain
static FvVault[] getAllVaults(Enumeration vaultList)
          Get all file vaults
static Vector getPolicyItems(String myDomain, String myClass, State myState)
          Get a list of file vault policy items Galen, you may want to change this function or add a new function similar to this one.
static Vector getRemotePolicyItems(String myDomain, String myClass, State myState)
          Get a list of Remote vault policy items
static void launchFv(Applet parentApplet, Component parent, HelpSystem helpSystem, int selectedTab)
          Creates a new instance of the window to select from the existing domains to update a domain or modify its policies.
static String[] listDomains(String containerOid)
          Return a list of the path names of all administrative domains for use with WTMultilist.
static FvPolicyRule updatePolicyRule(String myDomain, String myClass, String myState, Vault myVault, FvPolicyRule myRule, int ruleCode)
          Update a file vault policy rule
 
Methods inherited from class wt.clients.administrator.Domain
getClassesTree, getDescription, getEvents, getFullClassName, getShortClassTree, listDomains
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCAL_FILEVAULT_RULE

public static int LOCAL_FILEVAULT_RULE

REMOTE_FILEVAULT_RULE

public static int REMOTE_FILEVAULT_RULE

LOCAL_FILEVAULT_RULE_ONLY

public static int LOCAL_FILEVAULT_RULE_ONLY

REMOTE_FILEVAULT_RULE_ONLY

public static int REMOTE_FILEVAULT_RULE_ONLY

CREATE

public static final int CREATE
See Also:
Constant Field Values

UPDATE

public static final int UPDATE
See Also:
Constant Field Values

VIEW

public static final int VIEW
See Also:
Constant Field Values

DELETE

public static final int DELETE
See Also:
Constant Field Values

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE
See Also:
Constant Field Values

RB

static ResourceBundle RB
Constructor Detail

fv

public fv()
Method Detail

addPolicyRule

public static FvPolicyRule addPolicyRule(String myDomain,
                                         String myClass,
                                         String myState,
                                         Vault myVault,
                                         int ruleCode)
                                  throws WTException
Add a new file vault policy rule

Throws:
WTException

updatePolicyRule

public static FvPolicyRule updatePolicyRule(String myDomain,
                                            String myClass,
                                            String myState,
                                            Vault myVault,
                                            FvPolicyRule myRule,
                                            int ruleCode)
                                     throws WTException,
                                            WTPropertyVetoException
Update a file vault policy rule

Throws:
WTException
WTPropertyVetoException

getAllVaults

public static FvVault[] getAllVaults(Enumeration vaultList)
                              throws WTException
Get all file vaults

Throws:
WTException

getAllPolicyRules

public static FvPolicyRule[] getAllPolicyRules(String myDomain)
                                        throws WTException
Get all file vault policy rules applying to a domain

Throws:
WTException

getAllRemotePolicyRules

public static FvPolicyRule[] getAllRemotePolicyRules(String myDomain)
                                              throws WTException
Get all remote file vault policy rules applying to a domain

Throws:
WTException

deletePolicyRule

public static void deletePolicyRule(String myDomain,
                                    String myClass,
                                    String myState,
                                    String myVault)
                             throws WTException
Delete a file vault policy rule

Throws:
WTException

deletePolicyRule

public static void deletePolicyRule(FvPolicyRule rule)
                             throws WTException
Delete a file vault policy rule

Throws:
WTException

getRemotePolicyItems

public static Vector getRemotePolicyItems(String myDomain,
                                          String myClass,
                                          State myState)
Get a list of Remote vault policy items

Returns:
Vector Returns a vector of strings. The structure of the string is class;displaynane;vaultname

getPolicyItems

public static Vector getPolicyItems(String myDomain,
                                    String myClass,
                                    State myState)
Get a list of file vault policy items Galen, you may want to change this function or add a new function similar to this one. The new function should call LocalService.getRemotePolicyItems(sel) to get remote policy items and return them in a vector containing displayable string (fields separated by ";").


createSelector

private static fv.SelectorInfo createSelector(String myDomain,
                                              String myClass,
                                              State myState)
                                       throws WTException
Utility class to generate a selector.

Returns:
Selector The selector created.
Throws:
WTException

formatSelInfo

private static String formatSelInfo(fv.SelectorInfo selInfo)
Formats the Selector specific part of format vector for the display strings.


launchFv

public static void launchFv(Applet parentApplet,
                            Component parent,
                            HelpSystem helpSystem,
                            int selectedTab)
Creates a new instance of the window to select from the existing domains to update a domain or modify its policies. The domain frame will be instanciated with its file vault tab forward. Do we use this anymore?

Parameters:
parentApplet - the parent applet
parent - the requesting frame
helpSystem - the applet's help online help

listDomains

public static String[] listDomains(String containerOid)
                            throws Exception
Return a list of the path names of all administrative domains for use with WTMultilist. Semicolons in the names are escaped since WTMultiList treats them as a column separator.

Returns:
Array of strings of domain path names
Throws:
Exception