Home | Trees | Index | Help |
|
---|
Package g4ds :: Module communitymanager :: Class CommunityManager |
|
Responsible for maintaining information about Communities this node is member of
Connected to a database. All the data is loaded into the memory at startup time. Changes are written through directly.Method Summary | |
---|---|
Initialises the Community Manager | |
Some basic information about the object | |
Adds a community instance to the repository | |
Community
|
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. | |
Passes the request to the database backend. | |
Updates or inserts the description for one community. |
Instance Variable Summary | |
---|---|
communitymanager_db.CM_DB |
_cm_db : Community Manager Database Connector |
Dict of String | Community |
_communities : Dictionary with all communities (key is the id, value a Community
instance) |
Boolean |
_dbconnected : Indicates, whether the manager is connected to a database; hence
whether the changes shall be written through |
Method Details |
---|
__init__(self,
loadFromDatabase=0)
|
__str__(self)
Some basic information about the object
|
addCommunity(self, community, persistent=1, storeMemberRelations=0)Adds a community instance to the repository
|
getCommunity(self, communityId)Getter
|
getCommunityIds(self)GETTER
|
registerCommunityAlgorithmRelation(self, communityid, algorithmid)Passes the request to the database backend.
|
registerCommunityAuthorityRelation(self, communityid, memberid)Passes the request to the database backend.
|
registerCommunityMemberRelation(self, communityid, memberid)Passes the request to the database backend.
|
registerCommunityProtocolRelation(self, communityid, protocolid)Passes the request to the database backend.
|
updateCommunity(self, community, dropAuthorityRelations=1, dropGatewayRelations=1, dropMemberRelations=0, dropProtocols=1, dropAlgorithms=1)Updates or inserts the description for one community.
|
Instance Variable Details |
---|
_cm_dbCommunity Manager Database Connector |
_communitiesDictionary with all communities (key is the id, value a Community instance)
|
_dbconnectedIndicates, whether the manager is connected to a database; hence whether the changes shall be written through
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat Oct 22 22:52:47 2005 | http://epydoc.sf.net |