Studio.SourceControl.Example
class Studio.SourceControl.Example extends %Studio.SourceControl.Base
This is an example source control class. It is not intended for use on a real system, but as a code sample showing some useful techniques.In this example each item in Cache is also stored as an XML file in the filesystem and these external files are assumed to be version controlled by a tool. So every time you load an item this will read the latest version of the item from the file, and when you save this item it will be written back to the XML file.
In addition, if you check an item out then an entry will be added to a global in Cache to show that this item is checked out, and when you check it in the global entry will be removed. Typically the checkout/checkin would call the external source control package, but setting the global shows the general principle.
Method Inventory
- CheckIn()
- CheckOut()
- ExternalName()
- GetStatus()
- IsInSourceControl()
- OnAfterCompile()
- OnAfterSave()
- OnBeforeLoad()
Methods
Inherited Members
Inherited Properties
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnClose()
- %OnNew()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()
- AddToSourceControl()
- AfterUserAction()
- GetLatest()
- GetPortalPageOptions()
- IsGenerated()
- IsReadOnly()
- ItemIconState()
- Login()
- Logout()
- OnAfterAllClassCompile()
- OnAfterClassCompile()
- OnAfterDelete()
- OnAfterLoad()
- OnAfterStorage()
- OnBeforeAllClassCompile()
- OnBeforeClassCompile()
- OnBeforeCompile()
- OnBeforeDelete()
- OnBeforeSave()
- OnBeforeTimestamp()
- OnMenuItem()
- OnPortalCreate()
- RemoveFromSourceControl()
- UndoCheckout()
- UserAction()