Method Summary |
|
__init__ (self)
Initialises the CommunityManager Database Connector. |
|
addAlgorithmToCommunity (self,
communityid,
algorithmid)
Adds a algorithm to the given community. |
|
addCommunity (self,
community,
updateMemberRelations)
Adds a community to the communities table. |
|
addCommunityAuthorityRelation (self,
communityid,
memberid)
Adds an entry into the table for the relation between authorities
(members) and communities. |
|
addCommunityMemberRelation (self,
communityid,
memberid)
Adds an entry into the table for the relation between members and
communities. |
|
addGateway (self,
memberid,
sourcecommunityid,
destinationcommunityid)
Adds a gateway relation to the database. |
|
addMember (self,
member,
updateCommunityRelations)
Adds a member to the members table. |
|
addProtocolToCommunity (self,
communityid,
protocolid)
Adds a protocol to the given community. |
List of String
|
getAlgorithmsForCommunity (self,
communityid)
Fetch a list of algorithms linked to the given community. |
List of String
|
getAuthorisedCommunities (self,
member_id)
Fetches the list of all communities, which the given member is an
authority for. |
c{List} of String
|
getAuthoritiesOfCommunity (self,
community_id)
Fetches the list of all member ids which are authorities for the given
community. |
List of communitymanager.Community
|
getCommunities (self)
Fetch list of all communities from the database. |
List of String
|
getCommunitiesForMember (self,
member_id)
Fetches list of all communities the given member is a member of. |
List of communitymanager.CommunityGateway
|
getGateways (self,
memberid,
communityid)
Fetch list of all gateways from the database. |
List of communitymanager.Member
|
getMembers (self)
Fetch list of all members from the database. |
c{List} of String
|
getMembersOfCommunity (self,
community_id)
Fetches the list of all member id for the given community. |
List of String
|
getProtocolsForCommunity (self,
communityid)
Fetch a list of protocols linked to the given community. |
|
shutdown (self)
Shutdown the database connection. |
|
updateCommunity (self,
community,
dropAuthorityRelations,
dropGatewayRelations,
dropMemberRelations,
dropProtocols,
dropAlgorithms)
Updates the entry for the community in the database. |
|
updateMember (self,
member,
updateCommunityRelations)
Updates the entry for the member in the database. |