Skip to content

Commit

Permalink
Added skeleton wiki templates
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Nov 11, 2023
1 parent fc1403d commit b49aee6
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/main/java/org/ical4j/template/wiki/Article.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package org.ical4j.template.wiki;

import net.fortuna.ical4j.model.component.VJournal;
import org.ical4j.template.AbstractTemplate;

/**
* Used to track a knowledge base article produced as part of a service management workflow.
*/
public class Article extends AbstractTemplate<VJournal> {

public Article() {
super(VJournal.class);
}

public Article(Class<VJournal> typeClass) {
super(typeClass);
}

@Override
public VJournal apply(VJournal vJournal) {
return vJournal;
}
}
20 changes: 20 additions & 0 deletions src/main/java/org/ical4j/template/wiki/Definition.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package org.ical4j.template.wiki;

import net.fortuna.ical4j.model.component.VJournal;
import org.ical4j.template.AbstractTemplate;

public class Definition extends AbstractTemplate<VJournal> {

public Definition() {
super(VJournal.class);
}

public Definition(Class<VJournal> typeClass) {
super(typeClass);
}

@Override
public VJournal apply(VJournal vJournal) {
return vJournal;
}
}
20 changes: 20 additions & 0 deletions src/main/java/org/ical4j/template/wiki/Faq.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package org.ical4j.template.wiki;

import net.fortuna.ical4j.model.component.VToDo;
import org.ical4j.template.AbstractTemplate;

public class Faq extends AbstractTemplate<VToDo> {

public Faq() {
super(VToDo.class);
}

public Faq(Class<VToDo> typeClass) {
super(typeClass);
}

@Override
public VToDo apply(VToDo vToDo) {
return vToDo;
}
}
20 changes: 20 additions & 0 deletions src/main/java/org/ical4j/template/wiki/Topic.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package org.ical4j.template.wiki;

import net.fortuna.ical4j.model.component.VJournal;
import org.ical4j.template.AbstractTemplate;

public class Topic extends AbstractTemplate<VJournal> {

public Topic() {
super(VJournal.class);
}

public Topic(Class<VJournal> typeClass) {
super(typeClass);
}

@Override
public VJournal apply(VJournal vJournal) {
return vJournal;
}
}

0 comments on commit b49aee6

Please sign in to comment.