Interface IServiceThingService
- All Superinterfaces:
IComponent
,IInitializable
,IMetaComponent
-
Method Summary
Modifier and TypeMethodDescriptioncreateService
(String type, String name, IThingID parentID, IThingID ownerID) Creates the service thing, and assigns it a name and typegetServiceByName
(String type, String name) Gets a instance id of service based on name and service typecomplete list of all servicesgetServiceIDs
(String type) Gets list of service id's for service typegetServiceThingFromID
(IThingID thingID) gets a service thing from an IDGets list of all service typesvoid
causes local map to refresh, called from MetaEventServicevoid
removeService
(IThingID serviceID) removes a service will fail if there are any references to this serviceMethods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
Methods inherited from interface com.webmethods.portal.service.meta2.IMetaComponent
getMetaContext, setMetaContext
-
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 typename
- service nameparentID
- parent folderownerID
- user- Returns:
- id of new service
- Throws:
MetaException
- on DB error
-
removeService
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
Gets a instance id of service based on name and service type- Parameters:
type
- service typename
- service name- Returns:
- service id, INVALID_ID if nothing found
- Throws:
MetaException
- on DB Error
-
getServiceThingFromID
gets a service thing from an ID- Parameters:
thingID
-- Returns:
-
getServiceIDs
complete list of all services- Returns:
- array of service id's
- Throws:
MetaException
- on DB error
-
getServiceIDs
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
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
-