|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.core.service.directory.KAoSDirectoryService
public class KAoSDirectoryService
$Revision: 1.188 $
Nested Class Summary | |
---|---|
protected static class |
KAoSDirectoryService.OperationWaiter
This class is used as a helper class to block Thread registering the Directory service. |
Field Summary | |
---|---|
protected boolean |
_allowReregistration
|
protected boolean |
_guarded
|
protected boolean |
_guardRegistered
|
protected Locator |
_locator
|
protected MessageReceiver |
_messageReceiver
|
protected MessageTransportService |
_mts
|
protected AgentName |
_name
|
protected java.lang.String |
_nickName
|
protected java.util.Hashtable |
_observers
|
protected TransportSystem |
_transportSystem
|
protected java.util.Hashtable |
_userDescHashtable
|
static java.lang.String |
AGENTS
|
static java.lang.String |
ALL_UPDATES
|
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 java.lang.String |
LOCATOR_NAME
|
static java.lang.String |
MY_DESCRIPTION
Private constants. |
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 |
addEventListener(DirectoryEventListener listener)
|
void |
addEventListener(DomainManagerEventListener listener)
Add an event listener to the collection of objects to be notified by the Directory Service about a domain event. |
void |
addFilteredNamespace(java.lang.String namespace)
This method add a nemaspace to the set of urls depicting ontology namespaces concept of which are filtered out when returned by methods of this repository. |
void |
addPolicies(java.util.Vector policies)
Each element of the Vector is a definition of a policy to be added to the collection of policies of the entity associated with that policy. |
void |
addPolicy(Msg policy)
Add policy to the collection of policies of the entity associated with that policy. |
java.lang.String |
addPolicy(PolicyInformation policy,
java.lang.String policyDBManagerID)
Ask the specified PolicyDBManager to add the given policy object to its database. |
void |
addPolicySet(Msg policySet)
BEGIN - kaos.policy.management.PolicySetDirectory interface implementation |
void |
addPolicySets(java.util.Vector policySets)
Each element of the Vector is an instance of a Msg class specifying an individual policy set fields |
void |
addRemoteEventListener(Locator l)
|
void |
allowReregistration(boolean allow)
|
java.lang.String |
analyzeWorkflow(java.lang.String owlsWorkflow)
Modify the given OWL-S workflow based on policies that apply the actions in workflow. |
java.lang.String |
analyzeWorkflow(java.net.URL owlsWorkflow)
Modify the given OWL-S workflow based on policies that apply the actions in workflow. |
boolean |
areClassesDisjoint(java.lang.String firstClass,
java.lang.String secondClass)
Test if two provided classes are disjoint |
java.util.Set |
askQuery(java.lang.String variableName,
java.lang.String multiplyVariablesQuery)
Get values of the selected variable satisfing the KIF query with possibly many variable. |
protected Locator |
bindToMessageTransportService(MessageTransportService mts)
|
protected void |
bindToMTS()
|
protected java.lang.String |
callWorkflowChecker(java.lang.Object workflowParam)
Uses reflection to invoke the WorkflowChecker.analyzeWorkflow() method *if* the class is present, otherwise just returns null |
java.lang.String |
changeComponentEnabledStatus(java.lang.String repType,
java.lang.String associatedOntType,
java.lang.Boolean state,
java.lang.String guardRepMgrID)
changes the 'enabled' status of the given component |
void |
changedPriority(java.lang.String policyId,
int newPriority)
Method allowing to modify priority of a policy to either eliminate conflict or to alter policy precedence relation |
void |
changePolicies(java.util.Vector policies)
Each element of the Vector is a definition of a policy to replace its current definition in the collection of policies of the entity associated with that policy. |
void |
changePolicy(Msg policy)
Change policy of the entity associated with that policy. |
void |
changePolicySet(Msg policySet)
|
void |
changePolicySets(java.util.Vector policySets)
|
void |
checkAbsolutePermission(java.lang.String checkedActionClass)
The method check if the given action class is absolutly permitted according to the current set of policies |
void |
checkDeepPermission(java.security.Permission perm,
java.lang.Object context)
The method checks if the given action is permitted according to the current set of policies. |
void |
checkPermission(java.security.Permission perm,
java.lang.Object context)
The method check if the given action is permitted according to the current set of policies |
AgentDescription |
createAgentDescription()
Create an empty AgentDescription suitable for attribute population and use. |
protected java.lang.String |
createMyDomain()
subclasses may override this if they want to join a domain other than "Policy Management" |
void |
declareInstance(java.lang.String instanceName,
java.lang.String className)
|
void |
declareInstance(java.lang.String instanceName,
java.lang.String className,
boolean rehydrating)
|
java.lang.String |
deleteAllLogs(java.lang.String historyMonitorID)
Ask the specified HistoryMonitor to delete all the events logged so far. |
java.lang.String |
deleteLogsforActionType(java.lang.String actionType,
java.lang.String historyMonitorID)
Ask the specified HistoryMonitor to delete all logged events that contain the given action type. |
java.lang.String |
deleteLogsforActor(java.lang.String actorID,
java.lang.String historyMonitorID)
Ask the specified HistoryMonitor to delete all logged events that contain the given actor. |
java.lang.String |
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)
This method internally calls 'getSpecifiedLogs' with its input parameters and then deletes the logs returned by that call. |
void |
deregister(AgentDescription desc)
Remove the AgentDescription from the collection of domain entities registered in the directory. |
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 addedPolicies,
java.util.List changedPolicies,
java.util.List removedPolicies,
boolean setPolicies)
Distributes a policy to the guard(s) possessing interest registration to which the policy applies |
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 |
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(java.security.Permission perm,
java.lang.Object context)
The method checks if the given action is permitted according to the current set of policies, or if the given action is a trigger for some obligation policy. |
java.util.Vector |
getAbsoluteObligationsForTriggerConditionForAC(java.lang.String triggerAC)
Based on the specified trigger ActionClassDescription, select all absolute classes of obligations |
java.util.Set |
getActions(java.lang.String forActor)
Get descriptions of the Action classes the specified Actor class or instance can perfom based on its class. |
protected AgentName |
getAgentName(ServiceRoot sr)
|
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.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.lang.String |
getAllKAoSExtensionComponents(java.lang.String repType,
java.lang.String guardRepMgrID)
Ask the specified GuardRepositoryManager to get all components contained in this repository. |
java.lang.String |
getAllLogs(java.lang.String historyMonitorID)
Ask the specified HistoryMonitor to get all the events logged so far. |
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)
In this case, there are NO properties specified. |
java.util.Vector |
getAllowableValuesForActionProperties(java.util.Vector propertyNames,
ActionInstanceDescription actionDesc,
boolean tight)
This function is used when the agent/enforcer has only partial information about an action and would like to determine what range of properties can be allowed by the policy set. |
java.util.Vector |
getAllowableValuesForActionProperties(java.util.Vector propertyNames,
ActionInstanceDescription actionDesc,
java.lang.Boolean tight)
|
java.util.Set |
getAllowableValuesForActionProperty(java.lang.String origPropertyName,
ActionInstanceDescription origActionDesc,
java.util.Set allTargetValues,
boolean tight)
This function is used when the enforcer has only partial information about an action and needs to determine what range of a property can be allowed by the policy. |
java.lang.String |
getAllPolicies(java.lang.String policyDBManagerID)
Ask the specified PolicyDBManager to get all policy objects contained in its database. |
java.util.List |
getAllSchema()
to retrieve all schemas in the repositiry. |
java.util.Vector |
getApplicablePoliciesForEntity(java.lang.String entityId)
Obtain the set of policies directly and indirectly applicable to a specified entity. |
java.util.Set |
getClassesDefInNamespace(java.lang.String namespaceName)
Get set of classes defined in the given namespace. |
java.util.Set |
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.String |
getComponentEnabledStatus(java.lang.String repType,
java.lang.String associatedOntType,
java.lang.String guardRepMgrID)
get the 'enabled' status of the given component |
java.util.Vector |
getConditionalPolicies()
|
java.util.List |
getConstructedOntologyStructures()
This method retrieves all user defined ontlogy structures in the repositiry. |
DomainDescription |
getDomainDescription(java.lang.String domainName)
Get the description of a domain |
java.util.List |
getDomainDescriptionsForGuard(java.lang.String guardGUID)
Obtain a List containing DomainDescriptions of all domains the guard, whose GUID is specified, registered in. |
java.util.Vector |
getDomainNames()
Obtain a List of the names of all registered domains. |
java.util.Map |
getDomainStructure(java.lang.String domainName)
Obtain a Map containing the structure of a domain. |
java.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 |
getGuardDescriptionsForEntity(java.lang.String entityID)
method to return a vector of guard descriptions of the guards for the given entity |
java.util.Map |
getGuardInfo(java.lang.String guardId)
Auxiliary methods / |
java.util.Enumeration |
getGuards()
|
java.lang.String |
getGuardStateFor(java.lang.String guardID)
method for getting the state of the specified guard |
java.lang.String |
getID()
Return the unique identifier of this observer. |
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.lang.String |
getKAoSExtensionComponents(java.lang.String repType,
java.lang.String associatedOntType,
java.lang.String guardRepMgrID)
Ask the specified GuardRepositoryManager a request to get the KAoSExtensionComponents object for the given type. |
KAoSUserDescription |
getKAoSUserDescription(java.lang.String userid)
Obtain the user's KAoSUserDescription from a hashtable. |
java.util.Set |
getListOfLoadedOntologies()
This method returns a set of urls depicting ontologies loaded into the JTP. |
java.lang.String |
getLogsforActionType(java.lang.String actionType,
java.lang.String historyMonitorID)
Ask the specified HistoryMonitor to get all events logged that contain the given action type. |
java.lang.String |
getLogsforActor(java.lang.String actorID,
java.lang.String historyMonitorID)
Ask the specified HistoryMonitor to get all logged events that contain the given actor. |
java.util.Set |
getNamspacesImportedByNamespace(java.lang.String namespaceName)
Get set of namspaces imported by the given namespace. |
java.util.Vector |
getObligationsForTriggerCondition(ActionInstanceDescription triggerAID)
Based on the specified trigger ActionInstanceDescription, select all matching control BasicActionDescription, which define the obligations for the trigger. |
java.util.Set |
getOntologyDefinitionForConcept(java.lang.String conceptName)
Get set of namspaces imported by the given namespace. |
java.util.List |
getPolicies()
Obtain a Vector over all policies. |
java.util.Map |
getPoliciesByEntities()
Obtain a table of all original policies (pre-deconfliction and Ontology->XML conversion) in the system, indexed by the id(s) of the entity(s) to which they apply |
java.util.List |
getPoliciesForActionType(java.lang.String actionType)
Get policies for the specified action type. |
java.util.Vector |
getPoliciesForEntity(java.lang.String id)
Obtain a Vector over all policies associated with an entity whose id is specified. |
Msg |
getPolicy(java.lang.String policyId)
Obtain a policy based on id |
java.lang.String |
getPolicy(java.lang.String policyID,
java.lang.String policyDBManagerID)
Ask the specified PolicyDBManager to get the policy for the given policy id. |
PolicySetMsg |
getPolicySet(java.lang.String policySetId)
|
java.util.List |
getPolicySets()
Obtain an Vector over all policy sets. |
java.lang.Integer |
getPolicyUpdateCount()
Returns count of the number of times the policy has been updated. |
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 |
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.lang.String |
getRepositoryTableInformation(java.lang.String repType,
java.lang.String guardRepMgrID)
This method returns the concepts names and their corresponding component names in a Hashtable. |
java.util.Set |
getResourcesWithValueForProperty(java.lang.String propertyName,
java.lang.String value)
Get values of the variable satisfing the KIF query: (property ?subject value). |
java.util.Vector |
getRootDomains()
Obtain an Enumeration of the names of the root domains (domains with no parent) |
java.util.Vector |
getSchema(java.lang.String dataName)
to retrieve the schema for the given data type. |
ServiceProperties |
getServiceProperties()
Obtain the properties of the service. |
java.lang.String |
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)
Ask the specified HistoryMonitor for the logged events specified by the given parameters. |
java.util.Set |
getSubClassesOf(java.lang.String className)
Get set of subclasses of the given class. |
java.util.Vector |
getSubdomains(java.lang.String domainName)
Obtain an Enumeration of the names of subdomains of a particular domain (returns immediate children only) |
java.util.Set |
getSubPropertiesOf(java.lang.String propertyName)
Get set of subproperties of the given property. |
java.util.Set |
getSuperClassesOf(java.lang.String className)
Get set of superclasses of the given class. |
java.util.Set |
getSuperPropertiesOf(java.lang.String propertyName)
Get set of superproperties of the given property. |
java.util.Set |
getUltimateOntologyTypesOfIndividual(java.lang.String individualName)
Finds the ultimate Ontology type of the provided individual |
java.lang.String |
getUniqueValueForProperty(java.lang.String propertyName,
java.lang.String subjectName)
Get a single value of the variable satisfing the KIF query: (property subject ?val). |
java.util.Set |
getValuesForProperty(java.lang.String propertyName,
java.lang.String subjectName)
Get values of the variable satisfing 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)
|
void |
initLogDomainEvents()
|
void |
instancesSetSynchronizationRequest(java.util.List myCurrentInstancesClassesURL,
java.util.List 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 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.String |
isGuardLoggingActive(java.lang.String historyMonitorID)
|
boolean |
isMadeFullyRedundantByPolicyUnion(java.lang.String firstPolicyId,
java.util.List listOfPolicies)
Method finds out if the specified policy is beign made redundant (fully coverd) by the union of specified policies with higher priority in the repository |
boolean |
isMadeFullyRedundantBySecond(java.lang.String firstPolicyId,
java.lang.String secondPolicyId)
Method finds out if the specified policy is beign made redundant (fully coverd) by the second specified policy with higher priority in the repository |
boolean |
isMadeParitallyRedundantBySecond(java.lang.String firstPolicyId,
java.lang.String secondPolicyId)
Method finds out if the specified policy is beign made partially redundant (partially coverd) by the second specified policy with higher priority in the repository |
boolean |
isPartiallyOverlappedBySecondPolicy(java.lang.String firstPolicyId,
java.lang.String secondPolicyId)
Method finds out if the specified policy is partially overlapped by the second specified policy, the necessary condition is that the two policies have the same modality |
boolean |
isPolicyInConflict(java.lang.String policyId)
Method finds out if the specified policy is in conflict with some policies with the same priority in the repository |
boolean |
isPolicyMakingRedundantSomeOtherPolicy(java.lang.String policyId)
Method finds out if the specified policy makes redundant (fully or partially) some policies with lower priority in the repository |
boolean |
isPolicyRedundant(java.lang.String policyId)
Method finds out if the specified policy is beign made redundant (fully or partially) by some policies with higher priority in the repository |
boolean |
isSynchronizationNeeded(java.lang.Long myLastUpdateTimeStamp)
Check with DS if synchronization is needed by providing the timstamp of the last update. |
boolean |
isUserRegistered(java.lang.String userid,
java.lang.String password)
Check if the user is already registered with KAoS |
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)
This is a fix to support remote invocation via MethodCallRequestMsg. |
void |
loadOntology(SerializableOntModelImpl myOntModel,
boolean recursiveLoad,
boolean rehydrating)
|
void |
loadOntology(java.lang.String myURL,
boolean recursiveLoad)
Loads ontology from the provided url. |
void |
loadOntology(java.lang.String myURL,
java.lang.Boolean recursiveLoad)
This is a fix to support remote invocation via MethodCallRequestMsg. |
void |
loadSchema(java.lang.String fileName)
to load schema definitions of data types from a file. |
static void |
main(java.lang.String[] args)
Main program. |
void |
modify(AgentDescription desc)
Replace the AgentDescription in the collection of registered domain entities with the new AgentDescription. |
void |
modifyEntityProperties(java.lang.String entityGUID,
java.util.List properties)
Modify properties of the entity identified by the given entityGUID. |
void |
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 myCurrentPoliciesIds,
java.util.List myCurrentPoliciesTimeStamps)
Send a list of the current policies ids and associated with them timestamps in the second list. |
void |
putConstructedOntologyStructures(java.util.List ontologyStructureList)
This method stores multiple ontology structures in the repositiry. |
void |
putMultipleSchema(java.util.List schemaList)
to store multiple schemas in the repositiry. |
void |
putSchema(java.lang.String dataName,
java.lang.String dataSchema)
to store the given schema definition under the name of that user defined data type |
void |
receiveMessage(TransportMessage msg)
javax.agent.service.transport.MessageListener interface implementation - begin |
java.lang.String |
refreshAllPoliciesComplete(java.lang.String policyDBManagerID)
Ask the specified PolicyDBManager to refresh all cached property values for all policies in this database. |
java.lang.String |
refreshAllPoliciesPartial(java.util.Vector properties,
java.lang.String policyDBManagerID)
Ask the specified PolicyDBManager to refresh cached values of only those properties that are specified for all the policies in this database. |
java.lang.String |
refreshPolicyComplete(java.lang.String policyID,
java.lang.String policyDBManagerID)
Ask the specified PolicyDBManager to refresh all cached property values for the given policy. |
java.lang.String |
refreshPolicyPartial(java.lang.String policyID,
java.util.Vector properties,
java.lang.String policyDBManagerID)
Ask the specified PolicyDBManager to refresh cached values of only those properties that are specified for the given policy. |
java.lang.String |
refreshSpecifiedPoliciesComplete(java.util.Vector policyIDs,
java.lang.String policyDBManagerID)
Ask the specified PolicyDBManager to refresh cached values of all properties of the specified policies. |
java.lang.String |
refreshSpecifiedPoliciesPartial(java.util.Vector policyIDs,
java.util.Vector properties,
java.lang.String policyDBManagerID)
Ask the specified PolicyDBManager to refresh cached values of only those properties that are specified for only specified policies. |
void |
register(AgentDescription desc)
|
void |
register(AgentDescription desc,
boolean rehydrating)
Add the AgentDescription to the collection of domain entities registered in the directory. |
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 policies)
kaos.domain.management.DomainDirectoryService interface implementation - end /****************************************************************************************** /** Rehydrate policies Adds the policies to the directory service, but does not distribute them. |
java.lang.String |
removeAllKAoSExtensionComponents(java.lang.String repType,
java.lang.String guardRepMgrID)
Ask the specified GuardRepositoryManager to remove all components contained in this repository. |
java.lang.String |
removeAllPolicies(java.lang.String policyDBManagerID)
Ask the specified PolicyDBManager to to remove all policy objects contained in this database. |
void |
removeEventListener(DirectoryEventListener listener)
|
void |
removeEventListener(DomainManagerEventListener listener)
Remove an event listener from the collection of objects to be notified by the Directory Service about a domain event. |
void |
removeExecEnv(java.lang.String execEnvID)
Retrieve a Hashtable containing information about a VM with the specified id from the _executionEnvs table and remove it. |
void |
removeFilteredNamespace(java.lang.String namespace)
This method remove a nemaspace from the set of urls depicting ontology namespaces concept of which are filtered out when returned by methods of this repository. |
java.lang.String |
removeKAoSExtensionComponent(java.lang.String repType,
java.lang.String extCompName,
java.lang.String guardRepMgrID)
Ask the specified GuardRepositoryManager to remove from this repository the KAoSExtensionComponent specified by the given reference. |
void |
removePolicies(java.util.List policies)
Each element of the List is a definition of a policy to be removed from the collection of policies of the entity associated with that policy. |
void |
removePolicy(Msg policy)
Remove policy from the collection of policies of the entity associated with that policy. |
java.lang.String |
removePolicy(java.lang.String policyID,
java.lang.String policyDBManagerID)
Ask the specified PolicyDBManager to remove from its database the policy object for the given policy id. |
void |
removePolicySet(Msg policySet)
|
void |
removePolicySets(java.util.Vector policySets)
|
void |
removeRemoteEventListener(Locator l)
|
void |
removeSchema(java.lang.String dataName)
to remove the schema for the given data type from this repository. |
AgentDescription[] |
search(AgentDescription desc)
Search the collection of AgentDescriptions for all matching descriptions. |
AgentDescription[] |
search(AgentDescription desc,
int maxResults)
Search the collection of AgentDescriptions for all matching descriptions. |
AgentDescription[] |
search(AgentDescription desc,
java.lang.Integer maxResults)
This is a temporary fix for being able to use Reflection in invoking the search (AgentDescription desc, int maxResults) method. |
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)
Sends a policy update to a guard |
void |
sendStatusUpdate(java.lang.String methodName,
java.lang.String status)
|
void |
setConditionalPolicies(java.util.Vector condPols)
|
void |
setGuarded(boolean guarded)
Methods implementing Guarded KAoSDirectoryService |
java.lang.String |
setGuardLoggingState(java.lang.Boolean logging,
java.lang.String historyMonitorID)
kaos.policy.history.HistoryMonitorrForwarder interface implementation - begin |
void |
setGuardRegistered(boolean registered)
|
java.lang.String |
setKAoSExtensionComponent(java.lang.String repType,
java.lang.String associatedOntType,
KAoSExtensionComponent extComp,
java.lang.String guardRepMgrID)
Ask the specified GuardRepositoryManager to set KAoSExtensionComponent for the given ontology type. |
java.lang.String |
setPolicy(java.lang.String policyID,
PolicyInformation policy,
java.lang.String policyDBManagerID)
Ask the specified PolicyDBManager to set the policy object for the given policy id. |
void |
setServiceProperties(ServiceProperties props)
Set the properties of the service. |
void |
setUsePolCert(boolean usePolCert)
|
java.util.List |
splitPolicy(java.lang.String splitPolicy,
java.lang.String secondPolicy)
Method spliting the controlled action of the selected policy one part that overlaps with the second policy and the other part which does not. |
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 myCurrentSubpropertiesPropertyURL,
java.util.List 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 myCurrentSuperclassesClassesURL,
java.util.List 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 myCurrentSuperpropertiesPropertyURL,
java.util.List 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 |
updatePolicies(java.util.List addedPolicies,
java.util.List changedPolicies,
java.util.List removedPolicies)
|
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 final java.lang.String ALL_UPDATES
protected java.lang.String _nickName
protected AgentName _name
protected TransportSystem _transportSystem
protected boolean _allowReregistration
protected boolean _guarded
protected boolean _guardRegistered
protected Locator _locator
protected MessageReceiver _messageReceiver
protected MessageTransportService _mts
protected java.util.Hashtable _userDescHashtable
protected java.util.Hashtable _observers
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
Constructor Detail |
---|
public KAoSDirectoryService()
Method Detail |
---|
public void allowReregistration(boolean allow)
public void initLogDomainEvents()
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)
protected AgentName getAgentName(ServiceRoot sr) throws java.lang.Exception
java.lang.Exception
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 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
props
- containing a set of the properties of the service.
ServiceException
ServiceFailure
public AgentDescription createAgentDescription()
This method may return null
.
public void deregister(AgentDescription desc) throws NotRegisteredException, DirectoryFailure
desc
- the AgentDescription to remove.
NotRegisteredException
- if the AgentDescription is not
registered.
DirectoryFailure
- if the directory service is
not available.public void modify(AgentDescription desc) throws NotRegisteredException, DirectoryFailure
desc
- the new AgentDescription to replace the old one.
NotRegisteredException
- if the AgentDescription is not
registered.
DirectoryFailure
- if the directory service is
not available.public void register(AgentDescription desc) throws AlreadyRegisteredException, DirectoryFailure
AlreadyRegisteredException
DirectoryFailure
public void register(AgentDescription desc, boolean rehydrating) throws AlreadyRegisteredException, DirectoryFailure
desc
- the AgentDescription to add.
AlreadyRegisteredException
- if the AgentDescription is already
registered.
DirectoryFailure
- if the directory service is not available.public void registerNodeEnforcer(java.lang.String guardId)
public AgentDescription[] search(AgentDescription desc) throws SearchException, DirectoryFailure
desc
- the AgentDescription to use for matching.
SearchException
- if an exception occurs during searching.
DirectoryFailure
- if the directory service is unavailable.public AgentDescription[] search(AgentDescription desc, java.lang.Integer maxResults) throws SearchException, DirectoryFailure
SearchException
DirectoryFailure
public AgentDescription[] search(AgentDescription desc, int maxResults) throws SearchException, DirectoryFailure
desc
- the AgentDescription to use for matching.maxResults
- the limit of returned results.
SearchException
- if an exception occurs during searching.
DirectoryFailure
- if the directory service is
not available.public void modifyEntityProperties(java.lang.String entityGUID, java.util.List properties) throws DirectoryFailure, NotRegisteredException, ModificationException
entityGUID
- String containing the entity GUID.properties
- List of Properties to be modified. Each Property contains the name, value, value description,
modification type (add/remove/set, etc), modification result.
Refer to the Property and ModificationResult interfaces for detailed description.
DirectoryFailure
- if the connection to the DS cannot be established.
NotRegisteredException
- if the entity whose properties are to be modified
has not been registered in the DS.
ModificationException
- if one or more property update failed.public java.util.List getAllAgentsInDirectory()
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()
getAllGuardsInDirectory
in interface DomainDirectoryService
public java.util.Vector getGuardDescriptionsForEntity(java.lang.String entityID)
entityID
- A String indicating the guid of the
entity.
public java.util.Vector getAllDomainsInDirectory()
getAllDomainsInDirectory
in interface DomainDirectoryService
public boolean isEntityInDomain(java.lang.String domainName, java.lang.String id)
isEntityInDomain
in interface DomainDirectoryService
id
- The id of an entity to be searched in this domain directory.domainName
- The name of the domain to query
java.lang.NullPointerException
- if the id is null.public DomainDescription getDomainDescription(java.lang.String domainName)
getDomainDescription
in interface DomainDirectoryService
domainName
- the name of the domainpublic java.util.List getDomainDescriptionsForGuard(java.lang.String guardGUID)
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)
getDomainStructure
in interface DomainDirectoryService
domainName
- the name of the domain
public void removeExecEnv(java.lang.String execEnvID)
removeExecEnv
in interface DomainDirectoryService
execEnvID
- the id of the VM to be removed from the _executionEnvs table.public java.util.Vector getRootDomains()
getRootDomains
in interface DomainDirectoryService
public java.util.Vector getDomainNames()
public java.util.Vector getSubdomains(java.lang.String domainName)
getSubdomains
in interface DomainDirectoryService
public KAoSUserDescription getKAoSUserDescription(java.lang.String userid) throws NotRegisteredException
userid
- the user id
NotRegisteredException
public boolean isUserRegistered(java.lang.String userid, java.lang.String password) throws NotRegisteredException
userid
- the user idpassword
- the user password
NotRegisteredException
public void rehydratePolicies(java.util.List policies) throws OntologyPolicyIncorrect, PoliciesHarmonizedException, PrecedenceUndeterminedException
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
public void updatePolicies(java.util.List addedPolicies, java.util.List changedPolicies, java.util.List removedPolicies) throws OntologyPolicyIncorrect, PoliciesHarmonizedException, PrecedenceUndeterminedException
updatePolicies
in interface PolicyDirectory
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
public void addPolicy(Msg policy) throws OntologyPolicyIncorrect, PoliciesHarmonizedException, PrecedenceUndeterminedException
addPolicy
in interface PolicyDirectory
policy
- The Msg containing policy definition for a given entity.
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
public void addPolicies(java.util.Vector policies) throws OntologyPolicyIncorrect, PoliciesHarmonizedException, PrecedenceUndeterminedException
addPolicies
in interface PolicyDirectory
policies
- The Vector of policies to be added to policies of their corresponding entities.
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
public void removePolicy(Msg policy)
removePolicy
in interface PolicyDirectory
policy
- The Msg containing policy definition to be removed.public void removePolicies(java.util.List policies)
removePolicies
in interface PolicyDirectory
policies
- The List of policies to be removed from policies of their corresponding entities.public void changePolicy(Msg policy) throws OntologyPolicyIncorrect, PoliciesHarmonizedException, PrecedenceUndeterminedException
changePolicy
in interface PolicyDirectory
policy
- The Msg containing policy definition to be changed for a given entity.
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
public void changePolicies(java.util.Vector policies) throws OntologyPolicyIncorrect, PoliciesHarmonizedException, PrecedenceUndeterminedException
changePolicies
in interface PolicyDirectory
policies
- The Vector of policies to replace their current definitions.
OntologyPolicyIncorrect
PoliciesHarmonizedException
PrecedenceUndeterminedException
public java.util.List getPolicies()
getPolicies
in interface PolicyDirectory
public Msg getPolicy(java.lang.String policyId)
getPolicy
in interface PolicyDirectory
public java.util.Map getPoliciesByEntities()
getPoliciesByEntities
in interface PolicyDirectory
public java.util.Vector getPoliciesForEntity(java.lang.String id)
getPoliciesForEntity
in interface PolicyDirectory
id
- The String containing the id of entity whose policies are being requested.
public java.util.Vector getApplicablePoliciesForEntity(java.lang.String entityId) throws DirectoryFailure
getApplicablePoliciesForEntity
in interface PolicyDirectory
entityId
- id of the entity
DirectoryFailure
public java.util.Vector getConditionalPolicies()
getConditionalPolicies
in interface PolicyDirectory
public void setConditionalPolicies(java.util.Vector condPols)
setConditionalPolicies
in interface PolicyDirectory
public void addPolicySet(Msg policySet)
addPolicySet
in interface PolicySetDirectory
public void addPolicySets(java.util.Vector policySets)
addPolicySets
in interface PolicySetDirectory
policySets
- The Vector of policies set to be added to the collection of all policies.public void removePolicySet(Msg policySet)
removePolicySet
in interface PolicySetDirectory
public void removePolicySets(java.util.Vector policySets)
removePolicySets
in interface PolicySetDirectory
public void changePolicySet(Msg policySet)
changePolicySet
in interface PolicySetDirectory
public void changePolicySets(java.util.Vector policySets)
changePolicySets
in interface PolicySetDirectory
public java.util.List getPolicySets()
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
policyId
- id of the policy
public java.util.List findConflictingPolicies(java.lang.String policyId)
findConflictingPolicies
in interface PolicyAnalyzes
policyId
- id of the policy
public boolean isFullyOverlappedBySecondPolicy(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws PriorityConditionNotMet
isFullyOverlappedBySecondPolicy
in interface PolicyAnalyzes
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
PriorityConditionNotMet
public boolean isPartiallyOverlappedBySecondPolicy(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws PriorityConditionNotMet
isPartiallyOverlappedBySecondPolicy
in interface PolicyAnalyzes
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
PriorityConditionNotMet
public boolean isFullyOverlappedByUnionOfPolicies(java.lang.String firstPolicyId, java.util.List listOfPolicies) throws PriorityConditionNotMet
isFullyOverlappedByUnionOfPolicies
in interface PolicyAnalyzes
firstPolicyId
- id of the policylistOfPolicies
- list of policies
PriorityConditionNotMet
public boolean isPolicyRedundant(java.lang.String policyId)
isPolicyRedundant
in interface PolicyAnalyzes
policyId
- id of the policy
public java.util.List findPoliciesMakingRedundant(java.lang.String policyId)
findPoliciesMakingRedundant
in interface PolicyAnalyzes
policyId
- id of the policy
public boolean isPolicyMakingRedundantSomeOtherPolicy(java.lang.String policyId)
isPolicyMakingRedundantSomeOtherPolicy
in interface PolicyAnalyzes
policyId
- id of the policy
public java.util.List findPoliciesMadeRedundant(java.lang.String policyId)
findPoliciesMadeRedundant
in interface PolicyAnalyzes
policyId
- id of the policy
public boolean isMadeFullyRedundantBySecond(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws PriorityConditionNotMet
isMadeFullyRedundantBySecond
in interface PolicyAnalyzes
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
PriorityConditionNotMet
public boolean isMadeParitallyRedundantBySecond(java.lang.String firstPolicyId, java.lang.String secondPolicyId) throws PriorityConditionNotMet
isMadeParitallyRedundantBySecond
in interface PolicyAnalyzes
firstPolicyId
- id of the policysecondPolicyId
- id of the policy
PriorityConditionNotMet
public boolean isMadeFullyRedundantByPolicyUnion(java.lang.String firstPolicyId, java.util.List listOfPolicies) throws PriorityConditionNotMet
isMadeFullyRedundantByPolicyUnion
in interface PolicyAnalyzes
firstPolicyId
- id of the policylistOfPolicies
- list of policies
PriorityConditionNotMet
public void changedPriority(java.lang.String policyId, int newPriority)
changedPriority
in interface PolicyModification
policyId
- id of the policynewPriority
- new priority of the policypublic java.util.List harmonizePolicy(java.lang.String harmonizedPolicy, java.lang.String harmonizingPolicy)
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)
splitPolicy
in interface PolicyModification
splitPolicy
- id of the policy to be split.secondPolicy
- id of the policy splitting the first policy
public void checkPermission(java.security.Permission perm, java.lang.Object context) throws KAoSSecurityException, java.lang.NullPointerException, ServiceFailure
checkPermission
in interface AuthorizationPolicyDisclosure
perm
- Permission to be checked by the Guard in order to allow/disallow
an action.context
- An Object describing the context of the action.
KAoSSecurityException
- if the action is not allowed.
java.lang.NullPointerException
- if the Permission argument is null.
ServiceFailure
public java.util.List getPoliciesForActionType(java.lang.String actionType) throws ServiceFailure
getPoliciesForActionType
in interface AuthorizationPolicyDisclosure
actionType
- String specifying the action type for the requested policies.
ServiceFailure
public java.util.Vector getAllowableValuesForActionProperties(java.util.Vector propertyNames, ActionInstanceDescription actionDesc, java.lang.Boolean tight) throws ServiceFailure
ServiceFailure
public java.util.Vector getAllowableValuesForActionProperties(java.util.Vector propertyNames, ActionInstanceDescription actionDesc, boolean tight) throws ServiceFailure
getAllowableValuesForActionProperties
in interface AuthorizationPolicyDisclosure
propertyName
- Vector containing the properties for which
values are to be found.actionDesc
- ActionInstanceDescription object which will
be used to find applicable policies.tight
- boolean, if set to 'true', will result in returning
only these values for the missing specified property
which would satisfy some policy if used alone.
ServiceFailure
public java.util.Vector getAllowableValuesForActionProperties(ActionInstanceDescription actionDesc) throws ServiceFailure
getAllowableValuesForActionProperties
in interface AuthorizationPolicyDisclosure
actionDesc
- ActionInstanceDescription object which will
be used to find applicable policies.
ServiceFailure
public java.util.Vector getObligationsForTriggerCondition(ActionInstanceDescription triggerAID) throws ServiceFailure
getObligationsForTriggerCondition
in interface ObligationPolicyDisclosure
triggerACD
- ActionInstanceDescription describes an instance of the trigger condition sent
by the trigger condition monitor.
ServiceFailure
public java.util.Set getAllowableValuesForActionProperty(java.lang.String origPropertyName, ActionInstanceDescription origActionDesc, java.util.Set allTargetValues, boolean tight) throws ServiceFailure
AuthorizationPolicyDisclosure
getAllowableValuesForActionProperty
in interface AuthorizationPolicyDisclosure
allTargetValues
- Set of possible property values - now it is a fake argument,
which should really be calculated by the directory service
and passed to the entity disclosing the policy (PolicyDisclosure).tight
- boolean, if set to 'true', will result in returning
only these values for the missing specified property
which would satisfy some policy if used alone.
ServiceFailure
public java.lang.Integer getPolicyUpdateCount() throws ServiceFailure
getPolicyUpdateCount
in interface PolicyDisclosure
ServiceFailure
public java.util.Vector findPolicyDecision(java.security.Permission perm, java.lang.Object context) throws KAoSSecurityException, java.lang.NullPointerException, ServiceFailure, ObligationViolationException
findPolicyDecision
in interface PolicyDisclosure
perm
- Permission to be checked by the Guard in order to allow/disallow
an action; or the trigger to be checked for obligation policies.context
- An Object describing the context of the action.
KAoSSecurityException
- if the action is not allowed.
java.lang.NullPointerException
- if the Permission argument is null.
ServiceFailure
ObligationViolationException
public void checkDeepPermission(java.security.Permission perm, java.lang.Object context) throws java.lang.NullPointerException, ServiceFailure, KAoSSecurityException
checkDeepPermission
in interface PolicyDisclosure
perm
- Permission to be checked by the Guard in order to allow/disallow
an action.context
- An Object describing the context of the action.
java.lang.NullPointerException
- if the Permission argument is null.
KAoSSecurityException
- containing the ids of
forbidding policies, if any.
ServiceFailure
public java.util.Set getListOfLoadedOntologies()
getListOfLoadedOntologies
in interface OntologyRepositoryService
public java.util.Set getAllNamespaces()
getAllNamespaces
in interface OntologyRepositoryService
public java.util.Set getFilteredNamespaces()
getFilteredNamespaces
in interface OntologyRepositoryService
public void addFilteredNamespace(java.lang.String namespace)
addFilteredNamespace
in interface OntologyRepositoryService
namespace
- The name of the namespacepublic void removeFilteredNamespace(java.lang.String namespace)
removeFilteredNamespace
in interface OntologyRepositoryService
namespace
- The name of the namespacepublic java.util.List getConstructedOntologyStructures()
getConstructedOntologyStructures
in interface OntologyRepositoryService
public void putConstructedOntologyStructures(java.util.List ontologyStructureList) throws jtp.ReasoningException, java.io.IOException
putConstructedOntologyStructures
in interface OntologyRepositoryService
ontologyStructureList
- a list containing SerializableOntModelImpl objects.
jtp.ReasoningException
- or IOException when loading of the ontology failed.
java.io.IOException
public void loadOntology(java.lang.String myURL, java.lang.Boolean recursiveLoad) throws jtp.ReasoningException, java.io.IOException
jtp.ReasoningException
java.io.IOException
public void loadOntology(java.lang.String myURL, boolean recursiveLoad) throws jtp.ReasoningException, java.io.IOException
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.
jtp.ReasoningException
- when loading of the ontology failed.
java.io.IOException
public void loadOntology(SerializableOntModelImpl myOntModel, java.lang.Boolean recursiveLoad) throws jtp.ReasoningException, java.io.IOException
jtp.ReasoningException
java.io.IOException
public void loadOntology(SerializableOntModelImpl myOntModel, boolean recursiveLoad) throws jtp.ReasoningException, java.io.IOException
loadOntology
in interface OntologyRepositoryService
myOntModel
- The object of type SerializableOntMOntImpl containing the added ontologyrecursiveLoad
- Indicates if the imported ontologies (by the ontology contained in myOntModel) should also be recursively loaded.
jtp.ReasoningException
- when loading of the ontology failed.
java.io.IOException
public void loadOntology(SerializableOntModelImpl myOntModel, boolean recursiveLoad, boolean rehydrating) throws jtp.ReasoningException, java.io.IOException
jtp.ReasoningException
java.io.IOException
public java.util.Set getInstancesOf(java.lang.String conceptName) throws UnknownConceptException
getInstancesOf
in interface OntologyRepositoryService
getInstancesOf
in interface OntologyInterfaces
conceptName
- The name of the concept in the Jena format
UnknownConceptException
- if forActor is unknow for the ontology repositorypublic java.util.Set getUltimateOntologyTypesOfIndividual(java.lang.String individualName) throws UnknownConceptException
getUltimateOntologyTypesOfIndividual
in interface OntologyRepositoryService
individualName
- the name of the individual
individualName
- if concept unknow or any problem with JTP approached
UnknownConceptException
- if concept unknow or any problem with JTP approachedpublic java.util.Set getSuperClassesOf(java.lang.String className) throws UnknownConceptException
getSuperClassesOf
in interface OntologyRepositoryService
className
- The name of the class in the Jena format
UnknownConceptException
- if className is unknow for the ontology repositorypublic java.util.Set getSubClassesOf(java.lang.String className) throws UnknownConceptException
getSubClassesOf
in interface OntologyRepositoryService
getSubClassesOf
in interface OntologyInterfaces
className
- The name of the class in the Jena format
UnknownConceptException
- if className is unknow for the ontology repositorypublic java.util.Set getSuperPropertiesOf(java.lang.String propertyName) throws UnknownConceptException
getSuperPropertiesOf
in interface OntologyRepositoryService
getSuperPropertiesOf
in interface OntologyInterfaces
propertyName
- The name of the property in Jena format
java.lang.Exception
- if propertyName is unknow for the ontology repository
UnknownConceptException
public java.util.Set getSubPropertiesOf(java.lang.String propertyName) throws UnknownConceptException
getSubPropertiesOf
in interface OntologyInterfaces
propertyName
- The name of the property in Jena format
java.lang.Exception
- if propertyName is unknow for the ontology repository
UnknownConceptException
public boolean testTrue(java.lang.String statement) throws QueryFailure
testTrue
in interface OntologyRepositoryService
testTrue
in interface OntologyInterfaces
statement
- string containing the added ontologOnt *
QueryFailure
- if reasoning failed.public java.lang.String getUniqueValueForProperty(java.lang.String propertyName, java.lang.String subjectName) throws QueryFailure
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
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
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.Vector getPropertiesApplicableTo(java.lang.String className) throws UnknownConceptException
getPropertiesApplicableTo
in interface OntologyRepositoryService
getPropertiesApplicableTo
in interface OntologyInterfaces
className
- the name of the namespace
UnknownConceptException
- if className is unknow for the ontology repositorypublic java.lang.String getRangeOnPropertyForClass(java.lang.String className, java.lang.String propertyName) throws UnknownConceptException
getRangeOnPropertyForClass
in interface OntologyRepositoryService
getRangeOnPropertyForClass
in interface OntologyInterfaces
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
askQuery
in interface OntologyRepositoryService
variableName
- the neame ofthe selected variablemultiplyVariablesQuery
- the query
QueryFailure
- if reasoning failed.public boolean areClassesDisjoint(java.lang.String firstClass, java.lang.String secondClass) throws QueryFailure, DirectoryFailure
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
getClassesDefInNamespace
in interface OntologyRepositoryService
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknow for the ontology repositorypublic java.util.Set getPropertiesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException
getPropertiesDefInNamespace
in interface OntologyRepositoryService
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknow for the ontology repositorypublic java.util.Set getInstancesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException
getInstancesDefInNamespace
in interface OntologyRepositoryService
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknow for the ontology repositorypublic java.util.Set getNamspacesImportedByNamespace(java.lang.String namespaceName) throws UnknownNamespaceException
getNamspacesImportedByNamespace
in interface OntologyRepositoryService
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknow for the ontology repositorypublic java.util.Set getOntologyDefinitionForConcept(java.lang.String conceptName)
getOntologyDefinitionForConcept
in interface OntologyInterfaces
conceptName
- The name of the namespace in the Jena format
public java.util.Set getIndividualActors(java.lang.String baseActorClass) throws UnknownConceptException
getIndividualActors
in interface KAoSOntologyQueryService
baseActorClass
- The name of the Actor class which the return elements have to be an instance of
If the name is empty uses Actors as a base class
UnknownConcept
- if baseActorClass is unknow for the ontology repository
UnknownConceptException
- if baseActorClass is unknow for the ontology repositorypublic java.util.Set getClassesOfActors(java.lang.String baseActorClass) throws UnknownConceptException
getClassesOfActors
in interface KAoSOntologyQueryService
baseActorClass
- The name of the Actor class which the return classes have to be a subclass of
If the name is empty uses Actors as a base class
UnknownConceptException
- if baseActorClass is unknow for the ontology repositorypublic java.util.Set getIndividualPlaces(java.lang.String basePlaceClass) throws UnknownConceptException
getIndividualPlaces
in interface KAoSOntologyQueryService
baseActorClass
- The name of the Place class which the return elements have to be an instance of
If the name is empty uses Place as a base class
UnknownConceptException
- if basePlaceClass is unknow for the ontology repositorypublic java.util.Set getClassesOfPlaces(java.lang.String basePlaceClass) throws UnknownConceptException
getClassesOfPlaces
in interface KAoSOntologyQueryService
baseActorClass
- 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
getIndividualGroups
in interface KAoSOntologyQueryService
baseGroupClass
- The name of the Group class which the return elements have to be an instance of
If the name is empty uses Group as a base class
UnknownConceptException
- if baseGroupClass is unknow for the ontology repositorypublic java.util.Set getClassesOfGroups(java.lang.String baseGroupClass) throws UnknownConceptException
getClassesOfGroups
in interface KAoSOntologyQueryService
baseGroupClass
- The name of the Group class which the return elements have to be an instance of
If the name is empty uses Group as a base class
UnknownConceptException
- if baseGroupClass is unknow for the ontology repositorypublic java.util.Set getIndividualTargets(java.lang.String baseTargetClass) throws UnknownConceptException
getIndividualTargets
in interface KAoSOntologyQueryService
baseTargetClass
- The name of the targets (Actors or Entities) class which the return classes have to be a subclass of
UnknownConceptException
- if baseTargetClass is unknow for the ontology repositorypublic java.util.Set getClassesOfTargets(java.lang.String baseTargetClass) throws UnknownConceptException
getClassesOfTargets
in interface KAoSOntologyQueryService
baseTargetClass
- The name of the targets (Actors or Entities) class which the return classes have to be a subclass of
UnknownConceptException
- if baseTargetClass is unknow 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
getActions
in interface KAoSOntologyQueryService
forActor
- The name of the Actor class or instance
UnknownConceptException
- if forActor is unknow for the ontology repositorypublic java.util.Set getClassesOfActorsCapableOfPerformingActions(java.lang.String actionClass) throws UnknownConceptException, DirectoryFailure
getClassesOfActorsCapableOfPerformingActions
in interface KAoSOntologyQueryService
actionClass
- The name of the Action class
UnknownConceptException
- if actionClass is unknow for the ontology repository
DirectoryFailure
public void putSchema(java.lang.String dataName, java.lang.String dataSchema) throws DirectoryFailure
putSchema
in interface XMLRepository
dataName
- the name of the defined data type
DirectoryFailure
public java.util.Vector getSchema(java.lang.String dataName) throws DirectoryFailure
getSchema
in interface OntologyInterfaces
getSchema
in interface XMLRepository
dataName
- the name of the data type to be retrieved
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 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)
Those listeners must establish a trust relationship with the Directory Service 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)
Those listeners have established a trust relationship with the Directory Service 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.lang.String getPolicy(java.lang.String policyID, java.lang.String policyDBManagerID) throws java.lang.Exception
policyID
- A String indicating the policy id.policyDBManagerID
- A String identifying the specific PolicyDBManager to forward this request to.
java.lang.Exception
public java.lang.String removePolicy(java.lang.String policyID, java.lang.String policyDBManagerID) throws java.lang.Exception
policyID
- A String indicating the policy id.policyDBManagerID
- A String identifying the specific PolicyDBManager to forward this request to.
java.lang.Exception
public java.lang.String setPolicy(java.lang.String policyID, PolicyInformation policy, java.lang.String policyDBManagerID) throws java.lang.Exception
policyID
- A String indicating the policy id.policy
- The policy object to be set for
the given id.policyDBManagerID
- A String identifying the specific PolicyDBManager to forward this request to.
java.lang.Exception
public java.lang.String addPolicy(PolicyInformation policy, java.lang.String policyDBManagerID) throws java.lang.Exception
policy
- The policy object to be added.policyDBManagerID
- A String identifying the specific PolicyDBManager to forward this request to.
java.lang.Exception
public java.lang.String getAllPolicies(java.lang.String policyDBManagerID) throws java.lang.Exception
policyDBManagerID
- A String identifying the specific PolicyDBManager to forward this request to.
java.lang.Exception
public java.lang.String removeAllPolicies(java.lang.String policyDBManagerID) throws java.lang.Exception
policyDBManagerID
- A String identifying the specific PolicyDBManager to forward this request to.
java.lang.Exception
public java.lang.String refreshPolicyComplete(java.lang.String policyID, java.lang.String policyDBManagerID) throws java.lang.Exception
policyID
- A String indicating the policy id.policyDBManagerID
- A String identifying the specific PolicyDBManager to forward this request to.
java.lang.Exception
public java.lang.String refreshPolicyPartial(java.lang.String policyID, java.util.Vector properties, java.lang.String policyDBManagerID) throws java.lang.Exception
policyID
- A String indicating the policy id.properties
- A Vector containing property names whose values
are to be refreshed.policyDBManagerID
- A String identifying the specific PolicyDBManager to forward this request to.
java.lang.Exception
public java.lang.String refreshAllPoliciesComplete(java.lang.String policyDBManagerID) throws java.lang.Exception
policyDBManagerID
- A String identifying the specific PolicyDBManager to forward this request to.
java.lang.Exception
public java.lang.String refreshAllPoliciesPartial(java.util.Vector properties, java.lang.String policyDBManagerID) throws java.lang.Exception
properties
- A Vector containing property names whose values
are to be refreshed.policyDBManagerID
- A String identifying the specific PolicyDBManager to forward this request to.
java.lang.Exception
public java.lang.String refreshSpecifiedPoliciesComplete(java.util.Vector policyIDs, java.lang.String policyDBManagerID) throws java.lang.Exception
policyIDs
- A Vector containing ids of those policies that
are to be refreshed.policyDBManagerID
- A String identifying the specific PolicyDBManager to forward this request to.
java.lang.Exception
public java.lang.String refreshSpecifiedPoliciesPartial(java.util.Vector policyIDs, java.util.Vector properties, java.lang.String policyDBManagerID) throws java.lang.Exception
policyIDs
- A Vector containing ids of those policies that
are to be refreshed.properties
- A Vector containing property names whose values
are to be refreshed.policyDBManagerID
- A String identifying the specific PolicyDBManager to forward this request to.
java.lang.Exception
public java.lang.String getGuardStateFor(java.lang.String guardID) throws java.lang.Exception
java.lang.Exception
public java.lang.String setGuardLoggingState(java.lang.Boolean logging, java.lang.String historyMonitorID) throws java.lang.Exception
java.lang.Exception
public java.lang.String isGuardLoggingActive(java.lang.String historyMonitorID) throws java.lang.Exception
java.lang.Exception
public java.lang.String getAllLogs(java.lang.String historyMonitorID) throws java.lang.Exception
historyMonitorID
- A String identifying the specific HistoryMonitor to forward this request to.
java.lang.Exception
public java.lang.String deleteAllLogs(java.lang.String historyMonitorID) throws java.lang.Exception
historyMonitorID
- A String identifying the specific HistoryMonitor to forward this request to.
java.lang.Exception
public java.lang.String getLogsforActionType(java.lang.String actionType, java.lang.String historyMonitorID) throws java.lang.Exception
actionType
- A String indicating the action type.historyMonitorID
- A String identifying the specific HistoryMonitor to forward this request to.
java.lang.Exception
public java.lang.String deleteLogsforActionType(java.lang.String actionType, java.lang.String historyMonitorID) throws java.lang.Exception
actionType
- A String indicating the action type.historyMonitorID
- A String identifying the specific HistoryMonitor to forward this request to.
java.lang.Exception
public java.lang.String getLogsforActor(java.lang.String actorID, java.lang.String historyMonitorID) throws java.lang.Exception
actorID
- A String indicating the actor id.historyMonitorID
- A String identifying the specific HistoryMonitor to forward this request to.
java.lang.Exception
public java.lang.String deleteLogsforActor(java.lang.String actorID, java.lang.String historyMonitorID) throws java.lang.Exception
actorID
- A String indicating the actor id.historyMonitorID
- A String identifying the specific HistoryMonitor to forward this request to.
java.lang.Exception
public java.lang.String 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 java.lang.Exception
actionType
- A String indicating the action type of requested logs.
If it is null, 'all action types' would be
assumed.actorID
- A String indicating the actor of requested logs.
If null, 'all actors' would be assumed.startTime
- A long, indicating the start of time period for
which logs are requested.
If null, 'the begining of logs' time would be assumed.endTime
- A long, indicating the end of time period for which
logs are requested.
If null, 'time of the latest log' would be assumed.latest
- A boolean, indicating if only latest logs are requested.
If it is set:
a) start and end time parameters are ignored.
b) If actionType is null, and actorID is null,
the latest log for each actor is returned.
c) If actorID is null and actionType is not null
the latest logs for each actor for the given
actionType are returned.
d) If actorID is not null, the latest log for that
actor is returned. If actionType also is not null,
the latest log for that actor and that action is
returned.
If this boolean is not set, log are retrieved
based on preceding parameters.historyMonitorID
- A String identifying the specific HistoryMonitor to forward this request to.
java.lang.Exception
public java.lang.String 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 java.lang.Exception
java.lang.Exception
public java.lang.String getKAoSExtensionComponents(java.lang.String repType, java.lang.String associatedOntType, java.lang.String guardRepMgrID) throws java.lang.Exception
repType
- A String identifying the specific RepositoryManager within a collection of managers.associatedOntType
- A String indicating the
ontology type associated with that
component.guardRepMgrID
- A String identifying the Guard storing the collection of Repository Managers.
java.lang.Exception
public java.lang.String removeKAoSExtensionComponent(java.lang.String repType, java.lang.String extCompName, java.lang.String guardRepMgrID) throws java.lang.Exception
repType
- A String identifying the specific RepositoryManager within a collection of managers.extCompName
- the name of KAoSExtensionComponent to be removed.guardRepMgrID
- A String identifying the Guard storing the collection of Repository Managers.
java.lang.Exception
public java.lang.String setKAoSExtensionComponent(java.lang.String repType, java.lang.String associatedOntType, KAoSExtensionComponent extComp, java.lang.String guardRepMgrID) throws java.lang.Exception
repType
- A String identifying the specific RepositoryManager within a collection of managers.associatedOntType
- A String indicating the
ontology type associated with that
component.extComp
- The KAoSExtensionComponent to be set for
the given type.guardRepMgrID
- A String identifying the Guard storing the collection of Repository Managers.
java.lang.Exception
public java.lang.String changeComponentEnabledStatus(java.lang.String repType, java.lang.String associatedOntType, java.lang.Boolean state, java.lang.String guardRepMgrID) throws java.lang.Exception
repType
- A String identifying the specific RepositoryManager within a collection of managers.associatedOntType
- A String indicating the
ontology type associated with that
component.state
- A boolean parameter to which the status would
changeguardRepMgrID
- A String identifying the Guard storing the collection of Repository Managers.
java.lang.Exception
public java.lang.String getComponentEnabledStatus(java.lang.String repType, java.lang.String associatedOntType, java.lang.String guardRepMgrID) throws java.lang.Exception
repType
- A String identifying the specific RepositoryManager within a collection of managers.associatedOntType
- A String indicating the
ontology type associated with that
component.guardRepMgrID
- A String identifying the Guard storing the collection of Repository Managers.
java.lang.Exception
public java.lang.String getAllKAoSExtensionComponents(java.lang.String repType, java.lang.String guardRepMgrID) throws java.lang.Exception
repType
- A String identifying the specific RepositoryManager within a collection of managers.guardRepMgrID
- A String identifying the Guard storing the collection of Repository Managers.
java.lang.Exception
public java.lang.String removeAllKAoSExtensionComponents(java.lang.String repType, java.lang.String guardRepMgrID) throws java.lang.Exception
repType
- A String identifying the specific RepositoryManager within a collection of managers.guardRepMgrID
- A String identifying the Guard storing the collection of Repository Managers.
java.lang.Exception
public java.lang.String getRepositoryTableInformation(java.lang.String repType, java.lang.String guardRepMgrID) throws java.lang.Exception
repType
- A String identifying the specific RepositoryManager within a collection of managers.guardRepMgrID
- A String identifying the Guard storing the collection of Repository Managers.
java.lang.Exception
public java.util.Vector getAbsoluteObligationsForTriggerConditionForAC(java.lang.String triggerAC) throws ServiceFailure
triggerACD
- OWL string describes a class of the trigger condition
ServiceFailure
public void checkAbsolutePermission(java.lang.String checkedActionClass) throws KAoSSecurityException, java.lang.NullPointerException, ServiceFailure
checkedActionClass
- String containg OWL defiition of the action to be checked.
KAoSSecurityException
- if the action is not allowed.
java.lang.NullPointerException
- if the submitted argument is null.
ServiceFailure
public void registerObserver(java.lang.String updateType, java.lang.Object updateCondition, KAoSObserver observer)
registerObserver
in interface KAoSObservable
updateType
- String, indicating the type of update a KAoSObserver is interested in.
For now the DS allows only for a KAoSConstants.REGISTRATION_UPDATE.
As a consequence of this, these observers are automatically sent
KAoSConstants.DEREGISTRATION_UPDATE as well when that agent deregisters, i.e.
they are sent the description of the agent who deregistered,
and they are supposed to understand and handle this update too.updateCondition
- Object, describing the conditions for which to send an update.
For now this is a Hashtable object. Keys from this hashtable are names of
the properties in an agent's description, and are Strings. Values
of those keys are objects. They together specify the kind of agents this
observer is interested in. These key-value pairs are matched with the key-value
pairs from an agent's description to see if that agent matches the search criteria.
The observer is updated with agent descriptions of all agents that match
the update condition. These descriptions are sent seperately, not as all in one.
Also, when new agents come online later on, they too, are matched for the update
conditions of the observer, and the observer is updated with their descriptions if
they are a match.
If an observer is interested in not just one specific agent, but all
agents in the DS, then that observer adds a 'KAoSConstants.AGENT_LIST' key to update
condition object. The value for this key is ignored.
Thus DS will know that this observer wants information of all the agents and will send
it their list initially. Afterwards, it will send each new description to the
observer as new agents register. Hence the observer should check if the update
is a List of, or a single, agent description.
This observer too will get DEREGISTRATION_UPDATEs without explicit request,
and is supposed to handle them.observer
- KAoSObserver registering with for updates.public void deregisterObserver(java.lang.String updateType, java.lang.Object updateCondition, KAoSObserver observer)
deregisterObserver
in interface KAoSObservable
updateType
- String indicating type of update the KAoSObserver is no longer interested in.
For now the DS would handle only KAoSConstants.REGISTRATION_UPDATE.updateCondition
- See the same in the method heading for registerObserver.observer
- the KAoSObserver deregistering.public void notify(java.lang.String updateType, java.lang.Object updateCondition, java.lang.Object update)
notify
in interface KAoSObservable
updateType
- String describing the type of update to perform.
For now the DS would handle only KAoSConstants.REGISTRATION_UPDATE.updateCondition
- See the same in the method heading for registerObserver.update
- Object containing the update.
For now this is the agent description of the matching agent. Please note that
if the observer has registered for 'AGENT_LIST', then it will initially get a list
of all agent descriptions, and afterwards will keep getting individual descriptions
as new agents come online.
If it has not registered for AGENT_LIST, then it will descriptions of all matching
agents seperately (i.e. not all in one list) and then will keep getting individual
descriptions as new agents come online.public void policiesSynchronizationRequest(java.util.List myCurrentPoliciesIds, java.util.List myCurrentPoliciesTimeStamps) throws DirectoryFailure
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 myCurrentInstancesClassesURL, java.util.List myCurrentInstancesSetsTimeStamps) throws DirectoryFailure
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 intances set timestamps.
DirectoryFailure
public void subclassesSetSynchronizationRequest(java.util.List myCurrentSubclassesClassesURL, java.util.List myCurrentSubclassesSetsTimeStamps) throws DirectoryFailure
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 myCurrentSuperclassesClassesURL, java.util.List myCurrentSuperclassesSetsTimeStamps) throws DirectoryFailure
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 myCurrentSubpropertiesPropertyURL, java.util.List myCurrentSubpropertiesSetsTimeStamps) throws DirectoryFailure
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 myCurrentSuperpropertiesPropertyURL, java.util.List myCurrentSuperpropertiesSetsTimeStamps) throws DirectoryFailure
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
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 addedPolicies, java.util.List changedPolicies, java.util.List removedPolicies, boolean setPolicies)
addedPolicies
- the list of policyMsgs to be addedchangedPolicies
- the list of policyMsgs to be removedremovedPolicies
- the list of policyMsgs to be changedsetPolicies
- 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)
Locator
- locator for the guardpublic java.lang.String analyzeWorkflow(java.lang.String owlsWorkflow) throws java.lang.Exception
owlsWorkflow
- - the OWL-S workflow to analyze/modify (xml text)
java.lang.Exception
public java.lang.String analyzeWorkflow(java.net.URL owlsWorkflow) throws java.lang.Exception
owlsWorkflow
- - URL to an existing OWL-S workflow to analyze/modify
java.lang.Exception
protected java.lang.String callWorkflowChecker(java.lang.Object workflowParam) throws java.lang.Exception
workflowParam
- - URI or String parameter for the analyzeWorkflow method
java.lang.Exception
public static void main(java.lang.String[] args)
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.update
- Object containing the update.
NotificationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |