Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
*/
public interface CollectionCreateHandler {

void beforeCreateCollection(CollectionItem collection);
default void beforeCreateCollection(CollectionItem collection) {
}

void afterCreateCollection(CollectionItem collection);
default void afterCreateCollection(CollectionItem collection) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ public interface CollectionDeleteHandler {
/**
* This method contains the code inserted before a collection is deleted.
*/
public void beforeDeleteCollection(String calendarName);
default void beforeDeleteCollection(String calendarName) {
}

/**
* This method contains the code inserted after a collection is deleted.
*/
public void afterDeleteCollection(String calendarName);
default void afterDeleteCollection(String calendarName) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ public interface CollectionUpdateHandler {
* This method contains the code inserted before a collection is updated..
* @param collection
*/
public void beforeUpdateCollection(CollectionItem collection);
void beforeUpdateCollection(CollectionItem collection);

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ public interface EventAddHandler {
* @param parent CollectionItem
* @param contentItems Set<ContentItem>
*/
public void beforeAdd(CollectionItem parent, Set<ContentItem> contentItems);
default void beforeAdd(CollectionItem parent, Set<ContentItem> contentItems) {
}

/**
* This method contains the code inserted after an event to be added.
*
* @param parent CollectionItem
* @param contentItems Set<ContentItem>
*/
public void afterAdd(CollectionItem parent, Set<ContentItem> contentItems);
default void afterAdd(CollectionItem parent, Set<ContentItem> contentItems) {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ public interface EventRemoveHandler {
* @param parent CollectionItem
* @param items Set<Item> to remove
*/
public void beforeRemove(CollectionItem parent, Set<Item> items);
default void beforeRemove(CollectionItem parent, Set<Item> items) {
}

/**
* Intercepter executed after removing an item from a collection.

* @param parent CollectionItem
* @param items Set<Item> to remove
*/
public void afterRemove(CollectionItem parent, Set<Item> items);
}
default void afterRemove(CollectionItem parent, Set<Item> items) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public interface EventUpdateHandler {
* @param children
* children to update
*/
public void beforeUpdate(CollectionItem parent, Set<ContentItem> contentItems);
default void beforeUpdate(CollectionItem parent, Set<ContentItem> contentItems) {
}

/**
* This method contains the code inserted after an event to be updated.
Expand All @@ -57,5 +58,6 @@ public interface EventUpdateHandler {
* @param children
* children to update
*/
public void afterUpdate(CollectionItem parent, Set<ContentItem> contentItems);
default void afterUpdate(CollectionItem parent, Set<ContentItem> contentItems) {
}
}
Loading