Interface IServiceThingService

All Superinterfaces:
IComponent, IInitializable, IMetaComponent

public interface IServiceThingService extends IMetaComponent
  • Method Details

    • createService

      IThingID createService(String type, String name, IThingID parentID, IThingID ownerID) throws MetaException
      Creates the service thing, and assigns it a name and type
      Parameters:
      type - service type
      name - service name
      parentID - parent folder
      ownerID - user
      Returns:
      id of new service
      Throws:
      MetaException - on DB error
    • removeService

      void removeService(IThingID serviceID) throws MetaException
      removes a service will fail if there are any references to this service
      Parameters:
      serviceID - id to remove
      Throws:
      MetaException - if service cannot be deleted or DB error
    • getServiceByName

      IThingID getServiceByName(String type, String name) throws MetaException
      Gets a instance id of service based on name and service type
      Parameters:
      type - service type
      name - service name
      Returns:
      service id, INVALID_ID if nothing found
      Throws:
      MetaException - on DB Error
    • getServiceThingFromID

      IServiceThing getServiceThingFromID(IThingID thingID)
      gets a service thing from an ID
      Parameters:
      thingID -
      Returns:
    • getServiceIDs

      IThingIDList getServiceIDs() throws MetaException
      complete list of all services
      Returns:
      array of service id's
      Throws:
      MetaException - on DB error
    • getServiceIDs

      IThingIDList getServiceIDs(String type) throws MetaException
      Gets list of service id's for service type
      Parameters:
      type - service type
      Returns:
      null if type not found
      Throws:
      MetaException - on DB Error
    • getServiceTypes

      List<String> getServiceTypes() throws MetaException
      Gets list of all service types
      Returns:
      List of String
      Throws:
      MetaException - on DB Error
    • invalidate

      void invalidate()
      causes local map to refresh, called from MetaEventService