|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.core.service.directory.OntologyBasedKAoSDirectory
public class OntologyBasedKAoSDirectory
$Revision: 1.41 $
Constructor Summary | |
---|---|
OntologyBasedKAoSDirectory(KAoSDirectoryService _myKAoSDirectoryService)
|
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 |
addPolicies(java.util.Vector policies)
Each element of the Vector is a definition of a policy to be added to the collection of policies of the entity associated with that policy. |
void |
addPolicy(Msg _policy)
Add policy to the PolicyDirectory |
void |
addPolicySet(Msg policySet)
BEGIN - kaos.policy.management.PolicySetDirectory interface implementation |
void |
addPolicySets(java.util.Vector policySets)
Each element of the Vector is an instance of a Msg class specifying an individual policy set fields |
boolean |
areClassesDisjoint(java.lang.String firstClass,
java.lang.String secondClass)
Test if two provided classes are disjoint |
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. |
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 |
changePolicies(java.util.Vector policies)
Each element of the Vector is a definition of a policy to replace its current definition in the collection of policies of the entity associated with that policy. |
void |
changePolicy(Msg policy)
Change policy of the entity associated with that policy. |
void |
changePolicySet(Msg policySet)
|
void |
changePolicySets(java.util.Vector policySets)
|
void |
checkAbsolutePermission(java.lang.String checkedActionClass)
The method check if the given action class is absolutly permitted according to the current set of policies |
AgentDescription |
createAgentDescription()
Create an empty AgentDescription suitable for attribute population and use. |
void |
declareInstance(java.lang.String instanceName,
java.lang.String className)
Create an instance of the given class. |
void |
deregister(AgentDescription desc)
Remove the AgentDescription from the collection of domain entities registered in the directory. |
java.util.List |
findConflictingPolicies(java.lang.String policyId)
Method find all the policies conflicting with the specified policy |
java.util.List |
findPoliciesMadeRedundant(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)
Method find all the policies with higher priority making the specified policy redundant |
java.util.Vector |
getAbsoluteObligationsForTriggerConditionForAC(java.lang.String triggerAC)
Based on the specified trigger ActionClassDescription, select all absolute classes of obligations |
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.Vector |
getAllAgentsInDirectory()
Get a Vector of descriptions of all agents in the directory. |
java.util.Vector |
getAllAgentsInDomain(java.lang.String domainName)
|
java.util.Vector |
getAllDomainsInDirectory()
Get a Vector of descriptions of all of the domains in a directory. |
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.Vector |
getApplicablePoliciesForEntity(java.lang.String entityId)
Obtain the set of policies directly and indirectly applicable to a specified entity. |
java.util.Vector |
getApplicablePoliciesForEntityClass(java.lang.String classOfEntitiesName)
Obtain the set of policies directly and indirectly applicable to a specified class of entities. |
java.util.Set |
getClassesDefInNamespace(java.lang.String namespaceName)
Get set of classes defined in the given namespace. |
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 |
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 |
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 |
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 |
getClassesOfTargets(java.lang.String baseTargetClass)
Get names of the targets (Actors, Entities, etc.) classes known to the ontology repository being a subclass of the specified base class. |
java.util.Vector |
getConditionalPolicies()
Support for conditional policies - not currently present in Ontology |
java.util.List |
getConstructedOntologyStructures()
This method retrieves all user defined ontlogy structures in the repository. |
DomainDescription |
getDomainDescription(java.lang.String domainName)
Get the description of a domain |
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.Vector |
getDomainNames()
Obtain a List of the names of all registered domains. |
java.util.Map |
getDomainStructure(java.lang.String domainName)
Obtain a Map containing the structure of a domain. |
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.Vector |
getGuardsForActionClass(java.lang.String action)
|
java.util.Vector |
getGuardsForActorClass(java.lang.String actorClassName)
Search for guards, which are interested in policies having this actor class (or its superclasses) as a subject |
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 |
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 |
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 |
getIndividualTargets(java.lang.String baseTargetClass)
Get names of the individual targets (Actors, Entities, etc.) known to the ontology repository being an instance of the specified base class. |
java.util.Set |
getInstancesDefInNamespace(java.lang.String namespaceName)
Get set of instances defined in the given namespace. |
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 |
getListOfLoadedOntologies()
This method returns a set of urls depicting ontologies loaded into the JTP. |
java.util.Set |
getNamspacesImportedByNamespace(java.lang.String namespaceName)
Get set of namspaces imported by the given namespace. |
java.util.Set |
getOntologyDefinitionForConcept(java.lang.String conceptName)
Tries to find an ontology definition of the search concept. |
java.util.List |
getPolicies()
Obtain an Vector over all policies. |
java.util.Map |
getPoliciesByEntities()
Obtain a table of all original policies (pre-deconfliction and Ontology->XML conversion) in the system, indexed by the id(s) of the entity(s) to which they apply |
java.util.Vector |
getPoliciesForEntity(java.lang.String id)
Obtain an Vector over all policies associated with an entity whose id is specified. |
Msg |
getPolicy(java.lang.String policyId)
Obtain a policy based on id |
PolicySetMsg |
getPolicySet(java.lang.String policySetId)
|
java.util.List |
getPolicySets()
Obtain a Vector over all policy sets. |
java.util.Vector |
getPropertiesApplicableTo(java.lang.String className)
Get set of properties defined in the given namespace. |
java.util.Set |
getPropertiesDefInNamespace(java.lang.String namespaceName)
Get set of properties defined in the given namespace. |
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.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 an Enumeration of the names of the root domains (domains with no parent) |
ServiceProperties |
getServiceProperties()
Obtain the properties of the service. |
java.util.Set |
getSubClassesOf(java.lang.String className)
Get set of subclasses of the given class. |
java.util.Vector |
getSubdomains(java.lang.String domainName)
Obtain an Enumeration of the names of subdomains of a particular domain (returns immediate children only) |
java.util.Set |
getSubPropertiesOf(java.lang.String propertyName)
Get set of subproperties of the given property. |
java.util.Set |
getSuperClassesOf(java.lang.String className)
Get set of superclasses of the given class. |
java.util.Set |
getSuperPropertiesOf(java.lang.String propertyName)
Get set of superproperties of the given property. |
java.util.Set |
getUltimateOntologyTypesOfIndividual(java.lang.String individualName)
Finds the ultimate Ontology type of the provided individual |
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 |
boolean |
isEntityInDomain(java.lang.String domainName,
java.lang.String entityId)
Search for the domain entity with the specified id. |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
void |
loadOntology(SerializableOntModelImpl myOntModel,
boolean recursiveLoad)
Adds ontology included in the provide objects into the ontology repository. |
void |
loadOntology(java.lang.String myURL,
boolean recursiveLoad)
Loads ontology from the provided url. |
void |
modify(AgentDescription desc)
Replace the AgentDescription in the collection of registered domain entities with the new AgentDescription. |
void |
modifyEntityProperties(java.lang.String entityGUID,
java.util.List properties)
Modify properties of the entity identified by the given entityGUID. |
void |
putConstructedOntologyStructures(java.util.List ontologyStructureList)
This method stores multiple ontology structures in the repositiry. |
void |
register(AgentDescription desc)
Add the AgentDescription to the collection of domain entities registered in the directory. |
void |
removeExecEnv(java.lang.String execEnvID)
Retrieve a Hashtable containing information about a VM with the specified id from the _executionEnvs table and remove it. |
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 |
removePolicies(java.util.List policies)
Each element of the Vector is a definition of a policy to be removed from the collection of policies of the entity associated with that policy. |
void |
removePolicy(Msg _policy)
Remove policy from the collection of policies of the entity associated with that policy. |
void |
removePolicySet(Msg policySet)
|
void |
removePolicySets(java.util.Vector policySets)
|
AgentDescription[] |
search(AgentDescription desc)
Search the collection of AgentDescriptions for all matching descriptions. |
AgentDescription[] |
search(AgentDescription desc,
int maxResults)
Search the collection of AgentDescriptions for all matching descriptions. |
void |
setConditionalPolicies(java.util.Vector condPols)
|
void |
setServiceProperties(ServiceProperties props)
Set the properties of the service. |
void |
setUp()
|
java.util.List |
splitPolicy(java.lang.String splitPolicy,
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. |
boolean |
testTrue(java.lang.String statement)
Test if the KIF statemant is true according to the ontologies in the ontology repository. |
void |
updatePolicies(java.util.List addedPolicies,
java.util.List changedPolicies,
java.util.List removedPolicies)
Transactional update the state of PolicyDirectory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OntologyBasedKAoSDirectory(KAoSDirectoryService _myKAoSDirectoryService)
Method Detail |
---|
public void setUp() throws ReasoningException
ReasoningException
public ServiceProperties getServiceProperties() throws ServiceException, ServiceFailure
ServiceException
ServiceFailure
public void setServiceProperties(ServiceProperties props) throws ServiceException, ServiceFailure
props
- containing a set of the properties of the service.
ServiceException
ServiceFailure
public AgentDescription createAgentDescription()
This method may return null
.
public void deregister(AgentDescription desc) throws NotRegisteredException, DirectoryFailure
desc
- the AgentDescription to remove.
NotRegisteredException
- if the AgentDescription is not registered.
DirectoryFailure
- if the directory service is not available.public void modify(AgentDescription desc) throws NotRegisteredException, DirectoryFailure
desc
- the new AgentDescription to replace the old one.
NotRegisteredException
- if the AgentDescription is not
registered.
DirectoryFailure
- if the directory service is
not available.public void register(AgentDescription desc) throws AlreadyRegisteredException, DirectoryFailure
desc
- the AgentDescription to add.
AlreadyRegisteredException
- if the AgentDescription is already
registered.
DirectoryFailure
- if the directory service is
not available.public AgentDescription[] search(AgentDescription desc) throws SearchException, DirectoryFailure
desc
- the AgentDescription to use for matching.
SearchException
- if an exception occurs during searching.
DirectoryFailure
- if the directory service is unavailable.public AgentDescription[] search(AgentDescription desc, int maxResults) throws SearchException, DirectoryFailure
desc
- the AgentDescription to use for matching.maxResults
- the limit of returned results.
SearchException
- if an exception occurs during searching.
DirectoryFailure
- if the directory service is not available.public void modifyEntityProperties(java.lang.String entityGUID, java.util.List properties) throws DirectoryFailure, NotRegisteredException, ModificationException
entityGUID
- String containing the entity GUID.properties
- List of Properties to be modified. Each Property contains the name, value, value description,
modification type (add/remove/set, etc), modification result.
Refer to the Property and ModificationResult interfaces for detailed description.
DirectoryFailure
- if the connection to the DS cannot be established.
NotRegisteredException
- if the entity whose properties are to be modified
has not been registered in the DS.
ModificationException
- if one or more property update failed.public java.util.Vector getGuardsForActorClass(java.lang.String actorClassName)
actorClassName
- the name of the actor class
public java.util.Vector getGuardsForActionClass(java.lang.String action)
public boolean isEntityInDomain(java.lang.String domainName, java.lang.String entityId)
domainName
- the name of the domain to queryentityId
- The id of an entity to be searched in this domain directory.
java.lang.NullPointerException
- if the id is null.public java.util.Vector getAllAgentsInDomain(java.lang.String domainName)
public java.util.Vector getAllAgentsInDirectory()
public java.util.Vector getAllDomainsInDirectory()
public java.util.Map getDomainStructure(java.lang.String domainName)
public java.util.List getDomainDescriptionsForGuard(java.lang.String guardGUID)
guardGUID
- GUID of the guard registered in all domains, whose
descriptions are requested
public void removeExecEnv(java.lang.String execEnvID)
execEnvID
- the id of the VM to be removed from the _executionEnvs table.public java.util.Vector getDomainNames()
public java.util.Vector getRootDomains()
public java.util.Vector getSubdomains(java.lang.String domainName)
public DomainDescription getDomainDescription(java.lang.String domainName)
domainName
- the name of the domainpublic java.util.Set getListOfLoadedOntologies()
public java.util.Set getAllNamespaces()
public java.util.Set getFilteredNamespaces()
public void addFilteredNamespace(java.lang.String namespace)
namespace
- The name of the namespacepublic void removeFilteredNamespace(java.lang.String namespace)
namespace
- The name of the namespacepublic java.util.List getConstructedOntologyStructures()
public void putConstructedOntologyStructures(java.util.List ontologyStructureList) throws ReasoningException, java.io.IOException
ontologyStructureList
- a list containing SerializableOntModelImpl objects.
jtp.ReasoningException
- or IOException when loading of the ontology failed.
ReasoningException
java.io.IOException
public void loadOntology(java.lang.String myURL, boolean recursiveLoad) throws ReasoningException, java.io.IOException
myURL
- The url to the ontologyrecursiveLoad
- Indicates if the imported ontologies (by the ontology depicted by myURL) should also be recursively loaded.
jtp.ReasoningException
- or IOException when loading of the ontology failed.
ReasoningException
java.io.IOException
public void loadOntology(SerializableOntModelImpl myOntModel, boolean recursiveLoad) throws ReasoningException, java.io.IOException
myOntModel
- The object of type Jena OntModel containing the added ontologyrecursiveLoad
- Indicates if the imported ontologies (by the ontology contained in myOntModel) should also be recursively loaded.
QueryFailure
- or IOException when loading of the ontology failed.
ReasoningException
java.io.IOException
public java.util.Set getInstancesOf(java.lang.String conceptName) throws UnknownConceptException
conceptName
- The name of the concept
UnknownConceptException
- if forActor is unknow for the ontology repositorypublic java.util.Set getUltimateOntologyTypesOfIndividual(java.lang.String individualName) throws UnknownConceptException
individualName
- the name of the individual
individualName
- if concept unknow or any problem with JTP approached
UnknownConceptException
public java.util.Set getSuperClassesOf(java.lang.String className) throws UnknownConceptException
className
- The name of the class
UnknownConceptException
- if className is unknow for the ontology repositorypublic java.util.Set getSubClassesOf(java.lang.String className) throws UnknownConceptException
className
- The name of the class
UnknownConceptException
- if className is unknow for the ontology repositorypublic java.util.Set getSuperPropertiesOf(java.lang.String propertyName) throws UnknownConceptException
propertyName
- The name of the property in Jena format
java.lang.Exception
- if propertyName is unknow for the ontology repository
UnknownConceptException
public java.util.Set getSubPropertiesOf(java.lang.String propertyName) throws UnknownConceptException
propertyName
- The name of the property in Jena format
java.lang.Exception
- if propertyName is unknow for the ontology repository
UnknownConceptException
public boolean testTrue(java.lang.String statement) throws QueryFailure
statement
- to be tested for thruth
QueryFailure
- if reasoning failedpublic java.lang.String getUniqueValueForProperty(java.lang.String property, java.lang.String subject) throws QueryFailure
property
- the name of the propertysubject
- the name of the subject
QueryFailure
- if reasoning failed.public java.util.Set getValuesForProperty(java.lang.String property, java.lang.String subject) throws QueryFailure
property
- the name of the propertysubject
- the name of the subject
QueryFailure
- if reasoning failed.public java.util.Set getResourcesWithValueForProperty(java.lang.String property, java.lang.String value) throws QueryFailure
property
- the name of the propertyvalue
- the value as a string
QueryFailure
- if reasoning failed.public java.util.Vector getPropertiesApplicableTo(java.lang.String className) throws UnknownConceptException
className
- the name of the class
UnknownConceptException
- if className is unknow for the ontology repositorypublic java.lang.String getRangeOnPropertyForClass(java.lang.String className, java.lang.String propertyName) throws UnknownConceptException
className
- the name of the classpropertyName
- the name of the property
UnknownConceptException
- if reasoning failed.public java.util.Set askQuery(java.lang.String variableName, java.lang.String multiplyVariablesQuery) throws QueryFailure
variableName
- the neame ofthe selected variablemultiplyVariablesQuery
- the query
QueryFailure
- if reasoning failed.public boolean areClassesDisjoint(java.lang.String firstClass, java.lang.String secondClass) throws QueryFailure
firstClass
- the name of the first classsecondClass
- the name of the second class
QueryFailure
- if reasoning failed.public java.util.Set getClassesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException
namespaceName
- The name of the namespace
UnknownNamespaceException
- if namespaceName is unknow for the ontology repositorypublic java.util.Set getPropertiesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException
namespaceName
- The name of the namespace
UnknownNamespaceException
- if namespaceName is unknow for the ontology repositorypublic java.util.Set getInstancesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException
namespaceName
- The name of the namespace
UnknownNamespaceException
- if namespaceName is unknow for the ontology repositorypublic java.util.Set getNamspacesImportedByNamespace(java.lang.String namespaceName) throws UnknownNamespaceException
namespaceName
- The name of the namespace
UnknownNamespaceException
- if namespaceName is unknow for the ontology repositorypublic java.util.Set getOntologyDefinitionForConcept(java.lang.String conceptName)
conceptName
- The name of the search concept
public java.util.Set getIndividualActors(java.lang.String baseActorClass) throws UnknownConceptException
baseActorClass
- The name of the Actor class which the return elements have to be an instance of
If the name is empty uses Actors as a base class
UnknownConceptException
- if baseActorClass is unknow for the ontology repositorypublic java.util.Set getClassesOfActors(java.lang.String baseActorClass) throws UnknownConceptException
baseActorClass
- The name of the Actor class which the return classes have to be a subclass of
If the name is empty uses Actors as a base class
UnknownConceptException
- if baseActorClass is unknow for the ontology repositorypublic java.util.Set getIndividualPlaces(java.lang.String basePlaceClass) throws UnknownConceptException
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
UnknownConceptException
- if basePlaceClass is unknow for the ontology repositorypublic java.util.Set getClassesOfPlaces(java.lang.String basePlaceClass) throws UnknownConceptException
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
UnknownConceptException
- if basePlaceClass is unknow for the ontology repositorypublic java.util.Set getIndividualGroups(java.lang.String baseGroupClass) throws UnknownConceptException
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
UnknownConceptException
- if baseGroupClass is unknow for the ontology repositorypublic java.util.Set getClassesOfGroups(java.lang.String baseGroupClass) throws UnknownConceptException
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
UnknownConceptException
- if baseGroupClass is unknow for the ontology repositorypublic java.util.Set getIndividualTargets(java.lang.String baseTargetClass) throws UnknownConceptException
baseTargetClass
- The name of the targets (Actors or Entities) class which the return classes have to be a subclass of
If the name is empty uses Target as a base class
UnknownConceptException
- if baseTargetClass is unknow for the ontology repositorypublic java.util.Set getClassesOfTargets(java.lang.String baseTargetClass) throws UnknownConceptException
baseTargetClass
- The name of the targets (Actors or Entities) class which the return classes have to be a subclass of
If the name is empty uses Target as a base class
UnknownConceptException
- if baseTargetClass is unknow for the ontology repositorypublic void declareInstance(java.lang.String instanceName, java.lang.String className) throws QueryFailure
instanceName
- The name of the new instanceclassName
- The name of the class
QueryFailure
- if creation failedpublic java.util.Set getActions(java.lang.String forActor) throws UnknownConceptException
forActor
- The name of the Actor class or instance
UnknownConceptException
- if forActor is unknow for the ontology repositorypublic java.util.Set getClassesOfActorsCapableOfPerformingActions(java.lang.String actionClass) throws UnknownConceptException, DirectoryFailure
actionClass
- The name of the Action class
UnknownConceptException
- if actionClass is unknow for the ontology repository
DirectoryFailure
public void updatePolicies(java.util.List addedPolicies, java.util.List changedPolicies, java.util.List removedPolicies) throws OntologyPolicyIncorrect, PoliciesHarmonizedException, PrecedenceUndeterminedException
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
public void addPolicy(Msg _policy) throws OntologyPolicyIncorrect, PoliciesHarmonizedException, PrecedenceUndeterminedException
policy
- The Msg containing policy definition for a given entity.
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
public void addPolicies(java.util.Vector policies) throws OntologyPolicyIncorrect, PoliciesHarmonizedException, PrecedenceUndeterminedException
policies
- The Vector of policies to be added to policies of their corresponding entities.
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
public void removePolicy(Msg _policy)
policy
- The Msg containing policy definition to be removed.public void removePolicies(java.util.List policies)
policies
- The Vector of policies to be removed from policies of their corresponding entities.public void changePolicy(Msg policy) throws OntologyPolicyIncorrect, PoliciesHarmonizedException, PrecedenceUndeterminedException
policy
- The Msg containing policy definition to be changed for a given entity.
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
public void changePolicies(java.util.Vector policies) throws OntologyPolicyIncorrect, PoliciesHarmonizedException, PrecedenceUndeterminedException
policies
- The Vector of policies to replace their current definitions.
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
public Msg getPolicy(java.lang.String policyId)
public java.util.List getPolicies()
public java.util.Map getPoliciesByEntities()
public java.util.Vector getPoliciesForEntity(java.lang.String id)
id
- The String containing the id of entity whose policies are being requested.
public java.util.Vector getApplicablePoliciesForEntity(java.lang.String entityId)
entityId
- id of the entity
public java.util.Vector getApplicablePoliciesForEntityClass(java.lang.String classOfEntitiesName)
classOfEntitiesName
- name of the class of entities
public java.util.Vector getConditionalPolicies()
public void setConditionalPolicies(java.util.Vector condPols)
public void addPolicySet(Msg policySet)
public void addPolicySets(java.util.Vector policySets)
policySets
- The Vector of policies set to be added to the collection of all policies.public void removePolicySet(Msg policySet)
public void removePolicySets(java.util.Vector policySets)
public void changePolicySet(Msg policySet)
public void changePolicySets(java.util.Vector policySets)
public java.util.List getPolicySets()
public PolicySetMsg getPolicySet(java.lang.String policySetId)
public boolean isPolicyInConflict(java.lang.String policyId)
policyId
- id of the policy
public java.util.List findConflictingPolicies(java.lang.String policyId)
policyId
- id of the policy
public boolean isFullyOverlappedBySecondPolicy(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws PriorityConditionNotMet
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
PriorityConditionNotMet
public boolean isPartiallyOverlappedBySecondPolicy(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws PriorityConditionNotMet
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
PriorityConditionNotMet
public boolean isFullyOverlappedByUnionOfPolicies(java.lang.String firstPolicyId, java.util.List listOfPolicies) throws PriorityConditionNotMet
firstPolicyId
- id of the policylistOfPolicies
- list of policies
PriorityConditionNotMet
public boolean isPolicyRedundant(java.lang.String policyId)
policyId
- id of the policy
public java.util.List findPoliciesMakingRedundant(java.lang.String policyId)
policyId
- id of the policy
public boolean isPolicyMakingRedundantSomeOtherPolicy(java.lang.String policyId)
policyId
- id of the policy
public java.util.List findPoliciesMadeRedundant(java.lang.String policyId)
policyId
- id of the policy
public boolean isMadeFullyRedundantBySecond(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws PriorityConditionNotMet
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
PriorityConditionNotMet
public boolean isMadeParitallyRedundantBySecond(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws PriorityConditionNotMet
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
PriorityConditionNotMet
public boolean isMadeFullyRedundantByPolicyUnion(java.lang.String firstPolicyId, java.util.List listOfPolicies) throws PriorityConditionNotMet
firstPolicyId
- id of the policylistOfPolicies
- list of policies
PriorityConditionNotMet
public void changedPriority(java.lang.String policyId, int newPriority)
policyId
- id of the policynewPriority
- new priority of the policypublic java.util.List harmonizePolicy(java.lang.String harmonizedPolicy, java.lang.String harmonizingPolicy)
harmonizedPolicy
- id of the policy to be harmonized.harmonizingPolicy
- id of the policy harmonizing the first policy
public java.util.List splitPolicy(java.lang.String splitPolicy, java.lang.String secondPolicy)
splitPolicy
- id of the policy to be split.secondPolicy
- id of the policy splitting the first policy
public java.util.Vector getAbsoluteObligationsForTriggerConditionForAC(java.lang.String triggerAC) throws ServiceFailure
triggerACD
- OWL string describes a class of the trigger condition
ServiceFailure
public void checkAbsolutePermission(java.lang.String checkedActionClass) throws KAoSSecurityException, java.lang.NullPointerException, ServiceFailure
checkedActionClass
- String containg OWL defiition of the action to be checked.
KAoSSecurityException
- if the action is not allowed.
java.lang.NullPointerException
- if the submitted argument is null.
ServiceFailure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |