Initial commit
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
package com.quantumdigital.ithelp.timeanalyzer
|
||||
|
||||
import com.jdbernard.timeanalyzer.Category
|
||||
|
||||
public class ITHelpCategory extends Category {
|
||||
|
||||
public boolean matchesEvent(Event e) {
|
||||
return (e.description ==~ /^ITHelp:.*/)
|
||||
}
|
||||
|
||||
public ITHelpEntry addEvent(Event e) {
|
||||
assert eventMatches(e)
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package com.quantumdigital.ithelp.timeanalyzer
|
||||
|
||||
import com.jdbernard.timeanalyzer.Event
|
||||
|
||||
public class ITHelpEntry extends Entry
|
@ -0,0 +1,12 @@
|
||||
package com.quantumdigital.ithelp.timeanalyzer
|
||||
|
||||
import com.jdbernard.timeanalyzer.EventTransformation
|
||||
|
||||
public class ITHelpEventTransformation extends EventTransformation {
|
||||
|
||||
public boolean matches(Event e) {
|
||||
return e.description ==~ /^ITHelp: .*/
|
||||
}
|
||||
|
||||
public Entry
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.quantumdigital.ithelp.timeanalyzer
|
||||
|
||||
import com.jdbernard.timeanalyzer.Category
|
||||
|
||||
public class TicketCategory extends Category {
|
||||
|
||||
public boolean matchesEvent(Event e) {
|
||||
return (e.description ==~ /ITHelp:.*#\d+.*/)
|
||||
}
|
||||
|
||||
public TicketEntry addEvent(Event e) {
|
||||
assert eventMatches(e)
|
||||
|
||||
TicketEntry entry = new TicketEntry(e)
|
||||
entries << entry
|
Reference in New Issue
Block a user