Method Summary |
|
__init__ (self)
Initialises the database manager for services. |
|
addService (self,
service)
Adds one service to the services table in the database. |
|
addServiceAuthority (self,
serviceid,
memberid)
Adds an entry into the table for the relation between services and
members as authorities. |
|
addServiceCommunity (self,
serviceid,
communityid)
Adds an entry into the table for the relation between services and
communities. |
|
addServiceMember (self,
serviceid,
memberid)
Adds an entry into the table for the relation between services and
members. |
|
getAuthoritiesForService (self,
serviceid)
Fetches a list of ids of all members being authorities for the given
service. |
|
getCommunitiesForService (self,
serviceid)
Fetches a list of ids of all communities subscribed to the given
service. |
|
getMembersForService (self,
serviceid)
Fetches a list of ids of all members subscribed to the given
service. |
|
getServices (self)
Returns a list of all services in the database. |
|
shutdown (self)
Closes open database connections. |
|
updateService (self,
service,
dropAuthorityRelations,
dropMemberRelations,
dropCommunityRelations)
Upadtes the database content with the given service description. |