eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HistoryManager::HistoryLine':

Home

everywhere
www.exept.de
for:
[back]

Class: HistoryLine (private in HistoryManager

This class is only visible from within HistoryManager.

Inheritance:

   Object
   |
   +--HistoryManager::HistoryLine

Package:
stx:libbasic3
Category:
System-Changes-History
Owner:
HistoryManager
Author:
Robert Sailer - AEG

Description:


The class HistoryLine is part of the HistoryManagerProjcet.

HistoryLine knows how to compose and parse comment lines which are
used to keep track of changes. These historyLines are added at the end of
a methods source code and to the special history classmethod.

HistoryLine and HistoryManager where generously provided by AEG for inclusion into the
ST/X class delivery.


Related information:

    HistoryManager

Class protocol:

converting
o  convertStringToDate: aString
kludge

o  convertStringToTime: aString
kludge

filtering
o  filterHistoryLines: aCollectionOfHistoryLines
check the collection against multiple occurrence of the same user,
and remove all but the youngest (per user).

o  modificationLimit
Answer the number of seconds between creation and
modifcation of a method within which the modification
line won't be added.

initialization
o  initialize
setup class variables

instance creation
o  fromString: aString
parses the argument, aString;
create & return a new Instance with the values

o  fromString: aString at: position
parses the String and creates a new Instance with the values.
The positionvalue is normally used to remove the HistoryLines from the sourceCode.
Claus: return nil, if the string is not a valid historyString.

o  new
get a new history line.
Preinitialize it as a modified-Line for the current user

o  newCreated
public - get a new created-Line for the current user

private
o  currentUserName
return the current users name -
thats either the userInfos-gecos field, or the users login name.

o  type: type what: what
private - for integration purposes only


Instance protocol:

accessing
o  date
return the date

o  date: something
set the date

o  firstPositionInSourceCode
return firstPositionInSourceCode

o  firstPositionInSourceCode: something
set firstPositionInSourceCode

o  isForAddition

o  isForCreation

o  isForDeletion

o  isForModification

o  time
return the time

o  time: something
set the time

o  type
return the type

o  type: something
set the type

o  user
return the user

o  user: something
set the user

o  what
return the what-changed info

o  what: someStringOrSelector
set the what-changed info

comparing
o  = aHistoryLine
compares two instances of HistoryLine

o  hash
return a hash key for the receiver

o  sameDate: aHistoryLine
returns true if aUserName = user in preperation for a SortedCollection of HistoryLines

o  sameType: aHistoryLine
returns true if the Type = type in preperation for a SortedCollection of HistoryLines

o  sameUser: aHistoryLine
returns true if aUserName = user in preperation for a SortedCollection of HistoryLines

o  sameWhat: aHistoryLine
returns true if the what = type in preperation for a SortedCollection of HistoryLines

printing & storing
o  printOn: aStream
return a printed representation of a HistoryLine as a string

queries
o  isCreated
returns true if the bodytext is CreatedString

o  isDeleted
returns true if the bodytext is DeletedString

o  isModified
returns true if the bodytext is ModifiedString


Examples:


HistoryLine initialize. HistoryLine new. HistoryLine for: 'R.Sailer'. for integration purposes ONLY HistoryLine deleted.

ST/X 6.1.1; WebServer 1.620 at exept:8081; Mon, 21 May 2012 18:01:44 GMT