|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ubicollab.osgi.ServiceList
public class ServiceList
The Class ServiceList
is used to represent all services which
have been registered with the Service Domain Manager.
The class functionality neccessary to handle Service
management tasks.
Constructor Summary | |
---|---|
ServiceList(org.osgi.framework.BundleContext bc)
The Constructor for this class. |
Method Summary | |
---|---|
boolean |
addService(Service s)
Adds a specified service to the servicelist. |
boolean |
checkIfServiceExist(java.lang.String uri)
Check if a given service exist (is member of the service list). |
java.lang.String |
getInfoAboutService(java.lang.Long bundleID)
Gets information about a service object, and returns it as serialized XML. |
void |
persistenceUpdate()
Persistence update for the service xml file. |
boolean |
removeService(java.lang.Long bundleID)
Removes a service specified by the bundle id of the bundle which hosts the proxy service. |
boolean |
setActiveSpace(int SpaceID,
boolean stopOtherServices,
DomainManagerImpl dm)
Activates all services belonging to the space identified by the provided id. |
java.lang.String |
toXML()
Method to serialize the service list to XML. |
boolean |
updateService(long bundleID,
java.lang.String friendlyName,
java.lang.String space,
int spaceID,
java.lang.String type,
java.lang.String description)
Method to update the properties of the service identified by serviceUri |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceList(org.osgi.framework.BundleContext bc)
bc
- the active BundlecontextMethod Detail |
---|
public boolean updateService(long bundleID, java.lang.String friendlyName, java.lang.String space, int spaceID, java.lang.String type, java.lang.String description)
bundleID
- The id for the bundle which hosts the servicefriendlyName
- The service friendly namespace
- The space this service will be active in
public boolean addService(Service s)
s
- the service to install
public boolean removeService(java.lang.Long bundleID)
bundleID
- the bundle ID that is to be removed
public void persistenceUpdate()
public java.lang.String toXML()
The xml-structure used to represent the returned service is described in
DomainManager#getServiceList
.
String
containing a representation of the service listDomainManager.getServiceList()
public java.lang.String getInfoAboutService(java.lang.Long bundleID)
The xml-structure used to represent the returned service is described in
DomainManager#getInfoAboutService
.
String
containing a representation of the service list
or "INVALID BUNDLE ID" if bundle id does not exist.DomainManager.getInfoAboutService(java.lang.Long)
public boolean checkIfServiceExist(java.lang.String uri)
uri
- the service uri
public boolean setActiveSpace(int SpaceID, boolean stopOtherServices, DomainManagerImpl dm)
SpaceID
- the ID for the Space to activatestopOtherServices
- true to stop the other service proxies, false othervise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |