|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkaos.core.service.directory.KAoSDirectoryService
public class KAoSDirectoryService
$Revision: 1.305 $
Nested Class Summary | |
---|---|
static class |
KAoSDirectoryService.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 AgentName |
_agentName
|
protected static boolean |
_allowForReregistration
|
protected boolean |
_allowReregistration
|
protected java.util.Map<java.lang.String,KAoSAuthenticationObject> |
_authenticationDatabase
|
protected java.util.Map<java.lang.String,PolicyTemplate> |
_definedTemplateObjectTable
|
protected static boolean |
_distributed
|
protected static boolean |
_guarded
|
protected boolean |
_guardRegistered
|
protected static boolean |
_localServlet
|
protected Locator |
_locator
|
protected static boolean |
_logDomainEvents
|
protected MessageReceiver |
_messageReceiver
|
protected MessageTransportService |
_mts
|
protected static java.lang.String |
_name
|
protected static java.lang.String |
_nameOfTransport
|
protected java.lang.String |
_nickName
|
protected java.util.Hashtable |
_observers
|
protected static java.lang.String |
_subscribeTo
|
protected TransportSystem |
_transportSystem
|
protected static java.lang.String |
_useForJTP
|
static java.lang.String |
AGENTS
|
static java.lang.String |
CONTAINERS
|
static java.lang.String |
DOMAIN_NAME
|
static java.lang.String |
FORWARDED_KEY
|
static java.lang.String |
GUARDED_ACTION_SUBCLASSES_OF_INTEREST
|
static java.lang.String |
GUARDED_AGENTS
|
static java.lang.String |
GUARDED_CLASS_RANGES_OF_INTEREST
|
static java.lang.String |
GUARDED_CONTAINERS
|
static java.lang.String |
GUARDED_ENTITIES
|
static java.lang.String |
GUARDED_EXEC_ENVS
|
static java.lang.String |
GUARDED_HOSTS
|
static OntologyService |
localOntologyInterfaces
|
static java.lang.String |
LOCATOR_NAME
|
static java.lang.String |
MY_DESCRIPTION
|
static java.lang.String |
MY_GUARDS
|
static java.lang.String |
REGISTRATION_REPLACE_FLAG
|
static java.lang.String |
RUNNING_ENTITIES
|
static java.lang.String |
UNGUARDED_AGENTS
|
static java.lang.String |
UNGUARDED_CONTAINERS
|
static java.lang.String |
UNGUARDED_EXEC_ENVS
|
static java.lang.String |
UNGUARDED_HOSTS
|
Constructor Summary | |
---|---|
KAoSDirectoryService()
|
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 |
addEventListener(DomainManagerEventListener listener)
Add an event listener to the collection of objects to be notified by the Domain Manager about a domain event. |
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)
|
void |
allowReregistration(boolean allow)
|
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. |
protected Locator |
bindToMessageTransportService(MessageTransportService mts)
|
protected void |
bindToMTS()
|
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 |
checkAbsolutePermission(java.lang.String checkedActionClass)
|
void |
checkDeepPermission(ActionInstanceDescription actionDesc,
PolicyDecisionObserver pObserver)
|
void |
checkPermission(ActionInstanceDescription actionDesc,
PolicyDecisionObserver pObserver)
|
AgentDescription |
createAgentDescription()
|
protected java.lang.String |
createMyDomain()
|
void |
declareInstance(java.lang.String instanceName,
java.lang.String className)
|
void |
declareInstance(java.lang.String instanceName,
java.lang.String className,
boolean rehydrating)
|
void |
deregister(AgentDescription desc)
|
void |
deregisterObserver(java.lang.String updateType,
java.lang.Object updateCondition,
KAoSObserver observer)
Deregister the given KAoSObserver for the given update type from the registry of observers associated with this KAoSObservable. |
protected void |
distributePolicyUpdate(java.util.List<PolicyMsg> addedPolicies,
java.util.List<PolicyMsg> changedPolicies,
java.util.List<PolicyMsg> removedPolicies,
boolean setPolicies)
|
void |
editAuthenticationObject(KAoSAuthenticationObject kao)
Allows to edit an authentication object at the Directory Service database. |
void |
editDefinedPolicyTemplate(PolicyTemplate definedTemplate)
|
boolean |
equals(java.lang.Object obj)
|
protected DefaultKAoSAgentDescription |
establishAgentDescription(KAoSServiceRoot ksr)
|
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.List<ActionInstanceDescription> |
findPolicyDecision(ActionInstanceDescription actionDesc,
PolicyDecisionObserver pObserver)
|
java.util.Vector |
getAbsoluteObligationsForTriggerConditionForAC(java.lang.String triggerAC)
|
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. |
AgentDescription |
getAgentDescription(java.lang.String agentName)
|
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.Map<java.lang.String,KAoSAuthenticationObject> |
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.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 pObserver)
|
java.util.Vector |
getAllowableValuesForActionProperties(java.util.Vector propertyNames,
ActionInstanceDescription actionDesc,
boolean tight,
PolicyDecisionObserver pObserver)
|
java.util.Vector |
getAllowableValuesForActionProperties(java.util.Vector propertyNames,
ActionInstanceDescription actionDesc,
java.lang.Boolean tight,
PolicyDecisionObserver pObserver)
|
java.util.Set |
getAllowableValuesForActionProperty(java.lang.String origPropertyName,
ActionInstanceDescription origActionDesc,
java.util.Set allTargetValues,
boolean tight,
PolicyDecisionObserver pObserver)
|
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.util.Vector |
getConditionalPolicies()
|
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.List<PolicyMsg> |
getDirectPoliciesFor(java.lang.String id)
|
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.lang.String |
getExpandedProperty(java.lang.String key)
|
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 pObserver)
|
java.util.Vector |
getGuardDescriptionsForEntity(java.lang.String entityID)
|
java.util.Map |
getGuardInfo(java.lang.String guardId)
|
java.util.Enumeration |
getGuards()
|
java.lang.String |
getID()
Return the unique identifier of this observer. |
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. |
static KAoSDirectoryService |
getInstance()
|
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.Set |
getNamspacesImportedByNamespace(java.lang.String namespaceName)
Get set of namespaces imported by the given namespace. |
java.util.List<ActionInstanceDescription> |
getObligationsForTriggerCondition(ActionInstanceDescription triggerAID,
PolicyDecisionObserver pObserver)
|
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)
|
PolicySetMsg |
getPolicySet(java.lang.String policySetId)
|
java.util.List<PolicySetMsg> |
getPolicySets()
Obtain List over all policy sets. |
java.lang.Integer |
getPolicyUpdateCount()
|
java.util.List<java.lang.String> |
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 |
getProperty(java.lang.String key)
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
|
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 propertyName,
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.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 propertyName,
java.lang.String subjectName)
Get a single value of the variable satisfying the KIF query: (property subject ?val). |
java.util.Set |
getValuesForProperty(java.lang.String propertyName,
java.lang.String subjectName)
Get values of the variable satisfying the KIF query: (property subject ?val). |
protected void |
handleDirectoryEvent(DirectoryEvent event)
|
java.util.List |
harmonizePolicy(java.lang.String harmonizedPolicy,
java.lang.String harmonizingPolicy)
Method deconflicting the added policy with policies currently in the Policy Directory |
int |
hashCode()
|
protected void |
initConfig()
|
void |
initialize(ServiceRoot sr,
java.lang.String nickname,
boolean useJTP,
java.lang.String ontologySetName)
|
void |
initialize(ServiceRoot sr,
java.lang.String nickname,
boolean useJTP,
java.lang.String ontologySetName,
JasBean entityEnv,
DomainDescription myDomain,
java.util.List ontologies,
PersistenceManager persistMgr)
|
java.util.List<OntClassPropertyDescription> |
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. |
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 |
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> myOntModels,
boolean recursiveLoad)
Adds ontology included in the provide objects into the ontology repository. |
void |
loadOntologies(java.util.List<SerializableOntModelImpl> myOntModels,
java.lang.Boolean recursiveLoad)
|
void |
loadOntology(SerializableOntModelImpl myOntModel,
boolean recursiveLoad)
Adds ontology included in the provide objects into the ontology repository. |
void |
loadOntology(SerializableOntModelImpl myOntModel,
java.lang.Boolean recursiveLoad)
|
void |
loadOntology(SerializableOntModelImpl myOntModel,
boolean recursiveLoad,
boolean rehydrating)
|
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 |
loadOntology(java.lang.String myURL,
java.lang.Boolean recursiveLoad)
|
void |
loadSchema(java.lang.String fileName)
Load schema definitions of data types from a file. |
static void |
main(java.lang.String[] args)
|
void |
modify(AgentDescription desc)
|
void |
modifyEntityProperties(java.lang.String entityGUID,
java.util.List<Property> properties)
|
void |
notify(java.lang.String updateType,
java.lang.Object updateCondition,
java.lang.Object update)
Notify observers interested in the given updateType wiht the given update object. |
protected JasBean |
obtainCoordinatorEnv()
|
protected JasBean |
obtainEntityEnv()
|
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 |
processForwardingRequest(java.lang.String receiverID,
MethodCallRequestMsg rqst,
kaos.core.service.directory.KAoSDirectoryService.InvocationInfo info)
|
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 |
receiveMessage(TransportMessage msg)
|
void |
register(AgentDescription desc)
|
void |
register(AgentDescription desc,
boolean rehydrating)
|
void |
registerNodeEnforcer(java.lang.String guardId)
|
void |
registerObserver(java.lang.String updateType,
java.lang.Object updateCondition,
KAoSObserver observer)
Register the given KAoSObserver with this KAoSObservable for updates described by the updateType and updateConstraints. |
protected void |
registerWithCoordinator()
|
void |
rehydratePolicies(java.util.List<PolicyMsg> policies)
Rehydrate policies Adds the policies to the directory service, but does not distribute them. |
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 |
removeEventListener(DomainManagerEventListener listener)
Remove an event listener from the collection of objects to be notified by the Domain Manager about a domain event. |
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)
|
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)
|
AgentDescription[] |
search(AgentDescription desc,
java.lang.Integer maxResults)
|
protected void |
sendPolicyUpdate(java.util.List locators,
java.util.List addedPolicies,
java.util.List changedPolicies,
java.util.List removedPolicies,
boolean setPolicies,
java.lang.String guardGUID)
|
void |
sendStatusUpdate(java.lang.String methodName,
java.lang.String status)
|
static void |
setAllowRegistration(boolean allowForReregistration)
|
void |
setConditionalPolicies(java.util.Vector condPols)
|
static void |
setDirectoryServiceName(java.lang.String name)
|
void |
setGuarded(boolean guarded)
|
void |
setGuardRegistered(boolean registered)
|
static void |
setIfDistributed(boolean distributed)
|
static void |
setLocalServlet(boolean localServlet)
|
static void |
setLogDomainEvents(boolean logDomainEvents)
|
void |
setServiceProperties(ServiceProperties props)
|
static void |
setSubscribeTo(java.lang.String subscribeTo)
|
static void |
setTransportName(java.lang.String transportName)
|
static void |
setUseOfJTP(java.lang.String useJTP)
|
void |
setUsePolCert(boolean usePolCert)
|
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. |
static void |
startKAoSDS(java.lang.String[] args)
|
void |
subclassesSetSynchronizationRequest(java.util.List myCurrentSubclassesClassesURL,
java.util.List 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. |
protected void |
subscribeAsMirror(KAoSAgentDescription remoteDesc)
|
protected void |
subscribeAsMirror(java.lang.String dsName)
|
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 |
update(java.lang.String observableID,
java.lang.String updateType,
java.lang.Object updateCondition,
java.lang.Object update)
Receive an update from the KAoSObservable when the KAoSObservable has a change or event to report. |
void |
updateInForceValue(java.lang.String policyId,
boolean inForce)
|
void |
updateInForceValue(java.lang.String policyId,
java.lang.Boolean inForce)
|
void |
updatePolicies(java.util.List<PolicyMsg> addedPolicies,
java.util.List<PolicyMsg> changedPolicies,
java.util.List<PolicyMsg> removedPolicies)
|
MethodCallResultMsg |
waitForForwardingReply(java.lang.String sequenceId)
|
java.lang.Object |
waitForForwardingRequest(java.lang.String receiverID,
MethodCallRequestMsg rqst)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LOCATOR_NAME
public static OntologyService localOntologyInterfaces
protected java.lang.String _nickName
protected AgentName _agentName
protected TransportSystem _transportSystem
protected boolean _allowReregistration
protected static boolean _guarded
protected boolean _guardRegistered
protected Locator _locator
protected MessageReceiver _messageReceiver
protected MessageTransportService _mts
protected java.util.Hashtable _observers
protected java.util.Map<java.lang.String,KAoSAuthenticationObject> _authenticationDatabase
protected java.util.Map<java.lang.String,PolicyTemplate> _definedTemplateObjectTable
public static final java.lang.String FORWARDED_KEY
public static final java.lang.String MY_DESCRIPTION
public static final java.lang.String GUARDED_ENTITIES
public static final java.lang.String GUARDED_CLASS_RANGES_OF_INTEREST
public static final java.lang.String GUARDED_ACTION_SUBCLASSES_OF_INTEREST
public static final java.lang.String CONTAINERS
public static final java.lang.String AGENTS
public static final java.lang.String UNGUARDED_HOSTS
public static final java.lang.String GUARDED_HOSTS
public static final java.lang.String GUARDED_AGENTS
public static final java.lang.String UNGUARDED_AGENTS
public static final java.lang.String GUARDED_CONTAINERS
public static final java.lang.String UNGUARDED_CONTAINERS
public static final java.lang.String GUARDED_EXEC_ENVS
public static final java.lang.String UNGUARDED_EXEC_ENVS
public static final java.lang.String REGISTRATION_REPLACE_FLAG
public static final java.lang.String RUNNING_ENTITIES
public static final java.lang.String MY_GUARDS
public static final java.lang.String DOMAIN_NAME
protected static java.lang.String _name
protected static java.lang.String _useForJTP
protected static java.lang.String _nameOfTransport
protected static boolean _distributed
protected static boolean _allowForReregistration
protected static boolean _logDomainEvents
protected static java.lang.String _subscribeTo
protected static boolean _localServlet
Constructor Detail |
---|
public KAoSDirectoryService()
Method Detail |
---|
public static void main(java.lang.String[] args)
public static void startKAoSDS(java.lang.String[] args)
public static void setDirectoryServiceName(java.lang.String name)
public static void setUseOfJTP(java.lang.String useJTP)
public static void setTransportName(java.lang.String transportName)
public static void setIfDistributed(boolean distributed)
public static void setAllowRegistration(boolean allowForReregistration)
public static void setLogDomainEvents(boolean logDomainEvents)
public static void setSubscribeTo(java.lang.String subscribeTo)
public static void setLocalServlet(boolean localServlet)
public static KAoSDirectoryService getInstance()
public void allowReregistration(boolean allow)
public void initialize(ServiceRoot sr, java.lang.String nickname, boolean useJTP, java.lang.String ontologySetName) throws java.lang.Exception
java.lang.Exception
public void initialize(ServiceRoot sr, java.lang.String nickname, boolean useJTP, java.lang.String ontologySetName, JasBean entityEnv, DomainDescription myDomain, java.util.List ontologies, PersistenceManager persistMgr) throws java.lang.Exception
java.lang.Exception
protected void initConfig()
protected void registerWithCoordinator()
protected JasBean obtainCoordinatorEnv()
protected void handleDirectoryEvent(DirectoryEvent event)
protected void subscribeAsMirror(java.lang.String dsName)
protected void subscribeAsMirror(KAoSAgentDescription remoteDesc)
public AgentDescription getAgentDescription(java.lang.String agentName) throws NotRegisteredException
NotRegisteredException
protected void bindToMTS() throws java.lang.Exception
java.lang.Exception
public void setUsePolCert(boolean usePolCert)
public java.lang.String getExpandedProperty(java.lang.String key) throws java.lang.Exception
java.lang.Exception
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
public java.lang.String getProperty(java.lang.String key)
public void addAuthenticationObject(KAoSAuthenticationObject kao)
AuthenticationInterface
addAuthenticationObject
in interface AuthenticationInterface
kao
- the authentication objectpublic void editAuthenticationObject(KAoSAuthenticationObject kao)
AuthenticationInterface
editAuthenticationObject
in interface AuthenticationInterface
kao
- the authentication objectpublic void removeAuthenticationObject(KAoSAuthenticationObject kao)
AuthenticationInterface
removeAuthenticationObject
in interface AuthenticationInterface
kao
- the authentication objectpublic boolean isUsernameRegistered(java.lang.String userid, java.lang.String password)
AuthenticationInterface
isUsernameRegistered
in interface AuthenticationInterface
userid
- the user namepassword
- the user passwordpublic java.util.Map<java.lang.String,KAoSAuthenticationObject> getAllAuthenticationObjects()
AuthenticationInterface
getAllAuthenticationObjects
in interface AuthenticationInterface
public void addDefinedPolicyTemplate(PolicyTemplate definedTemplate)
addDefinedPolicyTemplate
in interface DefinedPolicyTemplateInterface
public void editDefinedPolicyTemplate(PolicyTemplate definedTemplate)
editDefinedPolicyTemplate
in interface DefinedPolicyTemplateInterface
public void removeDefinedPolicyTemplate(PolicyTemplate definedTemplate)
removeDefinedPolicyTemplate
in interface DefinedPolicyTemplateInterface
public java.util.Map<java.lang.String,PolicyTemplate> getAllDefinedPolicyTemplate()
getAllDefinedPolicyTemplate
in interface DefinedPolicyTemplateInterface
public void processForwardingRequest(java.lang.String receiverID, MethodCallRequestMsg rqst, kaos.core.service.directory.KAoSDirectoryService.InvocationInfo info)
public java.lang.Object waitForForwardingRequest(java.lang.String receiverID, MethodCallRequestMsg rqst) throws java.lang.Exception
java.lang.Exception
public MethodCallResultMsg waitForForwardingReply(java.lang.String sequenceId)
public void receiveMessage(TransportMessage msg)
public void sendStatusUpdate(java.lang.String methodName, java.lang.String status)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ServiceProperties getServiceProperties() throws ServiceException, ServiceFailure
ServiceException
ServiceFailure
public void setServiceProperties(ServiceProperties props) throws ServiceException, ServiceFailure
ServiceException
ServiceFailure
public AgentDescription createAgentDescription()
public void deregister(AgentDescription desc) throws NotRegisteredException, DirectoryFailure
NotRegisteredException
DirectoryFailure
public void modify(AgentDescription desc) throws NotRegisteredException, DirectoryFailure
NotRegisteredException
DirectoryFailure
public void register(AgentDescription desc) throws AlreadyRegisteredException, DirectoryFailure
AlreadyRegisteredException
DirectoryFailure
public void register(AgentDescription desc, boolean rehydrating) throws AlreadyRegisteredException, DirectoryFailure
AlreadyRegisteredException
DirectoryFailure
public void registerNodeEnforcer(java.lang.String guardId)
public AgentDescription[] search(AgentDescription desc) throws SearchException, DirectoryFailure
SearchException
DirectoryFailure
public AgentDescription[] search(AgentDescription desc, java.lang.Integer maxResults) throws SearchException, DirectoryFailure
SearchException
DirectoryFailure
public AgentDescription[] search(AgentDescription desc, int maxResults) throws SearchException, DirectoryFailure
SearchException
DirectoryFailure
public void modifyEntityProperties(java.lang.String entityGUID, java.util.List<Property> properties) throws DirectoryFailure, NotRegisteredException, ModificationException
DirectoryFailure
NotRegisteredException
ModificationException
public void addEntityOntologicalType(java.lang.String entityNameAsString, java.lang.String typeName, java.lang.String damlDesc)
public KAoSAgentDescription getAgentDescriptionForAgentID(java.lang.String agentID) throws SearchException, DirectoryFailure
SearchException
DirectoryFailure
public java.util.List getAllAgentsInDirectory()
DomainDirectoryService
getAllAgentsInDirectory
in interface DomainDirectoryService
public java.util.Vector getAllAgentsInDomain(java.lang.String domainName)
DomainDirectoryService
getAllAgentsInDomain
in interface DomainDirectoryService
domainName
- Name of the domain to query
public java.util.List getAllGuardsInDirectory()
DomainDirectoryService
getAllGuardsInDirectory
in interface DomainDirectoryService
public java.util.Vector getGuardDescriptionsForEntity(java.lang.String entityID)
public java.util.Vector getAllDomainsInDirectory()
DomainDirectoryService
getAllDomainsInDirectory
in interface DomainDirectoryService
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 DomainDescription getDomainDescription(java.lang.String domainName)
DomainDirectoryService
getDomainDescription
in interface DomainDirectoryService
domainName
- the name of the domainpublic java.util.List getDomainDescriptionsForGuard(java.lang.String guardGUID)
DomainDirectoryService
getDomainDescriptionsForGuard
in interface DomainDirectoryService
guardGUID
- GUID of the guard registered in all domains, whose descriptions are requested
public java.util.Map getDomainStructure(java.lang.String domainName)
DomainDirectoryService
getDomainStructure
in interface DomainDirectoryService
domainName
- name of the domain to map
public void removeExecEnv(java.lang.String execEnvID)
DomainDirectoryService
removeExecEnv
in interface DomainDirectoryService
public java.util.Vector getRootDomains()
DomainDirectoryService
getRootDomains
in interface DomainDirectoryService
public java.util.Vector getDomainNames()
public java.util.Vector getSubdomains(java.lang.String domainName)
DomainDirectoryService
getSubdomains
in interface DomainDirectoryService
public void rehydratePolicies(java.util.List<PolicyMsg> policies) throws PolicyManagement.OntologyPolicyIncorrect, PoliciesHarmonizedException, PolicyManagement.PrecedenceUndeterminedException
PolicyManagement.OntologyPolicyIncorrect
PoliciesHarmonizedException
PolicyManagement.PrecedenceUndeterminedException
public void updatePolicies(java.util.List<PolicyMsg> addedPolicies, java.util.List<PolicyMsg> changedPolicies, java.util.List<PolicyMsg> removedPolicies) throws PolicyManagement.OntologyPolicyIncorrect, PoliciesHarmonizedException, PolicyManagement.PrecedenceUndeterminedException
updatePolicies
in interface PolicyManagement
PolicyManagement.OntologyPolicyIncorrect
PoliciesHarmonizedException
PolicyManagement.PrecedenceUndeterminedException
public void addPolicy(PolicyMsg policy) throws PolicyManagement.OntologyPolicyIncorrect, PoliciesHarmonizedException, PolicyManagement.PrecedenceUndeterminedException
addPolicy
in interface PolicyManagement
PolicyManagement.OntologyPolicyIncorrect
PoliciesHarmonizedException
PolicyManagement.PrecedenceUndeterminedException
public void addPolicies(java.util.List<PolicyMsg> policies) throws PolicyManagement.OntologyPolicyIncorrect, PoliciesHarmonizedException, PolicyManagement.PrecedenceUndeterminedException
addPolicies
in interface PolicyManagement
PolicyManagement.OntologyPolicyIncorrect
PoliciesHarmonizedException
PolicyManagement.PrecedenceUndeterminedException
public void removePolicy(PolicyMsg policy)
removePolicy
in interface PolicyManagement
public void removePolicies(java.util.List<PolicyMsg> policies)
removePolicies
in interface PolicyManagement
public void changePolicy(PolicyMsg policy) throws PolicyManagement.OntologyPolicyIncorrect, PoliciesHarmonizedException, PolicyManagement.PrecedenceUndeterminedException
changePolicy
in interface PolicyManagement
PolicyManagement.OntologyPolicyIncorrect
PoliciesHarmonizedException
PolicyManagement.PrecedenceUndeterminedException
public void changePolicies(java.util.List<PolicyMsg> policies) throws PolicyManagement.OntologyPolicyIncorrect, PoliciesHarmonizedException, PolicyManagement.PrecedenceUndeterminedException
changePolicies
in interface PolicyManagement
PolicyManagement.OntologyPolicyIncorrect
PoliciesHarmonizedException
PolicyManagement.PrecedenceUndeterminedException
public java.util.List getPolicies()
getPolicies
in interface PolicyManagement
public PolicyMsg getPolicy(java.lang.String policyId)
getPolicy
in interface PolicyManagement
public java.util.Map getPoliciesByEntities()
getPoliciesByEntities
in interface PolicyManagement
public java.util.List<PolicyMsg> getDirectPoliciesFor(java.lang.String id)
getDirectPoliciesFor
in interface PolicyManagement
public java.util.List<PolicyMsg> getAllPoliciesFor(java.lang.String conceptId) throws ServiceFailure
getAllPoliciesFor
in interface PolicyManagement
ServiceFailure
public void addPolicy(java.lang.String owlPolicyDescription) throws PolicyManagement.OntologyPolicyIncorrect, PolicyManagement.PrecedenceUndeterminedException, PoliciesHarmonizedException, ServiceFailure
addPolicy
in interface PolicyManagement
PolicyManagement.OntologyPolicyIncorrect
PolicyManagement.PrecedenceUndeterminedException
PoliciesHarmonizedException
ServiceFailure
public void addPolicyUpdateListener(PolicyListener listener) throws ServiceFailure
addPolicyUpdateListener
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 void removePolicy(java.lang.String policyID) throws ServiceFailure
removePolicy
in interface PolicyManagement
ServiceFailure
public void removePolicyUpdateListener(PolicyListener listener) throws ServiceFailure
removePolicyUpdateListener
in interface PolicyManagement
ServiceFailure
public java.util.Vector getConditionalPolicies()
public void setConditionalPolicies(java.util.Vector condPols)
public void addPolicySet(PolicySetMsg policySet)
addPolicySet
in interface PolicySetDirectory
public void addPolicySets(java.util.List<PolicySetMsg> policySets)
addPolicySets
in interface PolicySetDirectory
public void removePolicySet(PolicySetMsg policySet)
removePolicySet
in interface PolicySetDirectory
public void removePolicySets(java.util.List<PolicySetMsg> policySets)
removePolicySets
in interface PolicySetDirectory
public void changePolicySet(PolicySetMsg policySet)
changePolicySet
in interface PolicySetDirectory
public void changePolicySets(java.util.List<PolicySetMsg> policySets)
changePolicySets
in interface PolicySetDirectory
public java.util.List<PolicySetMsg> getPolicySets()
PolicySetDirectory
getPolicySets
in interface PolicySetDirectory
public PolicySetMsg getPolicySet(java.lang.String policySetId)
getPolicySet
in interface PolicySetDirectory
public boolean isPolicyInConflict(java.lang.String policyId)
isPolicyInConflict
in interface PolicyAnalyzes
public java.util.List findConflictingPolicies(java.lang.String policyId)
PolicyAnalyzes
findConflictingPolicies
in interface PolicyAnalyzes
policyId
- id of the policy
public boolean isFullyOverlappedBySecondPolicy(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws PolicyAnalyzes.PriorityConditionNotMet
PolicyAnalyzes
isFullyOverlappedBySecondPolicy
in interface PolicyAnalyzes
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
PolicyAnalyzes.PriorityConditionNotMet
public boolean isPartiallyOverlappedBySecondPolicy(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws PolicyAnalyzes.PriorityConditionNotMet
PolicyAnalyzes
isPartiallyOverlappedBySecondPolicy
in interface PolicyAnalyzes
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
PolicyAnalyzes.PriorityConditionNotMet
public boolean isFullyOverlappedByUnionOfPolicies(java.lang.String firstPolicyId, java.util.List<java.lang.String> listOfPolicies) throws PolicyAnalyzes.PriorityConditionNotMet
PolicyAnalyzes
isFullyOverlappedByUnionOfPolicies
in interface PolicyAnalyzes
firstPolicyId
- id of the policylistOfPolicies
- list of policies
PolicyAnalyzes.PriorityConditionNotMet
public boolean isPolicyRedundant(java.lang.String policyId)
PolicyAnalyzes
isPolicyRedundant
in interface PolicyAnalyzes
policyId
- id of the policy
public java.util.List findPoliciesMakingRedundant(java.lang.String policyId)
PolicyAnalyzes
findPoliciesMakingRedundant
in interface PolicyAnalyzes
policyId
- id of the policy
public boolean isPolicyMakingRedundantSomeOtherPolicy(java.lang.String policyId)
PolicyAnalyzes
isPolicyMakingRedundantSomeOtherPolicy
in interface PolicyAnalyzes
policyId
- id of the policy
public java.util.List findPoliciesMadeRedundant(java.lang.String policyId)
PolicyAnalyzes
findPoliciesMadeRedundant
in interface PolicyAnalyzes
policyId
- id of the policy
public boolean isMadeFullyRedundantBySecond(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws PolicyAnalyzes.PriorityConditionNotMet
PolicyAnalyzes
isMadeFullyRedundantBySecond
in interface PolicyAnalyzes
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
PolicyAnalyzes.PriorityConditionNotMet
public boolean isMadeParitallyRedundantBySecond(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws PolicyAnalyzes.PriorityConditionNotMet
PolicyAnalyzes
isMadeParitallyRedundantBySecond
in interface PolicyAnalyzes
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
PolicyAnalyzes.PriorityConditionNotMet
public boolean isMadeFullyRedundantByPolicyUnion(java.lang.String firstPolicyId, java.util.List<java.lang.String> listOfPolicies) throws PolicyAnalyzes.PriorityConditionNotMet
PolicyAnalyzes
isMadeFullyRedundantByPolicyUnion
in interface PolicyAnalyzes
firstPolicyId
- id of the policylistOfPolicies
- list of policies
PolicyAnalyzes.PriorityConditionNotMet
public void changedPriority(java.lang.String policyId, int newPriority)
PolicyModification
changedPriority
in interface PolicyModification
policyId
- id of the policynewPriority
- new priority of the policypublic void updateInForceValue(java.lang.String policyId, java.lang.Boolean inForce)
public void updateInForceValue(java.lang.String policyId, boolean inForce)
public java.util.List harmonizePolicy(java.lang.String harmonizedPolicy, java.lang.String harmonizingPolicy)
PolicyModification
harmonizePolicy
in interface PolicyModification
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)
PolicyModification
splitPolicy
in interface PolicyModification
splitPolicy
- id of the policy to be split.secondPolicy
- id of the policy splitting the first policy
public void checkPermission(ActionInstanceDescription actionDesc, PolicyDecisionObserver pObserver) throws KAoSSecurityException, ServiceFailure
checkPermission
in interface PolicyChecking
KAoSSecurityException
ServiceFailure
public java.util.Vector getAllowableValuesForActionProperties(java.util.Vector propertyNames, ActionInstanceDescription actionDesc, java.lang.Boolean tight, PolicyDecisionObserver pObserver) throws ServiceFailure
ServiceFailure
public java.util.Vector getAllowableValuesForActionProperties(java.util.Vector propertyNames, ActionInstanceDescription actionDesc, boolean tight, PolicyDecisionObserver pObserver) throws ServiceFailure
getAllowableValuesForActionProperties
in interface PolicyAdvice
ServiceFailure
public java.util.Vector getAllowableValuesForActionProperties(ActionInstanceDescription actionDesc, PolicyDecisionObserver pObserver) throws ServiceFailure
getAllowableValuesForActionProperties
in interface PolicyAdvice
ServiceFailure
public java.util.List<ActionInstanceDescription> getObligationsForTriggerCondition(ActionInstanceDescription triggerAID, PolicyDecisionObserver pObserver) throws ServiceFailure
getObligationsForTriggerCondition
in interface PolicyChecking
ServiceFailure
public java.util.Set getAllowableValuesForActionProperty(java.lang.String origPropertyName, ActionInstanceDescription origActionDesc, java.util.Set allTargetValues, boolean tight, PolicyDecisionObserver pObserver) throws ServiceFailure
getAllowableValuesForActionProperty
in interface PolicyAdvice
ServiceFailure
public java.util.Vector getForbiddenValuesForActionProperty(java.lang.String origPropertyName, ActionInstanceDescription origActionDesc, PolicyDecisionObserver pObserver) throws ServiceFailure
getForbiddenValuesForActionProperty
in interface PolicyAdvice
ServiceFailure
public java.lang.Integer getPolicyUpdateCount() throws ServiceFailure
getPolicyUpdateCount
in interface PolicyAdvice
ServiceFailure
public java.util.List<ActionInstanceDescription> findPolicyDecision(ActionInstanceDescription actionDesc, PolicyDecisionObserver pObserver) throws KAoSSecurityException, ServiceFailure, ObligationViolationException
findPolicyDecision
in interface PolicyChecking
KAoSSecurityException
ServiceFailure
ObligationViolationException
public void checkDeepPermission(ActionInstanceDescription actionDesc, PolicyDecisionObserver pObserver) throws ServiceFailure, KAoSSecurityException
checkDeepPermission
in interface PolicyChecking
ServiceFailure
KAoSSecurityException
public java.util.Set getListOfLoadedOntologies()
OntologyService
getListOfLoadedOntologies
in interface OntologyService
public java.util.Set getAllNamespaces()
OntologyRepositoryService
getAllNamespaces
in interface OntologyRepositoryService
public java.util.Set getFilteredNamespaces()
OntologyRepositoryService
getFilteredNamespaces
in interface OntologyRepositoryService
public void addFilteredNamespace(java.lang.String namespace)
OntologyRepositoryService
addFilteredNamespace
in interface OntologyRepositoryService
namespace
- The name of the namespacepublic void removeFilteredNamespace(java.lang.String namespace)
OntologyRepositoryService
removeFilteredNamespace
in interface OntologyRepositoryService
namespace
- The name of the namespacepublic java.util.List getConstructedOntologyStructures()
OntologyRepositoryService
getConstructedOntologyStructures
in interface OntologyService
getConstructedOntologyStructures
in interface OntologyRepositoryService
public void putConstructedOntologyStructures(java.util.List<SerializableOntModelImpl> ontologyStructureList) throws OntologyRepository.ReasoningException, java.io.IOException
OntologyRepositoryService
putConstructedOntologyStructures
in interface OntologyRepositoryService
ontologyStructureList
- a list containing SerializableOntModelImpl objects.
OntologyRepository.ReasoningException
java.io.IOException
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 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 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 void loadOntology(java.lang.String myURL, java.lang.Boolean recursiveLoad) throws OntologyRepository.ReasoningException, java.io.IOException
OntologyRepository.ReasoningException
java.io.IOException
public void loadOntology(java.lang.String myURL, boolean recursiveLoad) throws OntologyRepository.ReasoningException, java.io.IOException
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
public void loadOntology(SerializableOntModelImpl myOntModel, java.lang.Boolean recursiveLoad) throws OntologyRepository.ReasoningException, java.io.IOException
OntologyRepository.ReasoningException
java.io.IOException
public void loadOntology(SerializableOntModelImpl myOntModel, boolean recursiveLoad) throws OntologyRepository.ReasoningException, java.io.IOException
OntologyRepositoryService
loadOntology
in interface OntologyService
loadOntology
in interface OntologyRepositoryService
myOntModel
- 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> myOntModels, 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 loadOntologies(java.util.List<SerializableOntModelImpl> myOntModels, java.lang.Boolean recursiveLoad) throws OntologyRepository.ReasoningException, java.io.IOException
OntologyRepository.ReasoningException
java.io.IOException
public void loadOntology(SerializableOntModelImpl myOntModel, boolean recursiveLoad, boolean rehydrating) throws OntologyRepository.ReasoningException, java.io.IOException
OntologyRepository.ReasoningException
java.io.IOException
public java.util.Set getInstancesOf(java.lang.String conceptName) throws UnknownConceptException
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 repositorypublic java.util.Set getUltimateOntologyTypesOfIndividual(java.lang.String individualName) throws UnknownConceptException
OntologyRepositoryService
getUltimateOntologyTypesOfIndividual
in interface OntologyService
getUltimateOntologyTypesOfIndividual
in interface OntologyRepositoryService
individualName
- the name of the individual
UnknownConceptException
- if concept unknown or any problem with JTP approachedpublic java.util.Set getSuperClassesOf(java.lang.String className) throws UnknownConceptException
OntologyRepositoryService
getSuperClassesOf
in interface OntologyRepositoryService
className
- The name of the class in the Jena format
UnknownConceptException
- if className is unknown for the ontology repositorypublic java.util.Set getSubClassesOf(java.lang.String className) throws UnknownConceptException
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 repositorypublic java.util.Set getImmediateSubClassesOf(java.lang.String className) throws UnknownConceptException
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 repositorypublic java.util.Set getSuperPropertiesOf(java.lang.String propertyName) throws UnknownConceptException
OntologyRepositoryService
getSuperPropertiesOf
in interface OntologyService
getSuperPropertiesOf
in interface OntologyRepositoryService
propertyName
- The name of the property in Jena format
UnknownConceptException
public java.util.Set getSubPropertiesOf(java.lang.String propertyName) throws UnknownConceptException
OntologyService
getSubPropertiesOf
in interface OntologyService
propertyName
- The name of the property
UnknownConceptException
public boolean testTrue(java.lang.String statement) throws QueryFailure
OntologyRepositoryService
testTrue
in interface OntologyService
testTrue
in interface OntologyRepositoryService
statement
- to test
QueryFailure
- if reasoning failed.public java.lang.String getUniqueValueForProperty(java.lang.String propertyName, java.lang.String subjectName) throws QueryFailure
OntologyRepositoryService
getUniqueValueForProperty
in interface OntologyRepositoryService
propertyName
- the name of the property in the Jena formatsubjectName
- the name of the subject in the Jena format
QueryFailure
- if reasoning failed.public java.util.Set getValuesForProperty(java.lang.String propertyName, java.lang.String subjectName) throws QueryFailure
OntologyRepositoryService
getValuesForProperty
in interface OntologyService
getValuesForProperty
in interface OntologyRepositoryService
propertyName
- the name of the property in the Jena formatsubjectName
- the name of the subject in the Jena format
QueryFailure
- if reasoning failed.public java.util.Set getResourcesWithValueForProperty(java.lang.String propertyName, java.lang.String value) throws QueryFailure
OntologyRepositoryService
getResourcesWithValueForProperty
in interface OntologyRepositoryService
propertyName
- the name of the property in the Jena formatvalue
- the value as a string in th Jena format
QueryFailure
- if reasoning failed.public java.util.List<java.lang.String> getPropertiesApplicableTo(java.lang.String className) throws UnknownConceptException
OntologyRepositoryService
getPropertiesApplicableTo
in interface OntologyService
getPropertiesApplicableTo
in interface OntologyRepositoryService
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
OntologyRepositoryService
getRangeOnPropertyForClass
in interface OntologyService
getRangeOnPropertyForClass
in interface OntologyRepositoryService
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
OntologyRepositoryService
askQuery
in interface OntologyRepositoryService
variableName
- the name of the selected variablemultiplyVariablesQuery
- the query
QueryFailure
- if reasoning failed.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.Set getClassesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException
OntologyRepositoryService
getClassesDefInNamespace
in interface OntologyRepositoryService
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknown for the ontology repositorypublic java.util.Set getPropertiesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException
OntologyRepositoryService
getPropertiesDefInNamespace
in interface OntologyRepositoryService
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknown for the ontology repositorypublic java.util.Set getInstancesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException
OntologyRepositoryService
getInstancesDefInNamespace
in interface OntologyRepositoryService
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknown for the ontology repositorypublic java.util.Set getNamspacesImportedByNamespace(java.lang.String namespaceName) throws UnknownNamespaceException
OntologyRepositoryService
getNamspacesImportedByNamespace
in interface OntologyRepositoryService
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknown for the ontology repositorypublic java.util.Set getOntologyDefinitionForConcept(java.lang.String conceptName)
OntologyService
getOntologyDefinitionForConcept
in interface OntologyService
conceptName
- A short name of concept, e.g. "Actor"
public java.util.Set getIndividualActors(java.lang.String baseActorClass) throws UnknownConceptException
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 repositorypublic java.util.Set getClassesOfActors(java.lang.String baseActorClass) throws UnknownConceptException
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 repositorypublic java.util.Set getIndividualPlaces(java.lang.String basePlaceClass) throws UnknownConceptException
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 repositorypublic java.util.Set getClassesOfPlaces(java.lang.String basePlaceClass) throws UnknownConceptException
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 repositorypublic java.util.Set getIndividualGroups(java.lang.String baseGroupClass) throws UnknownConceptException
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 repositorypublic java.util.Set getClassesOfGroups(java.lang.String baseGroupClass) throws UnknownConceptException
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 repositorypublic java.util.Set getIndividualTargets(java.lang.String baseTargetClass) throws UnknownConceptException
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 repositorypublic java.util.List<OntClassPropertyDescription> 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.util.Set getClassesOfTargets(java.lang.String baseTargetClass) throws UnknownConceptException
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 repositorypublic void declareInstance(java.lang.String instanceName, java.lang.String className) throws QueryFailure
QueryFailure
public void declareInstance(java.lang.String instanceName, java.lang.String className, boolean rehydrating) throws QueryFailure
QueryFailure
public java.util.Set getActions(java.lang.String forActor) throws UnknownConceptException
QueryKAoSOntologyService
getActions
in interface QueryKAoSOntologyService
forActor
- The name of the Actor class or instance
UnknownConceptException
- if forActor is unknown for the ontology repositorypublic 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 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 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 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 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 putMultipleSchema(java.util.List<XMLSchemaContainer> schemaList) throws DirectoryFailure
XMLRepository
putMultipleSchema
in interface XMLRepository
schemaList
- a list containing XMLSchemaContainer objects.
DirectoryFailure
public java.util.List getAllSchema() throws DirectoryFailure
XMLRepository
getAllSchema
in interface XMLRepository
DirectoryFailure
public void addEventListener(DomainManagerEventListener listener)
DomainManagerEventNotifier
Those listeners must establish a trust relationship with the Domain Manager in order to receive domain events.
addEventListener
in interface DomainManagerEventNotifier
listener
- The listener to be notified about a domain event.public void addEventListener(DirectoryEventListener listener)
addEventListener
in interface DirectoryEventNotifier
public void removeEventListener(DirectoryEventListener listener)
removeEventListener
in interface DirectoryEventNotifier
public void removeEventListener(DomainManagerEventListener listener)
DomainManagerEventNotifier
Those listeners have established a trust relationship with the Domain Manager prior to receiving domain events.
removeEventListener
in interface DomainManagerEventNotifier
listener
- The listener to be removed from the collection of domain events listeners.public void addRemoteEventListener(Locator l)
addRemoteEventListener
in interface DirectoryEventNotifier
public void removeRemoteEventListener(Locator l)
removeRemoteEventListener
in interface DirectoryEventNotifier
public java.util.Vector getAbsoluteObligationsForTriggerConditionForAC(java.lang.String triggerAC) throws ServiceFailure
ServiceFailure
public void checkAbsolutePermission(java.lang.String checkedActionClass) throws KAoSSecurityException, java.lang.NullPointerException, ServiceFailure
KAoSSecurityException
java.lang.NullPointerException
ServiceFailure
public void registerObserver(java.lang.String updateType, java.lang.Object updateCondition, KAoSObserver observer)
KAoSObservable
registerObserver
in interface KAoSObservable
updateType
- String indicating type of update the KAoSObserver is interested in.updateCondition
- Object describing the conditions under which to send the update.observer
- KAoSObserver registering with for updates.public void deregisterObserver(java.lang.String updateType, java.lang.Object updateCondition, KAoSObserver observer)
KAoSObservable
deregisterObserver
in interface KAoSObservable
updateType
- String indicating type of update the KAoSObserver is no longer interested in.observer
- KAoSObserver deregistering.public void notify(java.lang.String updateType, java.lang.Object updateCondition, java.lang.Object update)
KAoSObservable
notify
in interface KAoSObservable
updateType
- String describing the type of update to perform.update
- Object containing the update.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 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 void subclassesSetSynchronizationRequest(java.util.List myCurrentSubclassesClassesURL, java.util.List 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 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 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 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 boolean isSynchronizationNeeded(java.lang.Long myLastUpdateTimeStamp) throws DirectoryFailure
GuardSynchronization
isSynchronizationNeeded
in interface GuardSynchronization
myLastUpdateTimeStamp
- The timestamp of the last update
DirectoryFailure
public void setGuarded(boolean guarded)
public void setGuardRegistered(boolean registered)
protected DefaultKAoSAgentDescription establishAgentDescription(KAoSServiceRoot ksr)
protected java.lang.String createMyDomain() throws AlreadyRegisteredException, DirectoryFailure
AlreadyRegisteredException
DirectoryFailure
protected Locator bindToMessageTransportService(MessageTransportService mts) throws java.lang.Exception
java.lang.Exception
protected JasBean obtainEntityEnv()
public java.util.Map getGuardInfo(java.lang.String guardId)
public java.util.Enumeration getGuards()
protected void distributePolicyUpdate(java.util.List<PolicyMsg> addedPolicies, java.util.List<PolicyMsg> changedPolicies, java.util.List<PolicyMsg> removedPolicies, boolean setPolicies)
protected void sendPolicyUpdate(java.util.List locators, java.util.List addedPolicies, java.util.List changedPolicies, java.util.List removedPolicies, boolean setPolicies, java.lang.String guardGUID)
public java.lang.String getID()
KAoSObserver
getID
in interface KAoSObserver
public void update(java.lang.String observableID, java.lang.String updateType, java.lang.Object updateCondition, java.lang.Object update) throws NotificationException
KAoSObserver
update
in interface KAoSObserver
observableID
- String identifying the KAoSObservable sending the update.updateType
- String indicating type of update.updateCondition
- String describing the condition of the update.update
- Object containing the update.
NotificationException
- when the update fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |