Home | Trees | Index | Help |
|
---|
Package g4ds :: Module servicerepository :: Class ServiceManager |
|
Responsible for maintaining information about Services and relations with them
Connected to a database. All the data is loaded into the memory at startup time. Changes are written through directly.Method Summary | |
---|---|
Initialises the Service Manager | |
Some basic information about the object | |
Adds a community instance to the repository | |
Service
|
Getter |
List of String
|
GETTER |
Passes the request to the database backend. | |
Passes the request to the database backend. | |
Passes the request to the database backend. | |
Updates the manager with the given service information. |
Instance Variable Summary | |
---|---|
Boolean |
_dbconnected : Indicates, whether the manager is connected to a database; hence
whether the changes shall be written through |
Dict of String | Service |
_services : Dictionary with all services (key is the id, value a Service
instance) |
servicerepository_db.ServDB |
_sr_db : Service Repository Database Connector |
Method Details |
---|
__init__(self,
loadFromDatabase=0)
|
__str__(self)
Some basic information about the object
|
addService(self, service, persistent=1)Adds a community instance to the repository
|
getService(self, serviceId)Getter
|
getServiceIds(self)GETTER
|
registerAuthority(self, serviceid, memberid)Passes the request to the database backend. |
registerCommunitySubscription(self, serviceid, communityid)Passes the request to the database backend. |
registerMemberSubscription(self, serviceid, memberid)Passes the request to the database backend. |
updateService(self, service, dropAuthorityRelations=1, dropMemberRelations=0, dropCommunityRelations=0)Updates the manager with the given service information. Writes information through to the database if connected. |
Instance Variable Details |
---|
_dbconnectedIndicates, whether the manager is connected to a database; hence whether the changes shall be written through
|
_servicesDictionary with all services (key is the id, value a Service instance)
|
_sr_dbService Repository Database Connector |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat Oct 22 22:52:47 2005 | http://epydoc.sf.net |