Class ComponentInstanceStore

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPipInstance​(de.fraunhofer.iese.mydata.component.ComponentId componentId, de.fraunhofer.iese.mydata.component.interfaces.IPolicyInformationPoint instance)
      Registers a PIP instance to the manager
      void addPxpInstance​(de.fraunhofer.iese.mydata.component.ComponentId componentId, de.fraunhofer.iese.mydata.component.interfaces.IPolicyExecutionPoint instance)
      Registers a PXP instance to the manager
      void clear()
      Clear all references to the service instances
      Optional<de.fraunhofer.iese.mydata.component.interfaces.IPolicyInformationPoint> getPipInstanceByComponentId​(de.fraunhofer.iese.mydata.component.ComponentId componentId)
      Retrieve previously added PIP instance
      Optional<de.fraunhofer.iese.mydata.component.interfaces.IPolicyExecutionPoint> getPxpInstanceByComponentId​(de.fraunhofer.iese.mydata.component.ComponentId componentId)
      Retrieve previously added PXP instance
      void removePipInstance​(de.fraunhofer.iese.mydata.component.ComponentId componentId)
      Remove a specific instance from the manager
      void removePxpInstance​(de.fraunhofer.iese.mydata.component.ComponentId componentId)
      Remove a specific instance from the manager
    • Constructor Detail

      • ComponentInstanceStore

        public ComponentInstanceStore()
    • Method Detail

      • addPipInstance

        public void addPipInstance​(de.fraunhofer.iese.mydata.component.ComponentId componentId,
                                   de.fraunhofer.iese.mydata.component.interfaces.IPolicyInformationPoint instance)
                            throws de.fraunhofer.iese.mydata.exception.InvalidEntityException,
                                   de.fraunhofer.iese.mydata.exception.ConflictingResourceException
        Description copied from interface: IComponentInstanceStore
        Registers a PIP instance to the manager
        Specified by:
        addPipInstance in interface IComponentInstanceStore
        Parameters:
        componentId - the componentId, not null
        instance - the instance, not null
        Throws:
        de.fraunhofer.iese.mydata.exception.InvalidEntityException - when providing an invalid componentId
        de.fraunhofer.iese.mydata.exception.ConflictingResourceException - when there already is an instance with that componentId
      • addPxpInstance

        public void addPxpInstance​(de.fraunhofer.iese.mydata.component.ComponentId componentId,
                                   de.fraunhofer.iese.mydata.component.interfaces.IPolicyExecutionPoint instance)
                            throws de.fraunhofer.iese.mydata.exception.InvalidEntityException,
                                   de.fraunhofer.iese.mydata.exception.ConflictingResourceException
        Description copied from interface: IComponentInstanceStore
        Registers a PXP instance to the manager
        Specified by:
        addPxpInstance in interface IComponentInstanceStore
        Parameters:
        componentId - the componentId, not null
        instance - the instance, not null
        Throws:
        de.fraunhofer.iese.mydata.exception.InvalidEntityException - when providing an invalid componentId
        de.fraunhofer.iese.mydata.exception.ConflictingResourceException - when there already is an instance with that componentId
      • removePipInstance

        public void removePipInstance​(de.fraunhofer.iese.mydata.component.ComponentId componentId)
        Description copied from interface: IComponentInstanceStore
        Remove a specific instance from the manager
        Specified by:
        removePipInstance in interface IComponentInstanceStore
        Parameters:
        componentId - the componentId, not null
      • removePxpInstance

        public void removePxpInstance​(de.fraunhofer.iese.mydata.component.ComponentId componentId)
        Description copied from interface: IComponentInstanceStore
        Remove a specific instance from the manager
        Specified by:
        removePxpInstance in interface IComponentInstanceStore
        Parameters:
        componentId - the componentId, not null
      • getPipInstanceByComponentId

        public Optional<de.fraunhofer.iese.mydata.component.interfaces.IPolicyInformationPoint> getPipInstanceByComponentId​(de.fraunhofer.iese.mydata.component.ComponentId componentId)
        Description copied from interface: IComponentInstanceStore
        Retrieve previously added PIP instance
        Specified by:
        getPipInstanceByComponentId in interface IComponentInstanceStore
        Parameters:
        componentId - the componentId, not null
        Returns:
        the previously added PIP instance
      • getPxpInstanceByComponentId

        public Optional<de.fraunhofer.iese.mydata.component.interfaces.IPolicyExecutionPoint> getPxpInstanceByComponentId​(de.fraunhofer.iese.mydata.component.ComponentId componentId)
        Description copied from interface: IComponentInstanceStore
        Retrieve previously added PXP instance
        Specified by:
        getPxpInstanceByComponentId in interface IComponentInstanceStore
        Parameters:
        componentId - the componentId, not null
        Returns:
        the previously added PXP instance