VOS::VersionedVobject Class Reference
#include <versioned.hh>
Inheritance diagram for VOS::VersionedVobject:

Detailed Description
Definition at line 32 of file versioned.hh.
Public Member Functions
- VersionedVobject (VobjectBase *superobject)
- int getVersion ()
- VUtil::vRef< Site > getRepository ()
- virtual void update (std::vector< Conflict > &conflicts, int version=-1)
- virtual void update (std::vector< Conflict > &conflicts, std::string tag)
- virtual void update (Site *rvv, std::vector< Conflict > &conflicts, int version=-1)
- virtual void update (Site *rvv, std::vector< Conflict > &conflicts, std::string tag)
- virtual void commit (std::string comment)
- virtual void commit (Site *rvv, std::string comment)
- virtual void tagVersion (std::string tagname, std::string comment, int version=-1)
- virtual void tagVersion (Site *rvv, std::string tagname, std::string comment, int version=-1)
- const std::string getVOSType ()
- void getStatus (std::vector< Status > &stat)
- void writeStatus ()
- virtual void destroy ()
- virtual void notifyBlockChanging (const std::string &key, const std::string &data)
- virtual void notifyBlockChanged (const std::string &key, const std::string &data)
- 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 bool pre_addType (VobjectState &state, boost::recursive_mutex::scoped_lock &state_lock, Vobject *requester, const std::string &s)
- virtual void post_addType (VobjectState &state, boost::recursive_mutex::scoped_lock &state_lock, Vobject *requester, const std::string &s)
- virtual bool pre_removeType (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 bool pre_insertChild (VobjectState &state, boost::recursive_mutex::scoped_lock &state_lock, Vobject *requester, int position, const std::string &contextual_name, Vobject *child)
- 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 bool pre_setChild (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 bool pre_removeChild (VobjectState &state, boost::recursive_mutex::scoped_lock &state_lock, Vobject *requester, ParentChildRelation *pcr, bool strict)
- virtual void post_removeChild (VobjectState &state, boost::recursive_mutex::scoped_lock &state_lock, Vobject *requester, ParentChildRelation *pcr, bool strict)
- virtual bool pre_addToACL (AccessControlState *acs, Vobject *requester, const std::string &ACLname, Vobject *id)
- virtual void post_addToACL (AccessControlState *acs, Vobject *requester, const std::string &ACLname, Vobject *id, const std::string &oldACLname)
- virtual bool pre_removeFromACL (AccessControlState *acs, Vobject *requester, const std::string &ACLname, Vobject *id)
- virtual void post_removeFromACL (AccessControlState *acs, Vobject *requester, const std::string &ACLname, Vobject *id)
- virtual bool pre_deleteACL (AccessControlState *acs, Vobject *requester, std::string &policies)
- virtual void post_deleteACL (AccessControlState *acs, Vobject *requester, std::string &policies, AccessControlList *oldacl)
- virtual bool pre_setDefaultPolicy (AccessControlState *acs, Vobject *requester, const std::string &policy)
- virtual void post_setDefaultPolicy (AccessControlState *acs, Vobject *requester, const std::string &policy, const std::string &oldpolicy)
- void storeOriginalChildren ()
- void storeOriginalDefaultPolicy ()
- void storeOriginalTypes ()
- void storeOriginalACLs ()
Static Public Member Functions
- static MetaObject * new_VersionedVobject (VobjectBase *superobject, const std::string &type)
Constructor & Destructor Documentation
| VOS::VersionedVobject::VersionedVobject | ( | VobjectBase * | superobject | ) |
Member Function Documentation
| virtual void VOS::VersionedVobject::commit | ( | Site * | rvv, | |
| std::string | comment | |||
| ) | [virtual] |
| virtual void VOS::VersionedVobject::commit | ( | std::string | comment | ) | [virtual] |
| virtual void VOS::VersionedVobject::destroy | ( | ) | [inline, virtual] |
Destry this extension.
By default will do "delete this" but can be overridden if that's not what you want (such as if the extension is shared among several Vobjects.)
Reimplemented from VOS::VobjectExtension.
Definition at line 74 of file versioned.hh.
| VUtil::vRef<Site> VOS::VersionedVobject::getRepository | ( | ) |
| void VOS::VersionedVobject::getStatus | ( | std::vector< Status > & | stat | ) |
| int VOS::VersionedVobject::getVersion | ( | ) | [inline] |
Definition at line 54 of file versioned.hh.
| const std::string VOS::VersionedVobject::getVOSType | ( | ) | [virtual] |
- Returns:
- the specific VOS type name that represents the VOS interface this object is supplying. This should always be overridden by the subclass.
Reimplemented from VOS::MetaObject.
| static MetaObject* VOS::VersionedVobject::new_VersionedVobject | ( | VobjectBase * | superobject, | |
| const std::string & | type | |||
| ) | [static] |
| virtual void VOS::VersionedVobject::notifyBlockChanged | ( | const std::string & | key, | |
| const std::string & | data | |||
| ) | [virtual] |
Notify that a block has been changed.
- Parameters:
-
key the key data the new data
Implements VOS::PersistBlockListener.
| virtual void VOS::VersionedVobject::notifyBlockChanging | ( | const std::string & | key, | |
| const std::string & | data | |||
| ) | [virtual] |
Notify that a block is going to change, but the change has not yet been committed (this is mainly useful if you want to back up the old block before it is replaced by the new one).
- Parameters:
-
key the key data the new data
Implements VOS::PersistBlockListener.
| virtual void VOS::VersionedVobject::post_addToACL | ( | AccessControlState * | acs, | |
| Vobject * | requester, | |||
| const std::string & | ACLname, | |||
| Vobject * | id, | |||
| const std::string & | oldACLname | |||
| ) | [virtual] |
Reimplemented from VOS::VobjectExtension.
| virtual void VOS::VersionedVobject::post_addType | ( | VobjectState & | state, | |
| boost::recursive_mutex::scoped_lock & | state_lock, | |||
| Vobject * | requester, | |||
| const std::string & | s | |||
| ) | [virtual] |
Reimplemented from VOS::VobjectExtension.
| virtual void VOS::VersionedVobject::post_createVobject | ( | VobjectState & | state, | |
| Vobject * | requester, | |||
| VobjectBase * | newvobject | |||
| ) | [virtual] |
Reimplemented from VOS::SiteExtension.
| virtual void VOS::VersionedVobject::post_deleteACL | ( | AccessControlState * | acs, | |
| Vobject * | requester, | |||
| std::string & | policies, | |||
| AccessControlList * | oldacl | |||
| ) | [virtual] |
| virtual void VOS::VersionedVobject::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::VobjectExtension.
| virtual void VOS::VersionedVobject::post_removeChild | ( | VobjectState & | state, | |
| boost::recursive_mutex::scoped_lock & | state_lock, | |||
| Vobject * | requester, | |||
| ParentChildRelation * | pcr, | |||
| bool | strict | |||
| ) | [virtual] |
Reimplemented from VOS::VobjectExtension.
| virtual void VOS::VersionedVobject::post_removeFromACL | ( | AccessControlState * | acs, | |
| Vobject * | requester, | |||
| const std::string & | ACLname, | |||
| Vobject * | id | |||
| ) | [virtual] |
Reimplemented from VOS::VobjectExtension.
| virtual void VOS::VersionedVobject::post_removeType | ( | VobjectState & | state, | |
| boost::recursive_mutex::scoped_lock & | state_lock, | |||
| Vobject * | requester, | |||
| const std::string & | s | |||
| ) | [virtual] |
Reimplemented from VOS::VobjectExtension.
| virtual void VOS::VersionedVobject::post_renameVobject | ( | VobjectState & | state, | |
| Vobject * | requester, | |||
| const std::string & | oldname, | |||
| const std::string & | newname | |||
| ) | [virtual] |
Reimplemented from VOS::SiteExtension.
| virtual void VOS::VersionedVobject::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::VobjectExtension.
| virtual void VOS::VersionedVobject::post_setDefaultPolicy | ( | AccessControlState * | acs, | |
| Vobject * | requester, | |||
| const std::string & | policy, | |||
| const std::string & | oldpolicy | |||
| ) | [virtual] |
Reimplemented from VOS::VobjectExtension.
| virtual bool VOS::VersionedVobject::pre_addToACL | ( | AccessControlState * | acs, | |
| Vobject * | requester, | |||
| const std::string & | ACLname, | |||
| Vobject * | id | |||
| ) | [virtual] |
Reimplemented from VOS::VobjectExtension.
| virtual bool VOS::VersionedVobject::pre_addType | ( | VobjectState & | state, | |
| boost::recursive_mutex::scoped_lock & | state_lock, | |||
| Vobject * | requester, | |||
| const std::string & | s | |||
| ) | [virtual] |
Reimplemented from VOS::VobjectExtension.
| virtual bool VOS::VersionedVobject::pre_deleteACL | ( | AccessControlState * | acs, | |
| Vobject * | requester, | |||
| std::string & | policies | |||
| ) | [virtual] |
| virtual bool VOS::VersionedVobject::pre_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::VobjectExtension.
| virtual bool VOS::VersionedVobject::pre_removeChild | ( | VobjectState & | state, | |
| boost::recursive_mutex::scoped_lock & | state_lock, | |||
| Vobject * | requester, | |||
| ParentChildRelation * | pcr, | |||
| bool | strict | |||
| ) | [virtual] |
Reimplemented from VOS::VobjectExtension.
| virtual bool VOS::VersionedVobject::pre_removeFromACL | ( | AccessControlState * | acs, | |
| Vobject * | requester, | |||
| const std::string & | ACLname, | |||
| Vobject * | id | |||
| ) | [virtual] |
Reimplemented from VOS::VobjectExtension.
| virtual bool VOS::VersionedVobject::pre_removeType | ( | VobjectState & | state, | |
| boost::recursive_mutex::scoped_lock & | state_lock, | |||
| Vobject * | requester, | |||
| const std::string & | s | |||
| ) | [virtual] |
Reimplemented from VOS::VobjectExtension.
| virtual bool VOS::VersionedVobject::pre_setChild | ( | VobjectState & | state, | |
| boost::recursive_mutex::scoped_lock & | state_lock, | |||
| Vobject * | requester, | |||
| int | position, | |||
| const std::string & | contextual_name, | |||
| Vobject * | child | |||
| ) | [virtual] |
Reimplemented from VOS::VobjectExtension.
| virtual bool VOS::VersionedVobject::pre_setDefaultPolicy | ( | AccessControlState * | acs, | |
| Vobject * | requester, | |||
| const std::string & | policy | |||
| ) | [virtual] |
Reimplemented from VOS::VobjectExtension.
| void VOS::VersionedVobject::storeOriginalACLs | ( | ) |
| void VOS::VersionedVobject::storeOriginalChildren | ( | ) |
| void VOS::VersionedVobject::storeOriginalDefaultPolicy | ( | ) |
| void VOS::VersionedVobject::storeOriginalTypes | ( | ) |
| virtual void VOS::VersionedVobject::tagVersion | ( | Site * | rvv, | |
| std::string | tagname, | |||
| std::string | comment, | |||
| int | version = -1 | |||
| ) | [virtual] |
| virtual void VOS::VersionedVobject::tagVersion | ( | std::string | tagname, | |
| std::string | comment, | |||
| int | version = -1 | |||
| ) | [virtual] |
| virtual void VOS::VersionedVobject::update | ( | Site * | rvv, | |
| std::vector< Conflict > & | conflicts, | |||
| std::string | tag | |||
| ) | [virtual] |
| virtual void VOS::VersionedVobject::update | ( | Site * | rvv, | |
| std::vector< Conflict > & | conflicts, | |||
| int | version = -1 | |||
| ) | [virtual] |
| virtual void VOS::VersionedVobject::update | ( | std::vector< Conflict > & | conflicts, | |
| std::string | tag | |||
| ) | [virtual] |
| virtual void VOS::VersionedVobject::update | ( | std::vector< Conflict > & | conflicts, | |
| int | version = -1 | |||
| ) | [virtual] |
| void VOS::VersionedVobject::writeStatus | ( | ) |
The documentation for this class was generated from the following file:
- /home/tetron/hack/vos/libs/vos/extensions/revcontrol/versioned.hh