kaos.policy.guard
Class GuardRepositoryManagerImpl

java.lang.Object
  extended by kaos.policy.guard.GuardRepositoryManagerImpl
All Implemented Interfaces:
java.io.Serializable, GuardRepositoryManager
Direct Known Subclasses:
EventsHistoryManager

public class GuardRepositoryManagerImpl
extends java.lang.Object
implements GuardRepositoryManager, java.io.Serializable

This interface defines methods to manage a repository.

See Also:
Serialized Form

Constructor Summary
GuardRepositoryManagerImpl(java.lang.String type)
           
 
Method Summary
 void changeComponentEnabledStatus(java.lang.String associatedOntType, boolean state)
          changes the 'enabled' status of the given component
 java.util.Vector getAllKAoSExtensionComponents()
          Get all components contained in this repository.
 boolean getComponentEnabledStatus(java.lang.String associatedOntType)
          get the 'enabled' status of the given component
 java.util.Vector getKAoSExtensionComponents(java.lang.String associatedOntType)
          Get the KAoSExtensionComponents object for the given type.
 java.lang.String getRepositoryManagerType()
          Get the repository type of this manager.
 java.util.Hashtable getRepositoryTableInformation()
          This method returns the concepts names and their corresponding component names in a Hashtable.
 void removeAllKAoSExtensionComponents()
          Remove all components contained in this repository.
 KAoSExtensionComponent removeKAoSExtensionComponent(java.lang.String associatedOntType)
          Remove from this repository the KAoSExtensionComponent specified by the given associatedOntType.
 void setDirProxy(KAoSAgentDirectoryServiceProxy dcomm)
           
 void setKAoSExtensionComponent(java.lang.String associatedOntType, KAoSExtensionComponent extComp)
          Set KAoSExtensionComponent for the given ontology type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuardRepositoryManagerImpl

public GuardRepositoryManagerImpl(java.lang.String type)
Method Detail

setDirProxy

public void setDirProxy(KAoSAgentDirectoryServiceProxy dcomm)

getRepositoryManagerType

public java.lang.String getRepositoryManagerType()
Get the repository type of this manager. e.g. if a Classifier or Enabler etc.

Specified by:
getRepositoryManagerType in interface GuardRepositoryManager
Returns:
A String specifying the type of this manager.

getKAoSExtensionComponents

public java.util.Vector getKAoSExtensionComponents(java.lang.String associatedOntType)
Get the KAoSExtensionComponents object for the given type.

Specified by:
getKAoSExtensionComponents in interface GuardRepositoryManager
Parameters:
associatedOntType - A String indicating the ontology type associated with that component.
Returns:
A Vector containing KAoSExtensionComponents.

removeKAoSExtensionComponent

public KAoSExtensionComponent removeKAoSExtensionComponent(java.lang.String associatedOntType)
Remove from this repository the KAoSExtensionComponent specified by the given associatedOntType.

Specified by:
removeKAoSExtensionComponent in interface GuardRepositoryManager
Parameters:
associatedOntType - A String indicating the ontology type associated with that component.
Returns:
The removed component.

setKAoSExtensionComponent

public void setKAoSExtensionComponent(java.lang.String associatedOntType,
                                      KAoSExtensionComponent extComp)
                               throws ComponentAlreadyPresentException
Set KAoSExtensionComponent for the given ontology type.

Specified by:
setKAoSExtensionComponent in interface GuardRepositoryManager
Parameters:
associatedOntType - A String indicating the ontology type associated with that component.
extComp - The KAoSExtensionComponent to be set for the given type.
Throws:
ComponentAlreadyPresentException

changeComponentEnabledStatus

public void changeComponentEnabledStatus(java.lang.String associatedOntType,
                                         boolean state)
changes the 'enabled' status of the given component

Specified by:
changeComponentEnabledStatus in interface GuardRepositoryManager
Parameters:
associatedOntType - A String indicating the ontology type associated with that component.
state - A boolean parameter to which the status would change

getComponentEnabledStatus

public boolean getComponentEnabledStatus(java.lang.String associatedOntType)
get the 'enabled' status of the given component

Specified by:
getComponentEnabledStatus in interface GuardRepositoryManager
Parameters:
associatedOntType - A String indicating the ontology type associated with that component.

getAllKAoSExtensionComponents

public java.util.Vector getAllKAoSExtensionComponents()
Get all components contained in this repository.

Specified by:
getAllKAoSExtensionComponents in interface GuardRepositoryManager
Returns:
A Vector containing all components.

removeAllKAoSExtensionComponents

public void removeAllKAoSExtensionComponents()
Remove all components contained in this repository.

Specified by:
removeAllKAoSExtensionComponents in interface GuardRepositoryManager

getRepositoryTableInformation

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

Specified by:
getRepositoryTableInformation in interface GuardRepositoryManager