VOS::RevisionControlPersistance Class Reference
#include <revcontrol.hh>
Inheritance diagram for VOS::RevisionControlPersistance:

Detailed Description
Definition at line 16 of file revcontrol.hh.
Public Types
- AddTag
- Commit
- FetchVersion
- enum RevControlAccessType { AddTag, Commit, FetchVersion }
Public Member Functions
- RevisionControlPersistance (const std::string &dbpath)
- virtual void siteExtensionAttachedTo (Site *site)
- virtual void post_createVobject (VobjectState &state, Vobject *requester, VobjectBase *newvobject)
- virtual void post_renameVobject (VobjectState &state, Vobject *requester, const std::string &oldname, const std::string &newname)
- virtual void post_addType (VobjectState &state, boost::recursive_mutex::scoped_lock &state_lock, Vobject *requester, const std::string &s)
- virtual void post_removeType (VobjectState &state, boost::recursive_mutex::scoped_lock &state_lock, Vobject *requester, const std::string &s)
- virtual void post_insertChild (VobjectState &state, boost::recursive_mutex::scoped_lock &state_lock, Vobject *requester, int position, const std::string &contextual_name, Vobject *child)
- virtual void post_setChild (VobjectState &state, boost::recursive_mutex::scoped_lock &state_lock, Vobject *requester, int position, const std::string &contextual_name, Vobject *child, const std::string &oldcontextual_name, Vobject *oldchild)
- virtual void post_removeChild (VobjectState &state, boost::recursive_mutex::scoped_lock &state_lock, Vobject *requester, ParentChildRelation *pcr, bool strict)
- virtual void post_addToACL (AccessControlState *acs, Vobject *requester, const std::string &ACLname, Vobject *id, const std::string &oldACLname)
- virtual void post_removeFromACL (AccessControlState *acs, Vobject *requester, const std::string &ACLname, Vobject *id)
- virtual void post_deleteACL (AccessControlState *acs, Vobject *requester, const std::string &policies, AccessControlList *oldacl)
- virtual void post_setDefaultPolicy (AccessControlState *acs, Vobject *requester, const std::string &policy, const std::string &oldpolicy)
- virtual void wipeDatabase ()
- virtual bool storeBlock (Vobject *from, const std::string &key, const std::string &data)
- virtual bool getBlock (Vobject *from, const std::string &key, std::string &data)
- virtual bool getBlockAtVersion (Vobject *from, const std::string &key, int version, std::string &data)
- std::string readHeadVersion (Vobject *from, const std::string &file)
- std::string getDefaultPolicyAtVersion (Vobject *vobj, unsigned int ver)
- std::string getACLsAtVersion (Vobject *vobj, unsigned int ver)
- std::string getChildrenAtVersion (Vobject *vobj, unsigned int ver)
- std::string getTypesAtVersion (Vobject *vobj, unsigned int ver)
- void findChangedVobjects (int startVer, int updateVer, std::map< std::string, std::set< std::string > > &dirty, Message *reply)
- void handleFetchVersionRequest (Message *m)
- void handleCommitRequest (Message *m)
- void handleSetTagRequest (Message *m)
- bool validateRepositoryAccess (Vobject *requester, RevControlAccessType at, std::string &message)
Member Enumeration Documentation
Constructor & Destructor Documentation
| VOS::RevisionControlPersistance::RevisionControlPersistance | ( | const std::string & | dbpath | ) |
Member Function Documentation
| void VOS::RevisionControlPersistance::findChangedVobjects | ( | int | startVer, | |
| int | updateVer, | |||
| std::map< std::string, std::set< std::string > > & | dirty, | |||
| Message * | reply | |||
| ) |
| std::string VOS::RevisionControlPersistance::getACLsAtVersion | ( | Vobject * | vobj, | |
| unsigned int | ver | |||
| ) |
| virtual bool VOS::RevisionControlPersistance::getBlock | ( | Vobject * | from, | |
| const std::string & | key, | |||
| std::string & | data | |||
| ) | [virtual] |
Retrieve a block to the persistance layer.
- Parameters:
-
from the Vobject associated with this data key a key used to retrieve this data data the data will be stored in this string
- Returns:
- true if key was found and data retrieved, false if not
Reimplemented from VOS::FileSystemPersistance.
| virtual bool VOS::RevisionControlPersistance::getBlockAtVersion | ( | Vobject * | from, | |
| const std::string & | key, | |||
| int | version, | |||
| std::string & | data | |||
| ) | [virtual] |
| std::string VOS::RevisionControlPersistance::getChildrenAtVersion | ( | Vobject * | vobj, | |
| unsigned int | ver | |||
| ) |
| std::string VOS::RevisionControlPersistance::getDefaultPolicyAtVersion | ( | Vobject * | vobj, | |
| unsigned int | ver | |||
| ) |
| std::string VOS::RevisionControlPersistance::getTypesAtVersion | ( | Vobject * | vobj, | |
| unsigned int | ver | |||
| ) |
| void VOS::RevisionControlPersistance::handleCommitRequest | ( | Message * | m | ) |
| void VOS::RevisionControlPersistance::handleFetchVersionRequest | ( | Message * | m | ) |
| void VOS::RevisionControlPersistance::handleSetTagRequest | ( | Message * | m | ) |
| virtual void VOS::RevisionControlPersistance::post_addToACL | ( | AccessControlState * | acs, | |
| Vobject * | requester, | |||
| const std::string & | ACLname, | |||
| Vobject * | id, | |||
| const std::string & | oldACLname | |||
| ) | [virtual] |
Reimplemented from VOS::FileSystemPersistance.
| virtual void VOS::RevisionControlPersistance::post_addType | ( | VobjectState & | state, | |
| boost::recursive_mutex::scoped_lock & | state_lock, | |||
| Vobject * | requester, | |||
| const std::string & | s | |||
| ) | [virtual] |
Reimplemented from VOS::FileSystemPersistance.
| virtual void VOS::RevisionControlPersistance::post_createVobject | ( | VobjectState & | state, | |
| Vobject * | requester, | |||
| VobjectBase * | newvobject | |||
| ) | [virtual] |
Reimplemented from VOS::FileSystemPersistance.
| virtual void VOS::RevisionControlPersistance::post_deleteACL | ( | AccessControlState * | acs, | |
| Vobject * | requester, | |||
| const std::string & | policies, | |||
| AccessControlList * | oldacl | |||
| ) | [virtual] |
Reimplemented from VOS::FileSystemPersistance.
| virtual void VOS::RevisionControlPersistance::post_insertChild | ( | VobjectState & | state, | |
| boost::recursive_mutex::scoped_lock & | state_lock, | |||
| Vobject * | requester, | |||
| int | position, | |||
| const std::string & | contextual_name, | |||
| Vobject * | child | |||
| ) | [virtual] |
Reimplemented from VOS::FileSystemPersistance.
| virtual void VOS::RevisionControlPersistance::post_removeChild | ( | VobjectState & | state, | |
| boost::recursive_mutex::scoped_lock & | state_lock, | |||
| Vobject * | requester, | |||
| ParentChildRelation * | pcr, | |||
| bool | strict | |||
| ) | [virtual] |
Reimplemented from VOS::FileSystemPersistance.
| virtual void VOS::RevisionControlPersistance::post_removeFromACL | ( | AccessControlState * | acs, | |
| Vobject * | requester, | |||
| const std::string & | ACLname, | |||
| Vobject * | id | |||
| ) | [virtual] |
Reimplemented from VOS::FileSystemPersistance.
| virtual void VOS::RevisionControlPersistance::post_removeType | ( | VobjectState & | state, | |
| boost::recursive_mutex::scoped_lock & | state_lock, | |||
| Vobject * | requester, | |||
| const std::string & | s | |||
| ) | [virtual] |
Reimplemented from VOS::FileSystemPersistance.
| virtual void VOS::RevisionControlPersistance::post_renameVobject | ( | VobjectState & | state, | |
| Vobject * | requester, | |||
| const std::string & | oldname, | |||
| const std::string & | newname | |||
| ) | [virtual] |
Reimplemented from VOS::FileSystemPersistance.
| virtual void VOS::RevisionControlPersistance::post_setChild | ( | VobjectState & | state, | |
| boost::recursive_mutex::scoped_lock & | state_lock, | |||
| Vobject * | requester, | |||
| int | position, | |||
| const std::string & | contextual_name, | |||
| Vobject * | child, | |||
| const std::string & | oldcontextual_name, | |||
| Vobject * | oldchild | |||
| ) | [virtual] |
Reimplemented from VOS::FileSystemPersistance.
| virtual void VOS::RevisionControlPersistance::post_setDefaultPolicy | ( | AccessControlState * | acs, | |
| Vobject * | requester, | |||
| const std::string & | policy, | |||
| const std::string & | oldpolicy | |||
| ) | [virtual] |
Reimplemented from VOS::FileSystemPersistance.
| std::string VOS::RevisionControlPersistance::readHeadVersion | ( | Vobject * | from, | |
| const std::string & | file | |||
| ) |
| virtual void VOS::RevisionControlPersistance::siteExtensionAttachedTo | ( | Site * | site | ) | [virtual] |
Reimplemented from VOS::FileSystemPersistance.
| virtual bool VOS::RevisionControlPersistance::storeBlock | ( | Vobject * | from, | |
| const std::string & | key, | |||
| const std::string & | data | |||
| ) | [virtual] |
Reimplemented from VOS::FileSystemPersistance.
| bool VOS::RevisionControlPersistance::validateRepositoryAccess | ( | Vobject * | requester, | |
| RevControlAccessType | at, | |||
| std::string & | message | |||
| ) |
| virtual void VOS::RevisionControlPersistance::wipeDatabase | ( | ) | [virtual] |
Reimplemented from VOS::FileSystemPersistance.
The documentation for this class was generated from the following file:
- /home/tetron/hack/vos/libs/vos/extensions/revcontrol/revcontrol.hh