public interface IServiceThingService extends IMetaComponent
Modifier and Type | Method and Description |
---|---|
IThingID |
createService(String type,
String name,
IThingID parentID,
IThingID ownerID)
Creates the service thing, and assigns it a name and type
|
IThingID |
getServiceByName(String type,
String name)
Gets a instance id of service based on name and service type
|
IThingIDList |
getServiceIDs()
complete list of all services
|
IThingIDList |
getServiceIDs(String type)
Gets list of service id's for service type
|
IServiceThing |
getServiceThingFromID(IThingID thingID)
gets a service thing from an ID
|
List<String> |
getServiceTypes()
Gets list of all service types
|
void |
invalidate()
causes local map to refresh, called from MetaEventService
|
void |
removeService(IThingID serviceID)
removes a service
will fail if there are any references to this service
|
getMetaContext, setMetaContext
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
IThingID createService(String type, String name, IThingID parentID, IThingID ownerID) throws MetaException
type
- service typename
- service nameparentID
- parent folderownerID
- userMetaException
- on DB errorvoid removeService(IThingID serviceID) throws MetaException
serviceID
- id to removeMetaException
- if service cannot be deleted or DB errorIThingID getServiceByName(String type, String name) throws MetaException
type
- service typename
- service nameMetaException
- on DB ErrorIServiceThing getServiceThingFromID(IThingID thingID)
thingID
- IThingIDList getServiceIDs() throws MetaException
MetaException
- on DB errorIThingIDList getServiceIDs(String type) throws MetaException
type
- service typeMetaException
- on DB ErrorList<String> getServiceTypes() throws MetaException
MetaException
- on DB Errorvoid invalidate()