kaos.kpat.tunnel
Class TunnelClient

java.lang.Object
  extended by kaos.kpat.tunnel.TunnelClient
All Implemented Interfaces:
DirectoryService, DomainDirectoryService, KAoSOntologyQueryService, OntologyRepositoryService, OntologyInterfaces, PolicyAnalyzes, PolicyDirectory, PolicyModification, PolicySetDirectory, AuthorizationPolicyDisclosure, ObligationPolicyDisclosure, PolicyDisclosure, XMLRepository

public class TunnelClient
extends java.lang.Object
implements OntologyInterfaces, DirectoryService, XMLRepository, PolicyDisclosure


Field Summary
protected  java.util.Hashtable _userRegisteredList
           
 
Constructor Summary
TunnelClient(java.lang.String url)
           
 
Method Summary
 void addFilteredNamespace(java.lang.String namespace)
          This method add a nemaspace to the set of urls depicting ontology namespaces concept of which are filtered out when returned by methods of this repository.
 void addFilteredNamespace(java.lang.String namespace, javax.swing.ProgressMonitor pm)
           
 void addLogin(java.lang.String userid, java.lang.String password)
           
 void addPolicies(java.util.Vector policies)
          Each element of the Vector is an instance of a Msg class specifying an individual policy fields
 void addPolicies(java.util.Vector policies, javax.swing.ProgressMonitor pm)
           
 void addPolicy(Msg policy)
           
 void addPolicy(Msg policy, javax.swing.ProgressMonitor pm)
           
 void addPolicySet(Msg policySet)
           
 void addPolicySet(Msg policySet, javax.swing.ProgressMonitor pm)
           
 void addPolicySets(java.util.Vector policySets)
          Each element of the Vector is an instance of a Msg class specifying an individual policy set fields
 void addPolicySets(java.util.Vector policySets, javax.swing.ProgressMonitor pm)
           
 java.lang.String analyzeWorkflow(java.lang.String owlsWorkflow, javax.swing.ProgressMonitor pm)
          Modify the given OWL-S workflow based on policies that apply the actions in workflow.
 java.lang.String analyzeWorkflow(java.net.URL owlsWorkflow, javax.swing.ProgressMonitor pm)
          Modify the given OWL-S workflow based on policies that apply the actions in workflow.
 boolean areClassesDisjoint(java.lang.String firstClass, java.lang.String secondClass)
          Test if two provided classes are disjoint
 boolean areClassesDisjoint(java.lang.String firstClass, java.lang.String secondClass, javax.swing.ProgressMonitor pm)
           
 java.util.Set askQuery(java.lang.String variableName, java.lang.String multiplyVariablesQuery)
          Get values of the selected variable satisfing the KIF query with possibly many variable.
 java.util.Set askQuery(java.lang.String variableName, java.lang.String multiplyVariablesQuery, javax.swing.ProgressMonitor pm)
           
 java.util.Vector changeComponentEnabledStatus(java.lang.String repType, java.lang.String associatedOntType, java.lang.Boolean state, java.lang.String guardRepMgrID)
          Changes the 'enabled' status of the given component.
 java.util.Vector changeComponentEnabledStatus(java.lang.String repType, java.lang.String associatedOntType, java.lang.Boolean state, java.lang.String guardRepMgrID, javax.swing.ProgressMonitor pm)
           
 void changedPriority(java.lang.String policyId, int newPriority)
          Method allowing to modify priority of a policy to either eliminate conflict or to alter policy precedence relation
 void changedPriority(java.lang.String policyId, int newPriority, javax.swing.ProgressMonitor pm)
           
 void changePolicies(java.util.Vector policies)
           
 void changePolicies(java.util.Vector policies, javax.swing.ProgressMonitor pm)
           
 void changePolicy(Msg policy)
           
 void changePolicy(Msg policy, javax.swing.ProgressMonitor pm)
           
 void changePolicySet(Msg policySet)
           
 void changePolicySet(Msg policySet, javax.swing.ProgressMonitor pm)
           
 void changePolicySets(java.util.Vector policySets)
           
 void changePolicySets(java.util.Vector policySets, javax.swing.ProgressMonitor pm)
           
 void checkDeepPermission(java.security.Permission perm, java.lang.Object context)
          The method checks if the given action is permitted according to the current set of policies.
 void checkDeepPermission(java.security.Permission perm, java.lang.Object context, javax.swing.ProgressMonitor pm)
           
 void checkPermission(java.security.Permission perm, java.lang.Object context)
          The method check if the given action is permitted according to the current set of policies
 void checkPermission(java.security.Permission perm, java.lang.Object context, javax.swing.ProgressMonitor pm)
           
 AgentDescription createAgentDescription()
          javax.agent.service.directory.AgentDirectoryService interface implementation - begin
 void declareInstance(java.lang.String instanceName, java.lang.String className)
           
 void deleteAllLogs(java.lang.String historyMonitorID)
           
 void deleteAllLogs(java.lang.String historyMonitorID, javax.swing.ProgressMonitor pm)
           
 java.util.Vector deleteLogsforActionType(java.lang.String actionType, java.lang.String historyMonitorID)
           
 java.util.Vector deleteLogsforActionType(java.lang.String actionType, java.lang.String historyMonitorID, javax.swing.ProgressMonitor pm)
           
 java.util.Vector deleteLogsforActor(java.lang.String actorID, java.lang.String historyMonitorID)
           
 java.util.Vector deleteLogsforActor(java.lang.String actorID, java.lang.String historyMonitorID, javax.swing.ProgressMonitor pm)
           
 java.util.Vector deleteSpecifiedLogs(java.lang.String actionType, java.lang.String actorID, java.lang.String startTime, java.lang.String endTime, java.lang.Boolean latest, java.lang.String historyMonitorID)
           
 java.util.Vector deleteSpecifiedLogs(java.lang.String actionType, java.lang.String actorID, java.lang.String startTime, java.lang.String endTime, java.lang.Boolean latest, java.lang.String historyMonitorID, javax.swing.ProgressMonitor pm)
           
 void deregister(AgentDescription desc)
           
 void deregister(AgentDescription desc, javax.swing.ProgressMonitor pm)
           
 java.util.List findConflictingPolicies(java.lang.String policyId)
          Method find all the policies conflicting with the specified policy
 java.util.List findConflictingPolicies(java.lang.String policyId, javax.swing.ProgressMonitor pm)
           
 java.util.List findPoliciesMadeRedundant(java.lang.String policyId)
          Method find all the policies with higher priority making the specified policy redundant
 java.util.List findPoliciesMadeRedundant(java.lang.String policyId, javax.swing.ProgressMonitor pm)
           
 java.util.List findPoliciesMakingRedundant(java.lang.String policyId)
          Method find all the policies with higher priority making the specified policy redundant
 java.util.List findPoliciesMakingRedundant(java.lang.String policyId, javax.swing.ProgressMonitor pm)
           
 java.util.Vector findPolicyDecision(java.security.Permission perm, java.lang.Object context)
          The method checks if the given action is permitted according to the current set of policies, or if the given action is a trigger for some obligation policy.
 java.util.Vector findPolicyDecision(java.security.Permission perm, java.lang.Object context, javax.swing.ProgressMonitor pm)
          For Policy Disclosure
 java.util.Set getActions(java.lang.String forActor)
          Get descriptions of the Action classes the specified Actor class or instance can perfom based on its class.
 java.util.Set getActions(java.lang.String forActor, javax.swing.ProgressMonitor pm)
           
 java.util.List getAllAgentsInDirectory()
          Get a Vector of descriptions of all agents in the directory.
 java.util.List getAllAgentsInDirectory(javax.swing.ProgressMonitor pm)
           
 java.util.Vector getAllAgentsInDomain(java.lang.String domainName)
          Get a Vector of descriptions of all of the agents in a domain.
 java.util.Vector getAllAgentsInDomain(java.lang.String domainName, javax.swing.ProgressMonitor pm)
           
 java.util.Vector getAllDomainsInDirectory()
          Get a Vector of descriptions of all of the domains in a directory.
 java.util.Vector getAllDomainsInDirectory(javax.swing.ProgressMonitor pm)
           
 java.util.List getAllGuardsInDirectory()
          Get a Vector of descriptions of all guards in the directory.
 java.util.Vector getAllLogs(java.lang.String historyMonitorID)
           
 java.util.Vector getAllLogs(java.lang.String historyMonitorID, javax.swing.ProgressMonitor pm)
           
 java.util.Set getAllNamespaces()
          This method returns a set of urls depicting ontologies loaded into the JTP as well namespaces used internally by KAoS.
 java.util.Set getAllNamespaces(javax.swing.ProgressMonitor pm)
           
 java.util.Vector getAllowableValuesForActionProperties(ActionInstanceDescription actionDesc)
          In this case, there are NO properties specified.
 java.util.Vector getAllowableValuesForActionProperties(ActionInstanceDescription actionDesc, javax.swing.ProgressMonitor pm)
           
 java.util.Vector getAllowableValuesForActionProperties(java.util.Vector propertyNames, ActionInstanceDescription actionDesc, boolean tight)
          This function is used when the agent/enforcer has only partial information about an action and would like to determine what range of properties can be allowed by the policy set.
 java.util.Vector getAllowableValuesForActionProperties(java.util.Vector propertyNames, ActionInstanceDescription actionDesc, boolean tight, javax.swing.ProgressMonitor pm)
           
 java.util.Set getAllowableValuesForActionProperty(java.lang.String origPropertyName, ActionInstanceDescription origActionDesc, java.util.Set allTargetValues, boolean tight)
          This function is used when the enforcer has only partial information about an action and needs to determine what range of a property can be allowed by the policy.
 java.util.Set getAllowableValuesForActionProperty(java.lang.String origPropertyName, ActionInstanceDescription origActionDesc, java.util.Set allTargetValues, boolean tight, javax.swing.ProgressMonitor pm)
           
 java.util.Vector getAllPolicies(java.lang.String policyDBManagerID)
          kaos.policy.information.PolicyDBManagerForwarder interface implementation - begin Important: please note that all forwarded methods have to call the invokeForwardingMethod, not invokeMethod!
 java.util.Vector getAllPolicies(java.lang.String policyDBManagerID, javax.swing.ProgressMonitor pm)
           
 java.util.List getAllSchema()
          to retrieve all schemas in the repositiry.
 java.util.List getAllSchema(javax.swing.ProgressMonitor pm)
           
 java.util.Vector getApplicablePoliciesForEntity(java.lang.String entityId)
          Obtain the set of policies directly and indirectly applicable to a specified entity.
 java.util.Set getClassesDefInNamespace(java.lang.String namespaceName)
          Get set of classes defined in the given namespace.
 java.util.Set getClassesDefInNamespace(java.lang.String namespaceName, javax.swing.ProgressMonitor pm)
           
 java.util.Set getClassesOfActors(java.lang.String baseActorClass)
          Get names of the Actors classes known to the ontology repository being a subclass of the specified base class.
 java.util.Set getClassesOfActors(java.lang.String baseActorClass, javax.swing.ProgressMonitor pm)
           
 java.util.Set getClassesOfActorsCapableOfPerformingActions(java.lang.String actionClass)
          Get names of Actor classes capable to perform a given action, without taking into consideration policy restrictions
 java.util.Set getClassesOfActorsCapableOfPerformingActions(java.lang.String actionClass, javax.swing.ProgressMonitor pm)
           
 java.util.Set getClassesOfGroups(java.lang.String baseGroupClass)
          Get names of the Group classes known to the ontology repository being a subclass of the specified base class.
 java.util.Set getClassesOfGroups(java.lang.String baseGroupClass, javax.swing.ProgressMonitor pm)
           
 java.util.Set getClassesOfPlaces(java.lang.String basePlaceClass)
          Get names of the Places classes known to the ontology repository being a subclass of the specified base class.
 java.util.Set getClassesOfPlaces(java.lang.String basePlaceClass, javax.swing.ProgressMonitor pm)
           
 java.util.Set getClassesOfTargets(java.lang.String baseTargetClass)
          Get names of the targets (Actors or Entities) classes known to the ontology repository being a subclass of the specified base class.
 java.util.Set getClassesOfTargets(java.lang.String baseTargetClass, javax.swing.ProgressMonitor pm)
           
 java.lang.Boolean getComponentEnabledStatus(java.lang.String repType, java.lang.String associatedOntType, java.lang.String guardRepMgrID)
          Get the 'enabled' status of the given component.
 java.lang.Boolean getComponentEnabledStatus(java.lang.String repType, java.lang.String associatedOntType, java.lang.String guardRepMgrID, javax.swing.ProgressMonitor pm)
           
 java.util.Vector getConditionalPolicies()
           
 java.util.Vector getConditionalPolicies(javax.swing.ProgressMonitor pm)
           
 java.util.List getConstructedOntologyStructures()
          This method retrieves all user defined ontlogy structures in the repositiry.
 java.util.List getConstructedOntologyStructures(javax.swing.ProgressMonitor pm)
           
 DomainDescription getDomainDescription(java.lang.String domainName)
          Get the description of a domain
 DomainDescription getDomainDescription(java.lang.String domainName, javax.swing.ProgressMonitor pm)
           
 java.util.List getDomainDescriptionsForGuard(java.lang.String guardGUID)
          Obtain a List containing DomainDescriptions of all domains the guard, whose GUID is specified, registered in.
 java.util.Map getDomainStructure(java.lang.String domainName)
          Obtain a Map containing the structure of a domain.
 java.util.Map getDomainStructure(java.lang.String domainName, javax.swing.ProgressMonitor pm)
           
 java.util.Set getFilteredNamespaces()
          This method returns a set of urls depicting ontology namespaces concept of which are filtered out when returned by methods of this repository.
 java.util.Set getFilteredNamespaces(javax.swing.ProgressMonitor pm)
           
 GuardState getGuardStateFor(java.lang.String guardID)
          method for getting the current state of a guard
 GuardState getGuardStateFor(java.lang.String guardID, javax.swing.ProgressMonitor pm)
           
 java.util.Set getIndividualActors(java.lang.String baseActorClass)
          Get names of the individual Actors known to the ontology repository being an instance of the specified base class.
 java.util.Set getIndividualActors(java.lang.String baseActorClass, javax.swing.ProgressMonitor pm)
           
 java.util.Set getIndividualGroups(java.lang.String baseGroupClass)
          Get names of the individual Groups known to the ontology repository being an instance of the specified base class.
 java.util.Set getIndividualGroups(java.lang.String baseGroupClass, javax.swing.ProgressMonitor pm)
           
 java.util.Set getIndividualPlaces(java.lang.String basePlaceClass)
          Get names of the individual Places known to the ontology repository being an instance of the specified base class.
 java.util.Set getIndividualPlaces(java.lang.String basePlaceClass, javax.swing.ProgressMonitor pm)
           
 java.util.Set getIndividualTargets(java.lang.String baseTargetClass)
          Get names of the individual targets (Actors or Entities) known to the ontology repository being an instance of the specified base class.
 java.util.Set getIndividualTargets(java.lang.String baseTargetClass, javax.swing.ProgressMonitor pm)
           
 java.util.Set getInstancesDefInNamespace(java.lang.String namespaceName)
          Get set of instances defined in the given namespace.
 java.util.Set getInstancesDefInNamespace(java.lang.String namespaceName, javax.swing.ProgressMonitor pm)
           
 java.util.Set getInstancesOf(java.lang.String conceptName)
          Get set of instances of the given concept; if the concept is an instance itself the set contains just this instance.
 java.util.Set getInstancesOf(java.lang.String conceptName, javax.swing.ProgressMonitor pm)
           
 java.util.Set getListOfLoadedOntologies()
          This method returns a set of urls depicting ontologies loaded into the JTP.
 java.util.Set getListOfLoadedOntologies(javax.swing.ProgressMonitor pm)
           
 java.util.Vector getLogsforActionType(java.lang.String actionType, java.lang.String historyMonitorID)
           
 java.util.Vector getLogsforActionType(java.lang.String actionType, java.lang.String historyMonitorID, javax.swing.ProgressMonitor pm)
           
 java.util.Vector getLogsforActor(java.lang.String actorID, java.lang.String historyMonitorID)
           
 java.util.Vector getLogsforActor(java.lang.String actorID, java.lang.String historyMonitorID, javax.swing.ProgressMonitor pm)
           
 java.util.Set getNamspacesImportedByNamespace(java.lang.String namespaceName)
          Get set of namspaces imported by the given namespace.
 java.util.Set getNamspacesImportedByNamespace(java.lang.String namespaceName, javax.swing.ProgressMonitor pm)
           
 java.util.Vector getObligationsForTriggerCondition(ActionInstanceDescription triggerAID)
          Based on the specified trigger ActionInstanceDescription, select all matching control BasicActionDescription, which define the obligations for the trigger.
 java.util.Vector getObligationsForTriggerCondition(ActionInstanceDescription triggerAID, javax.swing.ProgressMonitor pm)
           
 java.util.Set getOntologyDefinitionForConcept(java.lang.String conceptName)
          Get set of namspaces imported by the given namespace.
 java.util.Set getOntologyDefinitionForConcept(java.lang.String conceptName, javax.swing.ProgressMonitor pm)
           
 java.util.List getPolicies()
          Obtain an List over all policies.
 java.util.List getPolicies(javax.swing.ProgressMonitor pm)
           
 java.util.Map getPoliciesByEntities()
          Obtain a table of all original policies (pre-deconfliction and OWL->XML conversion) in the system, indexed by the id(s) of the entity(s) to which they apply
 java.util.Map getPoliciesByEntities(javax.swing.ProgressMonitor pm)
           
 java.util.List getPoliciesForActionType(java.lang.String actionType)
          Get policies for the specified action type.
 java.util.List getPoliciesForActionType(java.lang.String actionType, javax.swing.ProgressMonitor pm)
           
 java.util.Vector getPoliciesForEntity(java.lang.String entityId)
          Obtain the original (pre-deconfliction and OWL->XML conversion) policies directly applicable to the specified entity This method does not return all policies applicable to the entity (e.g., if you specified the id of an agent, it would only return policies for that agent, *not* including policies for the agent container, exec env, host, domain, which apply to the agent)
 java.util.Vector getPoliciesForEntity(java.lang.String entityId, javax.swing.ProgressMonitor pm)
           
 Msg getPolicy(java.lang.String policyId)
           
 Msg getPolicy(java.lang.String policyId, javax.swing.ProgressMonitor pm)
           
 PolicyInformation getPolicyInformation(java.lang.String policyID, java.lang.String policyDBManagerID)
           
 PolicyInformation getPolicyInformation(java.lang.String policyID, java.lang.String policyDBManagerID, javax.swing.ProgressMonitor pm)
           
 PolicySetMsg getPolicySet(java.lang.String policySetId)
           
 PolicySetMsg getPolicySet(java.lang.String policySetId, javax.swing.ProgressMonitor pm)
           
 java.util.List getPolicySets()
          Obtain an Vector over all policy sets.
 java.util.List getPolicySets(javax.swing.ProgressMonitor pm)
           
 java.lang.Integer getPolicyUpdateCount()
          Returns count of the number of times the policy has been updated.
 java.lang.Integer getPolicyUpdateCount(javax.swing.ProgressMonitor pm)
           
 java.util.Vector getPropertiesApplicableTo(java.lang.String className)
          Get set of properties defined in the given namespace.
 java.util.Vector getPropertiesApplicableTo(java.lang.String className, javax.swing.ProgressMonitor pm)
           
 java.util.Set getPropertiesDefInNamespace(java.lang.String namespaceName)
          Get set of properties defined in the given namespace.
 java.util.Set getPropertiesDefInNamespace(java.lang.String namespaceName, javax.swing.ProgressMonitor pm)
           
 java.lang.String getRangeOnPropertyForClass(java.lang.String className, java.lang.String propertyName)
          Get the name of the class defining the range of the specified property for the given class.
 java.lang.String getRangeOnPropertyForClass(java.lang.String className, java.lang.String propertyName, javax.swing.ProgressMonitor pm)
           
 java.util.Hashtable getRepositoryTableInformation(java.lang.String repType, java.lang.String guardRepMgrID)
          This method returns the concepts names and their corresponding component names in a Hashtable.
 java.util.Hashtable getRepositoryTableInformation(java.lang.String repType, java.lang.String guardRepMgrID, javax.swing.ProgressMonitor pm)
           
 java.util.Set getResourcesWithValueForProperty(java.lang.String property, java.lang.String value)
          Get values of the variable satisfing the KIF query: (property ?subject value).
 java.util.Vector getRootDomains()
          Obtain a Vector of the names of the root domains (domains with no parent)
 java.util.Vector getRootDomains(javax.swing.ProgressMonitor pm)
           
 java.util.Vector getSchema(java.lang.String dataName)
          Get XML schema of the given concept if such a schema is available
 java.util.Vector getSchema(java.lang.String dataName, javax.swing.ProgressMonitor pm)
           
 ServiceProperties getServiceProperties()
          javax.agent.service.Service interface implementation - begin
 java.util.Vector getSpecifiedLogs(java.lang.String actionType, java.lang.String actorID, java.lang.String startTime, java.lang.String endTime, java.lang.Boolean latest, java.lang.String historyMonitorID)
           
 java.util.Vector getSpecifiedLogs(java.lang.String actionType, java.lang.String actorID, java.lang.String startTime, java.lang.String endTime, java.lang.Boolean latest, java.lang.String historyMonitorID, javax.swing.ProgressMonitor pm)
           
 java.util.Set getSubClassesOf(java.lang.String className)
          Get set of subclasses of the given class.
 java.util.Set getSubClassesOf(java.lang.String className, javax.swing.ProgressMonitor pm)
           
 java.util.Vector getSubdomains(java.lang.String domainName)
          Obtain a Vector of the names of subdomains of a particular domain (returns immediate children only)
 java.util.Vector getSubdomains(java.lang.String domainName, javax.swing.ProgressMonitor pm)
           
 java.util.Set getSubPropertiesOf(java.lang.String propertyName)
          Get set of subproperties of the given property.
 java.util.Set getSubPropertiesOf(java.lang.String propertyName, javax.swing.ProgressMonitor pm)
           
 java.util.Set getSuperClassesOf(java.lang.String className)
          Get set of superclasses of the given class.
 java.util.Set getSuperClassesOf(java.lang.String className, javax.swing.ProgressMonitor pm)
           
 java.util.Set getSuperPropertiesOf(java.lang.String propertyName)
          Get set of superproperties of the given property.
 java.util.Set getSuperPropertiesOf(java.lang.String propertyName, javax.swing.ProgressMonitor pm)
           
 java.util.Set getUltimateOntologyTypesOfIndividual(java.lang.String individualName)
          Finds the ultimate Ontology type of the provided individual
 java.util.Set getUltimateOntologyTypesOfIndividual(java.lang.String individualName, javax.swing.ProgressMonitor pm)
           
 java.lang.String getUniqueValueForProperty(java.lang.String property, java.lang.String subject)
          Get a single value of the variable satisfing the KIF query: (property subject ?val).
 java.util.Set getValuesForProperty(java.lang.String property, java.lang.String subject)
          Get values of the variable satisfing the KIF query: (property subject ?val).
 java.util.List harmonizePolicy(java.lang.String harmonizedPolicy, java.lang.String harmonizingPolicy)
          Method deconflicting the added policy with policies currently in the Policy Directory
 java.util.List harmonizePolicy(java.lang.String harmonizedPolicy, java.lang.String harmonizingPolicy, javax.swing.ProgressMonitor pm)
           
 boolean isEntityInDomain(java.lang.String domainName, java.lang.String id)
          Search for the domain entity with the specified id.
 boolean isEntityInDomain(java.lang.String domainName, java.lang.String id, javax.swing.ProgressMonitor pm)
          kaos.domain.management.DomainDirectoryService interface implementation - begin
 boolean isFullyOverlappedBySecondPolicy(java.lang.String firstPolicyId, java.lang.String secondPolicyId)
          Method finds out if the specified policy is fully overlapped by the second specified policy, the necessary condition is that the two policies have the same modality
 boolean isFullyOverlappedBySecondPolicy(java.lang.String firstPolicyId, java.lang.String secondPolicyId, javax.swing.ProgressMonitor pm)
           
 boolean isFullyOverlappedByUnionOfPolicies(java.lang.String firstPolicyId, java.util.List listOfPolicies)
          Method finds out if the specified policy is fully overlapped by the union of specified policies, the necessary condition is that the all policies have the same modality
 boolean isFullyOverlappedByUnionOfPolicies(java.lang.String firstPolicyId, java.util.List listOfPolicies, javax.swing.ProgressMonitor pm)
           
 java.lang.Boolean isGuardLoggingActive(java.lang.String historyMonitorID)
           
 java.lang.Boolean isGuardLoggingActive(java.lang.String historyMonitorID, javax.swing.ProgressMonitor pm)
           
 boolean isMadeFullyRedundantByPolicyUnion(java.lang.String firstPolicyId, java.util.List listOfPolicies)
          Method finds out if the specified policy is beign made redundant (fully coverd) by the union of specified policies with higher priority in the repository
 boolean isMadeFullyRedundantByPolicyUnion(java.lang.String firstPolicyId, java.util.List listOfPolicies, javax.swing.ProgressMonitor pm)
           
 boolean isMadeFullyRedundantBySecond(java.lang.String firstPolicyId, java.lang.String secondPolicyId)
          Method finds out if the specified policy is beign made redundant (fully coverd) by the second specified policy with higher priority in the repository
 boolean isMadeFullyRedundantBySecond(java.lang.String firstPolicyId, java.lang.String secondPolicyId, javax.swing.ProgressMonitor pm)
           
 boolean isMadeParitallyRedundantBySecond(java.lang.String firstPolicyId, java.lang.String secondPolicyId)
          Method finds out if the specified policy is beign made partially redundant (partially coverd) by the second specified policy with higher priority in the repository
 boolean isMadeParitallyRedundantBySecond(java.lang.String firstPolicyId, java.lang.String secondPolicyId, javax.swing.ProgressMonitor pm)
           
 boolean isPartiallyOverlappedBySecondPolicy(java.lang.String firstPolicyId, java.lang.String secondPolicyId)
          Method finds out if the specified policy is partially overlapped by the second specified policy, the necessary condition is that the two policies have the same modality
 boolean isPartiallyOverlappedBySecondPolicy(java.lang.String firstPolicyId, java.lang.String secondPolicyId, javax.swing.ProgressMonitor pm)
           
 boolean isPolicyInConflict(java.lang.String policyId)
          Method finds out if the specified policy is in conflict with some policies with the same priority in the repository
 boolean isPolicyInConflict(java.lang.String policyId, javax.swing.ProgressMonitor pm)
           
 boolean isPolicyMakingRedundantSomeOtherPolicy(java.lang.String policyId)
          Method finds out if the specified policy makes redundant (fully or partially) some policies with lower priority in the repository
 boolean isPolicyMakingRedundantSomeOtherPolicy(java.lang.String policyId, javax.swing.ProgressMonitor pm)
           
 boolean isPolicyRedundant(java.lang.String policyId)
          Method finds out if the specified policy is beign made redundant (fully or partially) by some policies with higher priority in the repository
 boolean isPolicyRedundant(java.lang.String policyId, javax.swing.ProgressMonitor pm)
           
 void loadOntology(SerializableOntModelImpl myDAMLModel, boolean recursiveLoad)
          Adds ontology included in the provide objects into the ontology repository.
 void loadOntology(SerializableOntModelImpl myDAMLModel, boolean recursiveLoad, javax.swing.ProgressMonitor pm)
           
 void loadOntology(java.lang.String myURL, boolean recursiveLoad)
          Loads ontology from the provided url.
 void loadOntology(java.lang.String myURL, boolean recursiveLoad, javax.swing.ProgressMonitor pm)
           
 void loadSchema(java.lang.String fileName)
          to load schema definitions of data types from a file.
 void modify(AgentDescription desc)
           
 void putConstructedOntologyStructures(java.util.List ontologyStructureList)
          This method stores multiple ontology structures in the repositiry.
 void putConstructedOntologyStructures(java.util.List ontologyStructureList, javax.swing.ProgressMonitor pm)
           
 void putMultipleSchema(java.util.List schemaList)
          to store multiple schemas in the repositiry.
 void putMultipleSchema(java.util.List schemaList, javax.swing.ProgressMonitor pm)
           
 void putSchema(java.lang.String dataName, java.lang.String dataSchema)
          to store the given schema definition under the name of that user defined data type
 void putSchema(java.lang.String dataName, java.lang.String dataSchema, javax.swing.ProgressMonitor pm)
           
 void refreshAllPoliciesComplete(java.lang.String policyDBManagerID)
           
 void refreshAllPoliciesComplete(java.lang.String policyDBManagerID, javax.swing.ProgressMonitor pm)
           
 void refreshAllPoliciesPartial(java.util.Vector properties, java.lang.String policyDBManagerID)
           
 void refreshAllPoliciesPartial(java.util.Vector properties, java.lang.String policyDBManagerID, javax.swing.ProgressMonitor pm)
           
 void refreshPolicyComplete(java.lang.String policyID, java.lang.String policyDBManagerID)
           
 void refreshPolicyComplete(java.lang.String policyID, java.lang.String policyDBManagerID, javax.swing.ProgressMonitor pm)
           
 void refreshPolicyPartial(java.lang.String policyID, java.util.Vector properties, java.lang.String policyDBManagerID)
           
 void refreshPolicyPartial(java.lang.String policyID, java.util.Vector properties, java.lang.String policyDBManagerID, javax.swing.ProgressMonitor pm)
           
 void refreshSpecifiedPoliciesComplete(java.util.Vector policyIDs, java.lang.String policyDBManagerID)
           
 void refreshSpecifiedPoliciesComplete(java.util.Vector policyIDs, java.lang.String policyDBManagerID, javax.swing.ProgressMonitor pm)
           
 void refreshSpecifiedPoliciesPartial(java.util.Vector policyIDs, java.util.Vector properties, java.lang.String policyDBManagerID)
           
 void refreshSpecifiedPoliciesPartial(java.util.Vector policyIDs, java.util.Vector properties, java.lang.String policyDBManagerID, javax.swing.ProgressMonitor pm)
           
 void register(AgentDescription desc)
           
 void register(AgentDescription desc, javax.swing.ProgressMonitor pm)
           
 void removeAllPolicies(java.lang.String policyDBManagerID)
           
 void removeAllPolicies(java.lang.String policyDBManagerID, javax.swing.ProgressMonitor pm)
           
 void removeExecEnv(java.lang.String execEnvID)
          Remove ExecutionEnvironment with the specified ID from the domain structure.
 void removeExecEnv(java.lang.String execEnvID, javax.swing.ProgressMonitor pm)
           
 void removeFilteredNamespace(java.lang.String namespace)
          This method remove a nemaspace from the set of urls depicting ontology namespaces concept of which are filtered out when returned by methods of this repository.
 void removeFilteredNamespace(java.lang.String namespace, javax.swing.ProgressMonitor pm)
           
 void removePolicies(java.util.List policies)
           
 void removePolicies(java.util.List policies, javax.swing.ProgressMonitor pm)
           
 void removePolicy(Msg policy)
           
 void removePolicy(Msg policy, javax.swing.ProgressMonitor pm)
           
 PolicyInformation removePolicyInformation(java.lang.String policyID, java.lang.String policyDBManagerID)
           
 PolicyInformation removePolicyInformation(java.lang.String policyID, java.lang.String policyDBManagerID, javax.swing.ProgressMonitor pm)
           
 void removePolicySet(Msg policySet)
           
 void removePolicySet(Msg policySet, javax.swing.ProgressMonitor pm)
           
 void removePolicySets(java.util.Vector policySets)
           
 void removePolicySets(java.util.Vector policySets, javax.swing.ProgressMonitor pm)
           
 void removeSchema(java.lang.String dataName)
          to remove the schema for the given data type from this repository.
 AgentDescription[] search(AgentDescription desc)
           
 AgentDescription[] search(AgentDescription desc, int maxResults, javax.swing.ProgressMonitor pm)
           
 javax.agent.service.directory.AgentDescription[] search(javax.agent.service.directory.AgentDescription agentDescription, int param)
           
 void setConditionalPolicies(java.util.Vector condPols)
           
 void setConditionalPolicies(java.util.Vector condPols, javax.swing.ProgressMonitor pm)
           
 void setGuardLoggingState(java.lang.Boolean logging, java.lang.String historyMonitorID)
          kaos.policy.history.HistoryMonitorForwarder interface implementation - begin Important: please note that all forwarded methods have to call the invokeForwardingMethod, not invokeMethod!
 void setGuardLoggingState(java.lang.Boolean logging, java.lang.String historyMonitorID, javax.swing.ProgressMonitor pm)
           
 void setServiceProperties(ServiceProperties props)
           
 java.util.List splitPolicy(java.lang.String spliPolicy, java.lang.String secondPolicy)
          Method spliting the controlled action of the selected policy one part that overlaps with the second policy and the other part which does not.
 java.util.List splitPolicy(java.lang.String splitPolicy, java.lang.String secondPolicy, javax.swing.ProgressMonitor pm)
           
 boolean testTrue(java.lang.String statement)
          Test if the KIF statemant is true according to the ontologies in the ontology repository.
 boolean testTrue(java.lang.String statement, javax.swing.ProgressMonitor pm)
           
 void updatePolicies(java.util.List addedPolicies, java.util.List changedPolicies, java.util.List removedPolicies)
           
 void updatePolicies(java.util.List addedPolicies, java.util.List changedPolicies, java.util.List removedPolicies, javax.swing.ProgressMonitor pm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_userRegisteredList

protected java.util.Hashtable _userRegisteredList
Constructor Detail

TunnelClient

public TunnelClient(java.lang.String url)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getServiceProperties

public ServiceProperties getServiceProperties()
                                       throws ServiceException,
                                              ServiceFailure
javax.agent.service.Service interface implementation - begin

Throws:
ServiceException
ServiceFailure

setServiceProperties

public void setServiceProperties(ServiceProperties props)
                          throws ServiceException,
                                 ServiceFailure
Throws:
ServiceException
ServiceFailure

createAgentDescription

public AgentDescription createAgentDescription()
javax.agent.service.directory.AgentDirectoryService interface implementation - begin


deregister

public void deregister(AgentDescription desc)
                throws NotRegisteredException,
                       DirectoryFailure
Throws:
NotRegisteredException
DirectoryFailure

deregister

public void deregister(AgentDescription desc,
                       javax.swing.ProgressMonitor pm)
                throws NotRegisteredException,
                       DirectoryFailure
Throws:
NotRegisteredException
DirectoryFailure

modify

public void modify(AgentDescription desc)
            throws NotRegisteredException,
                   DirectoryFailure
Throws:
NotRegisteredException
DirectoryFailure

register

public void register(AgentDescription desc)
              throws AlreadyRegisteredException,
                     DirectoryFailure
Throws:
AlreadyRegisteredException
DirectoryFailure

register

public void register(AgentDescription desc,
                     javax.swing.ProgressMonitor pm)
              throws AlreadyRegisteredException,
                     DirectoryFailure
Throws:
AlreadyRegisteredException
DirectoryFailure

search

public AgentDescription[] search(AgentDescription desc)
                          throws SearchException,
                                 DirectoryFailure
Throws:
SearchException
DirectoryFailure

search

public AgentDescription[] search(AgentDescription desc,
                                 int maxResults,
                                 javax.swing.ProgressMonitor pm)
                          throws SearchException,
                                 DirectoryFailure
Throws:
SearchException
DirectoryFailure

isEntityInDomain

public boolean isEntityInDomain(java.lang.String domainName,
                                java.lang.String id,
                                javax.swing.ProgressMonitor pm)
kaos.domain.management.DomainDirectoryService interface implementation - begin


getAllAgentsInDomain

public java.util.Vector getAllAgentsInDomain(java.lang.String domainName,
                                             javax.swing.ProgressMonitor pm)

getDomainStructure

public java.util.Map getDomainStructure(java.lang.String domainName)
                                 throws DirectoryFailure
Description copied from interface: DomainDirectoryService
Obtain a Map containing the structure of a domain.

Specified by:
getDomainStructure in interface DomainDirectoryService
Parameters:
domainName - name of the domain to map
Returns:
Map of: hosts -> execution environments -> containers -> agents
Throws:
DirectoryFailure

getDomainStructure

public java.util.Map getDomainStructure(java.lang.String domainName,
                                        javax.swing.ProgressMonitor pm)
                                 throws DirectoryFailure
Throws:
DirectoryFailure

removeExecEnv

public void removeExecEnv(java.lang.String execEnvID,
                          javax.swing.ProgressMonitor pm)

getRootDomains

public java.util.Vector getRootDomains()
                                throws DirectoryFailure
Description copied from interface: DomainDirectoryService
Obtain a Vector of the names of the root domains (domains with no parent)

Specified by:
getRootDomains in interface DomainDirectoryService
Returns:
Vector of Strings of the names of root domains
Throws:
DirectoryFailure

getRootDomains

public java.util.Vector getRootDomains(javax.swing.ProgressMonitor pm)
                                throws DirectoryFailure
Throws:
DirectoryFailure

getAllAgentsInDirectory

public java.util.List getAllAgentsInDirectory()
                                       throws DirectoryFailure
Description copied from interface: DomainDirectoryService
Get a Vector of descriptions of all agents in the directory.

Specified by:
getAllAgentsInDirectory in interface DomainDirectoryService
Returns:
Vector of AgentDescriptions of all agents in the directory.
Throws:
DirectoryFailure

getAllAgentsInDirectory

public java.util.List getAllAgentsInDirectory(javax.swing.ProgressMonitor pm)
                                       throws DirectoryFailure
Throws:
DirectoryFailure

getAllDomainsInDirectory

public java.util.Vector getAllDomainsInDirectory()
                                          throws DirectoryFailure
Description copied from interface: DomainDirectoryService
Get a Vector of descriptions of all of the domains in a directory.

Specified by:
getAllDomainsInDirectory in interface DomainDirectoryService
Returns:
Vector of AgentDescriptions of all agents in the specified domain.
Throws:
DirectoryFailure

getAllDomainsInDirectory

public java.util.Vector getAllDomainsInDirectory(javax.swing.ProgressMonitor pm)
                                          throws DirectoryFailure
Throws:
DirectoryFailure

getSubdomains

public java.util.Vector getSubdomains(java.lang.String domainName)
                               throws DirectoryFailure
Description copied from interface: DomainDirectoryService
Obtain a Vector of the names of subdomains of a particular domain (returns immediate children only)

Specified by:
getSubdomains in interface DomainDirectoryService
Returns:
Vector of Strings of the names of domains
Throws:
DirectoryFailure

getSubdomains

public java.util.Vector getSubdomains(java.lang.String domainName,
                                      javax.swing.ProgressMonitor pm)
                               throws DirectoryFailure
Throws:
DirectoryFailure

getDomainDescription

public DomainDescription getDomainDescription(java.lang.String domainName)
                                       throws DirectoryFailure
Description copied from interface: DomainDirectoryService
Get the description of a domain

Specified by:
getDomainDescription in interface DomainDirectoryService
Parameters:
domainName - the name of the domain
Throws:
DirectoryFailure

getDomainDescription

public DomainDescription getDomainDescription(java.lang.String domainName,
                                              javax.swing.ProgressMonitor pm)
                                       throws DirectoryFailure
Throws:
DirectoryFailure

getPoliciesByEntities

public java.util.Map getPoliciesByEntities()
                                    throws DirectoryFailure
Description copied from interface: PolicyDirectory
Obtain a table of all original policies (pre-deconfliction and OWL->XML conversion) in the system, indexed by the id(s) of the entity(s) to which they apply

Specified by:
getPoliciesByEntities in interface PolicyDirectory
Returns:
Map of Map of policies key = String representing entity id value = Map of policies that are directly applicable to the entity (see comments for getPoliciesForEntity for the meaning of "directly applicable") key = String representing policy id value = PolicyMsg
Throws:
DirectoryFailure

getPoliciesByEntities

public java.util.Map getPoliciesByEntities(javax.swing.ProgressMonitor pm)
                                    throws DirectoryFailure
Throws:
DirectoryFailure

getPoliciesForEntity

public java.util.Vector getPoliciesForEntity(java.lang.String entityId)
                                      throws DirectoryFailure
Description copied from interface: PolicyDirectory
Obtain the original (pre-deconfliction and OWL->XML conversion) policies directly applicable to the specified entity This method does not return all policies applicable to the entity (e.g., if you specified the id of an agent, it would only return policies for that agent, *not* including policies for the agent container, exec env, host, domain, which apply to the agent)

Specified by:
getPoliciesForEntity in interface PolicyDirectory
Parameters:
entityId - id of the entity
Returns:
Vector of PolicyMsg
Throws:
DirectoryFailure

getPoliciesForEntity

public java.util.Vector getPoliciesForEntity(java.lang.String entityId,
                                             javax.swing.ProgressMonitor pm)
                                      throws DirectoryFailure
Throws:
DirectoryFailure

getPolicy

public Msg getPolicy(java.lang.String policyId)
              throws DirectoryFailure
Specified by:
getPolicy in interface PolicyDirectory
Throws:
DirectoryFailure

getPolicy

public Msg getPolicy(java.lang.String policyId,
                     javax.swing.ProgressMonitor pm)
              throws DirectoryFailure
Throws:
DirectoryFailure

getPolicies

public java.util.List getPolicies()
                           throws DirectoryFailure
Description copied from interface: PolicyDirectory
Obtain an List over all policies. Each element of the List is an instance of a Msg class specifying an individual policy fields.

Specified by:
getPolicies in interface PolicyDirectory
Returns:
List of policy Msgs.
Throws:
DirectoryFailure

getPolicies

public java.util.List getPolicies(javax.swing.ProgressMonitor pm)
                           throws DirectoryFailure
Throws:
DirectoryFailure

addPolicy

public void addPolicy(Msg policy)
               throws OntologyPolicyIncorrect,
                      PoliciesHarmonizedException,
                      PrecedenceUndeterminedException,
                      DirectoryFailure
Specified by:
addPolicy in interface PolicyDirectory
Throws:
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
DirectoryFailure

addPolicy

public void addPolicy(Msg policy,
                      javax.swing.ProgressMonitor pm)
               throws OntologyPolicyIncorrect,
                      PoliciesHarmonizedException,
                      PrecedenceUndeterminedException,
                      DirectoryFailure
Throws:
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
DirectoryFailure

addPolicies

public void addPolicies(java.util.Vector policies)
                 throws OntologyPolicyIncorrect,
                        PoliciesHarmonizedException,
                        PrecedenceUndeterminedException,
                        DirectoryFailure
Description copied from interface: PolicyDirectory
Each element of the Vector is an instance of a Msg class specifying an individual policy fields

Specified by:
addPolicies in interface PolicyDirectory
Parameters:
policies - The Vector of policies to be added to the collection of all policies.
Throws:
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
DirectoryFailure

addPolicies

public void addPolicies(java.util.Vector policies,
                        javax.swing.ProgressMonitor pm)
                 throws OntologyPolicyIncorrect,
                        PoliciesHarmonizedException,
                        PrecedenceUndeterminedException,
                        DirectoryFailure
Throws:
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
DirectoryFailure

changePolicy

public void changePolicy(Msg policy)
                  throws OntologyPolicyIncorrect,
                         PoliciesHarmonizedException,
                         PrecedenceUndeterminedException,
                         DirectoryFailure
Specified by:
changePolicy in interface PolicyDirectory
Throws:
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
DirectoryFailure

changePolicy

public void changePolicy(Msg policy,
                         javax.swing.ProgressMonitor pm)
                  throws OntologyPolicyIncorrect,
                         PoliciesHarmonizedException,
                         PrecedenceUndeterminedException,
                         DirectoryFailure
Throws:
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
DirectoryFailure

changePolicies

public void changePolicies(java.util.Vector policies)
                    throws OntologyPolicyIncorrect,
                           PoliciesHarmonizedException,
                           PrecedenceUndeterminedException,
                           DirectoryFailure
Specified by:
changePolicies in interface PolicyDirectory
Throws:
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
DirectoryFailure

changePolicies

public void changePolicies(java.util.Vector policies,
                           javax.swing.ProgressMonitor pm)
                    throws OntologyPolicyIncorrect,
                           PoliciesHarmonizedException,
                           PrecedenceUndeterminedException,
                           DirectoryFailure
Throws:
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
DirectoryFailure

removePolicy

public void removePolicy(Msg policy)
                  throws OntologyPolicyIncorrect,
                         PoliciesHarmonizedException,
                         PrecedenceUndeterminedException,
                         DirectoryFailure
Specified by:
removePolicy in interface PolicyDirectory
Throws:
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
DirectoryFailure

removePolicy

public void removePolicy(Msg policy,
                         javax.swing.ProgressMonitor pm)
                  throws OntologyPolicyIncorrect,
                         PoliciesHarmonizedException,
                         PrecedenceUndeterminedException,
                         DirectoryFailure
Throws:
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
DirectoryFailure

removePolicies

public void removePolicies(java.util.List policies)
                    throws OntologyPolicyIncorrect,
                           PoliciesHarmonizedException,
                           PrecedenceUndeterminedException,
                           DirectoryFailure
Specified by:
removePolicies in interface PolicyDirectory
Throws:
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
DirectoryFailure

removePolicies

public void removePolicies(java.util.List policies,
                           javax.swing.ProgressMonitor pm)
                    throws OntologyPolicyIncorrect,
                           PoliciesHarmonizedException,
                           PrecedenceUndeterminedException,
                           DirectoryFailure
Throws:
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
DirectoryFailure

updatePolicies

public void updatePolicies(java.util.List addedPolicies,
                           java.util.List changedPolicies,
                           java.util.List removedPolicies)
                    throws OntologyPolicyIncorrect,
                           PoliciesHarmonizedException,
                           PrecedenceUndeterminedException,
                           DirectoryFailure
Specified by:
updatePolicies in interface PolicyDirectory
Throws:
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
DirectoryFailure

updatePolicies

public void updatePolicies(java.util.List addedPolicies,
                           java.util.List changedPolicies,
                           java.util.List removedPolicies,
                           javax.swing.ProgressMonitor pm)
                    throws OntologyPolicyIncorrect,
                           PoliciesHarmonizedException,
                           PrecedenceUndeterminedException,
                           DirectoryFailure
Throws:
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
DirectoryFailure

getConditionalPolicies

public java.util.Vector getConditionalPolicies()
                                        throws DirectoryFailure
Specified by:
getConditionalPolicies in interface PolicyDirectory
Throws:
DirectoryFailure

getConditionalPolicies

public java.util.Vector getConditionalPolicies(javax.swing.ProgressMonitor pm)
                                        throws DirectoryFailure
Throws:
DirectoryFailure

setConditionalPolicies

public void setConditionalPolicies(java.util.Vector condPols)
                            throws DirectoryFailure
Specified by:
setConditionalPolicies in interface PolicyDirectory
Throws:
DirectoryFailure

setConditionalPolicies

public void setConditionalPolicies(java.util.Vector condPols,
                                   javax.swing.ProgressMonitor pm)
                            throws DirectoryFailure
Throws:
DirectoryFailure

addPolicySet

public void addPolicySet(Msg policySet)
                  throws DirectoryFailure
Specified by:
addPolicySet in interface PolicySetDirectory
Throws:
DirectoryFailure

addPolicySet

public void addPolicySet(Msg policySet,
                         javax.swing.ProgressMonitor pm)
                  throws DirectoryFailure
Throws:
DirectoryFailure

addPolicySets

public void addPolicySets(java.util.Vector policySets)
                   throws DirectoryFailure
Description copied from interface: PolicySetDirectory
Each element of the Vector is an instance of a Msg class specifying an individual policy set fields

Specified by:
addPolicySets in interface PolicySetDirectory
Parameters:
policySets - The Vector of policies set to be added to the collection of all policies.
Throws:
DirectoryFailure

addPolicySets

public void addPolicySets(java.util.Vector policySets,
                          javax.swing.ProgressMonitor pm)
                   throws DirectoryFailure
Throws:
DirectoryFailure

removePolicySet

public void removePolicySet(Msg policySet)
                     throws DirectoryFailure
Specified by:
removePolicySet in interface PolicySetDirectory
Throws:
DirectoryFailure

removePolicySet

public void removePolicySet(Msg policySet,
                            javax.swing.ProgressMonitor pm)
                     throws DirectoryFailure
Throws:
DirectoryFailure

removePolicySets

public void removePolicySets(java.util.Vector policySets)
                      throws DirectoryFailure
Specified by:
removePolicySets in interface PolicySetDirectory
Throws:
DirectoryFailure

removePolicySets

public void removePolicySets(java.util.Vector policySets,
                             javax.swing.ProgressMonitor pm)
                      throws DirectoryFailure
Throws:
DirectoryFailure

changePolicySet

public void changePolicySet(Msg policySet)
                     throws DirectoryFailure
Specified by:
changePolicySet in interface PolicySetDirectory
Throws:
DirectoryFailure

changePolicySet

public void changePolicySet(Msg policySet,
                            javax.swing.ProgressMonitor pm)
                     throws DirectoryFailure
Throws:
DirectoryFailure

changePolicySets

public void changePolicySets(java.util.Vector policySets)
                      throws DirectoryFailure
Specified by:
changePolicySets in interface PolicySetDirectory
Throws:
DirectoryFailure

changePolicySets

public void changePolicySets(java.util.Vector policySets,
                             javax.swing.ProgressMonitor pm)
                      throws DirectoryFailure
Throws:
DirectoryFailure

getPolicySets

public java.util.List getPolicySets()
                             throws DirectoryFailure
Description copied from interface: PolicySetDirectory
Obtain an Vector over all policy sets.

Specified by:
getPolicySets in interface PolicySetDirectory
Returns:
List of policy set Msgs.
Throws:
DirectoryFailure

getPolicySets

public java.util.List getPolicySets(javax.swing.ProgressMonitor pm)
                             throws DirectoryFailure
Throws:
DirectoryFailure

getPolicySet

public PolicySetMsg getPolicySet(java.lang.String policySetId)
                          throws DirectoryFailure
Specified by:
getPolicySet in interface PolicySetDirectory
Throws:
DirectoryFailure

getPolicySet

public PolicySetMsg getPolicySet(java.lang.String policySetId,
                                 javax.swing.ProgressMonitor pm)
                          throws DirectoryFailure
Throws:
DirectoryFailure

isPolicyInConflict

public boolean isPolicyInConflict(java.lang.String policyId)
                           throws DirectoryFailure
Description copied from interface: PolicyAnalyzes
Method finds out if the specified policy is in conflict with some policies with the same priority in the repository

Specified by:
isPolicyInConflict in interface PolicyAnalyzes
Parameters:
policyId - id of the policy
Returns:
true if in conflict, false if not
Throws:
DirectoryFailure

isPolicyInConflict

public boolean isPolicyInConflict(java.lang.String policyId,
                                  javax.swing.ProgressMonitor pm)
                           throws DirectoryFailure
Throws:
DirectoryFailure

findConflictingPolicies

public java.util.List findConflictingPolicies(java.lang.String policyId)
                                       throws DirectoryFailure
Description copied from interface: PolicyAnalyzes
Method find all the policies conflicting with the specified policy

Specified by:
findConflictingPolicies in interface PolicyAnalyzes
Parameters:
policyId - id of the policy
Returns:
List of Policy Ids
Throws:
DirectoryFailure

findConflictingPolicies

public java.util.List findConflictingPolicies(java.lang.String policyId,
                                              javax.swing.ProgressMonitor pm)
                                       throws DirectoryFailure
Throws:
DirectoryFailure

isFullyOverlappedBySecondPolicy

public boolean isFullyOverlappedBySecondPolicy(java.lang.String firstPolicyId,
                                               java.lang.String secondPolicyId)
                                        throws DirectoryFailure,
                                               PriorityConditionNotMet
Description copied from interface: PolicyAnalyzes
Method finds out if the specified policy is fully overlapped by the second specified policy, the necessary condition is that the two policies have the same modality

Specified by:
isFullyOverlappedBySecondPolicy in interface PolicyAnalyzes
Parameters:
firstPolicyId - id of the policy
secondPolicyId - id of the policy
Returns:
true if fully covered, false is not
Throws:
DirectoryFailure
PriorityConditionNotMet

isFullyOverlappedBySecondPolicy

public boolean isFullyOverlappedBySecondPolicy(java.lang.String firstPolicyId,
                                               java.lang.String secondPolicyId,
                                               javax.swing.ProgressMonitor pm)
                                        throws DirectoryFailure,
                                               PriorityConditionNotMet
Throws:
DirectoryFailure
PriorityConditionNotMet

isPartiallyOverlappedBySecondPolicy

public boolean isPartiallyOverlappedBySecondPolicy(java.lang.String firstPolicyId,
                                                   java.lang.String secondPolicyId)
                                            throws DirectoryFailure,
                                                   PriorityConditionNotMet
Description copied from interface: PolicyAnalyzes
Method finds out if the specified policy is partially overlapped by the second specified policy, the necessary condition is that the two policies have the same modality

Specified by:
isPartiallyOverlappedBySecondPolicy in interface PolicyAnalyzes
Parameters:
firstPolicyId - id of the policy
secondPolicyId - id of the policy
Returns:
true if fully covered, false is not
Throws:
DirectoryFailure
PriorityConditionNotMet

isPartiallyOverlappedBySecondPolicy

public boolean isPartiallyOverlappedBySecondPolicy(java.lang.String firstPolicyId,
                                                   java.lang.String secondPolicyId,
                                                   javax.swing.ProgressMonitor pm)
                                            throws DirectoryFailure,
                                                   PriorityConditionNotMet
Throws:
DirectoryFailure
PriorityConditionNotMet

isFullyOverlappedByUnionOfPolicies

public boolean isFullyOverlappedByUnionOfPolicies(java.lang.String firstPolicyId,
                                                  java.util.List listOfPolicies)
                                           throws DirectoryFailure,
                                                  PriorityConditionNotMet
Description copied from interface: PolicyAnalyzes
Method finds out if the specified policy is fully overlapped by the union of specified policies, the necessary condition is that the all policies have the same modality

Specified by:
isFullyOverlappedByUnionOfPolicies in interface PolicyAnalyzes
Parameters:
firstPolicyId - id of the policy
listOfPolicies - list of policies
Returns:
true if fully covered, false is not
Throws:
DirectoryFailure
PriorityConditionNotMet

isFullyOverlappedByUnionOfPolicies

public boolean isFullyOverlappedByUnionOfPolicies(java.lang.String firstPolicyId,
                                                  java.util.List listOfPolicies,
                                                  javax.swing.ProgressMonitor pm)
                                           throws DirectoryFailure,
                                                  PriorityConditionNotMet
Throws:
DirectoryFailure
PriorityConditionNotMet

isPolicyRedundant

public boolean isPolicyRedundant(java.lang.String policyId)
                          throws DirectoryFailure
Description copied from interface: PolicyAnalyzes
Method finds out if the specified policy is beign made redundant (fully or partially) by some policies with higher priority in the repository

Specified by:
isPolicyRedundant in interface PolicyAnalyzes
Parameters:
policyId - id of the policy
Returns:
true if redundant, false is not
Throws:
DirectoryFailure

isPolicyRedundant

public boolean isPolicyRedundant(java.lang.String policyId,
                                 javax.swing.ProgressMonitor pm)
                          throws DirectoryFailure
Throws:
DirectoryFailure

findPoliciesMakingRedundant

public java.util.List findPoliciesMakingRedundant(java.lang.String policyId)
                                           throws DirectoryFailure
Description copied from interface: PolicyAnalyzes
Method find all the policies with higher priority making the specified policy redundant

Specified by:
findPoliciesMakingRedundant in interface PolicyAnalyzes
Parameters:
policyId - id of the policy
Returns:
List of Policy Ids
Throws:
DirectoryFailure

findPoliciesMakingRedundant

public java.util.List findPoliciesMakingRedundant(java.lang.String policyId,
                                                  javax.swing.ProgressMonitor pm)
                                           throws DirectoryFailure
Throws:
DirectoryFailure

isPolicyMakingRedundantSomeOtherPolicy

public boolean isPolicyMakingRedundantSomeOtherPolicy(java.lang.String policyId)
                                               throws DirectoryFailure
Description copied from interface: PolicyAnalyzes
Method finds out if the specified policy makes redundant (fully or partially) some policies with lower priority in the repository

Specified by:
isPolicyMakingRedundantSomeOtherPolicy in interface PolicyAnalyzes
Parameters:
policyId - id of the policy
Returns:
true if redundant, false is not
Throws:
DirectoryFailure

isPolicyMakingRedundantSomeOtherPolicy

public boolean isPolicyMakingRedundantSomeOtherPolicy(java.lang.String policyId,
                                                      javax.swing.ProgressMonitor pm)
                                               throws DirectoryFailure
Throws:
DirectoryFailure

findPoliciesMadeRedundant

public java.util.List findPoliciesMadeRedundant(java.lang.String policyId)
                                         throws DirectoryFailure
Description copied from interface: PolicyAnalyzes
Method find all the policies with higher priority making the specified policy redundant

Specified by:
findPoliciesMadeRedundant in interface PolicyAnalyzes
Parameters:
policyId - id of the policy
Returns:
List of Policy Ids
Throws:
DirectoryFailure

findPoliciesMadeRedundant

public java.util.List findPoliciesMadeRedundant(java.lang.String policyId,
                                                javax.swing.ProgressMonitor pm)
                                         throws DirectoryFailure
Throws:
DirectoryFailure

isMadeFullyRedundantBySecond

public boolean isMadeFullyRedundantBySecond(java.lang.String firstPolicyId,
                                            java.lang.String secondPolicyId)
                                     throws DirectoryFailure,
                                            PriorityConditionNotMet
Description copied from interface: PolicyAnalyzes
Method finds out if the specified policy is beign made redundant (fully coverd) by the second specified policy with higher priority in the repository

Specified by:
isMadeFullyRedundantBySecond in interface PolicyAnalyzes
Parameters:
firstPolicyId - id of the policy
secondPolicyId - id of the policy
Returns:
true if redundant, false is not
Throws:
DirectoryFailure
PriorityConditionNotMet

isMadeFullyRedundantBySecond

public boolean isMadeFullyRedundantBySecond(java.lang.String firstPolicyId,
                                            java.lang.String secondPolicyId,
                                            javax.swing.ProgressMonitor pm)
                                     throws DirectoryFailure,
                                            PriorityConditionNotMet
Throws:
DirectoryFailure
PriorityConditionNotMet

isMadeParitallyRedundantBySecond

public boolean isMadeParitallyRedundantBySecond(java.lang.String firstPolicyId,
                                                java.lang.String secondPolicyId)
                                         throws DirectoryFailure,
                                                PriorityConditionNotMet
Description copied from interface: PolicyAnalyzes
Method finds out if the specified policy is beign made partially redundant (partially coverd) by the second specified policy with higher priority in the repository

Specified by:
isMadeParitallyRedundantBySecond in interface PolicyAnalyzes
Parameters:
firstPolicyId - id of the policy
secondPolicyId - id of the policy
Returns:
true if redundant, false is not
Throws:
DirectoryFailure
PriorityConditionNotMet

isMadeParitallyRedundantBySecond

public boolean isMadeParitallyRedundantBySecond(java.lang.String firstPolicyId,
                                                java.lang.String secondPolicyId,
                                                javax.swing.ProgressMonitor pm)
                                         throws DirectoryFailure,
                                                PriorityConditionNotMet
Throws:
DirectoryFailure
PriorityConditionNotMet

isMadeFullyRedundantByPolicyUnion

public boolean isMadeFullyRedundantByPolicyUnion(java.lang.String firstPolicyId,
                                                 java.util.List listOfPolicies)
                                          throws DirectoryFailure,
                                                 PriorityConditionNotMet
Description copied from interface: PolicyAnalyzes
Method finds out if the specified policy is beign made redundant (fully coverd) by the union of specified policies with higher priority in the repository

Specified by:
isMadeFullyRedundantByPolicyUnion in interface PolicyAnalyzes
Parameters:
firstPolicyId - id of the policy
listOfPolicies - list of policies
Returns:
true if redundant, false is not
Throws:
DirectoryFailure
PriorityConditionNotMet

isMadeFullyRedundantByPolicyUnion

public boolean isMadeFullyRedundantByPolicyUnion(java.lang.String firstPolicyId,
                                                 java.util.List listOfPolicies,
                                                 javax.swing.ProgressMonitor pm)
                                          throws DirectoryFailure,
                                                 PriorityConditionNotMet
Throws:
DirectoryFailure
PriorityConditionNotMet

changedPriority

public void changedPriority(java.lang.String policyId,
                            int newPriority)
                     throws DirectoryFailure
Description copied from interface: PolicyModification
Method allowing to modify priority of a policy to either eliminate conflict or to alter policy precedence relation

Specified by:
changedPriority in interface PolicyModification
Parameters:
policyId - id of the policy
newPriority - new priority of the policy
Throws:
DirectoryFailure

changedPriority

public void changedPriority(java.lang.String policyId,
                            int newPriority,
                            javax.swing.ProgressMonitor pm)
                     throws DirectoryFailure
Throws:
DirectoryFailure

harmonizePolicy

public java.util.List harmonizePolicy(java.lang.String harmonizedPolicy,
                                      java.lang.String harmonizingPolicy)
                               throws DirectoryFailure
Description copied from interface: PolicyModification
Method deconflicting the added policy with policies currently in the Policy Directory

Specified by:
harmonizePolicy in interface PolicyModification
Parameters:
harmonizedPolicy - id of the policy to be harmonized.
harmonizingPolicy - id of the policy harmonizing the first policy
Returns:
List containg ids of policies representing the result of harmonization
Throws:
DirectoryFailure

harmonizePolicy

public java.util.List harmonizePolicy(java.lang.String harmonizedPolicy,
                                      java.lang.String harmonizingPolicy,
                                      javax.swing.ProgressMonitor pm)
                               throws DirectoryFailure
Throws:
DirectoryFailure

splitPolicy

public java.util.List splitPolicy(java.lang.String spliPolicy,
                                  java.lang.String secondPolicy)
                           throws DirectoryFailure
Description copied from interface: PolicyModification
Method spliting the controlled action of the selected policy one part that overlaps with the second policy and the other part which does not. Then the priorities of these parts can be modified independently

Specified by:
splitPolicy in interface PolicyModification
Parameters:
spliPolicy - id of the policy to be split.
secondPolicy - id of the policy splitting the first policy
Returns:
List containg ids of policies representing the result of process
Throws:
DirectoryFailure

splitPolicy

public java.util.List splitPolicy(java.lang.String splitPolicy,
                                  java.lang.String secondPolicy,
                                  javax.swing.ProgressMonitor pm)
                           throws DirectoryFailure
Throws:
DirectoryFailure

getPolicyUpdateCount

public java.lang.Integer getPolicyUpdateCount()
                                       throws ServiceFailure
Description copied from interface: PolicyDisclosure
Returns count of the number of times the policy has been updated. This function is important when a policy disclosure client needs to cache results for performance reasons. The traditional case occurs when the caller is asking permission for access and will cache the result if the mediation succeeds. The logic would look something like this - getPolicyUpdateCount - check if permission is permitted based on the cache using the policy update count - if the permission is cached return success - otherwise call checkPermission - if checkPermission succeeeds - get PolicyUpdateCount - if the policy update count before the call is the same as it is after the call, cache the fact that access is allowed. - return success - otherwise return exception

Specified by:
getPolicyUpdateCount in interface PolicyDisclosure
Throws:
ServiceFailure

getPolicyUpdateCount

public java.lang.Integer getPolicyUpdateCount(javax.swing.ProgressMonitor pm)
                                       throws ServiceFailure
Throws:
ServiceFailure

checkPermission

public void checkPermission(java.security.Permission perm,
                            java.lang.Object context)
                     throws KAoSSecurityException,
                            java.lang.NullPointerException,
                            ServiceFailure
Description copied from interface: AuthorizationPolicyDisclosure
The method check if the given action is permitted according to the current set of policies

Specified by:
checkPermission in interface AuthorizationPolicyDisclosure
Parameters:
perm - Permission to be checked by the Guard in order to allow/disallow an action.
context - An Object describing the context of the action.
Throws:
KAoSSecurityException - if the action is not allowed.
java.lang.NullPointerException - if the Permission argument is null.
ServiceFailure

checkPermission

public void checkPermission(java.security.Permission perm,
                            java.lang.Object context,
                            javax.swing.ProgressMonitor pm)
                     throws KAoSSecurityException,
                            java.lang.NullPointerException,
                            ServiceFailure
Throws:
KAoSSecurityException
java.lang.NullPointerException
ServiceFailure

getPoliciesForActionType

public java.util.List getPoliciesForActionType(java.lang.String actionType)
                                        throws ServiceFailure
Description copied from interface: AuthorizationPolicyDisclosure
Get policies for the specified action type.

Specified by:
getPoliciesForActionType in interface AuthorizationPolicyDisclosure
Parameters:
actionType - String specifying the action type for the requested policies.
Returns:
List Contains policies defined for the specified action.
Throws:
ServiceFailure

getPoliciesForActionType

public java.util.List getPoliciesForActionType(java.lang.String actionType,
                                               javax.swing.ProgressMonitor pm)
                                        throws ServiceFailure
Throws:
ServiceFailure

getAllowableValuesForActionProperties

public java.util.Vector getAllowableValuesForActionProperties(java.util.Vector propertyNames,
                                                              ActionInstanceDescription actionDesc,
                                                              boolean tight)
                                                       throws ServiceFailure
Description copied from interface: AuthorizationPolicyDisclosure
This function is used when the agent/enforcer has only partial information about an action and would like to determine what range of properties can be allowed by the policy set. The agent/enforcer partially fills an ActionInstanceDescription object and sends it to the method, which finds those policies that are applicable to this action and contain the given property. The method will then select only those values for the given properties that will not conflict with higher priority policies containing the given properties.

Specified by:
getAllowableValuesForActionProperties in interface AuthorizationPolicyDisclosure
actionDesc - ActionInstanceDescription object which will be used to find applicable policies.
tight - boolean, if set to 'true', will result in returning only these values for the missing specified property which would satisfy some policy if used alone.
Returns:
Vector The Vector containing multiple ActionInstanceDescription objects which contain the allowed values for those properties.
Throws:
ServiceFailure

getAllowableValuesForActionProperties

public java.util.Vector getAllowableValuesForActionProperties(java.util.Vector propertyNames,
                                                              ActionInstanceDescription actionDesc,
                                                              boolean tight,
                                                              javax.swing.ProgressMonitor pm)
                                                       throws ServiceFailure
Throws:
ServiceFailure

getAllowableValuesForActionProperties

public java.util.Vector getAllowableValuesForActionProperties(ActionInstanceDescription actionDesc)
                                                       throws ServiceFailure
Description copied from interface: AuthorizationPolicyDisclosure
In this case, there are NO properties specified. The function uses the given, partially filled, ActionInstanceDescription object to find those policies that are applicable to this action, and then it selects all the properties from those policies which are not originally contained in the provided ActionInstanceDescription object. It then chooses only those values for the given properties which do not conflict with their higher priority selves, and returns all those properties in the ActionInstanceDescription object.

Specified by:
getAllowableValuesForActionProperties in interface AuthorizationPolicyDisclosure
Parameters:
actionDesc - ActionInstanceDescription object which will be used to find applicable policies.
Returns:
Vector The Vector containing multiple ActionInstanceDescription objects which contain the allowed values for those properties.
Throws:
ServiceFailure

getAllowableValuesForActionProperties

public java.util.Vector getAllowableValuesForActionProperties(ActionInstanceDescription actionDesc,
                                                              javax.swing.ProgressMonitor pm)
                                                       throws ServiceFailure
Throws:
ServiceFailure

getAllowableValuesForActionProperty

public java.util.Set getAllowableValuesForActionProperty(java.lang.String origPropertyName,
                                                         ActionInstanceDescription origActionDesc,
                                                         java.util.Set allTargetValues,
                                                         boolean tight)
                                                  throws ServiceFailure
Description copied from interface: AuthorizationPolicyDisclosure
This function is used when the enforcer has only partial information about an action and needs to determine what range of a property can be allowed by the policy. The enforcer partially fills an ActionInstanceDescription object and sends it to the PolicyDisclosure object to find those policies that are applicable to this action and contain the given property. PolicyDisclosure will then select only those values for the given property that will not conflict with higher priority policies containing the given property. This is a complex function and needs to be understood in the context of how it is used - this is getting written elsewhere and will be included here at a later time.

Specified by:
getAllowableValuesForActionProperty in interface AuthorizationPolicyDisclosure
allTargetValues - Set of possible property values - now it is a fake argument, which should really be calculated by the directory service and passed to the entity disclosing the policy (PolicyDisclosure).
tight - boolean, if set to 'true', will result in returning only these values for the missing specified property which would satisfy some policy if used alone.
Returns:
Set The Set containing allowed values for the given property, or null, if a thread waiting to complete execution of this method has been interrupted. The interrupted status will be propagated.
Throws:
ServiceFailure

getAllowableValuesForActionProperty

public java.util.Set getAllowableValuesForActionProperty(java.lang.String origPropertyName,
                                                         ActionInstanceDescription origActionDesc,
                                                         java.util.Set allTargetValues,
                                                         boolean tight,
                                                         javax.swing.ProgressMonitor pm)
                                                  throws ServiceFailure
Throws:
ServiceFailure

getObligationsForTriggerCondition

public java.util.Vector getObligationsForTriggerCondition(ActionInstanceDescription triggerAID)
                                                   throws ServiceFailure
Description copied from interface: ObligationPolicyDisclosure
Based on the specified trigger ActionInstanceDescription, select all matching control BasicActionDescription, which define the obligations for the trigger. For each control BasicActionDescription create an ActionInstanceDescription. Sort the ActionInstanceDescriptions in descending order by the priority of the obligation policy, in which the BasicActionDescription was defined.

Specified by:
getObligationsForTriggerCondition in interface ObligationPolicyDisclosure
Returns:
A Vector of control ActionInstanceDescriptions, whose BasicActionDescriptions are contained in policies matching the parameter triggerAID. The returned control ActionInstanceDescriptions are sorted in descending sequence by their policy priority. Or, the method returns null, if the ObligationSelector is a concurrent object and a Thread waiting to complete execution of this method has been interrupted. The Thread's interrupted status will be re-established.
Throws:
ServiceFailure

getObligationsForTriggerCondition

public java.util.Vector getObligationsForTriggerCondition(ActionInstanceDescription triggerAID,
                                                          javax.swing.ProgressMonitor pm)
                                                   throws ServiceFailure
Throws:
ServiceFailure

getIndividualActors

public java.util.Set getIndividualActors(java.lang.String baseActorClass)
                                  throws DirectoryFailure,
                                         UnknownConceptException,
                                         DirectoryFailure
Description copied from interface: KAoSOntologyQueryService
Get names of the individual Actors known to the ontology repository being an instance of the specified base class.

Specified by:
getIndividualActors in interface KAoSOntologyQueryService
Parameters:
baseActorClass - The name of the Actor class which the return elements have to be an instance of If the name is empty uses Actor as a base class
Returns:
Set of names of individual Actors
Throws:
UnknownConceptException - if baseActorClass is unknow for the ontology repository
DirectoryFailure

getIndividualActors

public java.util.Set getIndividualActors(java.lang.String baseActorClass,
                                         javax.swing.ProgressMonitor pm)
                                  throws UnknownConceptException,
                                         DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

getClassesOfActors

public java.util.Set getClassesOfActors(java.lang.String baseActorClass)
                                 throws UnknownConceptException,
                                        DirectoryFailure
Description copied from interface: KAoSOntologyQueryService
Get names of the Actors classes known to the ontology repository being a subclass of the specified base class.

Specified by:
getClassesOfActors in interface KAoSOntologyQueryService
Parameters:
baseActorClass - The name of the Actor class which the return classes have to be a subclass of If the name is empty uses Actor as a base class
Returns:
Set of names of Actor subclasses
Throws:
UnknownConceptException - if baseActorClass is unknow for the ontology repository
DirectoryFailure

getClassesOfActors

public java.util.Set getClassesOfActors(java.lang.String baseActorClass,
                                        javax.swing.ProgressMonitor pm)
                                 throws UnknownConceptException,
                                        DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

getIndividualPlaces

public java.util.Set getIndividualPlaces(java.lang.String basePlaceClass)
                                  throws UnknownConceptException,
                                         DirectoryFailure
Description copied from interface: KAoSOntologyQueryService
Get names of the individual Places known to the ontology repository being an instance of the specified base class.

Specified by:
getIndividualPlaces in interface KAoSOntologyQueryService
Parameters:
basePlaceClass - The name of the Place class which the return elements have to be an instance of If the name is empty uses Place as a base class
Returns:
Set of names of individual Places
Throws:
UnknownConceptException - if basePlaceClass is unknow for the ontology repository
DirectoryFailure

getIndividualPlaces

public java.util.Set getIndividualPlaces(java.lang.String basePlaceClass,
                                         javax.swing.ProgressMonitor pm)
                                  throws UnknownConceptException,
                                         DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

getClassesOfPlaces

public java.util.Set getClassesOfPlaces(java.lang.String basePlaceClass)
                                 throws UnknownConceptException,
                                        DirectoryFailure
Description copied from interface: KAoSOntologyQueryService
Get names of the Places classes known to the ontology repository being a subclass of the specified base class.

Specified by:
getClassesOfPlaces in interface KAoSOntologyQueryService
Parameters:
basePlaceClass - The name of the Place class which the return classes have to be a subclass of If the name is empty uses Place as a base class
Returns:
Set of names of Place subclasses
Throws:
UnknownConceptException - if basePlaceClass is unknow for the ontology repository
DirectoryFailure

getClassesOfPlaces

public java.util.Set getClassesOfPlaces(java.lang.String basePlaceClass,
                                        javax.swing.ProgressMonitor pm)
                                 throws UnknownConceptException,
                                        DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

getIndividualGroups

public java.util.Set getIndividualGroups(java.lang.String baseGroupClass)
                                  throws UnknownConceptException,
                                         DirectoryFailure
Description copied from interface: KAoSOntologyQueryService
Get names of the individual Groups known to the ontology repository being an instance of the specified base class.

Specified by:
getIndividualGroups in interface KAoSOntologyQueryService
Parameters:
baseGroupClass - The name of the Group class which the return elements have to be an instance of If the name is empty uses Group as a base class
Returns:
Set of names of individual Groups
Throws:
UnknownConceptException - if baseGroupClass is unknow for the ontology repository
DirectoryFailure

getIndividualGroups

public java.util.Set getIndividualGroups(java.lang.String baseGroupClass,
                                         javax.swing.ProgressMonitor pm)
                                  throws UnknownConceptException,
                                         DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

getClassesOfGroups

public java.util.Set getClassesOfGroups(java.lang.String baseGroupClass)
                                 throws UnknownConceptException,
                                        DirectoryFailure
Description copied from interface: KAoSOntologyQueryService
Get names of the Group classes known to the ontology repository being a subclass of the specified base class.

Specified by:
getClassesOfGroups in interface KAoSOntologyQueryService
Parameters:
baseGroupClass - The name of the Group class which the return elements have to be an instance of If the name is empty uses Group as a base class
Returns:
Set of names of individual Groups
Throws:
UnknownConceptException - if baseGroupClass is unknow for the ontology repository
DirectoryFailure

getClassesOfGroups

public java.util.Set getClassesOfGroups(java.lang.String baseGroupClass,
                                        javax.swing.ProgressMonitor pm)
                                 throws UnknownConceptException,
                                        DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

getIndividualTargets

public java.util.Set getIndividualTargets(java.lang.String baseTargetClass)
                                   throws UnknownConceptException,
                                          DirectoryFailure
Description copied from interface: KAoSOntologyQueryService
Get names of the individual targets (Actors or Entities) known to the ontology repository being an instance of the specified base class.

Specified by:
getIndividualTargets in interface KAoSOntologyQueryService
Parameters:
baseTargetClass - The name of the targets (Actor or Entity) class which the return classes have to be a subclass of
Returns:
Set of names of individual targets (Actors or Entities)
Throws:
UnknownConceptException - if baseTargetClass is unknow for the ontology repository
DirectoryFailure

getIndividualTargets

public java.util.Set getIndividualTargets(java.lang.String baseTargetClass,
                                          javax.swing.ProgressMonitor pm)
                                   throws UnknownConceptException,
                                          DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

getClassesOfTargets

public java.util.Set getClassesOfTargets(java.lang.String baseTargetClass)
                                  throws UnknownConceptException,
                                         DirectoryFailure
Description copied from interface: KAoSOntologyQueryService
Get names of the targets (Actors or Entities) classes known to the ontology repository being a subclass of the specified base class.

Specified by:
getClassesOfTargets in interface KAoSOntologyQueryService
Parameters:
baseTargetClass - The name of the targets (Actor or Entity) class which the return classes have to be a subclass of
Returns:
Set of names of targets (Actors or Entities) subclasses
Throws:
UnknownConceptException - if baseTargetClass is unknow for the ontology repository
DirectoryFailure

getClassesOfTargets

public java.util.Set getClassesOfTargets(java.lang.String baseTargetClass,
                                         javax.swing.ProgressMonitor pm)
                                  throws UnknownConceptException,
                                         DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

getPropertiesApplicableTo

public java.util.Vector getPropertiesApplicableTo(java.lang.String className)
                                           throws QueryFailure,
                                                  UnknownConceptException,
                                                  DirectoryFailure
Description copied from interface: OntologyRepositoryService
Get set of properties defined in the given namespace.

Specified by:
getPropertiesApplicableTo in interface OntologyRepositoryService
Specified by:
getPropertiesApplicableTo in interface OntologyInterfaces
Parameters:
className - the name of the class
Returns:
set of properties names
Throws:
UnknownConceptException - if className is unknow for the ontology repository
QueryFailure
DirectoryFailure

getPropertiesApplicableTo

public java.util.Vector getPropertiesApplicableTo(java.lang.String className,
                                                  javax.swing.ProgressMonitor pm)
                                           throws QueryFailure,
                                                  UnknownConceptException,
                                                  DirectoryFailure
Throws:
QueryFailure
UnknownConceptException
DirectoryFailure

getRangeOnPropertyForClass

public java.lang.String getRangeOnPropertyForClass(java.lang.String className,
                                                   java.lang.String propertyName)
                                            throws UnknownConceptException,
                                                   QueryFailure,
                                                   DirectoryFailure
Description copied from interface: OntologyRepositoryService
Get the name of the class defining the range of the specified property for the given class.

Specified by:
getRangeOnPropertyForClass in interface OntologyRepositoryService
Specified by:
getRangeOnPropertyForClass in interface OntologyInterfaces
Parameters:
className - the name of the class
propertyName - the name of the property
Returns:
the name of the class defining the range
Throws:
UnknownConceptException - if reasoning failed.
QueryFailure
DirectoryFailure

getRangeOnPropertyForClass

public java.lang.String getRangeOnPropertyForClass(java.lang.String className,
                                                   java.lang.String propertyName,
                                                   javax.swing.ProgressMonitor pm)
                                            throws UnknownConceptException,
                                                   QueryFailure,
                                                   DirectoryFailure
Throws:
UnknownConceptException
QueryFailure
DirectoryFailure

declareInstance

public void declareInstance(java.lang.String instanceName,
                            java.lang.String className)
                     throws UnknownConceptException,
                            DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

getActions

public java.util.Set getActions(java.lang.String forActor)
                         throws UnknownConceptException,
                                DirectoryFailure
Description copied from interface: KAoSOntologyQueryService
Get descriptions of the Action classes the specified Actor class or instance can perfom based on its class.

Specified by:
getActions in interface KAoSOntologyQueryService
Parameters:
forActor - The name of the Actor class or instance
Returns:
Set of ActionClassDescription
Throws:
UnknownConceptException - if forActor is unknow for the ontology repository
DirectoryFailure

getActions

public java.util.Set getActions(java.lang.String forActor,
                                javax.swing.ProgressMonitor pm)
                         throws UnknownConceptException,
                                DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

getClassesOfActorsCapableOfPerformingActions

public java.util.Set getClassesOfActorsCapableOfPerformingActions(java.lang.String actionClass)
                                                           throws UnknownConceptException,
                                                                  DirectoryFailure
Description copied from interface: KAoSOntologyQueryService
Get names of Actor classes capable to perform a given action, without taking into consideration policy restrictions

Specified by:
getClassesOfActorsCapableOfPerformingActions in interface KAoSOntologyQueryService
Parameters:
actionClass - The name of the Action class
Returns:
Set of Strings containg names of Actor classes
Throws:
UnknownConceptException - if actionClass is unknow for the ontology repository
DirectoryFailure

getClassesOfActorsCapableOfPerformingActions

public java.util.Set getClassesOfActorsCapableOfPerformingActions(java.lang.String actionClass,
                                                                  javax.swing.ProgressMonitor pm)
                                                           throws UnknownConceptException,
                                                                  DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

getListOfLoadedOntologies

public java.util.Set getListOfLoadedOntologies()
                                        throws DirectoryFailure
Description copied from interface: OntologyRepositoryService
This method returns a set of urls depicting ontologies loaded into the JTP.

Specified by:
getListOfLoadedOntologies in interface OntologyRepositoryService
Throws:
DirectoryFailure

getListOfLoadedOntologies

public java.util.Set getListOfLoadedOntologies(javax.swing.ProgressMonitor pm)
                                        throws DirectoryFailure
Throws:
DirectoryFailure

getAllNamespaces

public java.util.Set getAllNamespaces()
                               throws DirectoryFailure
Description copied from interface: OntologyRepositoryService
This method returns a set of urls depicting ontologies loaded into the JTP as well namespaces used internally by KAoS.

Specified by:
getAllNamespaces in interface OntologyRepositoryService
Throws:
DirectoryFailure

getAllNamespaces

public java.util.Set getAllNamespaces(javax.swing.ProgressMonitor pm)
                               throws DirectoryFailure
Throws:
DirectoryFailure

getFilteredNamespaces

public java.util.Set getFilteredNamespaces()
                                    throws DirectoryFailure
Description copied from interface: OntologyRepositoryService
This method returns a set of urls depicting ontology namespaces concept of which are filtered out when returned by methods of this repository.

Specified by:
getFilteredNamespaces in interface OntologyRepositoryService
Throws:
DirectoryFailure

getFilteredNamespaces

public java.util.Set getFilteredNamespaces(javax.swing.ProgressMonitor pm)
                                    throws DirectoryFailure
Throws:
DirectoryFailure

addFilteredNamespace

public void addFilteredNamespace(java.lang.String namespace)
                          throws DirectoryFailure
Description copied from interface: OntologyRepositoryService
This method add a nemaspace to the set of urls depicting ontology namespaces concept of which are filtered out when returned by methods of this repository.

Specified by:
addFilteredNamespace in interface OntologyRepositoryService
Parameters:
namespace - The name of the namespace
Throws:
DirectoryFailure

addFilteredNamespace

public void addFilteredNamespace(java.lang.String namespace,
                                 javax.swing.ProgressMonitor pm)
                          throws DirectoryFailure
Throws:
DirectoryFailure

removeFilteredNamespace

public void removeFilteredNamespace(java.lang.String namespace)
                             throws DirectoryFailure
Description copied from interface: OntologyRepositoryService
This method remove a nemaspace from the set of urls depicting ontology namespaces concept of which are filtered out when returned by methods of this repository.

Specified by:
removeFilteredNamespace in interface OntologyRepositoryService
Parameters:
namespace - The name of the namespace
Throws:
DirectoryFailure

removeFilteredNamespace

public void removeFilteredNamespace(java.lang.String namespace,
                                    javax.swing.ProgressMonitor pm)
                             throws DirectoryFailure
Throws:
DirectoryFailure

getConstructedOntologyStructures

public java.util.List getConstructedOntologyStructures()
                                                throws DirectoryFailure
Description copied from interface: OntologyRepositoryService
This method retrieves all user defined ontlogy structures in the repositiry.

Specified by:
getConstructedOntologyStructures in interface OntologyRepositoryService
Returns:
list containing SerializableOntModelImpl objects
Throws:
DirectoryFailure

getConstructedOntologyStructures

public java.util.List getConstructedOntologyStructures(javax.swing.ProgressMonitor pm)
                                                throws DirectoryFailure
Throws:
DirectoryFailure

putConstructedOntologyStructures

public void putConstructedOntologyStructures(java.util.List ontologyStructureList)
                                      throws ReasoningException,
                                             java.io.IOException,
                                             DirectoryFailure
Description copied from interface: OntologyRepositoryService
This method stores multiple ontology structures in the repositiry.

Specified by:
putConstructedOntologyStructures in interface OntologyRepositoryService
Parameters:
ontologyStructureList - a list containing SerializableOntModelImpl objects.
Throws:
ReasoningException
java.io.IOException
DirectoryFailure

putConstructedOntologyStructures

public void putConstructedOntologyStructures(java.util.List ontologyStructureList,
                                             javax.swing.ProgressMonitor pm)
                                      throws ReasoningException,
                                             java.io.IOException,
                                             DirectoryFailure
Throws:
ReasoningException
java.io.IOException
DirectoryFailure

loadOntology

public void loadOntology(java.lang.String myURL,
                         boolean recursiveLoad)
                  throws ReasoningException,
                         java.io.IOException,
                         DirectoryFailure
Description copied from interface: OntologyRepositoryService
Loads ontology from the provided url.

Specified by:
loadOntology in interface OntologyRepositoryService
Parameters:
myURL - The url to the ontology
recursiveLoad - Indicates if the imported ontologies (by the ontology depicted by myURL) should also be recursively loaded.
Throws:
ReasoningException
java.io.IOException
DirectoryFailure

loadOntology

public void loadOntology(java.lang.String myURL,
                         boolean recursiveLoad,
                         javax.swing.ProgressMonitor pm)
                  throws ReasoningException,
                         java.io.IOException,
                         DirectoryFailure
Throws:
ReasoningException
java.io.IOException
DirectoryFailure

loadOntology

public void loadOntology(SerializableOntModelImpl myDAMLModel,
                         boolean recursiveLoad)
                  throws ReasoningException,
                         java.io.IOException,
                         DirectoryFailure
Description copied from interface: OntologyRepositoryService
Adds ontology included in the provide objects into the ontology repository.

Specified by:
loadOntology in interface OntologyRepositoryService
Parameters:
myDAMLModel - The object of type com.hp.hpl.jena.daml.DAMLModel (actually SerializableOntModelImpl) containing the added ontology
recursiveLoad - Indicates if the imported ontologies (by the ontology contained in myDAMLModel) should also be recursively loaded.
Throws:
ReasoningException
java.io.IOException
DirectoryFailure

loadOntology

public void loadOntology(SerializableOntModelImpl myDAMLModel,
                         boolean recursiveLoad,
                         javax.swing.ProgressMonitor pm)
                  throws ReasoningException,
                         java.io.IOException,
                         DirectoryFailure
Throws:
ReasoningException
java.io.IOException
DirectoryFailure

getInstancesOf

public java.util.Set getInstancesOf(java.lang.String conceptName)
                             throws UnknownConceptException,
                                    DirectoryFailure
Description copied from interface: OntologyRepositoryService
Get set of instances of the given concept; if the concept is an instance itself the set contains just this instance.

Specified by:
getInstancesOf in interface OntologyRepositoryService
Specified by:
getInstancesOf in interface OntologyInterfaces
Parameters:
conceptName - The name of the concept in the Jena format
Returns:
Set of instance ids in the Jena format
Throws:
UnknownConceptException - if conceptName is unknow for the ontology repository
DirectoryFailure

getInstancesOf

public java.util.Set getInstancesOf(java.lang.String conceptName,
                                    javax.swing.ProgressMonitor pm)
                             throws UnknownConceptException,
                                    DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

getUltimateOntologyTypesOfIndividual

public java.util.Set getUltimateOntologyTypesOfIndividual(java.lang.String individualName)
                                                   throws DirectoryFailure,
                                                          UnknownConceptException
Description copied from interface: OntologyRepositoryService
Finds the ultimate Ontology type of the provided individual

Specified by:
getUltimateOntologyTypesOfIndividual in interface OntologyRepositoryService
Parameters:
individualName - the name of the individual
Returns:
the set of names of the Ontology classes being the most narrow ones for the given individual
Throws:
UnknownConceptException - if concept unknow or any problem with JTP approached
DirectoryFailure

getUltimateOntologyTypesOfIndividual

public java.util.Set getUltimateOntologyTypesOfIndividual(java.lang.String individualName,
                                                          javax.swing.ProgressMonitor pm)
                                                   throws DirectoryFailure,
                                                          UnknownConceptException
Throws:
DirectoryFailure
UnknownConceptException

getSuperClassesOf

public java.util.Set getSuperClassesOf(java.lang.String className)
                                throws UnknownConceptException,
                                       DirectoryFailure
Description copied from interface: OntologyRepositoryService
Get set of superclasses of the given class.

Specified by:
getSuperClassesOf in interface OntologyRepositoryService
Parameters:
className - The name of the class in the Jena format
Returns:
Set of superclasses names in the Jena format
Throws:
UnknownConceptException - if className is unknow for the ontology repository
DirectoryFailure

getSuperClassesOf

public java.util.Set getSuperClassesOf(java.lang.String className,
                                       javax.swing.ProgressMonitor pm)
                                throws UnknownConceptException,
                                       DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

getSubClassesOf

public java.util.Set getSubClassesOf(java.lang.String className)
                              throws UnknownConceptException,
                                     DirectoryFailure
Description copied from interface: OntologyRepositoryService
Get set of subclasses of the given class.

Specified by:
getSubClassesOf in interface OntologyRepositoryService
Specified by:
getSubClassesOf in interface OntologyInterfaces
Parameters:
className - The name of the class in Jena format
Returns:
Set of subclasses names in Jena format
Throws:
UnknownConceptException - if className is unknow for the ontology repository
DirectoryFailure

getSubClassesOf

public java.util.Set getSubClassesOf(java.lang.String className,
                                     javax.swing.ProgressMonitor pm)
                              throws UnknownConceptException,
                                     DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

getSuperPropertiesOf

public java.util.Set getSuperPropertiesOf(java.lang.String propertyName)
                                   throws UnknownConceptException,
                                          DirectoryFailure
Description copied from interface: OntologyRepositoryService
Get set of superproperties of the given property.

Specified by:
getSuperPropertiesOf in interface OntologyRepositoryService
Specified by:
getSuperPropertiesOf in interface OntologyInterfaces
Parameters:
propertyName - The name of the property in Jena format
Returns:
Set of superproperties names in Jena format
Throws:
UnknownConceptException
DirectoryFailure

getSuperPropertiesOf

public java.util.Set getSuperPropertiesOf(java.lang.String propertyName,
                                          javax.swing.ProgressMonitor pm)
                                   throws UnknownConceptException,
                                          DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

getSubPropertiesOf

public java.util.Set getSubPropertiesOf(java.lang.String propertyName)
                                 throws UnknownConceptException,
                                        DirectoryFailure
Description copied from interface: OntologyInterfaces
Get set of subproperties of the given property.

Specified by:
getSubPropertiesOf in interface OntologyInterfaces
Parameters:
propertyName - The name of the property in Jena format
Returns:
Set of subproperties names in Jena format
Throws:
UnknownConceptException
DirectoryFailure

getSubPropertiesOf

public java.util.Set getSubPropertiesOf(java.lang.String propertyName,
                                        javax.swing.ProgressMonitor pm)
                                 throws UnknownConceptException,
                                        DirectoryFailure
Throws:
UnknownConceptException
DirectoryFailure

testTrue

public boolean testTrue(java.lang.String statement)
                 throws QueryFailure,
                        DirectoryFailure
Description copied from interface: OntologyRepositoryService
Test if the KIF statemant is true according to the ontologies in the ontology repository.

Specified by:
testTrue in interface OntologyRepositoryService
Specified by:
testTrue in interface OntologyInterfaces
Parameters:
statement - the object of type com.hp.hpl.jena.daml.DAMLModel containing the added ontology
Returns:
true if the statement is true and false in the opposite case
Throws:
QueryFailure - if reasoning failed.
DirectoryFailure

testTrue

public boolean testTrue(java.lang.String statement,
                        javax.swing.ProgressMonitor pm)
                 throws QueryFailure,
                        DirectoryFailure
Throws:
QueryFailure
DirectoryFailure

askQuery

public java.util.Set askQuery(java.lang.String variableName,
                              java.lang.String multiplyVariablesQuery)
                       throws QueryFailure,
                              DirectoryFailure
Description copied from interface: OntologyRepositoryService
Get values of the selected variable satisfing the KIF query with possibly many variable.

Specified by:
askQuery in interface OntologyRepositoryService
Parameters:
variableName - the neame ofthe selected variable
multiplyVariablesQuery - the query
Throws:
QueryFailure - if reasoning failed.
DirectoryFailure

askQuery

public java.util.Set askQuery(java.lang.String variableName,
                              java.lang.String multiplyVariablesQuery,
                              javax.swing.ProgressMonitor pm)
                       throws QueryFailure,
                              DirectoryFailure
Throws:
QueryFailure
DirectoryFailure

areClassesDisjoint

public boolean areClassesDisjoint(java.lang.String firstClass,
                                  java.lang.String secondClass)
                           throws QueryFailure,
                                  DirectoryFailure
Description copied from interface: OntologyRepositoryService
Test if two provided classes are disjoint

Specified by:
areClassesDisjoint in interface OntologyRepositoryService
Parameters:
firstClass - the name of the first class
secondClass - the name of the second class
Throws:
QueryFailure - if reasoning failed.
DirectoryFailure

areClassesDisjoint

public boolean areClassesDisjoint(java.lang.String firstClass,
                                  java.lang.String secondClass,
                                  javax.swing.ProgressMonitor pm)
                           throws QueryFailure,
                                  DirectoryFailure
Throws:
QueryFailure
DirectoryFailure

getClassesDefInNamespace

public java.util.Set getClassesDefInNamespace(java.lang.String namespaceName)
                                       throws UnknownNamespaceException,
                                              DirectoryFailure
Description copied from interface: OntologyRepositoryService
Get set of classes defined in the given namespace.

Specified by:
getClassesDefInNamespace in interface OntologyRepositoryService
Parameters:
namespaceName - The name of the namespace in the Jena format
Returns:
Set of classes names in the Jena format
Throws:
UnknownNamespaceException - if namespaceName is unknow for the ontology repository
DirectoryFailure

getClassesDefInNamespace

public java.util.Set getClassesDefInNamespace(java.lang.String namespaceName,
                                              javax.swing.ProgressMonitor pm)
                                       throws UnknownNamespaceException,
                                              DirectoryFailure
Throws:
UnknownNamespaceException
DirectoryFailure

getPropertiesDefInNamespace

public java.util.Set getPropertiesDefInNamespace(java.lang.String namespaceName)
                                          throws UnknownNamespaceException,
                                                 DirectoryFailure
Description copied from interface: OntologyRepositoryService
Get set of properties defined in the given namespace.

Specified by:
getPropertiesDefInNamespace in interface OntologyRepositoryService
Parameters:
namespaceName - The name of the namespace in the Jena format
Returns:
Set of properties names in the Jena format
Throws:
UnknownNamespaceException - if namespaceName is unknow for the ontology repository
DirectoryFailure

getPropertiesDefInNamespace

public java.util.Set getPropertiesDefInNamespace(java.lang.String namespaceName,
                                                 javax.swing.ProgressMonitor pm)
                                          throws UnknownNamespaceException,
                                                 DirectoryFailure
Throws:
UnknownNamespaceException
DirectoryFailure

getInstancesDefInNamespace

public java.util.Set getInstancesDefInNamespace(java.lang.String namespaceName)
                                         throws UnknownNamespaceException,
                                                DirectoryFailure
Description copied from interface: OntologyRepositoryService
Get set of instances defined in the given namespace.

Specified by:
getInstancesDefInNamespace in interface OntologyRepositoryService
Parameters:
namespaceName - The name of the namespace in the Jena format
Returns:
Set of instances names in the Jena format
Throws:
UnknownNamespaceException - if namespaceName is unknow for the ontology repository
DirectoryFailure

getInstancesDefInNamespace

public java.util.Set getInstancesDefInNamespace(java.lang.String namespaceName,
                                                javax.swing.ProgressMonitor pm)
                                         throws UnknownNamespaceException,
                                                DirectoryFailure
Throws:
UnknownNamespaceException
DirectoryFailure

getNamspacesImportedByNamespace

public java.util.Set getNamspacesImportedByNamespace(java.lang.String namespaceName)
                                              throws UnknownNamespaceException,
                                                     DirectoryFailure
Description copied from interface: OntologyRepositoryService
Get set of namspaces imported by the given namespace.

Specified by:
getNamspacesImportedByNamespace in interface OntologyRepositoryService
Parameters:
namespaceName - The name of the namespace in the Jena format
Returns:
Set of namspaces names in the Jena format
Throws:
UnknownNamespaceException - if namespaceName is unknow for the ontology repository
DirectoryFailure

getNamspacesImportedByNamespace

public java.util.Set getNamspacesImportedByNamespace(java.lang.String namespaceName,
                                                     javax.swing.ProgressMonitor pm)
                                              throws UnknownNamespaceException,
                                                     DirectoryFailure
Throws:
UnknownNamespaceException
DirectoryFailure

getOntologyDefinitionForConcept

public java.util.Set getOntologyDefinitionForConcept(java.lang.String conceptName)
                                              throws DirectoryFailure
Description copied from interface: OntologyInterfaces
Get set of namspaces imported by the given namespace. Curently it tries to match the concept name with the local name of the ontology definitions url

Specified by:
getOntologyDefinitionForConcept in interface OntologyInterfaces
Parameters:
conceptName - The name of the namespace in the Jena format
Returns:
Set of ontology definition url potentially matching the search concept
Throws:
DirectoryFailure

getOntologyDefinitionForConcept

public java.util.Set getOntologyDefinitionForConcept(java.lang.String conceptName,
                                                     javax.swing.ProgressMonitor pm)
                                              throws DirectoryFailure
Throws:
DirectoryFailure

putSchema

public void putSchema(java.lang.String dataName,
                      java.lang.String dataSchema)
               throws DirectoryFailure
Description copied from interface: XMLRepository
to store the given schema definition under the name of that user defined data type

Specified by:
putSchema in interface XMLRepository
Parameters:
dataName - the name of the defined data type
Throws:
DirectoryFailure

putSchema

public void putSchema(java.lang.String dataName,
                      java.lang.String dataSchema,
                      javax.swing.ProgressMonitor pm)
               throws DirectoryFailure
Throws:
DirectoryFailure

getSchema

public java.util.Vector getSchema(java.lang.String dataName)
                           throws DirectoryFailure
Description copied from interface: OntologyInterfaces
Get XML schema of the given concept if such a schema is available

Specified by:
getSchema in interface OntologyInterfaces
Specified by:
getSchema in interface XMLRepository
Parameters:
dataName - The name of the concept in the Jena format
Returns:
A Vector containing Strings that define the XML schema of the given concept. The reason it is a vector of strings and not just one string is that the definition can be complex, i.e. derived from multiple more primitive schemas, hence this vector contains definitions for all those schemas too.
Throws:
DirectoryFailure

getSchema

public java.util.Vector getSchema(java.lang.String dataName,
                                  javax.swing.ProgressMonitor pm)
                           throws DirectoryFailure
Throws:
DirectoryFailure

putMultipleSchema

public void putMultipleSchema(java.util.List schemaList)
                       throws DirectoryFailure
Description copied from interface: XMLRepository
to store multiple schemas in the repositiry.

Specified by:
putMultipleSchema in interface XMLRepository
Parameters:
schemaList - a list containing XMLSchemaContainer objects.
Throws:
DirectoryFailure

putMultipleSchema

public void putMultipleSchema(java.util.List schemaList,
                              javax.swing.ProgressMonitor pm)
                       throws DirectoryFailure
Throws:
DirectoryFailure

getAllSchema

public java.util.List getAllSchema()
                            throws DirectoryFailure
Description copied from interface: XMLRepository
to retrieve all schemas in the repositiry.

Specified by:
getAllSchema in interface XMLRepository
Throws:
DirectoryFailure

getAllSchema

public java.util.List getAllSchema(javax.swing.ProgressMonitor pm)
                            throws DirectoryFailure
Throws:
DirectoryFailure

getAllGuardsInDirectory

public java.util.List getAllGuardsInDirectory()
                                       throws DirectoryFailure
Description copied from interface: DomainDirectoryService
Get a Vector of descriptions of all guards in the directory.

Specified by:
getAllGuardsInDirectory in interface DomainDirectoryService
Returns:
Vector of AgentDescriptions of all guards in the directory.
Throws:
DirectoryFailure

findPolicyDecision

public java.util.Vector findPolicyDecision(java.security.Permission perm,
                                           java.lang.Object context,
                                           javax.swing.ProgressMonitor pm)
                                    throws KAoSSecurityException,
                                           java.lang.NullPointerException,
                                           ServiceFailure
For Policy Disclosure

Throws:
KAoSSecurityException
java.lang.NullPointerException
ServiceFailure

checkDeepPermission

public void checkDeepPermission(java.security.Permission perm,
                                java.lang.Object context,
                                javax.swing.ProgressMonitor pm)
                         throws java.lang.NullPointerException,
                                ServiceFailure,
                                KAoSSecurityException
Throws:
java.lang.NullPointerException
ServiceFailure
KAoSSecurityException

analyzeWorkflow

public java.lang.String analyzeWorkflow(java.lang.String owlsWorkflow,
                                        javax.swing.ProgressMonitor pm)
                                 throws KAoSSecurityException,
                                        java.lang.NullPointerException,
                                        ServiceFailure
Modify the given OWL-S workflow based on policies that apply the actions in workflow. Only works if the owls libraries are present, otherwise null is returned.

Parameters:
owlsWorkflow - - the OWL-S workflow to analyze/modify (xml text)
Returns:
- the OWL-S workflow (xml text) with policy information added (e.g. obliged actions inserted as processes)
Throws:
KAoSSecurityException
java.lang.NullPointerException
ServiceFailure

analyzeWorkflow

public java.lang.String analyzeWorkflow(java.net.URL owlsWorkflow,
                                        javax.swing.ProgressMonitor pm)
                                 throws KAoSSecurityException,
                                        java.lang.NullPointerException,
                                        ServiceFailure
Modify the given OWL-S workflow based on policies that apply the actions in workflow. Only works if the owls libraries are present, otherwise null is returned.

Parameters:
owlsWorkflow - - URL to the OWL-S workflow to analyze/modify
Returns:
- the OWL-S workflow (xml text) with policy information added (e.g. obliged actions inserted as processes)
Throws:
KAoSSecurityException
java.lang.NullPointerException
ServiceFailure

addLogin

public void addLogin(java.lang.String userid,
                     java.lang.String password)
              throws NotRegisteredException,
                     DirectoryFailure
Throws:
NotRegisteredException
DirectoryFailure

getAllAgentsInDomain

public java.util.Vector getAllAgentsInDomain(java.lang.String domainName)
                                      throws DirectoryFailure
Description copied from interface: DomainDirectoryService
Get a Vector of descriptions of all of the agents in a domain.

Specified by:
getAllAgentsInDomain in interface DomainDirectoryService
Parameters:
domainName - Name of the domain to query
Returns:
Vector of AgentDescriptions of all agents in the specified domain.
Throws:
DirectoryFailure

getApplicablePoliciesForEntity

public java.util.Vector getApplicablePoliciesForEntity(java.lang.String entityId)
                                                throws DirectoryFailure
Description copied from interface: PolicyDirectory
Obtain the set of policies directly and indirectly applicable to a specified entity. This method returns all policies applicable to the entity (e.g., if you specified the id of an agent, it would return the policies for the agent, plus policies for the agent container, exec env, host, domain, which apply to the agent), also not in force now.

Specified by:
getApplicablePoliciesForEntity in interface PolicyDirectory
Parameters:
entityId - id of the entity
Returns:
Vector of PolicyMsg
Throws:
DirectoryFailure

getDomainDescriptionsForGuard

public java.util.List getDomainDescriptionsForGuard(java.lang.String guardGUID)
                                             throws DirectoryFailure
Description copied from interface: DomainDirectoryService
Obtain a List containing DomainDescriptions of all domains the guard, whose GUID is specified, registered in.

Specified by:
getDomainDescriptionsForGuard in interface DomainDirectoryService
Parameters:
guardGUID - GUID of the guard registered in all domains, whose descriptions are requested
Returns:
List of DomainDescriptions
Throws:
DirectoryFailure

getResourcesWithValueForProperty

public java.util.Set getResourcesWithValueForProperty(java.lang.String property,
                                                      java.lang.String value)
                                               throws QueryFailure,
                                                      DirectoryFailure
Description copied from interface: OntologyRepositoryService
Get values of the variable satisfing the KIF query: (property ?subject value).

Specified by:
getResourcesWithValueForProperty in interface OntologyRepositoryService
Parameters:
property - the name of the property in the Jena format
value - the value as a string in th Jena format
Returns:
a set with name of subjects (in the Jena format) which have the specified value for the given property
Throws:
QueryFailure - if reasoning failed.
DirectoryFailure

getUniqueValueForProperty

public java.lang.String getUniqueValueForProperty(java.lang.String property,
                                                  java.lang.String subject)
                                           throws QueryFailure,
                                                  DirectoryFailure
Description copied from interface: OntologyRepositoryService
Get a single value of the variable satisfing the KIF query: (property subject ?val).

Specified by:
getUniqueValueForProperty in interface OntologyRepositoryService
Parameters:
property - the name of the property in the Jena format
subject - the name of the subject in the Jena format
Returns:
a single value (as string in the Jena format) for the property on this subject
Throws:
QueryFailure - if reasoning failed.
DirectoryFailure

getValuesForProperty

public java.util.Set getValuesForProperty(java.lang.String property,
                                          java.lang.String subject)
                                   throws QueryFailure,
                                          DirectoryFailure
Description copied from interface: OntologyRepositoryService
Get values of the variable satisfing the KIF query: (property subject ?val).

Specified by:
getValuesForProperty in interface OntologyRepositoryService
Parameters:
property - the name of the property in the Jena format
subject - the name of the subject in the Jena format
Returns:
a set with values (as string in the Jena format) for the property on this subject
Throws:
QueryFailure - if reasoning failed.
DirectoryFailure

isEntityInDomain

public boolean isEntityInDomain(java.lang.String domainName,
                                java.lang.String id)
                         throws DirectoryFailure
Description copied from interface: DomainDirectoryService
Search for the domain entity with the specified id.

Specified by:
isEntityInDomain in interface DomainDirectoryService
Parameters:
domainName - The name of the domain to query
id - The id of an entity to be searched in this domain's directory.
Returns:
true if the entity whose id is specified is found; otherwise return false.
Throws:
DirectoryFailure

removeExecEnv

public void removeExecEnv(java.lang.String execEnvID)
                   throws DirectoryFailure
Description copied from interface: DomainDirectoryService
Remove ExecutionEnvironment with the specified ID from the domain structure.

Specified by:
removeExecEnv in interface DomainDirectoryService
Throws:
DirectoryFailure

search

public javax.agent.service.directory.AgentDescription[] search(javax.agent.service.directory.AgentDescription agentDescription,
                                                               int param)
                                                        throws javax.agent.service.directory.SearchException,
                                                               javax.agent.service.directory.DirectoryFailure
Throws:
javax.agent.service.directory.SearchException
javax.agent.service.directory.DirectoryFailure

loadSchema

public void loadSchema(java.lang.String fileName)
                throws DirectoryFailure
Description copied from interface: XMLRepository
to load schema definitions of data types from a file.

Specified by:
loadSchema in interface XMLRepository
Parameters:
fileName - the name of the file or the url that stores schema definitions
Throws:
DirectoryFailure

removeSchema

public void removeSchema(java.lang.String dataName)
                  throws DirectoryFailure
Description copied from interface: XMLRepository
to remove the schema for the given data type from this repository.

Specified by:
removeSchema in interface XMLRepository
Parameters:
dataName - the name of the data type to be removed.
Throws:
DirectoryFailure

getAllPolicies

public java.util.Vector getAllPolicies(java.lang.String policyDBManagerID)
                                throws DirectoryFailure
kaos.policy.information.PolicyDBManagerForwarder interface implementation - begin Important: please note that all forwarded methods have to call the invokeForwardingMethod, not invokeMethod!

Throws:
DirectoryFailure

getAllPolicies

public java.util.Vector getAllPolicies(java.lang.String policyDBManagerID,
                                       javax.swing.ProgressMonitor pm)
                                throws DirectoryFailure
Throws:
DirectoryFailure

getPolicyInformation

public PolicyInformation getPolicyInformation(java.lang.String policyID,
                                              java.lang.String policyDBManagerID)
                                       throws DirectoryFailure
Throws:
DirectoryFailure

getPolicyInformation

public PolicyInformation getPolicyInformation(java.lang.String policyID,
                                              java.lang.String policyDBManagerID,
                                              javax.swing.ProgressMonitor pm)
                                       throws DirectoryFailure
Throws:
DirectoryFailure

findPolicyDecision

public java.util.Vector findPolicyDecision(java.security.Permission perm,
                                           java.lang.Object context)
                                    throws KAoSSecurityException,
                                           java.lang.NullPointerException,
                                           ServiceFailure
Description copied from interface: PolicyDisclosure
The method checks if the given action is permitted according to the current set of policies, or if the given action is a trigger for some obligation policy. If the action is not permitted, the method throws an exception, but if the action is a trigger, the method returns a vector containing all those obligation policies for whom the action is a trigger.

Specified by:
findPolicyDecision in interface PolicyDisclosure
Parameters:
perm - Permission to be checked by the Guard in order to allow/disallow an action; or the trigger to be checked for obligation policies.
context - An Object describing the context of the action.
Throws:
KAoSSecurityException - if the action is not allowed.
java.lang.NullPointerException - if the Permission argument is null.
ServiceFailure

checkDeepPermission

public void checkDeepPermission(java.security.Permission perm,
                                java.lang.Object context)
                         throws java.lang.NullPointerException,
                                ServiceFailure,
                                KAoSSecurityException
Description copied from interface: PolicyDisclosure
The method checks if the given action is permitted according to the current set of policies. However, if the given action is not permitted by a policy, instead of stopping there, it goes on to find all those policies that forbid the given action, and then returns a vector that contains their ids inside the kaos security exception that is finally thrown.

Specified by:
checkDeepPermission in interface PolicyDisclosure
Parameters:
perm - Permission to be checked by the Guard in order to allow/disallow an action.
context - An Object describing the context of the action.
Throws:
java.lang.NullPointerException - if the Permission argument is null.
KAoSSecurityException - containing the ids of forbidding policies, if any.
ServiceFailure

removePolicyInformation

public PolicyInformation removePolicyInformation(java.lang.String policyID,
                                                 java.lang.String policyDBManagerID)
                                          throws DirectoryFailure
Throws:
DirectoryFailure

removePolicyInformation

public PolicyInformation removePolicyInformation(java.lang.String policyID,
                                                 java.lang.String policyDBManagerID,
                                                 javax.swing.ProgressMonitor pm)
                                          throws DirectoryFailure
Throws:
DirectoryFailure

removeAllPolicies

public void removeAllPolicies(java.lang.String policyDBManagerID)
                       throws DirectoryFailure
Throws:
DirectoryFailure

removeAllPolicies

public void removeAllPolicies(java.lang.String policyDBManagerID,
                              javax.swing.ProgressMonitor pm)
                       throws DirectoryFailure
Throws:
DirectoryFailure

refreshPolicyComplete

public void refreshPolicyComplete(java.lang.String policyID,
                                  java.lang.String policyDBManagerID)
                           throws DirectoryFailure
Throws:
DirectoryFailure

refreshPolicyComplete

public void refreshPolicyComplete(java.lang.String policyID,
                                  java.lang.String policyDBManagerID,
                                  javax.swing.ProgressMonitor pm)
                           throws DirectoryFailure
Throws:
DirectoryFailure

refreshPolicyPartial

public void refreshPolicyPartial(java.lang.String policyID,
                                 java.util.Vector properties,
                                 java.lang.String policyDBManagerID)
                          throws DirectoryFailure
Throws:
DirectoryFailure

refreshPolicyPartial

public void refreshPolicyPartial(java.lang.String policyID,
                                 java.util.Vector properties,
                                 java.lang.String policyDBManagerID,
                                 javax.swing.ProgressMonitor pm)
                          throws DirectoryFailure
Throws:
DirectoryFailure

refreshAllPoliciesComplete

public void refreshAllPoliciesComplete(java.lang.String policyDBManagerID)
                                throws DirectoryFailure
Throws:
DirectoryFailure

refreshAllPoliciesComplete

public void refreshAllPoliciesComplete(java.lang.String policyDBManagerID,
                                       javax.swing.ProgressMonitor pm)
                                throws DirectoryFailure
Throws:
DirectoryFailure

refreshAllPoliciesPartial

public void refreshAllPoliciesPartial(java.util.Vector properties,
                                      java.lang.String policyDBManagerID)
                               throws DirectoryFailure
Throws:
DirectoryFailure

refreshAllPoliciesPartial

public void refreshAllPoliciesPartial(java.util.Vector properties,
                                      java.lang.String policyDBManagerID,
                                      javax.swing.ProgressMonitor pm)
                               throws DirectoryFailure
Throws:
DirectoryFailure

refreshSpecifiedPoliciesComplete

public void refreshSpecifiedPoliciesComplete(java.util.Vector policyIDs,
                                             java.lang.String policyDBManagerID)
                                      throws DirectoryFailure
Throws:
DirectoryFailure

refreshSpecifiedPoliciesComplete

public void refreshSpecifiedPoliciesComplete(java.util.Vector policyIDs,
                                             java.lang.String policyDBManagerID,
                                             javax.swing.ProgressMonitor pm)
                                      throws DirectoryFailure
Throws:
DirectoryFailure

refreshSpecifiedPoliciesPartial

public void refreshSpecifiedPoliciesPartial(java.util.Vector policyIDs,
                                            java.util.Vector properties,
                                            java.lang.String policyDBManagerID)
                                     throws DirectoryFailure
Throws:
DirectoryFailure

refreshSpecifiedPoliciesPartial

public void refreshSpecifiedPoliciesPartial(java.util.Vector policyIDs,
                                            java.util.Vector properties,
                                            java.lang.String policyDBManagerID,
                                            javax.swing.ProgressMonitor pm)
                                     throws DirectoryFailure
Throws:
DirectoryFailure

setGuardLoggingState

public void setGuardLoggingState(java.lang.Boolean logging,
                                 java.lang.String historyMonitorID)
                          throws DirectoryFailure
kaos.policy.history.HistoryMonitorForwarder interface implementation - begin Important: please note that all forwarded methods have to call the invokeForwardingMethod, not invokeMethod!

Throws:
DirectoryFailure

setGuardLoggingState

public void setGuardLoggingState(java.lang.Boolean logging,
                                 java.lang.String historyMonitorID,
                                 javax.swing.ProgressMonitor pm)
                          throws DirectoryFailure
Throws:
DirectoryFailure

isGuardLoggingActive

public java.lang.Boolean isGuardLoggingActive(java.lang.String historyMonitorID)
                                       throws DirectoryFailure
Throws:
DirectoryFailure

isGuardLoggingActive

public java.lang.Boolean isGuardLoggingActive(java.lang.String historyMonitorID,
                                              javax.swing.ProgressMonitor pm)
                                       throws DirectoryFailure
Throws:
DirectoryFailure

getAllLogs

public java.util.Vector getAllLogs(java.lang.String historyMonitorID)
                            throws DirectoryFailure
Throws:
DirectoryFailure

getAllLogs

public java.util.Vector getAllLogs(java.lang.String historyMonitorID,
                                   javax.swing.ProgressMonitor pm)
                            throws DirectoryFailure
Throws:
DirectoryFailure

deleteAllLogs

public void deleteAllLogs(java.lang.String historyMonitorID)
                   throws DirectoryFailure
Throws:
DirectoryFailure

deleteAllLogs

public void deleteAllLogs(java.lang.String historyMonitorID,
                          javax.swing.ProgressMonitor pm)
                   throws DirectoryFailure
Throws:
DirectoryFailure

getLogsforActionType

public java.util.Vector getLogsforActionType(java.lang.String actionType,
                                             java.lang.String historyMonitorID)
                                      throws DirectoryFailure
Throws:
DirectoryFailure

getLogsforActionType

public java.util.Vector getLogsforActionType(java.lang.String actionType,
                                             java.lang.String historyMonitorID,
                                             javax.swing.ProgressMonitor pm)
                                      throws DirectoryFailure
Throws:
DirectoryFailure

deleteLogsforActionType

public java.util.Vector deleteLogsforActionType(java.lang.String actionType,
                                                java.lang.String historyMonitorID)
                                         throws DirectoryFailure
Throws:
DirectoryFailure

deleteLogsforActionType

public java.util.Vector deleteLogsforActionType(java.lang.String actionType,
                                                java.lang.String historyMonitorID,
                                                javax.swing.ProgressMonitor pm)
                                         throws DirectoryFailure
Throws:
DirectoryFailure

getLogsforActor

public java.util.Vector getLogsforActor(java.lang.String actorID,
                                        java.lang.String historyMonitorID)
                                 throws DirectoryFailure
Throws:
DirectoryFailure

getLogsforActor

public java.util.Vector getLogsforActor(java.lang.String actorID,
                                        java.lang.String historyMonitorID,
                                        javax.swing.ProgressMonitor pm)
                                 throws DirectoryFailure
Throws:
DirectoryFailure

deleteLogsforActor

public java.util.Vector deleteLogsforActor(java.lang.String actorID,
                                           java.lang.String historyMonitorID)
                                    throws DirectoryFailure
Throws:
DirectoryFailure

deleteLogsforActor

public java.util.Vector deleteLogsforActor(java.lang.String actorID,
                                           java.lang.String historyMonitorID,
                                           javax.swing.ProgressMonitor pm)
                                    throws DirectoryFailure
Throws:
DirectoryFailure

getSpecifiedLogs

public java.util.Vector getSpecifiedLogs(java.lang.String actionType,
                                         java.lang.String actorID,
                                         java.lang.String startTime,
                                         java.lang.String endTime,
                                         java.lang.Boolean latest,
                                         java.lang.String historyMonitorID)
                                  throws DirectoryFailure
Throws:
DirectoryFailure

getSpecifiedLogs

public java.util.Vector getSpecifiedLogs(java.lang.String actionType,
                                         java.lang.String actorID,
                                         java.lang.String startTime,
                                         java.lang.String endTime,
                                         java.lang.Boolean latest,
                                         java.lang.String historyMonitorID,
                                         javax.swing.ProgressMonitor pm)
                                  throws DirectoryFailure
Throws:
DirectoryFailure

deleteSpecifiedLogs

public java.util.Vector deleteSpecifiedLogs(java.lang.String actionType,
                                            java.lang.String actorID,
                                            java.lang.String startTime,
                                            java.lang.String endTime,
                                            java.lang.Boolean latest,
                                            java.lang.String historyMonitorID)
                                     throws DirectoryFailure
Throws:
DirectoryFailure

deleteSpecifiedLogs

public java.util.Vector deleteSpecifiedLogs(java.lang.String actionType,
                                            java.lang.String actorID,
                                            java.lang.String startTime,
                                            java.lang.String endTime,
                                            java.lang.Boolean latest,
                                            java.lang.String historyMonitorID,
                                            javax.swing.ProgressMonitor pm)
                                     throws DirectoryFailure
Throws:
DirectoryFailure

getRepositoryTableInformation

public java.util.Hashtable getRepositoryTableInformation(java.lang.String repType,
                                                         java.lang.String guardRepMgrID)
                                                  throws java.lang.Exception
This method returns the concepts names and their corresponding component names in a Hashtable. The keys in this table are Strings specifying concept names and values are Strings specifying corresponding component names.

Throws:
java.lang.Exception

getRepositoryTableInformation

public java.util.Hashtable getRepositoryTableInformation(java.lang.String repType,
                                                         java.lang.String guardRepMgrID,
                                                         javax.swing.ProgressMonitor pm)
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

changeComponentEnabledStatus

public java.util.Vector changeComponentEnabledStatus(java.lang.String repType,
                                                     java.lang.String associatedOntType,
                                                     java.lang.Boolean state,
                                                     java.lang.String guardRepMgrID)
                                              throws java.lang.Exception
Changes the 'enabled' status of the given component.

Throws:
java.lang.Exception

changeComponentEnabledStatus

public java.util.Vector changeComponentEnabledStatus(java.lang.String repType,
                                                     java.lang.String associatedOntType,
                                                     java.lang.Boolean state,
                                                     java.lang.String guardRepMgrID,
                                                     javax.swing.ProgressMonitor pm)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

getComponentEnabledStatus

public java.lang.Boolean getComponentEnabledStatus(java.lang.String repType,
                                                   java.lang.String associatedOntType,
                                                   java.lang.String guardRepMgrID)
                                            throws java.lang.Exception
Get the 'enabled' status of the given component.

Throws:
java.lang.Exception

getComponentEnabledStatus

public java.lang.Boolean getComponentEnabledStatus(java.lang.String repType,
                                                   java.lang.String associatedOntType,
                                                   java.lang.String guardRepMgrID,
                                                   javax.swing.ProgressMonitor pm)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

getGuardStateFor

public GuardState getGuardStateFor(java.lang.String guardID)
                            throws DirectoryFailure
method for getting the current state of a guard

Throws:
DirectoryFailure

getGuardStateFor

public GuardState getGuardStateFor(java.lang.String guardID,
                                   javax.swing.ProgressMonitor pm)
                            throws DirectoryFailure
Throws:
DirectoryFailure