wt.fv
Class FvPolicyRuleHelper

java.lang.Object
  extended bywt.fv.FvPolicyRuleHelper

public class FvPolicyRuleHelper
extends Object


Nested Class Summary
private  class FvPolicyRuleHelper.FvRuleDepItem
           
 
Constructor Summary
FvPolicyRuleHelper()
           
 
Method Summary
private static void addFvPolItemToHash(ObjectReference domainRef, String typeId, String stateName, ObjectReference vaultRef, Hashtable hash)
           
 void deletePolicyItemsPerSiteDomain(Site site, String vaultClassName, AdminDomainRef domainRef)
           
 void deletePolicyPerVault(Vault vault)
           
private  Vector findFvRulesPresidence(Vector qrRulesVector)
           
private  QueryResult findPolicyItemsOfType(Site site, String vClassName, AdminDomainRef domainRef)
           
private  Class getClassByName(String className)
           
 FvPolicyItem getPolicyItem(Selector sel, Site site, String vaultClassName)
           
private  Vector getSortedFvPolicyRules(Site site, String vaultClassType, AdminDomainRef domainRef)
          \ |* Returns rules for the given Site <-> type pair topologicaly sorted.
private  boolean isDerivedFrom(String class1, String class2)
           
 void refreshPolicyItems(Site site, String vaultClassName, AdminDomainRef domainRef)
           
private  Vector sortRules(Vector subDepRules, int numRules)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FvPolicyRuleHelper

public FvPolicyRuleHelper()
Method Detail

findFvRulesPresidence

private Vector findFvRulesPresidence(Vector qrRulesVector)

isDerivedFrom

private boolean isDerivedFrom(String class1,
                              String class2)

sortRules

private Vector sortRules(Vector subDepRules,
                         int numRules)

refreshPolicyItems

public void refreshPolicyItems(Site site,
                               String vaultClassName,
                               AdminDomainRef domainRef)
                        throws WTException
Throws:
WTException

addFvPolItemToHash

private static void addFvPolItemToHash(ObjectReference domainRef,
                                       String typeId,
                                       String stateName,
                                       ObjectReference vaultRef,
                                       Hashtable hash)
                                throws WTException
Throws:
WTException

getSortedFvPolicyRules

private Vector getSortedFvPolicyRules(Site site,
                                      String vaultClassType,
                                      AdminDomainRef domainRef)
                               throws QueryException,
                                      WTException
\ |* Returns rules for the given Site <-> type pair topologicaly sorted. *| |* Sorted rules are in order a(1), a(2), ... a(n-1), a(n), where a(n) is *| |* either a subset of a(n - 1) or has no relation to a(n - 1). *| |* Args: - look for rules, that reference vaults belonging to this site. *| |* - full class name of a vault. Picks rules that refernce *| |* specific type of vault. Passing in NULL will result in *| |* all types of rules for the given site to be returned. *| \

Throws:
QueryException
WTException

findPolicyItemsOfType

private QueryResult findPolicyItemsOfType(Site site,
                                          String vClassName,
                                          AdminDomainRef domainRef)
                                   throws WTException
Throws:
WTException

getClassByName

private Class getClassByName(String className)
                      throws WTException
Throws:
WTException

deletePolicyPerVault

public void deletePolicyPerVault(Vault vault)
                          throws WTException
Throws:
WTException

deletePolicyItemsPerSiteDomain

public void deletePolicyItemsPerSiteDomain(Site site,
                                           String vaultClassName,
                                           AdminDomainRef domainRef)
                                    throws WTException
Throws:
WTException

getPolicyItem

public FvPolicyItem getPolicyItem(Selector sel,
                                  Site site,
                                  String vaultClassName)
                           throws WTException
Throws:
WTException