|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkaos.core.service.util.MethodCallProxy
kaos.core.service.directory.DirectoryServiceProxy
public class DirectoryServiceProxy
Nested Class Summary |
---|
Nested classes/interfaces inherited from class kaos.core.service.util.MethodCallProxy |
---|
MethodCallProxy.OperationWaiter |
Nested classes/interfaces inherited from interface kaos.core.csi.policy.PolicyManagement |
---|
PolicyManagement.OntologyPolicyIncorrect, PolicyManagement.PrecedenceUndeterminedException |
Nested classes/interfaces inherited from interface kaos.policy.management.PolicyAnalyzes |
---|
PolicyAnalyzes.PriorityConditionNotMet |
Field Summary | |
---|---|
protected ServiceProperties |
_serviceProps
|
static OntologyService |
localOntologyInterfaces
|
Fields inherited from class kaos.core.service.util.MethodCallProxy |
---|
_logger, _msgSender, _waiters |
Constructor Summary | |
---|---|
DirectoryServiceProxy()
|
Method Summary | |
---|---|
void |
addAuthenticationObject(KAoSAuthenticationObject kao)
Allows to add an authentication object to the Directory Service database. |
void |
addDefinedPolicyTemplate(PolicyTemplate definedTemplate)
|
void |
addEntityOntologicalType(java.lang.String entityNameAsString,
java.lang.String typeName,
java.lang.String damlDesc)
|
void |
addEventListener(DirectoryEventListener listener)
|
void |
addFilteredNamespace(java.lang.String namespace)
This method add a namespace 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.List<PolicyMsg> policies)
|
void |
addPolicy(PolicyMsg policy)
|
void |
addPolicy(java.lang.String owlPolicyDescription)
|
void |
addPolicySet(PolicySetMsg policySet)
|
void |
addPolicySets(java.util.List<PolicySetMsg> policySets)
|
void |
addPolicyUpdateListener(PolicyListener listener)
|
void |
addRemoteEventListener(Locator l)
|
java.lang.String |
analyzeWorkflow(java.lang.String owlsWorkflow)
|
java.lang.String |
analyzeWorkflow(java.net.URL owlsWorkflow)
|
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 satisfying the KIF query with possibly many variable. |
java.util.Vector |
changeComponentEnabledStatus(java.lang.String repType,
java.lang.String associatedOntType,
java.lang.Boolean state,
java.lang.String guardRepMgrID)
|
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.List<PolicyMsg> policies)
|
void |
changePolicy(PolicyMsg policy)
|
void |
changePolicy(java.lang.String policyID,
java.lang.String owlPolicyDescription)
|
void |
changePolicySet(PolicySetMsg policySet)
|
void |
changePolicySets(java.util.List<PolicySetMsg> policySets)
|
void |
checkDeepPermission(ActionInstanceDescription aid,
PolicyDecisionObserver observer)
|
protected void |
checkDeregisterResult(MethodCallResultMsg result,
AgentDescription desc)
DirectoryFailure - as a result of registration, deregistration or modify request NotRegisteredException - as a result of deregistration or modify request IllegalArgumentexception - as a result of registration, deregistration or modify request |
protected void |
checkModifyResult(MethodCallResultMsg result)
NotRegisteredException - as a result of deregistration or modify request IllegalArgumentexception - as a result of registration, deregistration or modify request |
void |
checkPermission(ActionInstanceDescription aid,
PolicyDecisionObserver observer)
|
protected void |
checkRegisterResult(MethodCallResultMsg result,
AgentDescription desc)
|
protected AgentDescription[] |
checkSearchResult(MethodCallResultMsg result)
The Exception may be one of the following: SearchException DirectoryFailure IllegalArgumentexception |
AgentDescription |
createAgentDescription()
|
protected MethodCallRequestMsg |
createMessageToSend(AgentDescription adesc,
java.lang.String requestedOperation,
int parameterValue)
Return an instance of the MethodCallRequestMsg specifying the requested Directory operation and the AgentDescription argument. |
void |
declareInstance(java.lang.String instanceName,
java.lang.String className)
|
void |
deleteAllLogs(java.lang.String historyMonitorID)
|
java.util.Vector |
deleteLogsforActionType(java.lang.String actionType,
java.lang.String historyMonitorID)
|
java.util.Vector |
deleteLogsforActor(java.lang.String actorID,
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)
|
void |
deregister(AgentDescription desc)
|
void |
editAuthenticationObject(KAoSAuthenticationObject kao)
Allows to edit an authentication object at the Directory Service database. |
void |
editDefinedPolicyTemplate(PolicyTemplate definedTemplate)
|
java.util.List |
findConflictingPolicies(java.lang.String policyId)
Method find all the policies conflicting with the specified policy |
java.util.List<PolicyMsg> |
findPolicies(java.lang.String actionType,
java.util.Map<java.util.List<java.lang.String>,java.lang.String> policyRestrictions)
|
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 |
findPolicyDecision(ActionInstanceDescription aid,
PolicyDecisionObserver observer)
For Policy Disclosure |
java.util.Set<ActionClassDescription> |
getActions(java.lang.String forActor)
Get descriptions of the Action classes the specified Actor class or instance can perfom based on its class. |
KAoSAgentDescription |
getAgentDescriptionForAgentID(java.lang.String agentID)
|
java.util.List |
getAllAgentsInDirectory()
Get a Vector of descriptions of all agents in the directory. |
java.util.Vector |
getAllAgentsInDomain(java.lang.String domainName)
Get a Vector of descriptions of all of the agents in a domain. |
java.util.Hashtable |
getAllAuthenticationObjects()
Allows to get all the authentication objects from the Directory Service database. |
java.util.Map<java.lang.String,PolicyTemplate> |
getAllDefinedPolicyTemplate()
|
java.util.Vector |
getAllDomainsInDirectory()
Get a Vector of descriptions of all of the domains in a directory. |
java.util.List |
getAllGuardsInDirectory()
Get a Vector of descriptions of all guards in the directory. |
java.util.List |
getAllLogs(java.lang.String historyMonitorID)
|
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 |
getAllowableValuesForActionProperties(ActionInstanceDescription actionDesc,
PolicyDecisionObserver observer)
|
java.util.Vector |
getAllowableValuesForActionProperties(java.util.Vector propertyNames,
ActionInstanceDescription actionDesc,
boolean tight,
PolicyDecisionObserver observer)
|
java.util.Set |
getAllowableValuesForActionProperty(java.lang.String origPropertyName,
ActionInstanceDescription origActionDesc,
java.util.Set allTargetValues,
boolean tight,
PolicyDecisionObserver observer)
|
java.util.Vector |
getAllPolicies(java.lang.String policyDBManagerID)
|
java.util.List<PolicyMsg> |
getAllPoliciesFor(java.lang.String conceptId)
|
java.util.List |
getAllSchema()
Retrieve all schemas in the repository. |
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 or Entities) classes known to the ontology repository being a subclass of the specified base class. |
java.lang.Boolean |
getComponentEnabledStatus(java.lang.String repType,
java.lang.String associatedOntType,
java.lang.String guardRepMgrID)
|
SerializableOntModelImpl |
getConstructedOntologyStructure(java.lang.String structureId)
This method get stored ontology structure references by its id in the repository. |
java.util.List |
getConstructedOntologyStructures()
This method retrieves all user defined ontology structures in the repository. |
java.util.Vector |
getDirectPoliciesFor(java.lang.String entityId)
|
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()
|
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 |
getForbiddenValuesForActionProperty(java.lang.String origPropertyName,
ActionInstanceDescription origActionDesc,
PolicyDecisionObserver observer)
|
java.util.Vector |
getGuardDescriptionsForEntity(java.lang.String entityID)
|
java.lang.String |
getGuardStateFor(java.lang.String guardID)
|
java.util.Set |
getImmediateSubClassesOf(java.lang.String className)
Get set of immediate subclasses of the given class. |
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 or Entities) 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 Ontology Service |
java.util.Vector |
getLogsforActionType(java.lang.String actionType,
java.lang.String historyMonitorID)
|
java.util.Vector |
getLogsforActor(java.lang.String actorID,
java.lang.String historyMonitorID)
|
java.util.Set |
getNamspacesImportedByNamespace(java.lang.String namespaceName)
Get set of namespaces imported by the given namespace. |
java.util.List<ActionInstanceDescription> |
getObligationsForTriggerCondition(ActionInstanceDescription triggerAID,
PolicyDecisionObserver observer)
|
java.util.Set |
getOntologyDefinitionForConcept(java.lang.String conceptName)
Get set of urls for the given short concept name. |
java.util.List |
getPolicies()
|
java.util.Map |
getPoliciesByEntities()
|
PolicyMsg |
getPolicy(java.lang.String policyId)
|
PolicyInformation |
getPolicyInformation(java.lang.String policyID,
java.lang.String policyDBManagerID)
|
PolicySetMsg |
getPolicySet(java.lang.String policySetId)
|
java.util.List |
getPolicySets()
Obtain List over all policy sets. |
java.lang.Integer |
getPolicyUpdateCount()
|
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.Hashtable |
getRepositoryTableInformation(java.lang.String repType,
java.lang.String guardRepMgrID)
|
java.util.Set |
getResourcesWithValueForProperty(java.lang.String property,
java.lang.String value)
Get values of the variable satisfying 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.List<java.lang.String> |
getSchema(java.lang.String dataName)
Get XML schema of the given concept if such a schema is available |
ServiceProperties |
getServiceProperties()
|
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.Set |
getSubClassesOf(java.lang.String className)
Get set of subclasses of the given class. |
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.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 satisfying the KIF query: (property subject ?val). |
java.util.Set<java.lang.String> |
getValuesForProperty(java.lang.String property,
java.lang.String subject)
Get values of the variable satisfying 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 |
void |
init(MsgSender msgSender)
|
java.util.Vector |
initiateActionClassTargets(java.lang.String actionClassName,
java.lang.String actorClassName)
Get properties applicable to the action class |
void |
instancesSetSynchronizationRequest(java.util.List<java.lang.String> myCurrentInstancesClassesURL,
java.util.List<java.lang.Long> myCurrentInstancesSetsTimeStamps)
Send a list of the current classes for which instances set are stored in the Guard and associated with them timestamps in the second list. |
java.lang.Object |
invokeKAoSExtensionComponentMethod(java.lang.String repType,
java.lang.String associatedOntType,
java.lang.String methodName,
java.util.Vector args,
java.lang.String guardId)
|
protected java.lang.Object |
invokeMethod(java.lang.String methodName,
java.util.Vector args)
|
boolean |
isEntityInDomain(java.lang.String domainName,
java.lang.String id)
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<java.lang.String> 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 |
java.lang.Boolean |
isGuardLoggingActive(java.lang.String historyMonitorID)
|
boolean |
isMadeFullyRedundantByPolicyUnion(java.lang.String firstPolicyId,
java.util.List<java.lang.String> listOfPolicies)
Method finds out if the specified policy is being made redundant (fully covered) 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 being made redundant (fully covered) 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 being made partially redundant (partially covered) 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)
|
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 being made redundant (fully or partially) by some policies with higher priority in the repository |
boolean |
isSynchronizationNeeded(java.lang.Long myLastUpdateTimeStamp)
Check with DS if synchronization is needed by providing the timestamp of the last update. |
boolean |
isUsernameRegistered(java.lang.String userid,
java.lang.String password)
Checks if the username is in the Directory Service database. |
void |
loadOntologies(java.util.List<SerializableOntModelImpl> myDAMLModels,
boolean recursiveLoad)
Adds ontology included in the provide objects into the ontology repository. |
void |
loadOntology(SerializableOntModelImpl myDAMLModel,
boolean recursiveLoad)
Adds ontology included in the provide objects into the ontology repository. |
void |
loadOntology(java.lang.String loadedOWL)
Loads ontology in OWL into the repository of the Ontology Service |
void |
loadOntology(java.lang.String myURL,
boolean recursiveLoad)
Loads ontology from the provided url. |
void |
loadSchema(java.lang.String fileName)
Load schema definitions of data types from a file. |
void |
modify(AgentDescription desc)
|
void |
modifyEntityProperties(java.lang.String entityGUID,
java.util.List properties)
|
void |
policiesSynchronizationRequest(java.util.List<java.lang.String> myCurrentPoliciesIds,
java.util.List<java.lang.Long> myCurrentPoliciesTimeStamps)
Send a list of the current policies ids and associated with them timestamps in the second list. |
void |
putConstructedOntologyStructures(java.util.List<SerializableOntModelImpl> ontologyStructureList)
This method stores multiple ontology structures in the repository. |
void |
putMultipleSchema(java.util.List<XMLSchemaContainer> schemaList)
Store multiple schemas in the repository. |
void |
putSchema(java.lang.String dataName,
java.lang.String dataSchema)
Add an XML schema for the given concept |
void |
register(AgentDescription desc)
|
void |
removeAllPolicies(java.lang.String policyDBManagerID)
|
void |
removeAuthenticationObject(KAoSAuthenticationObject kao)
Allows to remove an authentication object from the Directory Service database. |
void |
removeConstructedOntologyStructure(java.lang.String structureId)
This method removes a user defined ontology structure identified by the id from the repository. |
void |
removeConstructedOntologyStructures(java.util.List<java.lang.String> structureIds)
This method removes multiple user defined ontology structure identified by the id from the repository. |
void |
removeDefinedPolicyTemplate(PolicyTemplate definedTemplate)
|
void |
removeEventListener(DirectoryEventListener listener)
|
void |
removeExecEnv(java.lang.String execEnvID)
Remove ExecutionEnvironment with the specified ID from the domain structure. |
void |
removeFilteredNamespace(java.lang.String namespace)
This method remove a namespace 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<PolicyMsg> policies)
|
void |
removePolicy(PolicyMsg policy)
|
void |
removePolicy(java.lang.String policyID)
|
PolicyInformation |
removePolicyInformation(java.lang.String policyID,
java.lang.String policyDBManagerID)
|
void |
removePolicySet(PolicySetMsg policySet)
|
void |
removePolicySets(java.util.List<PolicySetMsg> policySets)
|
void |
removePolicyUpdateListener(PolicyListener listener)
|
void |
removeRemoteEventListener(Locator l)
|
void |
removeSchema(java.lang.String dataName)
Remove the schema for the given data type from this repository. |
AgentDescription[] |
search(AgentDescription desc)
|
AgentDescription[] |
search(AgentDescription desc,
int maxResults)
|
void |
setGuardLoggingState(java.lang.Boolean logging,
java.lang.String historyMonitorID)
|
void |
setServiceProperties(ServiceProperties props)
|
java.util.List |
splitPolicy(java.lang.String splitPolicy,
java.lang.String secondPolicy)
Method splitting the controlled action of the selected policy one part that overlaps with the second policy and the other part which does not. |
void |
subclassesSetSynchronizationRequest(java.util.List<java.lang.String> myCurrentSubclassesClassesURL,
java.util.List<java.lang.Long> myCurrentSubclassesSetsTimeStamps)
Send a list of the current classes for which subclasses set are stored in the Guard and associated with them timestamps in the second list. |
void |
subpropertiesSetSynchronizationRequest(java.util.List<java.lang.String> myCurrentSubpropertiesPropertyURL,
java.util.List<java.lang.Long> myCurrentSubpropertiesSetsTimeStamps)
Send a list of the current properties for which subproperties set are stored in the Guard and associated with them timestamps in the second list. |
void |
superclassesSetSynchronizationRequest(java.util.List<java.lang.String> myCurrentSuperclassesClassesURL,
java.util.List<java.lang.Long> myCurrentSuperclassesSetsTimeStamps)
Send a list of the current classes for which superclasses set are stored in the Guard and associated with them timestamps in the second list. |
void |
superpropertiesSetSynchronizationRequest(java.util.List<java.lang.String> myCurrentSuperpropertiesPropertyURL,
java.util.List<java.lang.Long> myCurrentSuperpropertiesSetsTimeStamps)
Send a list of the current properties for which superproperties set are stored in the Guard and associated with them timestamps in the second list. |
boolean |
testTrue(java.lang.String statement)
Test if the KIF statemant is true according to the ontologies in the ontology repository. |
void |
updateInForceValue(java.lang.String policyId,
boolean inForce)
|
void |
updatePolicies(java.util.List<PolicyMsg> addedPolicies,
java.util.List<PolicyMsg> changedPolicies,
java.util.List<PolicyMsg> removedPolicies)
|
Methods inherited from class kaos.core.service.util.MethodCallProxy |
---|
getResult, getResult, notifyWaitersOfError, receiveMessage, sendMessage, sendRequestNoWait |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static OntologyService localOntologyInterfaces
protected ServiceProperties _serviceProps
Constructor Detail |
---|
public DirectoryServiceProxy()
Method Detail |
---|
public AgentDescription createAgentDescription()
public ServiceProperties getServiceProperties()
public void setServiceProperties(ServiceProperties props)
public void addEntityOntologicalType(java.lang.String entityNameAsString, java.lang.String typeName, java.lang.String damlDesc) throws DirectoryFailure
DirectoryFailure
public java.util.Vector getAllAgentsInDomain(java.lang.String domainName) throws DirectoryFailure
DomainDirectoryService
getAllAgentsInDomain
in interface DomainDirectoryService
domainName
- Name of the domain to query
DirectoryFailure
public java.util.List getAllGuardsInDirectory() throws DirectoryFailure
DomainDirectoryService
getAllGuardsInDirectory
in interface DomainDirectoryService
DirectoryFailure
public java.util.List getDomainDescriptionsForGuard(java.lang.String guardGUID) throws DirectoryFailure
DomainDirectoryService
getDomainDescriptionsForGuard
in interface DomainDirectoryService
guardGUID
- GUID of the guard registered in all domains, whose descriptions are requested
DirectoryFailure
public java.util.Vector getDomainNames() throws DirectoryFailure
DirectoryFailure
public java.util.Vector getGuardDescriptionsForEntity(java.lang.String entityID) throws DirectoryFailure
DirectoryFailure
public java.util.Set<java.lang.String> getValuesForProperty(java.lang.String property, java.lang.String subject) throws DirectoryFailure, QueryFailure
OntologyRepositoryService
getValuesForProperty
in interface OntologyService
getValuesForProperty
in interface OntologyRepositoryService
property
- the name of the property in the Jena formatsubject
- the name of the subject in the Jena format
DirectoryFailure
QueryFailure
- if reasoning failed.public void instancesSetSynchronizationRequest(java.util.List<java.lang.String> myCurrentInstancesClassesURL, java.util.List<java.lang.Long> myCurrentInstancesSetsTimeStamps) throws DirectoryFailure
GuardSynchronization
instancesSetSynchronizationRequest
in interface GuardSynchronization
myCurrentInstancesClassesURL
- The List of the current classes for which instances set are stored in the Guard identified by URLs.myCurrentInstancesSetsTimeStamps
- The List of the current instances set timestamps.
DirectoryFailure
public boolean isSynchronizationNeeded(java.lang.Long myLastUpdateTimeStamp) throws DirectoryFailure
GuardSynchronization
isSynchronizationNeeded
in interface GuardSynchronization
myLastUpdateTimeStamp
- The timestamp of the last update
DirectoryFailure
public void modify(AgentDescription desc) throws NotRegisteredException, DirectoryFailure
NotRegisteredException
DirectoryFailure
public void modifyEntityProperties(java.lang.String entityGUID, java.util.List properties) throws DirectoryFailure, NotRegisteredException, ModificationException
DirectoryFailure
NotRegisteredException
ModificationException
public void policiesSynchronizationRequest(java.util.List<java.lang.String> myCurrentPoliciesIds, java.util.List<java.lang.Long> myCurrentPoliciesTimeStamps) throws DirectoryFailure
GuardSynchronization
policiesSynchronizationRequest
in interface GuardSynchronization
myCurrentPoliciesIds
- The List of the current policies ids.myCurrentPoliciesTimeStamps
- The List of the current policies timestamps.
DirectoryFailure
public void register(AgentDescription desc) throws AlreadyRegisteredException, DirectoryFailure
AlreadyRegisteredException
DirectoryFailure
public void deregister(AgentDescription desc) throws NotRegisteredException, DirectoryFailure
NotRegisteredException
DirectoryFailure
public AgentDescription[] search(AgentDescription desc) throws SearchException, DirectoryFailure
SearchException
DirectoryFailure
public KAoSAgentDescription getAgentDescriptionForAgentID(java.lang.String agentID) throws SearchException, DirectoryFailure
SearchException
DirectoryFailure
public void subclassesSetSynchronizationRequest(java.util.List<java.lang.String> myCurrentSubclassesClassesURL, java.util.List<java.lang.Long> myCurrentSubclassesSetsTimeStamps) throws DirectoryFailure
GuardSynchronization
subclassesSetSynchronizationRequest
in interface GuardSynchronization
myCurrentSubclassesClassesURL
- The List of the current classes for which subclasses set are stored in the Guard identified by URLs.myCurrentSubclassesSetsTimeStamps
- The List of the current subclasses set timestamps.
DirectoryFailure
public void subpropertiesSetSynchronizationRequest(java.util.List<java.lang.String> myCurrentSubpropertiesPropertyURL, java.util.List<java.lang.Long> myCurrentSubpropertiesSetsTimeStamps) throws DirectoryFailure
GuardSynchronization
subpropertiesSetSynchronizationRequest
in interface GuardSynchronization
myCurrentSubpropertiesPropertyURL
- The List of the current properties for which subproperties set are stored in the Guard identified by URLs.myCurrentSubpropertiesSetsTimeStamps
- The List of the current subproperties set timestamps.
DirectoryFailure
public void superclassesSetSynchronizationRequest(java.util.List<java.lang.String> myCurrentSuperclassesClassesURL, java.util.List<java.lang.Long> myCurrentSuperclassesSetsTimeStamps) throws DirectoryFailure
GuardSynchronization
superclassesSetSynchronizationRequest
in interface GuardSynchronization
myCurrentSuperclassesClassesURL
- The List of the current classes for which superclasses set are stored in the Guard identified by URLs.myCurrentSuperclassesSetsTimeStamps
- The List of the current superclasses set timestamps.
DirectoryFailure
public void superpropertiesSetSynchronizationRequest(java.util.List<java.lang.String> myCurrentSuperpropertiesPropertyURL, java.util.List<java.lang.Long> myCurrentSuperpropertiesSetsTimeStamps) throws DirectoryFailure
GuardSynchronization
superpropertiesSetSynchronizationRequest
in interface GuardSynchronization
myCurrentSuperpropertiesPropertyURL
- The List of the current properties for which superproperties set are stored in the Guard identified by URLs.myCurrentSuperpropertiesSetsTimeStamps
- The List of the current superproperties set timestamps.
DirectoryFailure
public void addFilteredNamespace(java.lang.String namespace) throws DirectoryFailure
OntologyRepositoryService
addFilteredNamespace
in interface OntologyRepositoryService
namespace
- The name of the namespace
DirectoryFailure
public void addPolicies(java.util.List<PolicyMsg> policies) throws PolicyManagement.OntologyPolicyIncorrect, PoliciesHarmonizedException, PolicyManagement.PrecedenceUndeterminedException, DirectoryFailure
addPolicies
in interface PolicyManagement
PolicyManagement.OntologyPolicyIncorrect
PoliciesHarmonizedException
PolicyManagement.PrecedenceUndeterminedException
DirectoryFailure
public void addPolicy(PolicyMsg policy) throws PolicyManagement.OntologyPolicyIncorrect, PoliciesHarmonizedException, PolicyManagement.PrecedenceUndeterminedException, DirectoryFailure
addPolicy
in interface PolicyManagement
PolicyManagement.OntologyPolicyIncorrect
PoliciesHarmonizedException
PolicyManagement.PrecedenceUndeterminedException
DirectoryFailure
public void addPolicySet(PolicySetMsg policySet) throws DirectoryFailure
addPolicySet
in interface PolicySetDirectory
DirectoryFailure
public void addPolicySets(java.util.List<PolicySetMsg> policySets) throws DirectoryFailure
addPolicySets
in interface PolicySetDirectory
DirectoryFailure
public void addPolicy(java.lang.String owlPolicyDescription) throws DirectoryFailure, PolicyManagement.OntologyPolicyIncorrect, PoliciesHarmonizedException, PolicyManagement.PrecedenceUndeterminedException
addPolicy
in interface PolicyManagement
DirectoryFailure
PolicyManagement.OntologyPolicyIncorrect
PoliciesHarmonizedException
PolicyManagement.PrecedenceUndeterminedException
public void addPolicyUpdateListener(PolicyListener listener) throws ServiceFailure
addPolicyUpdateListener
in interface PolicyManagement
ServiceFailure
public void removePolicyUpdateListener(PolicyListener listener) throws ServiceFailure
removePolicyUpdateListener
in interface PolicyManagement
ServiceFailure
public void changePolicy(java.lang.String policyID, java.lang.String owlPolicyDescription) throws PolicyManagement.OntologyPolicyIncorrect, PolicyManagement.PrecedenceUndeterminedException, PoliciesHarmonizedException, ServiceFailure
changePolicy
in interface PolicyManagement
PolicyManagement.OntologyPolicyIncorrect
PolicyManagement.PrecedenceUndeterminedException
PoliciesHarmonizedException
ServiceFailure
public java.util.List<PolicyMsg> findPolicies(java.lang.String actionType, java.util.Map<java.util.List<java.lang.String>,java.lang.String> policyRestrictions) throws ServiceFailure
findPolicies
in interface PolicyManagement
ServiceFailure
public java.util.List<PolicyMsg> getAllPoliciesFor(java.lang.String conceptId) throws ServiceFailure
getAllPoliciesFor
in interface PolicyManagement
ServiceFailure
public void removeAllPolicies(java.lang.String policyDBManagerID) throws DirectoryFailure
DirectoryFailure
public void removePolicy(PolicyMsg policy) throws PolicyManagement.OntologyPolicyIncorrect, ServiceFailure
removePolicy
in interface PolicyManagement
PolicyManagement.OntologyPolicyIncorrect
ServiceFailure
public void removePolicy(java.lang.String policyID) throws ServiceFailure
removePolicy
in interface PolicyManagement
ServiceFailure
public void removePolicies(java.util.List<PolicyMsg> policies) throws PolicyManagement.OntologyPolicyIncorrect, ServiceFailure
removePolicies
in interface PolicyManagement
PolicyManagement.OntologyPolicyIncorrect
ServiceFailure
public boolean areClassesDisjoint(java.lang.String firstClass, java.lang.String secondClass) throws QueryFailure, DirectoryFailure
OntologyRepositoryService
areClassesDisjoint
in interface OntologyRepositoryService
firstClass
- the name of the first classsecondClass
- the name of the second class
QueryFailure
- if reasoning failed.
DirectoryFailure
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
java.lang.Exception
public void changePolicies(java.util.List<PolicyMsg> policies) throws PolicyManagement.OntologyPolicyIncorrect, PoliciesHarmonizedException, PolicyManagement.PrecedenceUndeterminedException, DirectoryFailure
changePolicies
in interface PolicyManagement
PolicyManagement.OntologyPolicyIncorrect
PoliciesHarmonizedException
PolicyManagement.PrecedenceUndeterminedException
DirectoryFailure
public void changePolicy(PolicyMsg policy) throws PolicyManagement.OntologyPolicyIncorrect, PoliciesHarmonizedException, PolicyManagement.PrecedenceUndeterminedException, DirectoryFailure
changePolicy
in interface PolicyManagement
PolicyManagement.OntologyPolicyIncorrect
PoliciesHarmonizedException
PolicyManagement.PrecedenceUndeterminedException
DirectoryFailure
public void changePolicySet(PolicySetMsg policySet) throws DirectoryFailure
changePolicySet
in interface PolicySetDirectory
DirectoryFailure
public void changePolicySets(java.util.List<PolicySetMsg> policySets) throws DirectoryFailure
changePolicySets
in interface PolicySetDirectory
DirectoryFailure
public void changedPriority(java.lang.String policyId, int newPriority) throws DirectoryFailure
PolicyModification
changedPriority
in interface PolicyModification
policyId
- id of the policynewPriority
- new priority of the policy
DirectoryFailure
public void updateInForceValue(java.lang.String policyId, boolean inForce) throws DirectoryFailure
DirectoryFailure
public void checkDeepPermission(ActionInstanceDescription aid, PolicyDecisionObserver observer) throws java.lang.NullPointerException, ServiceFailure, KAoSSecurityException
checkDeepPermission
in interface PolicyChecking
java.lang.NullPointerException
ServiceFailure
KAoSSecurityException
public void declareInstance(java.lang.String instanceName, java.lang.String className) throws UnknownConceptException, DirectoryFailure
UnknownConceptException
DirectoryFailure
public void deleteAllLogs(java.lang.String historyMonitorID) throws DirectoryFailure
DirectoryFailure
public java.util.Vector deleteLogsforActionType(java.lang.String actionType, java.lang.String historyMonitorID) throws DirectoryFailure
DirectoryFailure
public java.util.Vector deleteLogsforActor(java.lang.String actorID, java.lang.String historyMonitorID) throws DirectoryFailure
DirectoryFailure
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
DirectoryFailure
public java.util.List findConflictingPolicies(java.lang.String policyId) throws DirectoryFailure
PolicyAnalyzes
findConflictingPolicies
in interface PolicyAnalyzes
policyId
- id of the policy
DirectoryFailure
public java.util.List findPoliciesMadeRedundant(java.lang.String policyId) throws DirectoryFailure
PolicyAnalyzes
findPoliciesMadeRedundant
in interface PolicyAnalyzes
policyId
- id of the policy
DirectoryFailure
public java.util.List findPoliciesMakingRedundant(java.lang.String policyId) throws DirectoryFailure
PolicyAnalyzes
findPoliciesMakingRedundant
in interface PolicyAnalyzes
policyId
- id of the policy
DirectoryFailure
public java.util.Vector findPolicyDecision(ActionInstanceDescription aid, PolicyDecisionObserver observer) throws KAoSSecurityException, java.lang.NullPointerException, ServiceFailure
findPolicyDecision
in interface PolicyChecking
KAoSSecurityException
java.lang.NullPointerException
ServiceFailure
public java.util.Vector getAllDomainsInDirectory() throws DirectoryFailure
DomainDirectoryService
getAllDomainsInDirectory
in interface DomainDirectoryService
DirectoryFailure
public java.util.List getAllLogs(java.lang.String historyMonitorID) throws DirectoryFailure
DirectoryFailure
public java.util.Set getAllNamespaces() throws DirectoryFailure
OntologyRepositoryService
getAllNamespaces
in interface OntologyRepositoryService
DirectoryFailure
public java.util.Vector getAllPolicies(java.lang.String policyDBManagerID) throws DirectoryFailure
DirectoryFailure
public java.util.List getAllSchema() throws DirectoryFailure
XMLRepository
getAllSchema
in interface XMLRepository
DirectoryFailure
public java.util.Vector getAllowableValuesForActionProperties(ActionInstanceDescription actionDesc, PolicyDecisionObserver observer) throws ServiceFailure
getAllowableValuesForActionProperties
in interface PolicyAdvice
ServiceFailure
public java.util.Vector getAllowableValuesForActionProperties(java.util.Vector propertyNames, ActionInstanceDescription actionDesc, boolean tight, PolicyDecisionObserver observer) throws ServiceFailure
getAllowableValuesForActionProperties
in interface PolicyAdvice
ServiceFailure
public java.util.Set getAllowableValuesForActionProperty(java.lang.String origPropertyName, ActionInstanceDescription origActionDesc, java.util.Set allTargetValues, boolean tight, PolicyDecisionObserver observer) throws ServiceFailure
getAllowableValuesForActionProperty
in interface PolicyAdvice
ServiceFailure
public java.util.Set getClassesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException, DirectoryFailure
OntologyRepositoryService
getClassesDefInNamespace
in interface OntologyRepositoryService
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknown for the ontology repository
DirectoryFailure
public java.lang.Boolean getComponentEnabledStatus(java.lang.String repType, java.lang.String associatedOntType, java.lang.String guardRepMgrID) throws java.lang.Exception
java.lang.Exception
public SerializableOntModelImpl getConstructedOntologyStructure(java.lang.String structureId) throws OntologyRepository.ReasoningException, UnknownConceptException, java.io.IOException, DirectoryFailure
OntologyRepositoryService
getConstructedOntologyStructure
in interface OntologyService
getConstructedOntologyStructure
in interface OntologyRepositoryService
structureId
- ontology structure id
OntologyRepository.ReasoningException
- or IOException when loading of the ontology failed.
UnknownConceptException
java.io.IOException
DirectoryFailure
public java.util.Map getDomainStructure(java.lang.String domainName) throws DirectoryFailure
DomainDirectoryService
getDomainStructure
in interface DomainDirectoryService
domainName
- name of the domain to map
DirectoryFailure
public java.util.Set getFilteredNamespaces() throws DirectoryFailure
OntologyRepositoryService
getFilteredNamespaces
in interface OntologyRepositoryService
DirectoryFailure
public java.util.Vector getForbiddenValuesForActionProperty(java.lang.String origPropertyName, ActionInstanceDescription origActionDesc, PolicyDecisionObserver observer) throws ServiceFailure
getForbiddenValuesForActionProperty
in interface PolicyAdvice
ServiceFailure
public java.lang.String getGuardStateFor(java.lang.String guardID) throws DirectoryFailure
DirectoryFailure
public java.util.Set getInstancesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException, DirectoryFailure
OntologyRepositoryService
getInstancesDefInNamespace
in interface OntologyRepositoryService
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknown for the ontology repository
DirectoryFailure
public java.util.Set getListOfLoadedOntologies() throws DirectoryFailure
OntologyService
getListOfLoadedOntologies
in interface OntologyService
DirectoryFailure
public java.util.Vector getLogsforActionType(java.lang.String actionType, java.lang.String historyMonitorID) throws DirectoryFailure
DirectoryFailure
public java.util.Vector getLogsforActor(java.lang.String actorID, java.lang.String historyMonitorID) throws DirectoryFailure
DirectoryFailure
public java.util.Set getNamspacesImportedByNamespace(java.lang.String namespaceName) throws UnknownNamespaceException, DirectoryFailure
OntologyRepositoryService
getNamspacesImportedByNamespace
in interface OntologyRepositoryService
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknown for the ontology repository
DirectoryFailure
public java.util.List<ActionInstanceDescription> getObligationsForTriggerCondition(ActionInstanceDescription triggerAID, PolicyDecisionObserver observer) throws ServiceFailure
getObligationsForTriggerCondition
in interface PolicyChecking
ServiceFailure
public java.util.Map getPoliciesByEntities() throws DirectoryFailure
getPoliciesByEntities
in interface PolicyManagement
DirectoryFailure
public PolicyInformation getPolicyInformation(java.lang.String policyID, java.lang.String policyDBManagerID) throws DirectoryFailure
DirectoryFailure
public PolicySetMsg getPolicySet(java.lang.String policySetId) throws DirectoryFailure
getPolicySet
in interface PolicySetDirectory
DirectoryFailure
public java.util.List getPolicySets() throws DirectoryFailure
PolicySetDirectory
getPolicySets
in interface PolicySetDirectory
DirectoryFailure
public java.lang.Integer getPolicyUpdateCount() throws ServiceFailure
getPolicyUpdateCount
in interface PolicyAdvice
ServiceFailure
public java.util.Vector getPropertiesApplicableTo(java.lang.String className) throws QueryFailure, UnknownConceptException, DirectoryFailure
OntologyRepositoryService
getPropertiesApplicableTo
in interface OntologyService
getPropertiesApplicableTo
in interface OntologyRepositoryService
className
- the name of the class
UnknownConceptException
- if className is unknow for the ontology repository
QueryFailure
DirectoryFailure
public java.util.Set getPropertiesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException, DirectoryFailure
OntologyRepositoryService
getPropertiesDefInNamespace
in interface OntologyRepositoryService
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknown for the ontology repository
DirectoryFailure
public java.lang.Object invokeKAoSExtensionComponentMethod(java.lang.String repType, java.lang.String associatedOntType, java.lang.String methodName, java.util.Vector args, java.lang.String guardId) throws java.lang.Exception
java.lang.Exception
public java.util.Hashtable getRepositoryTableInformation(java.lang.String repType, java.lang.String guardRepMgrID) throws java.lang.Exception
java.lang.Exception
public java.util.Set getResourcesWithValueForProperty(java.lang.String property, java.lang.String value) throws QueryFailure, DirectoryFailure
OntologyRepositoryService
getResourcesWithValueForProperty
in interface OntologyRepositoryService
property
- the name of the property in the Jena formatvalue
- the value as a string in th Jena format
QueryFailure
- if reasoning failed.
DirectoryFailure
public java.util.Vector getRootDomains() throws DirectoryFailure
DomainDirectoryService
getRootDomains
in interface DomainDirectoryService
DirectoryFailure
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
DirectoryFailure
public java.util.List harmonizePolicy(java.lang.String harmonizedPolicy, java.lang.String harmonizingPolicy) throws DirectoryFailure
PolicyModification
harmonizePolicy
in interface PolicyModification
harmonizedPolicy
- id of the policy to be harmonized.harmonizingPolicy
- id of the policy harmonizing the first policy
DirectoryFailure
public boolean isEntityInDomain(java.lang.String domainName, java.lang.String id)
DomainDirectoryService
isEntityInDomain
in interface DomainDirectoryService
domainName
- The name of the domain to queryid
- The id of an entity to be searched in this domain's directory.
public boolean isFullyOverlappedBySecondPolicy(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws DirectoryFailure, PolicyAnalyzes.PriorityConditionNotMet
PolicyAnalyzes
isFullyOverlappedBySecondPolicy
in interface PolicyAnalyzes
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
DirectoryFailure
PolicyAnalyzes.PriorityConditionNotMet
public boolean isFullyOverlappedByUnionOfPolicies(java.lang.String firstPolicyId, java.util.List<java.lang.String> listOfPolicies) throws DirectoryFailure, PolicyAnalyzes.PriorityConditionNotMet
PolicyAnalyzes
isFullyOverlappedByUnionOfPolicies
in interface PolicyAnalyzes
firstPolicyId
- id of the policylistOfPolicies
- list of policies
DirectoryFailure
PolicyAnalyzes.PriorityConditionNotMet
public java.lang.Boolean isGuardLoggingActive(java.lang.String historyMonitorID) throws DirectoryFailure
DirectoryFailure
public boolean isMadeFullyRedundantByPolicyUnion(java.lang.String firstPolicyId, java.util.List<java.lang.String> listOfPolicies) throws DirectoryFailure, PolicyAnalyzes.PriorityConditionNotMet
PolicyAnalyzes
isMadeFullyRedundantByPolicyUnion
in interface PolicyAnalyzes
firstPolicyId
- id of the policylistOfPolicies
- list of policies
DirectoryFailure
PolicyAnalyzes.PriorityConditionNotMet
public boolean isMadeFullyRedundantBySecond(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws DirectoryFailure, PolicyAnalyzes.PriorityConditionNotMet
PolicyAnalyzes
isMadeFullyRedundantBySecond
in interface PolicyAnalyzes
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
DirectoryFailure
PolicyAnalyzes.PriorityConditionNotMet
public boolean isMadeParitallyRedundantBySecond(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws DirectoryFailure, PolicyAnalyzes.PriorityConditionNotMet
PolicyAnalyzes
isMadeParitallyRedundantBySecond
in interface PolicyAnalyzes
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
DirectoryFailure
PolicyAnalyzes.PriorityConditionNotMet
public boolean isPartiallyOverlappedBySecondPolicy(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws DirectoryFailure, PolicyAnalyzes.PriorityConditionNotMet
PolicyAnalyzes
isPartiallyOverlappedBySecondPolicy
in interface PolicyAnalyzes
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
DirectoryFailure
PolicyAnalyzes.PriorityConditionNotMet
public boolean isPolicyInConflict(java.lang.String policyId) throws DirectoryFailure
isPolicyInConflict
in interface PolicyAnalyzes
DirectoryFailure
public boolean isPolicyMakingRedundantSomeOtherPolicy(java.lang.String policyId) throws DirectoryFailure
PolicyAnalyzes
isPolicyMakingRedundantSomeOtherPolicy
in interface PolicyAnalyzes
policyId
- id of the policy
DirectoryFailure
public boolean isPolicyRedundant(java.lang.String policyId) throws DirectoryFailure
PolicyAnalyzes
isPolicyRedundant
in interface PolicyAnalyzes
policyId
- id of the policy
DirectoryFailure
public void loadSchema(java.lang.String fileName) throws DirectoryFailure
XMLRepository
loadSchema
in interface XMLRepository
fileName
- the name of the file or the url that stores schema definitions
DirectoryFailure
public void putConstructedOntologyStructures(java.util.List<SerializableOntModelImpl> ontologyStructureList) throws OntologyRepository.ReasoningException, java.io.IOException, DirectoryFailure
OntologyRepositoryService
putConstructedOntologyStructures
in interface OntologyRepositoryService
ontologyStructureList
- a list containing SerializableOntModelImpl objects.
OntologyRepository.ReasoningException
java.io.IOException
DirectoryFailure
public void putMultipleSchema(java.util.List<XMLSchemaContainer> schemaList) throws DirectoryFailure
XMLRepository
putMultipleSchema
in interface XMLRepository
schemaList
- a list containing XMLSchemaContainer objects.
DirectoryFailure
public void putSchema(java.lang.String dataName, java.lang.String dataSchema) throws DirectoryFailure
OntologyService
putSchema
in interface OntologyService
putSchema
in interface XMLRepository
dataName
- uri name of the concept
DirectoryFailure
public void removeExecEnv(java.lang.String execEnvID)
DomainDirectoryService
removeExecEnv
in interface DomainDirectoryService
public void removeFilteredNamespace(java.lang.String namespace) throws DirectoryFailure
OntologyRepositoryService
removeFilteredNamespace
in interface OntologyRepositoryService
namespace
- The name of the namespace
DirectoryFailure
public PolicyInformation removePolicyInformation(java.lang.String policyID, java.lang.String policyDBManagerID) throws DirectoryFailure
DirectoryFailure
public void removePolicySet(PolicySetMsg policySet) throws DirectoryFailure
removePolicySet
in interface PolicySetDirectory
DirectoryFailure
public void removePolicySets(java.util.List<PolicySetMsg> policySets) throws DirectoryFailure
removePolicySets
in interface PolicySetDirectory
DirectoryFailure
public void removeSchema(java.lang.String dataName) throws DirectoryFailure
XMLRepository
removeSchema
in interface XMLRepository
dataName
- the name of the data type to be removed.
DirectoryFailure
public void setGuardLoggingState(java.lang.Boolean logging, java.lang.String historyMonitorID) throws DirectoryFailure
DirectoryFailure
public java.util.List splitPolicy(java.lang.String splitPolicy, java.lang.String secondPolicy) throws DirectoryFailure
PolicyModification
splitPolicy
in interface PolicyModification
splitPolicy
- id of the policy to be split.secondPolicy
- id of the policy splitting the first policy
DirectoryFailure
public java.lang.String analyzeWorkflow(java.lang.String owlsWorkflow) throws KAoSSecurityException, java.lang.NullPointerException, ServiceFailure
KAoSSecurityException
java.lang.NullPointerException
ServiceFailure
public java.lang.String analyzeWorkflow(java.net.URL owlsWorkflow) throws KAoSSecurityException, java.lang.NullPointerException, ServiceFailure
KAoSSecurityException
java.lang.NullPointerException
ServiceFailure
public java.util.Set askQuery(java.lang.String variableName, java.lang.String multiplyVariablesQuery) throws QueryFailure, DirectoryFailure
OntologyRepositoryService
askQuery
in interface OntologyRepositoryService
variableName
- the name of the selected variablemultiplyVariablesQuery
- the query
QueryFailure
- if reasoning failed.
DirectoryFailure
public void checkPermission(ActionInstanceDescription aid, PolicyDecisionObserver observer) throws KAoSSecurityException, java.lang.NullPointerException, ServiceFailure
checkPermission
in interface PolicyChecking
KAoSSecurityException
java.lang.NullPointerException
ServiceFailure
public java.util.Set<ActionClassDescription> getActions(java.lang.String forActor) throws UnknownConceptException, DirectoryFailure
QueryKAoSOntologyService
getActions
in interface QueryKAoSOntologyService
forActor
- The name of the Actor class or instance
UnknownConceptException
- if forActor is unknown for the ontology repository
DirectoryFailure
public java.util.List getAllAgentsInDirectory() throws DirectoryFailure
DomainDirectoryService
getAllAgentsInDirectory
in interface DomainDirectoryService
DirectoryFailure
public java.util.Set getClassesOfActors(java.lang.String baseActorClass) throws UnknownConceptException, DirectoryFailure
QueryKAoSOntologyService
getClassesOfActors
in interface QueryKAoSOntologyService
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
UnknownConceptException
- if baseActorClass is unknown for the ontology repository
DirectoryFailure
public java.util.Set getClassesOfActorsCapableOfPerformingActions(java.lang.String actionClass) throws UnknownConceptException, DirectoryFailure
QueryKAoSOntologyService
getClassesOfActorsCapableOfPerformingActions
in interface QueryKAoSOntologyService
actionClass
- The name of the Action class
UnknownConceptException
- if actionClass is unknown for the ontology repository
DirectoryFailure
public java.util.Set getClassesOfGroups(java.lang.String baseGroupClass) throws UnknownConceptException, DirectoryFailure
QueryKAoSOntologyService
getClassesOfGroups
in interface QueryKAoSOntologyService
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 unknown for the ontology repository
DirectoryFailure
public java.util.Set getClassesOfPlaces(java.lang.String basePlaceClass) throws UnknownConceptException, DirectoryFailure
QueryKAoSOntologyService
getClassesOfPlaces
in interface QueryKAoSOntologyService
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 repository
DirectoryFailure
public java.util.Set getClassesOfTargets(java.lang.String baseTargetClass) throws UnknownConceptException, DirectoryFailure
QueryKAoSOntologyService
getClassesOfTargets
in interface QueryKAoSOntologyService
baseTargetClass
- The name of the targets (Actor or Entity) class which the return classes have to be a subclass of
UnknownConceptException
- if baseTargetClass is unknown for the ontology repository
DirectoryFailure
public java.util.List getConstructedOntologyStructures() throws DirectoryFailure
OntologyRepositoryService
getConstructedOntologyStructures
in interface OntologyService
getConstructedOntologyStructures
in interface OntologyRepositoryService
DirectoryFailure
public void removeConstructedOntologyStructure(java.lang.String structureId) throws DirectoryFailure
OntologyService
removeConstructedOntologyStructure
in interface OntologyService
DirectoryFailure
public void removeConstructedOntologyStructures(java.util.List<java.lang.String> structureIds) throws DirectoryFailure
OntologyService
removeConstructedOntologyStructures
in interface OntologyService
DirectoryFailure
public DomainDescription getDomainDescription(java.lang.String domainName) throws DirectoryFailure
DomainDirectoryService
getDomainDescription
in interface DomainDirectoryService
domainName
- the name of the domain
DirectoryFailure
public java.util.Set getIndividualActors(java.lang.String baseActorClass) throws UnknownConceptException, DirectoryFailure
QueryKAoSOntologyService
getIndividualActors
in interface QueryKAoSOntologyService
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
UnknownConceptException
- if baseActorClass is unknown for the ontology repository
DirectoryFailure
public java.util.Set getIndividualGroups(java.lang.String baseGroupClass) throws UnknownConceptException, DirectoryFailure
QueryKAoSOntologyService
getIndividualGroups
in interface QueryKAoSOntologyService
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 unknown for the ontology repository
DirectoryFailure
public java.util.Set getIndividualPlaces(java.lang.String basePlaceClass) throws UnknownConceptException, DirectoryFailure
QueryKAoSOntologyService
getIndividualPlaces
in interface QueryKAoSOntologyService
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 unknown for the ontology repository
DirectoryFailure
public java.util.Set getIndividualTargets(java.lang.String baseTargetClass) throws UnknownConceptException, DirectoryFailure
QueryKAoSOntologyService
getIndividualTargets
in interface QueryKAoSOntologyService
baseTargetClass
- The name of the targets (Actor or Entity) class which the return classes have to be a subclass of
UnknownConceptException
- if baseTargetClass is unknown for the ontology repository
DirectoryFailure
public java.util.Set getInstancesOf(java.lang.String conceptName) throws UnknownConceptException, DirectoryFailure
OntologyRepositoryService
getInstancesOf
in interface OntologyService
getInstancesOf
in interface OntologyRepositoryService
conceptName
- The name of the concept in the Jena format
UnknownConceptException
- if conceptName is unknown for the ontology repository
DirectoryFailure
public java.util.Set getOntologyDefinitionForConcept(java.lang.String conceptName) throws DirectoryFailure
OntologyService
getOntologyDefinitionForConcept
in interface OntologyService
conceptName
- A short name of concept, e.g. "Actor"
DirectoryFailure
public java.util.List getPolicies() throws DirectoryFailure
getPolicies
in interface PolicyManagement
DirectoryFailure
public java.util.Vector getDirectPoliciesFor(java.lang.String entityId) throws DirectoryFailure
getDirectPoliciesFor
in interface PolicyManagement
DirectoryFailure
public PolicyMsg getPolicy(java.lang.String policyId) throws DirectoryFailure
getPolicy
in interface PolicyManagement
DirectoryFailure
public java.lang.String getRangeOnPropertyForClass(java.lang.String className, java.lang.String propertyName) throws UnknownConceptException, QueryFailure, DirectoryFailure
OntologyRepositoryService
getRangeOnPropertyForClass
in interface OntologyService
getRangeOnPropertyForClass
in interface OntologyRepositoryService
className
- the name of the classpropertyName
- the name of the property
UnknownConceptException
- if reasoning failed.
QueryFailure
DirectoryFailure
public java.util.List<java.lang.String> getSchema(java.lang.String dataName) throws DirectoryFailure
OntologyService
getSchema
in interface OntologyService
getSchema
in interface XMLRepository
dataName
- uri name of the concept
DirectoryFailure
public java.util.Set getSubClassesOf(java.lang.String className) throws UnknownConceptException, DirectoryFailure
OntologyRepositoryService
getSubClassesOf
in interface OntologyService
getSubClassesOf
in interface OntologyRepositoryService
className
- The name of the class in Jena format
UnknownConceptException
- if className is unknown for the ontology repository
DirectoryFailure
public java.util.Set getImmediateSubClassesOf(java.lang.String className) throws UnknownConceptException, DirectoryFailure
OntologyRepositoryService
getImmediateSubClassesOf
in interface OntologyService
getImmediateSubClassesOf
in interface OntologyRepositoryService
className
- The name of the class in Jena format
UnknownConceptException
- if className is unknown for the ontology repository
DirectoryFailure
public java.util.Set getSubPropertiesOf(java.lang.String propertyName) throws UnknownConceptException, DirectoryFailure
OntologyService
getSubPropertiesOf
in interface OntologyService
propertyName
- The name of the property
UnknownConceptException
DirectoryFailure
public java.util.Vector getSubdomains(java.lang.String domainName) throws DirectoryFailure
DomainDirectoryService
getSubdomains
in interface DomainDirectoryService
DirectoryFailure
public java.util.Set getSuperClassesOf(java.lang.String className) throws UnknownConceptException, DirectoryFailure
OntologyRepositoryService
getSuperClassesOf
in interface OntologyRepositoryService
className
- The name of the class in the Jena format
UnknownConceptException
- if className is unknown for the ontology repository
DirectoryFailure
public java.util.Set getSuperPropertiesOf(java.lang.String propertyName) throws UnknownConceptException, DirectoryFailure
OntologyRepositoryService
getSuperPropertiesOf
in interface OntologyService
getSuperPropertiesOf
in interface OntologyRepositoryService
propertyName
- The name of the property in Jena format
UnknownConceptException
DirectoryFailure
public java.util.Vector initiateActionClassTargets(java.lang.String actionClassName, java.lang.String actorClassName) throws DirectoryFailure
OntologyService
initiateActionClassTargets
in interface OntologyService
actionClassName
- the name of the action class performingactorClassName
- the name of the actor class performing the action
DirectoryFailure
public java.lang.String getUniqueValueForProperty(java.lang.String property, java.lang.String subject) throws QueryFailure, DirectoryFailure
OntologyRepositoryService
getUniqueValueForProperty
in interface OntologyRepositoryService
property
- the name of the property in the Jena formatsubject
- the name of the subject in the Jena format
QueryFailure
- if reasoning failed.
DirectoryFailure
public java.util.Set getUltimateOntologyTypesOfIndividual(java.lang.String individualName) throws DirectoryFailure, UnknownConceptException
OntologyRepositoryService
getUltimateOntologyTypesOfIndividual
in interface OntologyService
getUltimateOntologyTypesOfIndividual
in interface OntologyRepositoryService
individualName
- the name of the individual
DirectoryFailure
UnknownConceptException
- if concept unknown or any problem with JTP approachedpublic void loadOntology(SerializableOntModelImpl myDAMLModel, boolean recursiveLoad) throws OntologyRepository.ReasoningException, java.io.IOException
OntologyRepositoryService
loadOntology
in interface OntologyService
loadOntology
in interface OntologyRepositoryService
myDAMLModel
- The object of type SerializableOntModelImpl containing the added ontologyrecursiveLoad
- Indicates if the imported ontologies (by the ontology contained in myOntModel) should also be recursively loaded.
OntologyRepository.ReasoningException
java.io.IOException
public void loadOntologies(java.util.List<SerializableOntModelImpl> myDAMLModels, boolean recursiveLoad) throws OntologyRepository.ReasoningException, java.io.IOException
OntologyRepositoryService
loadOntologies
in interface OntologyService
loadOntologies
in interface OntologyRepositoryService
recursiveLoad
- Indicates if the imported ontologies (by the ontology contained in myOntModel) should also be recursively loaded.
OntologyRepository.ReasoningException
java.io.IOException
public void loadOntology(java.lang.String myURL, boolean recursiveLoad) throws OntologyRepository.ReasoningException, java.io.IOException, DirectoryFailure
OntologyRepositoryService
loadOntology
in interface OntologyService
loadOntology
in interface OntologyRepositoryService
myURL
- The url to the ontologyrecursiveLoad
- Indicates if the imported ontologies (by the ontology depicted by myURL) should also be recursively loaded.
OntologyRepository.ReasoningException
- when loading of the ontology failed.
java.io.IOException
DirectoryFailure
public void loadOntology(java.lang.String loadedOWL) throws OntologyRepository.ReasoningException, DirectoryFailure
OntologyService
loadOntology
in interface OntologyService
loadedOWL
- string containing a syntactically correctly OWL
OntologyRepository.ReasoningException
- when loading of the ontology failed.
DirectoryFailure
public AgentDescription[] search(AgentDescription desc, int maxResults) throws SearchException, DirectoryFailure
SearchException
DirectoryFailure
public boolean testTrue(java.lang.String statement) throws QueryFailure, DirectoryFailure
OntologyRepositoryService
testTrue
in interface OntologyService
testTrue
in interface OntologyRepositoryService
statement
- to test
QueryFailure
- if reasoning failed.
DirectoryFailure
public void updatePolicies(java.util.List<PolicyMsg> addedPolicies, java.util.List<PolicyMsg> changedPolicies, java.util.List<PolicyMsg> removedPolicies) throws PolicyManagement.OntologyPolicyIncorrect, PoliciesHarmonizedException, PolicyManagement.PrecedenceUndeterminedException, DirectoryFailure
updatePolicies
in interface PolicyManagement
PolicyManagement.OntologyPolicyIncorrect
PoliciesHarmonizedException
PolicyManagement.PrecedenceUndeterminedException
DirectoryFailure
public void addAuthenticationObject(KAoSAuthenticationObject kao) throws DirectoryFailure
AuthenticationInterface
addAuthenticationObject
in interface AuthenticationInterface
kao
- the authentication object
DirectoryFailure
public void editAuthenticationObject(KAoSAuthenticationObject kao) throws DirectoryFailure
AuthenticationInterface
editAuthenticationObject
in interface AuthenticationInterface
kao
- the authentication object
DirectoryFailure
public void removeAuthenticationObject(KAoSAuthenticationObject kao) throws DirectoryFailure
AuthenticationInterface
removeAuthenticationObject
in interface AuthenticationInterface
kao
- the authentication object
DirectoryFailure
public boolean isUsernameRegistered(java.lang.String userid, java.lang.String password) throws DirectoryFailure
AuthenticationInterface
isUsernameRegistered
in interface AuthenticationInterface
userid
- the user namepassword
- the user password
DirectoryFailure
public java.util.Hashtable getAllAuthenticationObjects() throws DirectoryFailure
AuthenticationInterface
getAllAuthenticationObjects
in interface AuthenticationInterface
DirectoryFailure
public void addDefinedPolicyTemplate(PolicyTemplate definedTemplate) throws DirectoryFailure
addDefinedPolicyTemplate
in interface DefinedPolicyTemplateInterface
DirectoryFailure
public void editDefinedPolicyTemplate(PolicyTemplate definedTemplate) throws DirectoryFailure
editDefinedPolicyTemplate
in interface DefinedPolicyTemplateInterface
DirectoryFailure
public void removeDefinedPolicyTemplate(PolicyTemplate definedTemplate) throws DirectoryFailure
removeDefinedPolicyTemplate
in interface DefinedPolicyTemplateInterface
DirectoryFailure
public java.util.Map<java.lang.String,PolicyTemplate> getAllDefinedPolicyTemplate() throws DirectoryFailure
getAllDefinedPolicyTemplate
in interface DefinedPolicyTemplateInterface
DirectoryFailure
protected MethodCallRequestMsg createMessageToSend(AgentDescription adesc, java.lang.String requestedOperation, int parameterValue)
protected AgentDescription[] checkSearchResult(MethodCallResultMsg result) throws SearchException, DirectoryFailure
SearchException
DirectoryFailure
protected void checkRegisterResult(MethodCallResultMsg result, AgentDescription desc) throws AlreadyRegisteredException, DirectoryFailure
AlreadyRegisteredException
DirectoryFailure
protected void checkDeregisterResult(MethodCallResultMsg result, AgentDescription desc) throws NotRegisteredException, DirectoryFailure
NotRegisteredException
DirectoryFailure
protected void checkModifyResult(MethodCallResultMsg result) throws NotRegisteredException, DirectoryFailure
NotRegisteredException
DirectoryFailure
protected java.lang.Object invokeMethod(java.lang.String methodName, java.util.Vector args) throws java.lang.Exception
java.lang.Exception
public void init(MsgSender msgSender)
init
in class MethodCallProxy
public void addEventListener(DirectoryEventListener listener) throws DirectoryFailure
addEventListener
in interface DirectoryEventNotifier
DirectoryFailure
public void addRemoteEventListener(Locator l) throws DirectoryFailure
addRemoteEventListener
in interface DirectoryEventNotifier
DirectoryFailure
public void removeEventListener(DirectoryEventListener listener) throws DirectoryFailure
removeEventListener
in interface DirectoryEventNotifier
DirectoryFailure
public void removeRemoteEventListener(Locator l) throws DirectoryFailure
removeRemoteEventListener
in interface DirectoryEventNotifier
DirectoryFailure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |